lilei 2 年之前
父節點
當前提交
9661026f3a

+ 5 - 0
src/views/common/dealerSubareaScopeList.vue

@@ -12,6 +12,7 @@
     @search="fetchUser"
     @change="handleChange"
     allowClear
+    :disabled="disabled"
   >
     <a-spin v-if="fetching" slot="notFoundContent" size="small" />
     <a-select-option v-for="item in data" :key="item.dealerSn" :value="item.dealerSn">
@@ -31,6 +32,10 @@ export default {
     placeholder: {
       type: String,
       default: '请输入名称搜索'
+    },
+    disabled: {
+      type: Boolean,
+      default: false
     }
   },
   data () {

+ 9 - 8
src/views/financialManagement/financialCollection/fcDetailModal.vue

@@ -38,8 +38,7 @@
         <a-row v-if="form.payerType=='DEALER'" >
           <a-col :span="12">
             <a-form-model-item style="margin-bottom:5px;" label="付款方" prop="dealerSn">
-              <!-- <dealerSubareaScopeList ref="settleClientName" @change="custChange" /> -->
-              {{ form.payerName }}
+              <dealerSubareaScopeList ref="settleClientName" @change="custChange" :disabled="true" />
             </a-form-model-item>
           </a-col>
           <a-col :span="12">
@@ -77,8 +76,8 @@
         <a-row v-if="form.payerType=='DEPT'" >
           <a-col :span="12">
             <a-form-model-item style="margin-bottom:5px;" label="付款方" prop="payerName">
-              <!-- <a-input :maxLength="30" placeholder="请输入付款方名称" v-model="form.payerName"></a-input> -->
-              {{ form.payerName }}
+              <!-- <a-input :maxLength="30" placeholder="请输入付款方名称" disabled v-model="form.payerName"></a-input> -->
+              {{form.payerName}}
             </a-form-model-item>
           </a-col>
           <a-col :span="12">
@@ -404,7 +403,9 @@ export default {
     setDetail (data) {
       this.form = Object.assign(this.form, { payerTypeDictValue: data.payerTypeDictValue, payerType: data.payerType, dealerSn: data.dealerSn, payerName: data.payerName })
       this.$nextTick(() => {
-        this.accountTypeChange()
+        if(this.form.dealerSn){
+          this.$refs.settleClientName.getDetail(this.form.dealerSn)
+        }
       })
     },
     //  详情
@@ -439,9 +440,9 @@ export default {
     pageInit () {
       this.$nextTick(() => {
         this.title = '新增收款明细'
-        // if (this.$refs.settleClientName) {
-        //   this.$refs.settleClientName.resetForm()
-        // }
+        if (this.$refs.settleClientName) {
+          this.$refs.settleClientName.resetForm()
+        }
       })
       this.bankNameList = []
       this.form = {