snow 2 years ago
parent
commit
3fbdf323c2
2 changed files with 8 additions and 2 deletions
  1. 0 0
      dist/static/js/0.js
  2. 8 2
      src/views/serviceParam/terrace/addEdit.vue

File diff suppressed because it is too large
+ 0 - 0
dist/static/js/0.js


+ 8 - 2
src/views/serviceParam/terrace/addEdit.vue

@@ -95,11 +95,11 @@
                 "
                 :span="24"
               >
-                <el-form-item label="支付渠道" prop="支付渠道属性">
+                <el-form-item label="支付渠道" prop="pay_list">
                   <el-table size="mini" border :data="ruleForm.pay_list">
                     <el-table-column label="渠道名称" prop="channel_name" />
                     <el-table-column label="业务公司" prop="companyName" />
-                    <el-table-column v-if="id === '005'" label="操作" width="80px">
+                    <el-table-column v-if="id === '005' || id === '003'" label="操作" width="80px">
                       <template slot="header">
                         <span>操作</span>
                         <el-tooltip
@@ -330,10 +330,16 @@ export default {
 
           model.is_select_pay_rate = use_type === '1' && platform_type === '0' ? is_select_pay_rate : '0'
           this.loading = false
+
           if (model.use_type !== '1' || model.platform_type !== '0' || model.is_select_pay_rate !== '1') {
             delete model['pay_list']
           }
 
+          // if (model['pay_list'] && model['pay_list']['length'] === 0) {
+          //   this.$message.warning('支付渠道不能为空')
+          //   return
+          // }
+
           if (this.id !== '003' && model.pay_list) {
             const currentPaymentChannelIDSet = model.pay_list.map(({ channel_id }) => channel_id)
             // 删除的渠道

Some files were not shown because too many files changed in this diff