huangfuli пре 3 година
родитељ
комит
c80351d7dd

+ 0 - 1
src/views/contractManagement/futuresPurchaseContract.vue

@@ -159,7 +159,6 @@
             @click="editClick(scope.row)"
             @click="editClick(scope.row)"
             alt=""
             alt=""
           />
           />
-          <!-- <i class="el-icon-edit" @click="editClick(scope.row)"></i> -->
         </template>
         </template>
       </el-table-column>
       </el-table-column>
       <el-table-column prop="signingDate" label="签订日期"> </el-table-column>
       <el-table-column prop="signingDate" label="签订日期"> </el-table-column>

+ 15 - 1
src/views/contractManagement/futuresPurchaseContractAdd.vue

@@ -1127,13 +1127,20 @@ export default {
         })
         })
         return
         return
       }
       }
-      if (this.selectedOptions1.length == 0) {
+      if (this.selectedOptions.length == 0) {
         this.$message({
         this.$message({
           message: '请选择交货所在地区!',
           message: '请选择交货所在地区!',
           type: 'warning',
           type: 'warning',
         })
         })
         return
         return
       }
       }
+      if (this.selectedOptions1.length == 0) {
+        this.$message({
+          message: '请选择产地!',
+          type: 'warning',
+        })
+        return
+      }
       
       
       if (!this.deptBudgetList.deliveryDateStart) {
       if (!this.deptBudgetList.deliveryDateStart) {
         this.$message({
         this.$message({
@@ -1188,6 +1195,13 @@ export default {
         })
         })
         return
         return
       }
       }
+      if (!this.deptBudgetList.contractGoodsInfo.transgene) {
+        this.$message({
+          message: '请选择转基因',
+          type: 'warning',
+        })
+        return
+      }
       if (
       if (
         !this.deptBudgetList.contractGoodsInfo.impurity ||
         !this.deptBudgetList.contractGoodsInfo.impurity ||
         (String(this.deptBudgetList.contractGoodsInfo.impurity).indexOf('.') !=
         (String(this.deptBudgetList.contractGoodsInfo.impurity).indexOf('.') !=

+ 15 - 1
src/views/contractManagement/futuresPurchaseContractEdit.vue

@@ -1251,13 +1251,20 @@ export default {
         })
         })
         return
         return
       }
       }
-      if (this.selectedOptions1.length == 0) {
+      if (this.selectedOptions.length == 0) {
         this.$message({
         this.$message({
           message: '请选择交货所在地区!',
           message: '请选择交货所在地区!',
           type: 'warning',
           type: 'warning',
         })
         })
         return
         return
       }
       }
+      if (this.selectedOptions1.length == 0) {
+        this.$message({
+          message: '请选择产地!',
+          type: 'warning',
+        })
+        return
+      }
 
 
       if (!this.deptBudgetList.deliveryDateStart) {
       if (!this.deptBudgetList.deliveryDateStart) {
         this.$message({
         this.$message({
@@ -1312,6 +1319,13 @@ export default {
         })
         })
         return
         return
       }
       }
+      if (!this.deptBudgetList.contractGoodsInfo.transgene) {
+        this.$message({
+          message: '请选择转基因',
+          type: 'warning',
+        })
+        return
+      }
       if (
       if (
         !this.deptBudgetList.contractGoodsInfo.impurity ||
         !this.deptBudgetList.contractGoodsInfo.impurity ||
         (String(this.deptBudgetList.contractGoodsInfo.impurity).indexOf('.') !=
         (String(this.deptBudgetList.contractGoodsInfo.impurity).indexOf('.') !=

+ 18 - 18
src/views/contractManagement/futuresSalesContractAdd.vue

@@ -1074,21 +1074,6 @@ export default {
         })
         })
         return
         return
       }
       }
