2
3
baichengfei vor 5 Jahren
Ursprung
Commit
ceb7059711

+ 37 - 58
src/dashoo.cn/frontend_web/src/pages/oilsupplier/infochangech/_opera/auditoperation.vue

@@ -809,18 +809,14 @@
   import api from '@/api/oilsupplier/infochange'
   import WfMultiHistory from '@/components/workflow/wfmultihistory.vue'
   import ChooseAuditor from '@/components/oilsupplier/chooseauditor'
-
-
-   // v-viewer
-  import Vue from 'vue';
+  // v-viewer
+  import Vue from 'vue'
   import Viewer from 'v-viewer'
   import 'viewerjs/dist/viewer.css'
   Vue.use(Viewer)
   Viewer.setDefaults({
     Options: { 'inline': true, 'button': true, 'navbar': true, 'title': true, 'toolbar': true, 'tooltip': true, 'movable': true, 'zoomable': true, 'rotatable': true, 'scalable': true, 'transition': true, 'fullscreen': true, 'keyboard': true, 'url': 'data-source' }
   })
-
-
   export default {
     components: {
       WfMultiHistory,
@@ -834,14 +830,13 @@
     name: 'oilinfochangeEdit',
     watch: {
       formData: {
-        handler(newValue) {
+        handler (newValue) {
           this.comparevalue(newValue)
-
         },
         deep: true
       }
     },
-    data() {
+    data () {
       return {
         firOptions: [],
         btnloading: false,
@@ -852,7 +847,7 @@
         chooseAuditorVisible: false,
         myitemsshow: false,
         auditstepcode: '',
-        scrollTop:'',
+        scrollTop: '',
         auditBtn: false,
         AccessCardNolist: [],
         AccessCardNo1: '',
@@ -884,17 +879,17 @@
         visible: false,
         Title: '编辑',
         activeName: '',
-        subfileList1: [], //资质
-        businessList1: [], //准入业务
-        subfileList2: [], //资质
-        businessList2: [], //准入业务
-        subfileList3: [], //资质
-        businessList3: [], //准入业务
+        subfileList1: [], // 资质
+        businessList1: [], // 准入业务
+        subfileList2: [], // 资质
+        businessList2: [], // 准入业务
+        subfileList3: [], // 资质
+        businessList3: [], // 准入业务
         entrydetail: {
-          process: "oil_info_change",
-          business: "",
-          instance: "",
-          Status: '',
+          process: 'oil_info_change',
+          business: '',
+          instance: '',
+          Status: ''
         },
         textplaceholder: '请填写审核意见',
         secauditerOptions: [],
@@ -907,7 +902,7 @@
           label: '三证合一'
         }, {
           value: '2',
-          label: '五证合一',
+          label: '五证合一'
         }, {
           value: '3',
           label: '常规'
@@ -918,7 +913,7 @@
           SuccessStatus: 1,
           AuditorRemark: '',
           InfoId: 0,
-          SuppId: 0,
+          SuppId: 0
         },
         disabled: false,
         canUpdateSupplier: true,
@@ -1001,7 +996,7 @@
           SafetyLicense: false,
           SpecIndustryCert: false,
           BusinessScope: false,
-          Remark: false,
+          Remark: false
         },
         infoitemsoptions: [{
           value: 'SupplierName',
@@ -1107,8 +1102,7 @@
           AuditIndex: 0,
           PACNumber: ''
         },
-        chooseAuditorVisible: false,
-        fushenauditer: '', //复审人员
+        fushenauditer: '', // 复审人员
         auditer: '',
         auditerName: '',
         supplierId: '',
@@ -1117,15 +1111,7 @@
         commitshowfen: false,
         InfoData: [],
         AddChangeShow: false,
-        UnitRelationOptions: [],
-        UnitRelationAry: [],
-        countryoptions: [],
         selectuserlist: [],
-        countryprops: {
-          value: 'adcode',
-          label: 'name',
-          children: 'districts'
-        },
         infochangeItemList: [],
         infochangeForm: {
           SelectItem: '',
@@ -1142,11 +1128,11 @@
         Infomain: {
           BusinessKey: '',
           WorkFlowId: '',
-          Status: '',
-        },
+          Status: ''
+        }
       }
     },
-    created() {
+    created () {
       this.SuppId = this.$route.query.SupId
       this.serviceId = this.$route.params.opera
       this.InfoStatus = this.$route.query.InfoStatus
@@ -1254,8 +1240,6 @@
             console.error(err)
           })
       },
-
-
       initDatas () {
         this.getMainInfo()
         let params = {
@@ -1277,11 +1261,11 @@
               this.GetItemsDatas()
             })
             .catch(err => {
-              console.error(err);
-            });
+              console.error(err)
+            })
         }
       },
-      GetItemsDatas() {
+      GetItemsDatas () {
         if (this.infoId) {
           api.getEntityThen(this.infoId, this.$axios)
             .then(res => {
@@ -1299,17 +1283,17 @@
               }
             })
             .catch(err => {
-              console.error(err);
-            });
+              console.error(err)
+            })
         }
       },
-      itemsshow() {
+      itemsshow () {
         this.myitemsshow = true
       },
-      getMainInfo() {
+      getMainInfo () {
         api.GetMainInfo(this.infoId, this.$axios)
           .then(res => {
-            this.Infomain = res.data.items;
+            this.Infomain = res.data.items
             if (this.Infomain) {
               this.entrydetail.business = this.infoId + ''
               this.entrydetail.instance = this.Infomain[0].WorkFlowId + ''
@@ -1321,6 +1305,8 @@
                 this.auditstepcode = 'SECOND_TRIAL'
               } else if (this.Infomain[0].Status === '5') {
                 this.auditstepcode = 'PROF_REGULATION'
+              } else if (this.Infomain[0].Status === '6') {
+                this.auditstepcode = 'PAYING_FEE'
               } else if (this.Infomain[0].Status === '10') {
                 this.auditstepcode = 'SUB_OFFICE_BG'
               }
@@ -1328,10 +1314,10 @@
             this.isAccess()
           })
           .catch(err => {
-            console.error(err);
-          });
+            console.error(err)
+          })
       },
-      comparevalue(newValue) {
+      comparevalue (newValue) {
         let _this = this
         _this.infochangeItemList = []
         if (!newValue || !_this.copyformdata) {
@@ -1433,7 +1419,7 @@
           }
         })
       },
-      isAccess() {
+      isAccess () {
         let params = {
           id: this.infoId,
           auditstepcode: this.auditstepcode,
@@ -1664,7 +1650,7 @@
           SupplierTypeCode: '03',
           MInfoId: this.infoId,
           _currentPage: 1,
-          _size: 1000,
+          _size: 1000
         }
         _this.$axios.get('qualchange/auditfilelist', {params})
           .then(res => {
@@ -1835,13 +1821,6 @@
           console.error(err)
         })
       },
-      getCityList (val) {
-        let resultData = JSON.parse(val)
-        let countstr = JSON.stringify(resultData.districts[0].districts)
-        countstr = countstr.replace(/\,\"districts\"\:\[\]/g, '')
-        this.countryoptions = JSON.parse(countstr)
-      },
-
       handleProjectSizeChange (value) {
         this.sizeProject = value
         this.currentPageProject = 1