소스 검색

增项年审修改

huahaiyan 6 년 전
부모
커밋
038ccd4ba3

+ 1 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/basicindex.vue

@@ -380,7 +380,7 @@
               _this.suplen = _this.supplierList.length
             }
             if (_this.IsCompanyUser == 1 && _this.supplierList) {
-              _this.entityForm.SupplierId = _this.supplierList[0].Id
+              _this.entityForm.SupplierId = parseInt(_this.supplierList[0].Id)
               _this.entityForm.SupplierName = _this.supplierList[0].SupplierName
             }
           })

+ 1 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/goodsindex.vue

@@ -382,7 +382,7 @@
               _this.suplen = _this.supplierList.length
             }
             if (_this.IsCompanyUser == 1 && _this.supplierList) {
-              _this.entityForm.SupplierId = _this.supplierList[0].Id
+              _this.entityForm.SupplierId = parseInt(_this.supplierList[0].Id)
               _this.entityForm.SupplierName = _this.supplierList[0].SupplierName
             }
           })

+ 4 - 0
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/index.vue

@@ -378,6 +378,10 @@
             if (_this.supplierList) {
               _this.suplen = _this.supplierList.length
             }
+            if (_this.IsCompanyUser == 1 && _this.supplierList) {
+              _this.entityForm.SupplierId = parseInt(_this.supplierList[0].Id)
+              _this.entityForm.SupplierName = _this.supplierList[0].SupplierName
+            }
           })
           .catch(err => {
             console.error(err)

+ 1 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/techindex.vue

@@ -380,7 +380,7 @@
               _this.suplen = _this.supplierList.length
             }
             if (_this.IsCompanyUser == 1 && _this.supplierList) {
-              _this.entityForm.SupplierId = _this.supplierList[0].Id
+              _this.entityForm.SupplierId = parseInt(_this.supplierList[0].Id)
               _this.entityForm.SupplierName = _this.supplierList[0].SupplierName
             }
           })

+ 3 - 2
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/goodslist.vue

@@ -297,6 +297,7 @@
       addappendcom() {
         let _this = this
         _this.appendformData.AppendType = '01'
+        console.log("------",this.appendformData)
         _this.$axios.post('/suppliercertappend/addappend/', _this.appendformData)
           .then(res => {
             if (res.data.code === 0) {
@@ -334,8 +335,8 @@
             _this.supplierList = res.data
             if (_this.supplierList) {
               _this.suplen = _this.supplierList.length
-              _this.appendformData.SupplierId = _this.supplierList[0].SupplierId
-              _this.appendformData.SupplierCertId = _this.supplierList[0].SupplierCertId
+              _this.appendformData.SupplierId = parseInt(_this.supplierList[0].SupplierId)
+              _this.appendformData.SupplierCertId = parseInt(_this.supplierList[0].SupplierCertId)
               _this.appendformData.SupplierName = _this.supplierList[0].SupplierName
             }
           })

+ 2 - 2
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/index.vue

@@ -343,8 +343,8 @@
             _this.supplierList = res.data
             if (_this.supplierList) {
               _this.suplen = _this.supplierList.length
-              _this.appendformData.SupplierId = _this.supplierList[0].SupplierId
-              _this.appendformData.SupplierCertId = _this.supplierList[0].SupplierCertId
+              _this.appendformData.SupplierId = parseInt(_this.supplierList[0].SupplierId)
+              _this.appendformData.SupplierCertId = parseInt(_this.supplierList[0].SupplierCertId)
               _this.appendformData.SupplierName = _this.supplierList[0].SupplierName
             }
           })

+ 2 - 2
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/techlist.vue

@@ -338,8 +338,8 @@
             _this.supplierList = res.data
             if (_this.supplierList) {
               _this.suplen = _this.supplierList.length
-              _this.appendformData.SupplierId = _this.supplierList[0].SupplierId
-              _this.appendformData.SupplierCertId = _this.supplierList[0].SupplierCertId
+              _this.appendformData.SupplierId = parseInt(_this.supplierList[0].SupplierId)
+              _this.appendformData.SupplierCertId = parseInt(_this.supplierList[0].SupplierCertId)
               _this.appendformData.SupplierName = _this.supplierList[0].SupplierName
             }
           })