lsw 11 mesiacov pred
rodič
commit
befac75994

+ 61 - 59
admin-ui/src/views/work/money/recharge/audit.vue

@@ -1,26 +1,28 @@
 <template>
   <div class="cmain">
     <div class="bos">
-      <el-form ref="platform" :model="platform" label-width="120px">
+      <el-form ref="platform" disabled :model="platform" label-width="120px">
         <el-form-item label="申请企业">
           <span class="pon" @click="info()">{{ param.companyName }}</span>
         </el-form-item>
         <el-form-item label="服务公司名称">
-          <el-input v-model="platform.serviceCompany" disabled />
+          <el-input v-model="platform.serviceCompany" />
         </el-form-item>
         <el-form-item label="开户行">
-          <el-input v-model="platform.bankName" disabled />
+          <el-input v-model="platform.bankName" />
         </el-form-item>
         <el-form-item label="充值账户">
-          <el-input v-model="platform.bankAccount" disabled />
+          <el-input v-model="platform.bankAccount" />
         </el-form-item>
       </el-form>
-      <el-form ref="form" :model="form" :rules="rules" label-width="120px">
+      <el-form ref="form" disabled :model="form" :rules="rules" label-width="120px">
         <el-form-item label="充值金额" prop="money">
-          <el-input type="number" v-model="form.money" disabled />
+          <el-input type="number" v-model="form.money">
+            <template slot="append">元</template>
+          </el-input>
         </el-form-item>
         <el-form-item label="充值凭证" prop="certificate">
-          <ImageUpload v-model="form.certificate" :isShowTip="false" :limit="1"></ImageUpload>
+          <ImageUpload v-model="form.certificate" :isShowTip="false" :limit="1" read></ImageUpload>
         </el-form-item>
         <div class="opp" v-if="form.updateTime">
           <span>操作人:{{ form.updateBy }},</span>
@@ -39,63 +41,63 @@
 </template>
 
 <script>
