gjy 3 年之前
父节点
当前提交
619f84744b

+ 14 - 3
src/views/contractManagement/purchaseContractAdd.vue

@@ -46,7 +46,7 @@
         <!--关联合同-->
         <ws-form-item prop="agreementNo" label="关联合同" span="1" v-show="deptBudgetList.agreementType =='补充协议'">
           <ws-select v-model="deptBudgetList.agreementNo" placeholder="请选择编号" @change="selectRelation">
-            <ws-option v-for="item in contractNoList" :key="item.id" :label="item.agreementNo"
+            <ws-option v-for="item in contractNoList"  :key="item.id" :label="item.contractNo"
               :value="item.contractNo"></ws-option>
           </ws-select>
         </ws-form-item>
@@ -656,6 +656,17 @@
         this.deptBudgetList.totalContractPrice = e * this.deptBudgetList.weight
       },
       returnsales() {
+        this.deptBudgetList = {
+                  deliverType: '1',
+                  agreementType: '采购合同',
+                  finalTradingVolume: 0,
+                  totalContractPrice: 0,
+                  contractGoodsInfo: {
+                    goodsName: '',
+                  },
+                  contractProcessInfo: {},
+                  addressUrl: '',
+                }
         this.$router.push({
           path: 'buyContract'
         })
@@ -718,8 +729,8 @@
           })
       },
       selectRelation(e) {
-        console.log(this.contractNoList)
-        debugger
+        // console.log(this.contractNoList)
+        // debugger
         for (var i = 0; i < this.contractNoList.length; i++) {
           if (this.contractNoList[i].contractNo == e) {
             this.deptBudgetList = this.contractNoList[i]

+ 12 - 1
src/views/contractManagement/salesContractAdd.vue

@@ -35,7 +35,7 @@
           <!--关联合同-->
           <ws-form-item prop="agreementNo" label="关联合同" span="1" v-if="deptBudgetList.agreementType == '补充协议'">
             <ws-select v-model="deptBudgetList.agreementNo" placeholder="请选择编号" @change="selectRelation">
-              <ws-option v-for="item in contractNoList" :key="item.id" :label="item.agreementNo"
+              <ws-option v-for="item in contractNoList" :key="item.id" :label="item.contractNo"
                 :value="item.contractNo"></ws-option>
             </ws-select>
           </ws-form-item>
@@ -585,6 +585,17 @@
         this.selectedOptions1 = value
       },
       returnsales() {
+        this.deptBudgetList = {
+                  deliverType: '1',
+                  agreementType: '采购合同',
+                  finalTradingVolume: 0,
+                  totalContractPrice: 0,
+                  contractGoodsInfo: {
+                    goodsName: '',
+                  },
+                  contractProcessInfo: {},
+                  addressUrl: '',
+                }
         this.$router.push({
           path: 'salesContract',
         })