zhangyuewww 3 years ago
parent
commit
1483cbb328

+ 5 - 6
src/views/contractManagement/futuresPurchaseContractEdit.vue

@@ -741,6 +741,11 @@ export default {
         .toPromise()
         .then((response) => {
           this.deptBudgetList = response
+          if (this.deptBudgetList.deliverType == 1) {
+            this.deptBudgetList.deliverType1 = '我方自提'
+          } else if (this.deptBudgetList.deliverType == 2) {
+            this.deptBudgetList.deliverType1 = '对方送货'
+          }
           this.selectedOptions = tmp
           var tmp = []
           tmp[0] = TextToCode[response.deliveryProvince].code
@@ -765,12 +770,6 @@ export default {
           tmp1[1] =
             TextToCode[response.contractGoodsInfo.outputPrivate][response.contractGoodsInfo.outputCity].code
           this.selectedOptions1 = tmp1
-          if (this.deptBudgetList.deliverType == 1) {
-            this.deptBudgetList.deliverType1 = '我方自提'
-          } else if (this.deptBudgetList.deliverType == 2) {
-            this.deptBudgetList.deliverType1 = '对方送货'
-          }
-
           if (this.deptBudgetList.addressUrl != null) {
             this.addressUrls = this.deptBudgetList.addressUrl.split(',')
             this.fileList = this.deptBudgetList.addressUrl.split(',')

+ 1 - 1
src/views/contractManagement/futuresPurchaseContractExamine.vue

@@ -143,7 +143,7 @@
         <ws-form-item label="交货日期(起)" span="1" prop="deliveryDateStart">
           {{ deptBudgetList.deliveryDateStart }}
         </ws-form-item>
-        <ws-form-item label="临时仓库负责人" span="1" prop="personCharge">
+        <ws-form-item label="临时仓库负责人" span="1" prop="personCharge" v-if="deptBudgetList.deliverType == 1">
           {{ deptBudgetList.personCharge }}
         </ws-form-item>
         <ws-form-item label="交货日期(止)" span="1" prop="deliveryDateEnd">

+ 1 - 1
src/views/contractManagement/purchaseContractEdit.vue

@@ -309,7 +309,7 @@
           label="临时仓库负责人"
           span="1"
           prop="packingMethod"
-          v-show="deptBudgetList.deliverType == 1"
+          v-if="deptBudgetList.deliverType == 1"
         >
           <el-select
             v-model="deptBudgetList.personCharge"

+ 1 - 1
src/views/contractManagement/purchaseContractExamine.vue

@@ -140,7 +140,7 @@
         <ws-form-item label="最终实际交易量(吨)" span="1" prop="finalTradingVolume">
           {{ deptBudgetList.finalTradingVolume }}
         </ws-form-item>
-        <ws-form-item label="临时仓库负责人" span="1" prop="personCharge">
+        <ws-form-item label="临时仓库负责人" span="1" prop="personCharge" v-if="deptBudgetList.deliverType == 1">
           {{ deptBudgetList.personCharge }}
         </ws-form-item>
       </ws-info-table>