-import company from '@/views/work/company/edit.vue';
-export default {
-  data() {
-    return {
-      platform: {},
-      form: {},
-      rules: {}
-    };
-  },
-  props: {
-    param: {
-      type: Object,
-      default: () => {
-        return {};
+  import company from '@/views/work/company/edit.vue';
+  export default {
+    data() {
+      return {
+        platform: {},
+        form: {},
+        rules: {}
+      };
+    },
+    props: {
+      param: {
+        type: Object,
+        default: () => {
+          return {};
+        }
+      },
+      layerid: {
+        type: String
       }
     },
-    layerid: {
-      type: String
-    }
-  },
-  mounted() {
-    this.ajax({ url: '/work/platform/detail' }).then((response) => {
-      this.platform = response.data;
-    });
-    if (this.param.id) {
-      this.ajax({ url: '/work/recharge/detail/' + this.param.id }).then((response) => {
-        this.form = response.data;
+    mounted() {
+      this.ajax({ url: '/work/platform/detail' }).then((response) => {
+        this.platform = response.data;
       });
-    }
-  },
-  methods: {
-    info() {
-      this.iframe({ obj: company, param: { id: this.form.companyId, detail: true }, title: '企业信息', width: '60%', height: '75%' });
+      if (this.param.id) {
+        this.ajax({ url: '/work/recharge/detail/' + this.param.id }).then((response) => {
+          this.form = response.data;
+        });
+      }
     },
-    submitForm(state) {
-      this.$refs['form'].validate((valid) => {
-        if (valid) {
-          this.$prompt(state == 1 ? '确认充值' + this.form.money + '元到 ' + this.param.companyName + ' 账户? 该操作不可撤销!' : '确认无效充值', {
-            type: 'warning',
-            showInput: state == 1 ? false : true,
-            inputType: 'textarea',
-            inputPlaceholder: '充值失败',
-            inputValidator: (value) => {
-              if (!value && state == 2) {
-                return '请输入充值失败原因';
+    methods: {
+      info() {
+        this.iframe({ obj: company, param: { id: this.form.companyId, detail: true }, title: '企业信息', width: '60%', height: '75%' });
+      },
+      submitForm(state) {
+        this.$refs['form'].validate((valid) => {
+          if (valid) {
+            this.$prompt(state == 1 ? '确认充值' + this.form.money + '元到 ' + this.param.companyName + ' 账户? 该操作不可撤销!' : '确认无效充值', {
+              type: 'warning',
+              showInput: state == 1 ? false : true,
+              inputType: 'textarea',
+              inputPlaceholder: '充值失败',
+              inputValidator: (value) => {
+                if (!value && state == 2) {
+                  return '请输入充值失败原因';
+                }
               }
-            }
-          }).then(({ value }) => {
-            this.post({ url: '/work/recharge/edit', data: { id: this.form.id, state: state, msg: value } }).then((response) => {
-              this.$modal.msgSuccess('操作成功');
-              this.$layer.close(this.layerid);
-              this.$parent.getList();
+            }).then(({ value }) => {
+              this.post({ url: '/work/recharge/edit', data: { id: this.form.id, state: state, msg: value } }).then((response) => {
+                this.$modal.msgSuccess('操作成功');
+                this.$layer.close(this.layerid);
+                this.$parent.getList();
+              });
             });
-          });
-        }
-      });
+          }
+        });
+      }
     }
-  }
-};
+  };
 </script>

+ 56 - 54
admin-ui/src/views/work/money/recharge/edit.vue

@@ -1,25 +1,27 @@
 <template>
   <div class="cmain">
     <div class="bos">
-      <el-form ref="platform" :model="platform" label-width="120px">
+      <el-form ref="platform" disabled :model="platform" label-width="120px">
         <el-steps :active="1" align-center class="cg">
           <el-step title="充值信息"></el-step>
           <el-step title="平台确认"></el-step>
           <el-step title="余额到账"></el-step>
         </el-steps>
         <el-form-item label="服务公司名称">
-          <el-input v-model="platform.serviceCompany" disabled />
+          <el-input v-model="platform.serviceCompany" />
         </el-form-item>
         <el-form-item label="开户行">
-          <el-input v-model="platform.bankName" disabled />
+          <el-input v-model="platform.bankName" />
         </el-form-item>
         <el-form-item label="充值到账">
-          <el-input v-model="platform.bankAccount" disabled />
+          <el-input v-model="platform.bankAccount" />
         </el-form-item>
       </el-form>
       <el-form ref="form" :model="form" :rules="rules" label-width="120px">
         <el-form-item label="充值金额" prop="money">
-          <el-input type="number" v-model="form.money" placeholder="请输入充值金额" clearable />
+          <el-input type="number" v-model="form.money" placeholder="请输入充值金额" clearable>
+            <template slot="append">元</template>
+          </el-input>
         </el-form-item>
         <el-form-item label="充值凭证" prop="certificate">
           <ImageUpload v-model="form.certificate" :isShowTip="false" :limit="1"></ImageUpload>
@@ -35,58 +37,58 @@
 </template>
 
 <script>
-export default {
-  data() {
-    return {
-      platform: {},
-      form: {},
-      rules: {
-        money: [{ required: true, message: '充值金额不能为空', trigger: 'blur' }],
-        certificate: [{ required: true, message: '充值凭证不能为空', trigger: 'blur' }]
-      }
-    };
-  },
-  props: {
-    param: {
-      type: Object,
-      default: () => {
-        return {};
+  export default {
+    data() {
+      return {
+        platform: {},
+        form: {},
+        rules: {
+          money: [{ required: true, message: '充值金额不能为空', trigger: 'blur' }],
+          certificate: [{ required: true, message: '充值凭证不能为空', trigger: 'blur' }]
+        }
+      };
+    },
+    props: {
+      param: {
+        type: Object,
+        default: () => {
+          return {};
+        }
+      },
+      layerid: {
+        type: String
       }
     },
-    layerid: {
-      type: String
-    }
-  },
-  mounted() {
-    this.ajax({ url: '/work/platform/detail' }).then((response) => {
-      this.platform = response.data;
-    });
-    if (this.param.id) {
-      this.ajax({ url: '/work/recharge/detail/' + this.param.id }).then((response) => {
-        this.form = response.data;
+    mounted() {
+      this.ajax({ url: '/work/platform/detail' }).then((response) => {
+        this.platform = response.data;
       });
-    }
-  },
-  methods: {
-    submitForm() {
-      this.$refs['form'].validate((valid) => {
-        if (valid) {
-          if (this.form.id) {
-            this.ajax({ method: 'post', url: '/work/recharge/edit', data: this.form }).then((response) => {
-              this.$modal.msgSuccess('修改成功');
-              this.$layer.close(this.layerid);
-              this.$parent.getList();
-            });
-          } else {
-            this.ajax({ method: 'post', url: '/work/recharge/add', data: this.form }).then((response) => {
-              this.$modal.msgSuccess('提交成功');
-              this.$layer.close(this.layerid);
-              this.$parent.getList();
-            });
+      if (this.param.id) {
+        this.ajax({ url: '/work/recharge/detail/' + this.param.id }).then((response) => {
+          this.form = response.data;
+        });
+      }
+    },
+    methods: {
+      submitForm() {
+        this.$refs['form'].validate((valid) => {
+          if (valid) {
+            if (this.form.id) {
+              this.ajax({ method: 'post', url: '/work/recharge/edit', data: this.form }).then((response) => {
+                this.$modal.msgSuccess('修改成功');
+                this.$layer.close(this.layerid);
+                this.$parent.getList();
+              });
+            } else {
+              this.ajax({ method: 'post', url: '/work/recharge/add', data: this.form }).then((response) => {
+                this.$modal.msgSuccess('提交成功');
+                this.$layer.close(this.layerid);
+                this.$parent.getList();
+              });
+            }
           }
-        }
-      });
+        });
+      }
     }
-  }
-};
+  };
 </script>

+ 2 - 2
admin-ui/src/views/work/money/recharge/index.vue

@@ -110,11 +110,11 @@ export default {
     op(tag, row) {
       if (tag == 'detail') {
         const id = row.id || this.ids[0];
-        this.iframe({ obj: audit, param: { id: id, detail: true, companyName: row.companyName }, title: '充值详情', width: '45%', height: '65%' });
+        this.iframe({ obj: audit, param: { id: id, detail: true, companyName: row.companyName }, title: '充值详情', width: '40%', height: '70%' });
       }
       if (tag == 'edit') {
         const id = row.id || this.ids[0];
-        this.iframe({ obj: audit, param: { id: id, companyName: row.companyName }, title: '充值确认', width: '45%', height: '65%' });
+        this.iframe({ obj: audit, param: { id: id, companyName: row.companyName }, title: '充值确认', width: '40%', height: '70%' });
       }
     },
     del(row) {