gjy преди 3 години
родител
ревизия
ef01002c2e
променени са 2 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 3 1
      src/views/contractManagement/purchaseContractAdd.vue
  2. 1 1
      src/views/contractManagement/salesContractAdd.vue

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

@@ -46,7 +46,7 @@
         <!--关联合同-->
         <!--关联合同-->
         <ws-form-item prop="agreementNo" label="关联合同" span="1" v-show="deptBudgetList.agreementType =='补充协议'">
         <ws-form-item prop="agreementNo" label="关联合同" span="1" v-show="deptBudgetList.agreementType =='补充协议'">
           <ws-select v-model="deptBudgetList.agreementNo" placeholder="请选择编号" @change="selectRelation">
           <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>
               :value="item.contractNo"></ws-option>
           </ws-select>
           </ws-select>
         </ws-form-item>
         </ws-form-item>
@@ -718,6 +718,8 @@
           })
           })
       },
       },
       selectRelation(e) {
       selectRelation(e) {
+        console.log(this.contractNoList)
+        debugger
         for (var i = 0; i < this.contractNoList.length; i++) {
         for (var i = 0; i < this.contractNoList.length; i++) {
           if (this.contractNoList[i].contractNo == e) {
           if (this.contractNoList[i].contractNo == e) {
             this.deptBudgetList = this.contractNoList[i]
             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-form-item prop="agreementNo" label="关联合同" span="1" v-if="deptBudgetList.agreementType == '补充协议'">
             <ws-select v-model="deptBudgetList.agreementNo" placeholder="请选择编号" @change="selectRelation">
             <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>
                 :value="item.contractNo"></ws-option>
             </ws-select>
             </ws-select>
           </ws-form-item>
           </ws-form-item>