-      if (
-        isNaN(this.deptBudgetList.warehousingFee) ||
-        (String(this.deptBudgetList.warehousingFee).indexOf('.') != -1 &&
-          String(this.deptBudgetList.warehousingFee).length -
-            (String(this.deptBudgetList.warehousingFee).indexOf('.') + 1) >
-            3) ||
-        this.deptBudgetList.warehousingFee < 0 ||
-        this.deptBudgetList.warehousingFee > 1000
-      ) {
-        this.$message({
-          message: '入库费输入错误!',
-          type: 'warning',
-        })
-        return
-      }
       if (!this.deptBudgetList.measurementStandard) {
       if (!this.deptBudgetList.measurementStandard) {
         this.$message({
         this.$message({
           message: '请输入计量标准!',
           message: '请输入计量标准!',
@@ -1120,13 +1105,20 @@ export default {
         })
         })
         return
         return
       }
       }
-      if (this.selectedOptions1.length == 0) {
+      if (this.selectedOptions.length == 0) {
         this.$message({
         this.$message({
           message: '请选择交货所在地区!',
           message: '请选择交货所在地区!',
           type: 'warning',
           type: 'warning',
         })
         })
         return
         return
       }
       }
+      if (this.selectedOptions1.length == 0) {
+        this.$message({
+          message: '请选择产地!',
+          type: 'warning',
+        })
+        return
+      }
       
       
       if (!this.deptBudgetList.deliveryDateStart) {
       if (!this.deptBudgetList.deliveryDateStart) {
         this.$message({
         this.$message({
@@ -1181,6 +1173,13 @@ export default {
         })
         })
         return
         return
       }
       }
+      if (!this.deptBudgetList.contractGoodsInfo.transgene) {
+        this.$message({
+          message: '请选择转基因',
+          type: 'warning',
+        })
+        return
+      }
       if (
       if (
         !this.deptBudgetList.contractGoodsInfo.impurity ||
         !this.deptBudgetList.contractGoodsInfo.impurity ||
         (String(this.deptBudgetList.contractGoodsInfo.impurity).indexOf('.') !=
         (String(this.deptBudgetList.contractGoodsInfo.impurity).indexOf('.') !=
@@ -1299,7 +1298,8 @@ export default {
             ).indexOf('.') +
             ).indexOf('.') +
               1) >
               1) >
             2)
             2)
-      ) {
+      ) 
+      {
         this.$message({
         this.$message({
           message: '合同收入金额输入错误',
           message: '合同收入金额输入错误',
           type: 'warning',
           type: 'warning',
@@ -1374,7 +1374,7 @@ export default {
           this.deptBudgetList.deliveryCity = CodeToText[this.selectedOptions[1]]
           this.deptBudgetList.deliveryCity = CodeToText[this.selectedOptions[1]]
         
         
           this.deptBudgetList.compId = this.compId
           this.deptBudgetList.compId = this.compId
-          this.deptBudgetList.contractType = 2
+          this.deptBudgetList.contractType = 1
           this.deptBudgetList.goodsType = 2
           this.deptBudgetList.goodsType = 2
            if(this.deptBudgetList.deliveryProvince =="澳门特别行政区" || this.deptBudgetList.deliveryProvince == "澳门特别行政区"){
            if(this.deptBudgetList.deliveryProvince =="澳门特别行政区" || this.deptBudgetList.deliveryProvince == "澳门特别行政区"){
             this.deptBudgetList.deliveryArea = "特别行政区"
             this.deptBudgetList.deliveryArea = "特别行政区"

+ 23 - 25
src/views/contractManagement/futuresSalesContractEdit.vue

@@ -743,6 +743,10 @@ export default {
           tmp[0] = TextToCode[response.deliveryProvince].code
           tmp[0] = TextToCode[response.deliveryProvince].code
           tmp[1] =
           tmp[1] =
             TextToCode[response.deliveryProvince][response.deliveryCity].code
             TextToCode[response.deliveryProvince][response.deliveryCity].code
+          tmp[2] =
+            TextToCode[response.deliveryProvince][response.deliveryCity][
+              response.deliveryArea
+            ].code
 
 
           if (tmp[0] == 810000 || tmp[0] == 820000) {
           if (tmp[0] == 810000 || tmp[0] == 820000) {
             tmp[2] = null
             tmp[2] = null
@@ -752,11 +756,12 @@ export default {
                 response.deliveryArea
                 response.deliveryArea
               ].code
               ].code
           }
           }
-          this.selectedOptions1 = tmp1
+          this.selectedOptions = tmp
           var tmp1 = []
           var tmp1 = []
           tmp1[0] = TextToCode[response.contractGoodsInfo.outputPrivate].code
           tmp1[0] = TextToCode[response.contractGoodsInfo.outputPrivate].code
           tmp1[1] =
           tmp1[1] =
             TextToCode[response.contractGoodsInfo.outputPrivate][response.contractGoodsInfo.outputCity].code
             TextToCode[response.contractGoodsInfo.outputPrivate][response.contractGoodsInfo.outputCity].code
+          this.selectedOptions1 = tmp1
           if (this.deptBudgetList.deliverType == 1) {
           if (this.deptBudgetList.deliverType == 1) {
             this.deptBudgetList.deliverType1 = '我方自提'
             this.deptBudgetList.deliverType1 = '我方自提'
           } else if (this.deptBudgetList.deliverType == 2) {
           } else if (this.deptBudgetList.deliverType == 2) {
@@ -1187,28 +1192,6 @@ export default {
         })
         })
         return
         return
       }
       }
-      if (!this.deptBudgetList.warehousingFee) {
-        this.$message({
-          message: '请输入入库费!',
-          type: 'warning',
-        })
-        return
-      }
-      if (
-        isNaN(this.deptBudgetList.warehousingFee) ||
-        (String(this.deptBudgetList.warehousingFee).indexOf('.') != -1 &&
-          String(this.deptBudgetList.warehousingFee).length -
-            (String(this.deptBudgetList.warehousingFee).indexOf('.') + 1) >
-            3) ||
-        this.deptBudgetList.warehousingFee < 0 ||
-        this.deptBudgetList.warehousingFee > 1000
-      ) {
-        this.$message({
-          message: '入库费输入错误!',
-          type: 'warning',
-        })
-        return
-      }
       if (!this.deptBudgetList.measurementStandard) {
       if (!this.deptBudgetList.measurementStandard) {
         this.$message({
         this.$message({
           message: '请输入计量标准!',
           message: '请输入计量标准!',
@@ -1240,13 +1223,20 @@ export default {
         })
         })
         return
         return
       }
       }
-      if (this.selectedOptions1.length == 0) {
+      if (this.selectedOptions.length == 0) {
         this.$message({
         this.$message({
           message: '请选择交货所在地区!',
           message: '请选择交货所在地区!',
           type: 'warning',
           type: 'warning',
         })
         })
         return
         return
       }
       }
+      if (this.selectedOptions1.length == 0) {
+        this.$message({
+          message: '请选择产地!',
+          type: 'warning',
+        })
+        return
+      }
       
       
       if (!this.deptBudgetList.deliveryDateStart) {
       if (!this.deptBudgetList.deliveryDateStart) {
         this.$message({
         this.$message({
@@ -1301,6 +1291,13 @@ export default {
         })
         })
         return
         return
       }
       }
+      if (!this.deptBudgetList.contractGoodsInfo.transgene) {
+        this.$message({
+          message: '请选择转基因',
+          type: 'warning',
+        })
+        return
+      }
       if (
       if (
         !this.deptBudgetList.contractGoodsInfo.impurity ||
         !this.deptBudgetList.contractGoodsInfo.impurity ||
         (String(this.deptBudgetList.contractGoodsInfo.impurity).indexOf('.') !=
         (String(this.deptBudgetList.contractGoodsInfo.impurity).indexOf('.') !=
@@ -1492,7 +1489,8 @@ export default {
           this.deptBudgetList.deliveryCity = CodeToText[this.selectedOptions[1]]
           this.deptBudgetList.deliveryCity = CodeToText[this.selectedOptions[1]]
         
         
           this.deptBudgetList.compId = this.compId
           this.deptBudgetList.compId = this.compId
-          this.deptBudgetList.contractType = 2
+          this.deptBudgetList.contractType = 1
+          this.deptBudgetList.goodsType = 2
            if(this.deptBudgetList.deliveryProvince =="澳门特别行政区" || this.deptBudgetList.deliveryProvince == "澳门特别行政区"){
            if(this.deptBudgetList.deliveryProvince =="澳门特别行政区" || this.deptBudgetList.deliveryProvince == "澳门特别行政区"){
             this.deptBudgetList.deliveryArea = "特别行政区"
             this.deptBudgetList.deliveryArea = "特别行政区"
           }else{ 
           }else{