Browse Source

格式修改

Signed-off-by: lijunqing <lijunqing@dashoo.cn>
lijunqing 6 years ago
parent
commit
b4f86aea69

+ 97 - 99
src/dashoo.cn/frontend_web/src/components/oilsupplier/businesslist.vue

@@ -4,7 +4,7 @@
       <div slot="header" class="clearfix">
         <span style="font-weight: bold">准入范围</span>
         <span style="float: right;">
-           <el-button style="float: right; padding: 3px 0px" type="text" @click="deletedata()" v-if="candelete">删除</el-button>
+           <el-button style="float: right; padding: 3px 0px" type="text" @click="deletedata()" v-if="candelete">删除</el-button> 
           <el-button style="float: right; padding: 3px 25px" type="text" @click="showDialog" v-if="canadd">添加
           </el-button>
         </span>
@@ -122,12 +122,12 @@
         type: Boolean,
         default: false
       },
-      candelete:{
+      candelete: {
         type: Boolean,
         default: false
       }
     },
-    /*created() {
+    /* created() {
       this.initData()
     },
     computed: {
@@ -135,17 +135,17 @@
         session: 'session'
       })
     },*/
-    data() {
+    data () {
       var CheckSelectedOption = (rule, value, callback) => {
         if (this.selectedOptList && this.selectedOptList.length < 1) {
           callback(new Error('请选择分类'))
         } else {
           callback()
         }
-      };
-      return {
-        loading:false,
-        Ids:[],
+      }
+    return {
+        loading: false,
+        Ids: [],
         SupplierId: 0,
         SupplierTypeCode: '',
         SupplierCertId: 0,
@@ -161,7 +161,7 @@
         // selectedorg: [],
         ClassId: '',
 
-        //物资类懒加载
+        // 物资类懒加载
         // optionsList: [], //物资类层级列表
         // selectedOptList: [], //已选择的物资类列表
         // goodsProps: {
@@ -169,7 +169,7 @@
         //   label: 'Name',
         //   children: 'children'
         // },
-        //物资类表单规则
+        // 物资类表单规则
         // formRules: {
         //   checkName: [{
         //     required: true,
@@ -201,24 +201,23 @@
         CurrentPage: 1, // 分页
         Size: 10,
         CurrentItemCount: 0,
-        flagId: 0 //标记是否第一次点击
+        flagId: 0 // 标记是否第一次点击
       }
     },
     methods: {
-        handleSelectionChange(val) {
-        this.Ids=[]
-        for (var i=0;i<val.length;i++)
-        {
+      handleSelectionChange (val) {
+        this.Ids = []
+        for (var i = 0; i < val.length; i++) {
           this.Ids.push(val[i].Id)
         }
       },
-      getvalue(SupplierId, SupplierTypeCode, certId) {
+      getvalue (SupplierId, SupplierTypeCode, certId) {
         this.SupplierId = SupplierId
         this.SupplierTypeCode = SupplierTypeCode
         this.SupplierCertId = certId
         this.initData()
       },
-      initData() {
+      initData () {
         let _this = this
         const params = {
           SupplierCertId: this.SupplierCertId,
@@ -228,8 +227,8 @@
         }
         console.log(params, 'params')
         this.$axios.get('suppliercertsub/list', {
-            params
-          })
+          params
+        })
           .then(res => {
             _this.businessList = res.data.items
             _this.currentItemCount = res.data.currentItemCount
@@ -240,17 +239,17 @@
           })
       },
       // savedata() {
-        // if (this.Title === '新增准入范围') {
-        //   if (this.BusinessForm.SupplierTypeCode == '01') {
-        //     this.addGoodsBus()
-        //   } else if (this.BusinessForm.SupplierTypeCode == '02') {
-            // this.addBasicBus()
-        //   } else {
-        //     this.addBusiness()
-        //   }
-        // } else if (this.Title === '编辑准入范围') {
-        //   this.editBusiness()
-        // }
+      // if (this.Title === '新增准入范围') {
+      //   if (this.BusinessForm.SupplierTypeCode == '01') {
+      //     this.addGoodsBus()
+      //   } else if (this.BusinessForm.SupplierTypeCode == '02') {
+      // this.addBasicBus()
+      //   } else {
+      //     this.addBusiness()
+      //   }
+      // } else if (this.Title === '编辑准入范围') {
+      //   this.editBusiness()
+      // }
       // },
       // addGoodsBus() {
       //   let _this = this
@@ -289,12 +288,12 @@
       //       })
       //   }
       // },
-      addBasicBus() {
+      addBasicBus () {
         let _this = this
         _this.BusinessForm.SupplierId = parseInt(_this.BusinessForm.SupplierId)
         _this.BusinessForm.SupplierCertId = parseInt(_this.BusinessForm.SupplierCertId)
         _this.BusinessForm.SubClassId = parseInt(_this.BusinessForm.SubClassId)
-        _this.loading=true
+        _this.loading = true
         _this.$axios.post('/suppliercertsub/addbusiness/', _this.BusinessForm)
           .then(res => {
             if (res.data.code === 0) {
@@ -304,10 +303,10 @@
               })
               _this.BusinessForm.Id = res.data.item + ''
               _this.visible = false
-              _this.loading=false
+              _this.loading = false
               _this.initData()
             } else {
-                 _this.loading=false
+              _this.loading = false
               _this.$message({
                 type: 'warning',
                 message: res.data.message
@@ -377,43 +376,43 @@
       //       console.error(err)
       //     })
       // },
-      deletedata(val) {
-          if(val!=null&&val!=""){
-            this.Ids=[]
-            this.Ids.push(val.Id)
-            }
-          console.log(this.Ids)
-          if(this.Ids.length==0){
-           this.$message({
-                type: 'warning',
-                message: '请先选择删除条目'
-            })
-            return
+      deletedata (val) {
+        if (val != null && val != '') {
+          this.Ids = []
+          this.Ids.push(val.Id)
+        }
+        console.log(this.Ids)
+        if (this.Ids.length == 0) {
+          this.$message({
+            type: 'warning',
+            message: '请先选择删除条目'
+          })
+          return
         }
         let _this = this
         _this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
-            confirmButtonText: '确定',
-            cancelButtonText: '取消',
-            type: 'warning'
-          })
+          confirmButtonText: '确定',
+          cancelButtonText: '取消',
+          type: 'warning'
+        })
           .then(() => {
-              const delload= this.$loading({
-          lock: true,
-          text: '正在删除请稍后...',
-        });
-            _this.$axios.delete('suppliercertsub/businessdelete/' + this.Ids.join(), {})
+            const delload = this.$loading({
+              lock: true,
+              text: '正在删除请稍后...'
+            })
+          _this.$axios.delete('suppliercertsub/businessdelete/' + this.Ids.join(), {})
               .then(function (response) {
                 if (response.data.code === 0) {
                   _this.$message({
                     type: 'success',
                     message: response.data.message
                   })
-                   _this.Ids=[]
-                   delload.close()
+                  _this.Ids = []
+                  delload.close()
                   _this.initData()
                 } else {
-                   _this.Ids=[]
-                   delload.close()
+                  _this.Ids = []
+                  delload.close()
                   _this.$message({
                     type: 'warning',
                     message: response.data.message
@@ -425,15 +424,15 @@
               })
           })
           .catch(() => {
-               _this.Ids=[]
+            _this.Ids = []
           })
       },
-      showDialog() {
+      showDialog () {
         this.selectedorg = []
         this.keyword = ''
         this.seachdata()
         this.Title = '新增准入范围'
-        this.selectedOptList = [] //置空,防止先修改再添加时的已选分类信息保留
+        this.selectedOptList = [] // 置空,防止先修改再添加时的已选分类信息保留
         this.BusinessForm.Id = ''
         this.BusinessForm.SupplierId = this.SupplierId
         this.BusinessForm.SupplierCertId = this.SupplierCertId
@@ -460,7 +459,7 @@
       //   this.getbusiness()
       //   this.visible = true
       // },
-      getbusiness() {
+      getbusiness () {
         let _this = this
         // if (_this.SupplierTypeCode === '01') { // 获取物资类第一级分类
         //   this.$axios.get('goodsaptitude/goodsparentlist', {})
@@ -474,21 +473,21 @@
         //       console.error(err)
         //     })
         // } else if (_this.SupplierTypeCode === '02') { // 获取基建类业务列表
-          const params = {
-            keyword: this.keyword,
-            _currentPage: this.CurrentPage,
-            _size: this.Size
-          }
-          this.$axios.get('basisbuild/basiclist', {
-              params
-            })
-            .then(res => {
-              _this.techList = res.data.items
-              _this.CurrentItemCount = res.data.currentItemCount
-            })
-            .catch(err => {
-              console.error(err)
-            })
+        const params = {
+          keyword: this.keyword,
+          _currentPage: this.CurrentPage,
+          _size: this.Size
+        }
+        this.$axios.get('basisbuild/basiclist', {
+          params
+        })
+          .then(res => {
+            _this.techList = res.data.items
+            _this.CurrentItemCount = res.data.currentItemCount
+          })
+          .catch(err => {
+            console.error(err)
+          })
         // } else if (_this.SupplierTypeCode === '03') { // 获取技术服务类业务列表
         //   this.$axios.get('technologyservice/businesslist', {})
         //     .then(res => {
@@ -500,18 +499,18 @@
         //     })
         // }
       },
-      //获取下一级所有分类
-      getChildrens(val) {
+      // 获取下一级所有分类
+      getChildrens (val) {
         let _this = this
         let Id = val[0]
-        if (Id != _this.flagId) { //判断是否是第一次,若不相等则为第一次
+        if (Id != _this.flagId) { // 判断是否是第一次,若不相等则为第一次
           this.$axios.get('goodsaptitudeclass/getchildlist/' + Id, {})
             .then(res => {
-              //获取下一级所有级联数据
-              if (res.data.items) { //判断是否有数据
+              // 获取下一级所有级联数据
+              if (res.data.items) { // 判断是否有数据
                 let tempList = []
                 tempList = window.toolfun_gettreejson(res.data.items, 'Id', 'ParentId', 'Id,Name')
-                //添加到上一级对应的选项中
+                // 添加到上一级对应的选项中
                 for (let i = 0; i < _this.optionsList.length; i++) {
                   if (_this.optionsList[i].id === Id) {
                     _this.$set(_this.optionsList[i], 'children', tempList)
@@ -519,7 +518,7 @@
                   }
                 }
               } else {
-                //修改上一级的children属性
+                // 修改上一级的children属性
                 for (let i = 0; i < _this.optionsList.length; i++) {
                   if (_this.optionsList[i].id === Id) {
                     _this.$set(_this.optionsList[i], 'children', '')
@@ -527,7 +526,7 @@
                   }
                 }
               }
-              //做标记
+              // 做标记
               _this.flagId = Id
             })
             .catch(err => {
@@ -535,12 +534,12 @@
             })
         }
       },
-      //获取分类级联Id
-      getGoodsCode(item) {
-        this.getCodeById(item[item.length - 1]) //根据分类Id获取Code
+      // 获取分类级联Id
+      getGoodsCode (item) {
+        this.getCodeById(item[item.length - 1]) // 根据分类Id获取Code
       },
-      //根据分类Id获取Code
-      getCodeById(Id) {
+      // 根据分类Id获取Code
+      getCodeById (Id) {
         let _this = this
         this.$axios.get('goodsaptitudeclass/getcode/' + Id, {})
           .then(res => {
@@ -562,7 +561,7 @@
       //     }
       //   }
       // },
-      getChooseCode(val) {
+      getChooseCode (val) {
         this.ClassId = val.Id
         this.BusinessForm.SubClassId = val.Id
         this.BusinessForm.Code = val.Code
@@ -570,29 +569,29 @@
         this.basicDialog = false
       },
 
-      handleSizeChange(value) {
+      handleSizeChange (value) {
         this.size = value
         this.currentPage = 1
         this.initData()
       },
-      handleCurrentChange(value) {
+      handleCurrentChange (value) {
         this.currentPage = value
         this.initData()
       },
-      HandleSizeChange(value) {
+      HandleSizeChange (value) {
         this.Size = value
         this.CurrentPage = 1
         this.getbusiness()
       },
-      HandleCurrentChange(value) {
+      HandleCurrentChange (value) {
         this.CurrentPage = value
         this.getbusiness()
       },
-      seachdata() {
+      seachdata () {
         this.CurrentPage = -1
         this.getbusiness()
       },
-      jstimehandle(val) {
+      jstimehandle (val) {
         if (val === '') {
           return '----'
         } else if (val === '0001-01-01T08:00:00+08:00') {
@@ -606,7 +605,6 @@
       }
     }
   }
-
 </script>
 
 <style>

+ 55 - 56
src/dashoo.cn/frontend_web/src/components/oilsupplier/goodslist.vue

@@ -14,7 +14,7 @@
           width="55">
         </el-table-column>
 
-        <el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column>
+        <el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column> 
         <el-table-column prop="Name" label="分类名称" show-overflow-tooltip></el-table-column>
         <el-table-column prop="Remark" label="备注" show-overflow-tooltip></el-table-column>
 
@@ -82,12 +82,12 @@
         type: Boolean,
         default: false
       },
-      candelete:{
-        type:Boolean,
-        default:false
+      candelete: {
+        type: Boolean,
+        default: false
       }
     },
-    /*created() {
+    /* created() {
       this.initData()
     },
     computed: {
@@ -96,14 +96,14 @@
       })
     },*/
     watch: {
-      filterText(val) {
-        this.$refs.orgmanagetree.filter(val);
-      }
+      filterText (val) {
+        this.$refs.orgmanagetree.filter(val)
+    }
     },
-    data() {
+    data () {
       return {
-        loading:false,
-        Ids:[],
+        loading: false,
+        Ids: [],
         SupplierId: 0,
         SupplierTypeCode: '',
         SupplierCertId: 0,
@@ -135,25 +135,24 @@
         currentPage: 1, // 分页
         size: 10,
         currentItemCount: 0,
-        flagId: 0 //标记是否第一次点击
+        flagId: 0 // 标记是否第一次点击
       }
     },
     methods: {
 
-      handleSelectionChange(val) {
-        this.Ids=[]
-        for (var i=0;i<val.length;i++)
-        {
+      handleSelectionChange (val) {
+        this.Ids = []
+        for (var i = 0; i < val.length; i++) {
           this.Ids.push(val[i].Id)
         }
       },
-      getvalue(SupplierId, SupplierTypeCode, certId) {
+      getvalue (SupplierId, SupplierTypeCode, certId) {
         this.SupplierId = SupplierId
         this.SupplierTypeCode = SupplierTypeCode
         this.SupplierCertId = certId
         this.initData()
       },
-      initData() {
+      initData () {
         let _this = this
         const params = {
           SupplierCertId: this.SupplierCertId,
@@ -162,8 +161,8 @@
           _size: this.size
         }
         this.$axios.get('suppliercertsub/list', {
-            params
-          })
+          params
+        })
           .then(res => {
             _this.goodsList = res.data.items
             _this.currentItemCount = res.data.currentItemCount
@@ -173,7 +172,7 @@
             console.error(err)
           })
       },
-      getChecklist() {
+      getChecklist () {
         let val1 = this.$refs.orgmanagetree.getCheckedNodes()
         let val2 = this.$refs.secmanagetree.getCheckedNodes()
         this.checkList = []
@@ -182,7 +181,7 @@
             this.checkList.push(val1[i])
           }
         }
-        for (var i = 0; i < val2.length; i++){
+        for (var i = 0; i < val2.length; i++) {
           if (val2[i].Code.length == 8) {
             this.checkList.push(val2[i])
           }
@@ -190,7 +189,7 @@
         this.addBusiness()
         this.switchstatus = false
       },
-      addBusiness() {
+      addBusiness () {
         let _this = this
         let params = {
           SupplierId: parseInt(_this.SupplierId),
@@ -210,7 +209,7 @@
           })
           return
         }
-        _this.loading=true
+        _this.loading = true
         _this.$axios.post('/suppliercertsub/addgoodsbus', params)
           .then(res => {
             if (res.data.code === 0) {
@@ -219,10 +218,10 @@
                 message: res.data.message
               })
               _this.goodsDialog = false
-              _this.loading=false
+              _this.loading = false
               _this.initData()
             } else {
-              _this.loading=false
+              _this.loading = false
               _this.$message({
                 type: 'warning',
                 message: '操作失败!'
@@ -237,32 +236,32 @@
         this.filterText = ''
         this.searchText = ''
       },
-      deletedata(val) {
-        if(val!=null&&val!=""){
-            this.Ids=[]
-            this.Ids.push(val.Id)
+      deletedata (val) {
+        if (val != null && val != '') {
+          this.Ids = []
+          this.Ids.push(val.Id)
         }
 
-        if(this.Ids.length==0){
-           this.$message({
-                type: 'warning',
-                message: '请先选择删除条目'
-            })
-            return
+        if (this.Ids.length == 0) {
+          this.$message({
+            type: 'warning',
+            message: '请先选择删除条目'
+          })
+          return
         }
 
         let _this = this
         _this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
-            confirmButtonText: '确定',
-            cancelButtonText: '取消',
-            type: 'warning'
-          })
+          confirmButtonText: '确定',
+          cancelButtonText: '取消',
+          type: 'warning'
+        })
           .then(() => {
-         const delload= this.$loading({
-          lock: true,
-          text: '正在删除请稍后...',
-        });
-            _this.$axios.delete('suppliercertsub/businessdelete/' + this.Ids.join(), {})
+            const delload = this.$loading({
+              lock: true,
+              text: '正在删除请稍后...'
+            })
+          _this.$axios.delete('suppliercertsub/businessdelete/' + this.Ids.join(), {})
               .then(function (response) {
                 if (response.data.code === 0) {
                   _this.$message({
@@ -270,11 +269,11 @@
                     message: response.data.message
                   })
                   delload.close()
-                   _this.Ids=[]
+                  _this.Ids = []
                   _this.initData()
                 } else {
-                   delload.close()
-                    _this.Ids=[]
+                  delload.close()
+                  _this.Ids = []
                   _this.$message({
                     type: 'warning',
                     message: response.data.message
@@ -286,14 +285,14 @@
               })
           })
           .catch(() => {
-               _this.Ids=[]
+            _this.Ids = []
           })
       },
-      showDialog() {
-        //this.getorgtreelist()
+      showDialog () {
+        // this.getorgtreelist()
         this.goodsDialog = true
       },
-      getsectreelist() {
+      getsectreelist () {
         let _this = this
         let name = _this.searchText
         this.$axios.get('goodsaptitude/goodsparentlist/' + name)
@@ -304,8 +303,8 @@
             console.error(err)
           })
       },
-      //获取下一级所有分类
-      getChildrens(val, resolve) {
+      // 获取下一级所有分类
+      getChildrens (val, resolve) {
         let Id = 0
         if (val.level === 0) {
           Id = 0
@@ -322,7 +321,7 @@
               if (res.data.items[idx].Code.length <= 4) {
                 res.data.items[idx].disabled = true
               }
-              res.data.items[idx].Leaf = res.data.items[idx].Leaf === '1' ? true : false
+              res.data.items[idx].Leaf = res.data.items[idx].Leaf === '1'
             }
             return resolve(res.data.items)
           })
@@ -343,7 +342,7 @@
       handleCurrentChange (value) {
         this.currentPage = value
         this.initData()
-      },
+      }
     }
   }
 </script>

+ 71 - 76
src/dashoo.cn/frontend_web/src/components/oilsupplier/subfilelist.vue

@@ -12,7 +12,7 @@
           提交
         </el-button> -->
       </div>
-      <el-table :data="businessList" border bordertooltip-effect="dark"  @selection-change="handleSelectionChange">
+      <el-table :data="businessList" border bordertooltip-effect="dark"  @selection-change="handleSelectionChange"> 
         <el-table-column type="selection" width="55"></el-table-column>
         <el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column>
         <el-table-column prop="Name" label="分类名称" show-overflow-tooltip></el-table-column>
@@ -144,7 +144,7 @@
       },
       flag: {
         type: String
-      },
+      }
     },
     computed: {
       ...mapGetters({
@@ -152,12 +152,12 @@
         authUser: 'authUser'
       })
     },
-    data() {
+    data () {
       return {
         yasuoname: '',
         SupplierId: 0,
         SupplierTypeCode: '',
-        SubClassIds:[],
+        SubClassIds: [],
         SupplierCertId: 0,
         InStyle: '1',
 
@@ -189,7 +189,7 @@
           OtherRemark: '',
           Remark: '',
           IsDelete: 0,
-          FileUrlList: [],
+          FileUrlList: []
         },
         visible: false,
         selfVisible: this.visible, // 避免vue双向绑定警告
@@ -197,24 +197,23 @@
         waituploads: [], // 等待上传的附件列表
         doclist: [],
         dynamicTableColumns: [],
-        IsCompanyUser: '',
+        IsCompanyUser: ''
       }
     },
-    created() {
+    created () {
       this.getDictOptions()
       this.initTableHeader()
       this.IsCompanyUser = this.authUser.Profile.IsCompanyUser
     },
     methods: {
-      handleSelectionChange(val) {
-      this.SubClassIds=[]
-      for (var i=0;i<val.length;i++)
-      {
-        this.SubClassIds.push(val[i].SubClassId)
-      }
-      this.initData()
+      handleSelectionChange (val) {
+        this.SubClassIds = []
+        for (var i = 0; i < val.length; i++) {
+          this.SubClassIds.push(val[i].SubClassId)
+        }
+        this.initData()
       },
-      initTableHeader() {
+      initTableHeader () {
         if (this.flag == '01') {
           setapi.initGoodTableHeader(this.$axios).then(res => {
             this.dynamicTableColumns = res.data.items
@@ -228,9 +227,8 @@
             this.dynamicTableColumns = res.data.items
           })
         }
-
       },
-      getvalue(SupplierId, SupplierTypeCode, certId, inStyle) {
+      getvalue (SupplierId, SupplierTypeCode, certId, inStyle) {
         this.SupplierId = SupplierId
         this.SupplierTypeCode = SupplierTypeCode
         this.SupplierCertId = certId
@@ -238,32 +236,31 @@
         this.initData()
         this.getbusList()
       },
-      initData() {
+      initData () {
         let _this = this
         const params = {
           InStyle: this.InStyle,
           SupplierId: this.SupplierId,
           SupplierTypeCode: this.SupplierTypeCode,
-          SubClassIds:this.SubClassIds.join(),
+          SubClassIds: this.SubClassIds.join(),
           _currentPage: 1,
-          _size: 1000,
+          _size: 1000
         }
         _this.$axios.get('supplierfile/filelist', {
-            params
-          })
+          params
+        })
           .then(res => {
             _this.subfileList = res.data.items
             _this.currentItemCount = res.data.currentItemCount
             for (let idx in _this.subfileList) {
               _this.subfileList[idx].FileUrlList = _this.subfileList[idx].FileUrl.split('$')
-
             }
           })
           .catch(err => {
             console.error(err)
           })
       },
-      getbusList() {
+      getbusList () {
         let _this = this
         const params = {
           SupplierCertId: this.SupplierCertId,
@@ -272,8 +269,8 @@
           _size: 1000
         }
         this.$axios.get('suppliercertsub/list', {
-            params
-          })
+          params
+        })
           .then(res => {
             _this.businessList = res.data.items
           })
@@ -281,7 +278,7 @@
             console.error(err)
           })
       },
-      makesure() {
+      makesure () {
         if (this.Title == '新增文件') {
           if (this.$refs.refuploadattach.uploadFiles && this.$refs.refuploadattach.uploadFiles.length > 0) {
             // 上传附件是否完成判断
@@ -314,7 +311,7 @@
           }
         }
       },
-      addSubfile() {
+      addSubfile () {
         let _this = this
         _this.SubfileForm.SupplierId = parseInt(_this.SubfileForm.SupplierId)
         _this.SubfileForm.SupplierCertSubId = parseInt(_this.SubfileForm.SupplierCertSubId)
@@ -323,7 +320,7 @@
             if (res.data.code === 0) {
               _this.$message({
                 type: 'success',
-                message: res.data.message,
+                message: res.data.message
               })
               this.visible = false
               this.initData()
@@ -339,7 +336,7 @@
             console.error(err)
           })
       },
-      editSubfile() {
+      editSubfile () {
         let _this = this
         _this.SubfileForm.SupplierId = parseInt(_this.SubfileForm.SupplierId)
         _this.SubfileForm.SupplierCertSubId = parseInt(_this.SubfileForm.SupplierCertSubId)
@@ -348,7 +345,7 @@
             if (res.data.code === 0) {
               _this.$message({
                 type: 'success',
-                message: res.data.message,
+                message: res.data.message
               })
               this.visible = false
               this.initData()
@@ -364,36 +361,36 @@
             console.error(err)
           })
       },
-      deletedata(val) {
-        let _this = this;
-        _this.$confirm("此操作将永久删除该数据, 是否继续?", "提示", {
-            confirmButtonText: "确定",
-            cancelButtonText: "取消",
-            type: "warning"
-          })
+      deletedata (val) {
+        let _this = this
+      _this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
+          confirmButtonText: '确定',
+          cancelButtonText: '取消',
+          type: 'warning'
+        })
           .then(() => {
             _this.$axios.delete('supplierfile/subfiledelete/' + val.Id, {})
               .then(function (response) {
                 if (response.data.code === 0) {
                   _this.$message({
-                    type: "success",
+                    type: 'success',
                     message: response.data.message
-                  });
-                  _this.initData();
-                } else {
+                  })
+                _this.initData()
+              } else {
                   _this.$message({
-                    type: "warning",
+                    type: 'warning',
                     message: response.data.message
-                  });
-                }
+                  })
+              }
               })
               .catch(function (error) {
-                console.log(error);
-              });
-          })
-          .catch(() => {});
-      },
-      nextStep() {
+                console.log(error)
+            })
+        })
+          .catch(() => {})
+    },
+      nextStep () {
         if (this.businessList && this.businessList.length > 0) {
           if (this.subfileList && this.subfileList.length > 0) {
             for (var i = 0; i < this.subfileList.length; i++) {
@@ -416,15 +413,15 @@
           })
         }
       },
-      getDictOptions() {
+      getDictOptions () {
         api.getDictList(this.$axios).then(res => {
           this.yasuoname = res.data.items['YaSuoName']
         }).catch(err => {
           console.error(err)
         })
       },
-      showDialog() {
-        //this.doclist = []
+      showDialog () {
+        // this.doclist = []
         this.Title = '新增文件'
         this.SubfileForm.Id = ''
         this.SubfileForm.SupplierId = this.SupplierId
@@ -443,7 +440,7 @@
         this.SubfileForm.IsDelete = 0
         this.visible = true
       },
-      openDialog(val) {
+      openDialog (val) {
         this.Title = '上传文件'
         this.SubfileForm.Id = val.Id
         this.SubfileForm.SupplierId = val.SupplierId
@@ -467,8 +464,8 @@
         this.SubfileForm.IsDelete = val.IsDelete
         this.visible = true
       },
-      //文档列表
-      getwendanginfo(iUrl) {
+      // 文档列表
+      getwendanginfo (iUrl) {
         let _this = this
         _this.doclist = []
         let exArr = iUrl.split('|')
@@ -479,8 +476,8 @@
         _this.doclist.push(params)
       },
 
-      beforeAvatarUpload(file) {
-        /*let isLt512K = file.size / 1024 < 512
+      beforeAvatarUpload (file) {
+        /* let isLt512K = file.size / 1024 < 512
         if (isLt512K) {
           this.$message.error('上传文件大小不能小于 512KB!')
           return false
@@ -493,9 +490,8 @@
           }
           return true
         }
-
       },
-      uploadrequest(option) {
+      uploadrequest (option) {
         let _this = this
         if (process.client) {
           const myDomain = window.location.host
@@ -530,7 +526,7 @@
         }
       },
       // 判断附件是否上传成功
-      attachissuccess() {
+      attachissuccess () {
         if (this.$refs.refuploadattach.uploadFiles && this.$refs.refuploadattach.uploadFiles.length > 0) {
           for (let i = 0; i < this.$refs.refuploadattach.uploadFiles.length; i++) {
             if (this.$refs.refuploadattach.uploadFiles[i].status !== 'success') {
@@ -540,7 +536,7 @@
         }
         return true
       },
-      getattachissuccess() {
+      getattachissuccess () {
         this.SubfileForm.FileUrl = ''
         this.SubfileForm.FileName = ''
         if (this.$refs.refuploadattach.uploadFiles && this.$refs.refuploadattach.uploadFiles.length > 0) {
@@ -557,37 +553,37 @@
           }
         }
       },
-      clickachment(url, uid) {
+      clickachment (url, uid) {
         window.open(`http://${url}`)
       },
-      deletefile() {
+      deletefile () {
         let _this = this
         _this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
-            confirmButtonText: '确定',
-            cancelButtonText: '取消',
-            type: 'warning'
-          })
+          confirmButtonText: '确定',
+          cancelButtonText: '取消',
+          type: 'warning'
+        })
           .then(() => {
             _this.doclist = []
           })
           .catch(() => {})
       },
 
-      seachdata() {
+      seachdata () {
         this.initData()
       },
-      fileurlcut(val, index) {
+      fileurlcut (val, index) {
         let fileurlall = val.split('$')[index]
-        let fileurl = fileurlall.split("|")
+        let fileurl = fileurlall.split('|')
         let retUrl = fileurl[0]
-        //内网服务器专用
+        // 内网服务器专用
         if (process.client && retUrl.indexOf('/upfile') === 0) {
           const myDomain = window.location.host
           retUrl = myDomain + '/' + retUrl
         }
         return retUrl
       },
-      jstimehandle(val) {
+      jstimehandle (val) {
         if (val === '') {
           return '----'
         } else if (val === '0001-01-01T00:00:00Z') {
@@ -600,10 +596,9 @@
           val = val.replace('T', ' ')
           return val.substring(0, 10)
         }
-      },
+      }
     }
   }
-
 </script>
 
 <style lang='scss'>

+ 52 - 54
src/dashoo.cn/frontend_web/src/components/oilsupplier/techlist.vue

@@ -16,7 +16,7 @@
           width="55">
         </el-table-column>
 
-        <el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column>
+        <el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column> 
         <el-table-column prop="Name" label="分类名称" show-overflow-tooltip></el-table-column>
         <el-table-column prop="Remark" label="备注" show-overflow-tooltip></el-table-column>
 
@@ -74,9 +74,9 @@
         type: Boolean,
         default: false
       },
-       candelete:{
-        type:Boolean,
-        default:false
+      candelete: {
+        type: Boolean,
+        default: false
       }
     },
     /*created() {
@@ -86,11 +86,11 @@
       ...mapGetters({
         session: 'session'
       })
-    },*/
-    data() {
+    }, */
+    data () {
       return {
-        loading:false,
-        Ids:[],
+        loading: false,
+        Ids: [],
         SupplierId: 0,
         SupplierTypeCode: '',
         SupplierCertId: 0,
@@ -112,24 +112,23 @@
         currentPage: 1, // 分页
         size: 10,
         currentItemCount: 0,
-        flagId: 0 //标记是否第一次点击
+        flagId: 0 // 标记是否第一次点击
       }
     },
     methods: {
-       handleSelectionChange(val) {
-        this.Ids=[]
-        for (var i=0;i<val.length;i++)
-        {
+      handleSelectionChange (val) {
+        this.Ids = []
+        for (var i = 0; i < val.length; i++) {
           this.Ids.push(val[i].Id)
         }
       },
-      getvalue(SupplierId, SupplierTypeCode, certId) {
+      getvalue (SupplierId, SupplierTypeCode, certId) {
         this.SupplierId = SupplierId
         this.SupplierTypeCode = SupplierTypeCode
         this.SupplierCertId = certId
         this.initData()
       },
-      initData() {
+      initData () {
         let _this = this
         const params = {
           SupplierCertId: this.SupplierCertId,
@@ -138,8 +137,8 @@
           _size: this.size
         }
         this.$axios.get('suppliercertsub/list', {
-            params
-          })
+          params
+        })
           .then(res => {
             _this.techList = res.data.items
             _this.currentItemCount = res.data.currentItemCount
@@ -149,7 +148,7 @@
             console.error(err)
           })
       },
-      getChecklist() {
+      getChecklist () {
         let val = this.$refs.orgmanagetree.getCheckedNodes()
         this.checkList = []
         for (var i = 0; i < val.length; i++) {
@@ -159,7 +158,7 @@
         }
         this.addBusiness()
       },
-      addBusiness() {
+      addBusiness () {
         let _this = this
         let params = {
           SupplierId: parseInt(_this.SupplierId),
@@ -179,7 +178,7 @@
           })
           return
         }
-        _this.loading=true
+        _this.loading = true
         _this.$axios.post('/suppliercertsub/addtechbus', params)
           .then(res => {
             if (res.data.code === 0) {
@@ -188,10 +187,10 @@
                 message: res.data.message
               })
               _this.techDialog = false
-               _this.loading = false
+              _this.loading = false
               _this.initData()
             } else {
-                 _this.loading=false
+              _this.loading = false
               _this.$message({
                 type: 'warning',
                 message: '操作失败!'
@@ -202,43 +201,43 @@
             console.error(err)
           })
       },
-      deletedata(val) {
-         if(val!=null&&val!=""){
-            this.Ids=[]
-            this.Ids.push(val.Id)
+      deletedata (val) {
+        if (val != null && val != '') {
+          this.Ids = []
+          this.Ids.push(val.Id)
         }
 
-         if(this.Ids.length==0){
-           this.$message({
-                type: 'warning',
-                message: '请先选择删除条目'
-            })
-            return
+        if (this.Ids.length == 0) {
+          this.$message({
+            type: 'warning',
+            message: '请先选择删除条目'
+          })
+          return
         }
         let _this = this
         _this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
-            confirmButtonText: '确定',
-            cancelButtonText: '取消',
-            type: 'warning'
-          })
+          confirmButtonText: '确定',
+          cancelButtonText: '取消',
+          type: 'warning'
+        })
           .then(() => {
-              const delload= this.$loading({
-          lock: true,
-          text: '正在删除请稍后...',
-        });
-            _this.$axios.delete('suppliercertsub/businessdelete/' + this.Ids.join(), {})
+            const delload = this.$loading({
+              lock: true,
+              text: '正在删除请稍后...'
+            })
+          _this.$axios.delete('suppliercertsub/businessdelete/' + this.Ids.join(), {})
               .then(function (response) {
                 if (response.data.code === 0) {
                   _this.$message({
                     type: 'success',
                     message: response.data.message
                   })
-                   delload.close()
-                  _this.Ids=[]
+                  delload.close()
+                  _this.Ids = []
                   _this.initData()
                 } else {
-                   delload.close()
-                    _this.Ids=[]
+                  delload.close()
+                  _this.Ids = []
                   _this.$message({
                     type: 'warning',
                     message: response.data.message
@@ -250,21 +249,21 @@
               })
           })
           .catch(() => {
-               _this.Ids=[]
+            _this.Ids = []
           })
       },
-      showDialog() {
+      showDialog () {
         this.getorgtreelist()
         this.techDialog = true
       },
-      getorgtreelist() {
+      getorgtreelist () {
         let _this = this
         let params = {
           keyword: _this.keyword
         }
         this.$axios.get('technologyservice/techbuslist', {
-            params
-          })
+          params
+        })
           .then(res => {
             _this.orgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'ParentId', 'Id,Code,Name,CodeName')
           })
@@ -273,18 +272,17 @@
           })
       },
 
-      handleSizeChange(value) {
+      handleSizeChange (value) {
         this.size = value
         this.currentPage = 1
         this.initData()
       },
-      handleCurrentChange(value) {
+      handleCurrentChange (value) {
         this.currentPage = value
         this.initData()
-      },
+      }
     }
   }
-
 </script>
 
 <style>

+ 39 - 40
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierstore/_opera/basisedit.vue

@@ -298,9 +298,9 @@
     },
     name: 'oilsupplierEdit',
 
-    data() {
+    data () {
       return {
-        delete_flat:true,
+        delete_flat: true,
         activeName: '0',
         chooseAuditorVisible: false,
         showReturn: 1,
@@ -446,7 +446,7 @@
       }
     },
 
-    mounted() {
+    mounted () {
       this.serviceId = this.$route.params.opera + ''
       if (this.$route.query.rtn) {
         this.showReturn = 0
@@ -477,17 +477,17 @@
       this.Jurisdiction()
     },
     methods: {
-       Jurisdiction(){
+      Jurisdiction () {
         api.getJurisdiction(this.$axios).then(res => {
-            if(!res.data.item){
-              this.delete_flat=false
-            }
+          if (!res.data.item) {
+            this.delete_flat = false
+          }
         }).catch(err => {
           console.error(err)
         })
       },
       confirm () {
-        this.$confirm('确认提交入库','提示',{
+        this.$confirm('确认提交入库', '提示', {
           confirmButtonText: '确认',
           cancelButtonText: '取消',
           type: 'warning'
@@ -508,7 +508,7 @@
           })
         })
       },
-      inputCompany(val) {
+      inputCompany (val) {
         if (!this.certId) { // 已经关联到子表了,就不能再切换主表ID了
           api.getEntityByName(val, this.$axios).then(res => {
             if (res.data && res.data.Id) {
@@ -519,12 +519,12 @@
           })
         }
       },
-      changeFormData(fdata) {
+      changeFormData (fdata) {
         if (!this.certId) { // 已经关联到子表了,就不能再切换主表ID了
           this.SetFormData(fdata)
         }
       },
-      SetFormData(fdata) {
+      SetFormData (fdata) {
         this.isCanUpdateSupplier(fdata.Id)
         this.formData.Id = fdata.Id
         this.formData.SupplierName = fdata.SupplierName
@@ -586,27 +586,27 @@
         } */
       },
 
-      isCanUpdateSupplier(supplierId) {
+      isCanUpdateSupplier (supplierId) {
         api.isCanUpdateSupplier(supplierId, this.$axios).then(res => {
           this.canUpdateSupplier = (res.data.code === 0)
         }).catch(err => {
           console.error(err)
         })
       },
-      equipmentdialog() {
+      equipmentdialog () {
         this.$refs['equipmentList'].showDialog()
       },
-      performancedialog() {
+      performancedialog () {
         this.$refs['performanceList'].showDialog()
       },
-      patentdialog() {
+      patentdialog () {
         this.$refs['patentList'].showDialog()
       },
-      winningdialog() {
+      winningdialog () {
         this.$refs['winningList'].showDialog()
       },
 
-      initDatas() {
+      initDatas () {
         this.isCanUpdateSupplier(this.formData.Id)
         if (this.formData.Id) {
           api.getEntityAndCert(this.certId, this.$axios).then(res => {
@@ -644,7 +644,7 @@
             this.backhistroy.certId = this.certId
             this.backhistroy.workflowId = this.formDataCert.WorkflowId
             if (this.certId && this.formDataCert.WorkflowId) {
-              //this.$refs['WfHistory'].getHistoryTask() /* 刷新工作流 */
+              // this.$refs['WfHistory'].getHistoryTask() /* 刷新工作流 */
             }
             this.$refs['equipmentList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
             this.$refs['performanceList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
@@ -657,7 +657,7 @@
           })
         }
       },
-      getbuslist() {
+      getbuslist () {
         this.$refs['subfileList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
       },
       nextTab () {
@@ -669,7 +669,7 @@
         }
       },
 
-      getDictOptions() {
+      getDictOptions () {
         api.getDictList(this.$axios).then(res => {
           this.dictData = res.data.items
           this.organizeOption = res.data.items['Organizes']
@@ -680,14 +680,14 @@
           console.error(err)
         })
       },
-      getorgtreelist() {
+      getorgtreelist () {
         let _this = this
         let params = {
           IsInnerOrganize: 1
         }
         _this.$axios.get('organizes/orgalllist', {
-            params
-          })
+          params
+        })
           .then(res => {
             _this.orgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
             if (_this.authUser.Profile.IsCompanyUser === 0) {
@@ -701,7 +701,7 @@
             console.error(err)
           })
       },
-      auditOrgChang(val) {
+      auditOrgChang (val) {
         let deptid = val[val.length - 1]
         console.log(deptid)
         this.auditerOption = []
@@ -721,7 +721,7 @@
        }, */
 
       // 保存信息
-      saveEntity() {
+      saveEntity () {
         this.$refs['BasisInfo'].$refs['EntityForm'].validate((valid) => {
           if (valid) {
             if (!this.formData.SetupTime) {
@@ -742,11 +742,11 @@
       },
 
       // 保存信息
-      saveCertEntity() {
+      saveCertEntity () {
         this.$refs['SupplierCertEditCompoment'].saveEntity()
       },
 
-      addEntity() {
+      addEntity () {
         this.formData.SupplierTypeCode = '02'
         this.formData.SupplierTypeName = '基建类'
         api.addEntity(this.formData, this.$axios).then(res => {
@@ -770,7 +770,7 @@
         })
       },
 
-      updateEntity() {
+      updateEntity () {
         api.updateEntity(this.formData.Id, this.formData, this.$axios).then(res => {
           if (res.data.code === 0) {
             // 保存成功后,初始化数据,变成修改
@@ -790,7 +790,7 @@
         })
       },
 
-      CheckCompanyBase() {
+      CheckCompanyBase () {
         if (!this.formData.Id) {
           this.$message({
             type: 'error',
@@ -808,7 +808,7 @@
         return true
       },
       // 企业人员结构情况
-      updateNumberEntity() {
+      updateNumberEntity () {
         if (!this.CheckCompanyBase()) {
           return false
         }
@@ -830,20 +830,20 @@
           console.error(err)
         })
       },
-      selectAuditOrg() {
+      selectAuditOrg () {
         this.dialogVisible = true
       },
-      chooseAuditorShow() {
+      chooseAuditorShow () {
         this.$refs['chooseAuditor'].getorgtreelist(this.formData.SupplierTypeCode)
         this.chooseAuditorVisible = true
       },
-      setAuditer(val, name) {
-        console.log("------",val,name)
+      setAuditer (val, name) {
+        console.log('------', val, name)
         this.auditer = val
         this.auditerName = name
         this.chooseAuditorVisible = false
       },
-      AuditEntity(val) {
+      AuditEntity (val) {
         if (this.auditer === '') {
           this.$message({
             type: 'warning',
@@ -854,7 +854,7 @@
         this.applyLoading = true
         this.auditform.FirstAuditName = this.auditer
         this.auditform.CertId = this.certId
-        console.log("--this.auditform---",this.auditform)
+        console.log('--this.auditform---', this.auditform)
         apiCert.auditEntity(this.certId, this.auditform, this.$axios).then(res => {
           if (res.data.code === 0) {
             // 保存成功后,初始化数据,变成修改
@@ -876,11 +876,11 @@
         })
       },
 
-      nexStepCB() {
+      nexStepCB () {
         this.formData.Step += 1
       },
 
-      jstimehandle(val) {
+      jstimehandle (val) {
         if (val === '') {
           return '----'
         } else if (val === '0001-01-01T08:00:00+08:00') {
@@ -893,7 +893,7 @@
         }
       },
 
-      formatDateTime(date) {
+      formatDateTime (date) {
         var y = date.getFullYear()
         var m = date.getMonth() + 1
         m = m < 10 ? ('0' + m) : m
@@ -906,7 +906,6 @@
       }
     }
   }
-
 </script>
 
 <style lang="scss">

+ 7 - 8
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierstore/_opera/goodsedit.vue

@@ -278,7 +278,7 @@
 
     data () {
       return {
-        delete_flat:true,
+        delete_flat: true,
         activeName: '0',
         chooseAuditorVisible: false,
         showReturn: 1,
@@ -455,13 +455,13 @@
       this.Jurisdiction()
     },
     methods: {
-      Jurisdiction(){
+      Jurisdiction () {
         api.getJurisdiction(this.$axios).then(res => {
-          console.log("qwewqe")
+          console.log('qwewqe')
           console.log(res.data.item)
-            if(!res.data.item){
-              this.delete_flat=false
-            }
+          if (!res.data.item) {
+            this.delete_flat = false
+          }
         }).catch(err => {
           console.error(err)
         })
@@ -489,7 +489,7 @@
       //   window.print()
       // },
       confirm () {
-        this.$confirm('确认提交入库','提示',{
+        this.$confirm('确认提交入库', '提示', {
           confirmButtonText: '确认',
           cancelButtonText: '取消',
           type: 'warning'
@@ -905,7 +905,6 @@
       }
     }
   }
-
 </script>
 
 <style lang="scss">

+ 57 - 58
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierstore/_opera/techedit.vue

@@ -11,7 +11,7 @@
           <i class="icon icon-table2"></i> 信息
         </span>
         <span style="float: right;">
-          <el-button plain icon="el-icon-right" size="mini" style="margin-right: 5px" @click="nextTab">下一步</el-button>
+          <el-button plain icon="el-icon-right"  size="mini" style="margin-right: 5px" @click="nextTab">下一步</el-button>
           <el-popover>
             <el-steps :active="formData.Step" direction="vertical" align-center finish-status="success">
               <el-step title="填信息"></el-step>
@@ -306,9 +306,9 @@
     },
     name: 'oilsupplierEdit',
 
-    data() {
+    data () {
       return {
-        delete_flat:true,
+        delete_flat: true,
         activeName: '1',
         chooseAuditorVisible: false,
         showReturn: 1,
@@ -453,7 +453,7 @@
         }
       }
     },
-    mounted() {
+    mounted () {
       this.serviceId = this.$route.params.opera + ''
       if (this.$route.query.rtn) {
         this.showReturn = 0
@@ -482,20 +482,20 @@
       } else {
         this.initDatas()
       }
-       this.Jurisdiction()
+      this.Jurisdiction()
     },
     methods: {
-       Jurisdiction(){
+      Jurisdiction () {
         api.getJurisdiction(this.$axios).then(res => {
-            if(!res.data.item){
-              this.delete_flat=false
-            }
+          if (!res.data.item) {
+            this.delete_flat = false
+          }
         }).catch(err => {
           console.error(err)
         })
       },
       confirm () {
-        this.$confirm('确认提交入库','提示',{
+        this.$confirm('确认提交入库', '提示', {
           confirmButtonText: '确认',
           cancelButtonText: '取消',
           type: 'warning'
@@ -516,7 +516,7 @@
           })
         })
       },
-      inputCompany(val) {
+      inputCompany (val) {
         if (!this.certId) {
           api.getEntityByName(val, this.$axios).then(res => {
             if (res.data && res.data.Id) {
@@ -527,12 +527,12 @@
           })
         }
       },
-      changeFormData(fdata) {
+      changeFormData (fdata) {
         if (!this.certId) {
           this.SetFormData(fdata)
         }
       },
-      SetFormData(fdata) {
+      SetFormData (fdata) {
         this.isCanUpdateSupplier(fdata.Id)
         this.formData.Id = fdata.Id
         this.formData.SupplierName = fdata.SupplierName
@@ -580,41 +580,41 @@
         this.formData.HseTraining = fdata.HseTraining
         this.formData.SpecTypeCode = fdata.SpecTypeCode
 
-        this.$refs["TechInfo"].CityAry = []
-        this.$refs["TechInfo"].CityAry.push(this.formData.Province)
-        this.$refs["TechInfo"].CityAry.push(this.formData.City)
-        this.$refs["TechInfo"].CityAry.push(this.formData.Street)
-        this.$refs["TechInfo"].LinkCityAry = []
-        this.$refs["TechInfo"].LinkCityAry.push(this.formData.LinkProvince)
-        this.$refs["TechInfo"].LinkCityAry.push(this.formData.LinkCity)
-        this.$refs["TechInfo"].LinkCityAry.push(this.formData.LinkStreet)
-        /*this.$refs["TechInfo"].UnitRelationAry = []
+        this.$refs['TechInfo'].CityAry = []
+        this.$refs['TechInfo'].CityAry.push(this.formData.Province)
+        this.$refs['TechInfo'].CityAry.push(this.formData.City)
+        this.$refs['TechInfo'].CityAry.push(this.formData.Street)
+        this.$refs['TechInfo'].LinkCityAry = []
+        this.$refs['TechInfo'].LinkCityAry.push(this.formData.LinkProvince)
+        this.$refs['TechInfo'].LinkCityAry.push(this.formData.LinkCity)
+        this.$refs['TechInfo'].LinkCityAry.push(this.formData.LinkStreet)
+        /* this.$refs["TechInfo"].UnitRelationAry = []
         if (this.formData.SpecTypeCode.length > 0) {
           this.$refs['TechInfo'].UnitRelationAry = this.formData.SpecTypeCode.split(',')
         }*/
       },
 
-      isCanUpdateSupplier(supplierId) {
+      isCanUpdateSupplier (supplierId) {
         api.isCanUpdateSupplier(supplierId, this.$axios).then(res => {
           this.canUpdateSupplier = (res.data.code === 0)
         }).catch(err => {
           console.error(err)
         })
       },
-      equipmentdialog() {
+      equipmentdialog () {
         this.$refs['equipmentList'].showDialog()
       },
-      performancedialog() {
+      performancedialog () {
         this.$refs['performanceList'].showDialog()
       },
-      patentdialog() {
+      patentdialog () {
         this.$refs['patentList'].showDialog()
       },
-      winningdialog() {
+      winningdialog () {
         this.$refs['winningList'].showDialog()
       },
 
-      initDatas() {
+      initDatas () {
         this.isCanUpdateSupplier(this.formData.Id)
         if (this.formData.Id) {
           api.getEntityAndCert(this.certId, this.$axios).then(res => {
@@ -635,15 +635,15 @@
             }
             this.formDataCert.WorkflowId = this.formData.WorkflowId
             console.log(this.formData)
-            this.$refs["TechInfo"].CityAry = []
-            this.$refs["TechInfo"].CityAry.push(this.formData.Province)
-            this.$refs["TechInfo"].CityAry.push(this.formData.City)
-            this.$refs["TechInfo"].CityAry.push(this.formData.Street)
-            this.$refs["TechInfo"].LinkCityAry = []
-            this.$refs["TechInfo"].LinkCityAry.push(this.formData.LinkProvince)
-            this.$refs["TechInfo"].LinkCityAry.push(this.formData.LinkCity)
-            this.$refs["TechInfo"].LinkCityAry.push(this.formData.LinkStreet)
-            /*this.$refs["TechInfo"].UnitRelationAry = []
+            this.$refs['TechInfo'].CityAry = []
+            this.$refs['TechInfo'].CityAry.push(this.formData.Province)
+            this.$refs['TechInfo'].CityAry.push(this.formData.City)
+            this.$refs['TechInfo'].CityAry.push(this.formData.Street)
+            this.$refs['TechInfo'].LinkCityAry = []
+            this.$refs['TechInfo'].LinkCityAry.push(this.formData.LinkProvince)
+            this.$refs['TechInfo'].LinkCityAry.push(this.formData.LinkCity)
+            this.$refs['TechInfo'].LinkCityAry.push(this.formData.LinkStreet)
+            /* this.$refs["TechInfo"].UnitRelationAry = []
 
             if (this.formData.SpecTypeCode.length > 0) {
               this.$refs['TechInfo'].UnitRelationAry = this.formData.SpecTypeCode.split(',')
@@ -653,7 +653,7 @@
             this.entrydetail.instance = this.formDataCert.WorkflowId
             this.backhistroy.certId = this.certId
             this.backhistroy.workflowId = this.formDataCert.WorkflowId
-            /*if (this.certId && this.formDataCert.WorkflowId) {
+            /* if (this.certId && this.formDataCert.WorkflowId) {
               this.$refs['WfHistory'].getHistoryTask() /!* 刷新工作流 *!/
             }*/
             this.$refs['equipmentList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
@@ -667,11 +667,11 @@
           })
         }
       },
-      getbuslist() {
+      getbuslist () {
         this.$refs['subfileList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
       },
 
-      getDictOptions() {
+      getDictOptions () {
         api.getDictList(this.$axios).then(res => {
           this.dictData = res.data.items
           this.organizeOption = res.data.items['Organizes']
@@ -682,14 +682,14 @@
           console.error(err)
         })
       },
-      getorgtreelist() {
+      getorgtreelist () {
         let _this = this
         let params = {
           IsInnerOrganize: 1
         }
         _this.$axios.get('organizes/orgalllist', {
-            params
-          })
+          params
+        })
           .then(res => {
             _this.orgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
             if (_this.authUser.Profile.IsCompanyUser === 0) {
@@ -703,7 +703,7 @@
             console.error(err)
           })
       },
-      auditOrgChang(val) {
+      auditOrgChang (val) {
         let deptid = val[val.length - 1]
         this.auditerOption = []
         this.auditer = ''
@@ -730,7 +730,7 @@
       }, */
 
       // 保存信息
-      saveEntity() {
+      saveEntity () {
         this.$refs['TechInfo'].$refs['EntityForm'].validate((valid) => {
           if (valid) {
             if (!this.formData.SetupTime) {
@@ -751,11 +751,11 @@
       },
 
       // 保存信息
-      saveCertEntity() {
+      saveCertEntity () {
         this.$refs['SupplierCertEditCompoment'].saveEntity()
       },
 
-      addEntity() {
+      addEntity () {
         this.formData.SupplierTypeCode = '03'
         this.formData.SupplierTypeName = '技术服务类'
         api.addEntity(this.formData, this.$axios).then(res => {
@@ -779,7 +779,7 @@
         })
       },
 
-      updateEntity() {
+      updateEntity () {
         api.updateEntity(this.formData.Id, this.formData, this.$axios).then(res => {
           if (res.data.code === 0) {
             // 保存成功后,初始化数据,变成修改
@@ -799,7 +799,7 @@
         })
       },
 
-      CheckCompanyBase() {
+      CheckCompanyBase () {
         if (!this.formData.Id) {
           this.$message({
             type: 'error',
@@ -817,7 +817,7 @@
         return true
       },
       // 企业人员结构情况
-      updateNumberEntity() {
+      updateNumberEntity () {
         if (!this.CheckCompanyBase()) {
           return false
         }
@@ -839,20 +839,20 @@
           console.error(err)
         })
       },
-      selectAuditOrg() {
+      selectAuditOrg () {
         this.dialogVisible = true
       },
-      chooseAuditorShow() {
+      chooseAuditorShow () {
         this.$refs['chooseAuditor'].getorgtreelist(this.formData.SupplierTypeCode)
         this.chooseAuditorVisible = true
       },
-      setAuditer(val, name) {
+      setAuditer (val, name) {
         this.auditer = val
         this.auditerName = name
         this.chooseAuditorVisible = false
       },
-      AuditEntity() {
-        //this.auditer = val
+      AuditEntity () {
+        // this.auditer = val
         if (this.auditer === '') {
           this.$message({
             type: 'warning',
@@ -884,7 +884,7 @@
         })
       },
 
-      jstimehandle(val) {
+      jstimehandle (val) {
         if (val === '') {
           return '----'
         } else if (val === '0001-01-01T08:00:00+08:00') {
@@ -897,7 +897,7 @@
         }
       },
 
-      formatDateTime(date) {
+      formatDateTime (date) {
         var y = date.getFullYear()
         var m = date.getMonth() + 1
         m = m < 10 ? ('0' + m) : m
@@ -910,7 +910,6 @@
       }
     }
   }
-
 </script>
 
 <style lang="scss">