Pārlūkot izejas kodu

调整支付方式配置

DESKTOP-B78GIPM\admin 2 gadi atpakaļ
vecāks
revīzija
c5160ddabf

+ 1 - 0
src/views/settings/components/modules/payInterfaceConfigForm.vue

@@ -10,6 +10,7 @@
                       v-model="model.payTypeId"
                       placeholder="请选择支付方式"
                       :allowClear="true"
+                      disabled
               >
                 <a-select-option :value="item.id" v-for="(item,index) in payTypeList" :key="index">{{ item.name }}</a-select-option>
               </a-select>

+ 6 - 1
src/views/settings/components/paySettings.vue

@@ -112,7 +112,7 @@
                 <span slot="action" slot-scope="text, record">
           <a @click="handleEdit(record)">编辑</a>
           <a-divider type="vertical" />
-          <a @click="configuration(record)">{{record.busPayInterfaceConfig? '配置':'新增'}}</a>
+          <a @click="configuration(record)">配置</a>
           <a-divider type="vertical" />
            <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
               <a>删除</a>
@@ -241,6 +241,11 @@
         methods: {
             configuration(record){
                 // this.$refs.modalFormPay.edit()
+                if (!record.busPayInterfaceConfig) {
+                    record.busPayInterfaceConfig = {
+                        payTypeId:record.id
+                    }
+                }
                 this.$refs.modalFormPay.edit(record.busPayInterfaceConfig);
                 this.$refs.modalFormPay.title = record.busPayInterfaceConfig ? '配置' : '新增';
                 this.$refs.modalFormPay.disableSubmit = false;