gjy 3 年之前
父节点
当前提交
ef01002c2e

+ 3 - 1
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.constKey" :label="item.agreementNo"
+            <ws-option v-for="item in contractNoList" :key="item.id" :label="item.agreementNo"
               :value="item.contractNo"></ws-option>
           </ws-select>
         </ws-form-item>
@@ -718,6 +718,8 @@
           })
       },
       selectRelation(e) {
+        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]

+ 1 - 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.constKey" :label="item.agreementNo"
+              <ws-option v-for="item in contractNoList" :key="item.id" :label="item.agreementNo"
                 :value="item.contractNo"></ws-option>
             </ws-select>
           </ws-form-item>