Browse Source

付款管理-复核功能开发

ZhangWenQiang 5 năm trước cách đây
mục cha
commit
9353a18d50

+ 1 - 1
src/views/hwpayment/HwPaymentList.vue

@@ -160,7 +160,7 @@
             width: 200,
             dataIndex: 'netPayment',
             customRender: (value) => {
-              return value ? value:value===0 ? value:'--'
+              return value ? value:'--'
             }
           },
           {

+ 9 - 11
src/views/hwpayment/modules/HwPaymentReviewModal.vue

@@ -17,7 +17,7 @@
               账户余额: ¥{{balance}}
             </div>
             <div>
-              本次支付: ¥{{model.totalPayment}}
+              本次支付: ¥{{model.payment}}
             </div>
           </div>
         </a-form-item>
@@ -28,7 +28,7 @@
 
         <a-form-item v-if="is_show" label="拒绝原因" :labelCol="labelCol" :wrapperCol="wrapperCol">
           <a-textarea
-            v-decorator="[ 'refuseReason', validatorRules.refuseReason]"
+            v-decorator="[ 'remark', validatorRules.remark]"
             placeholder="请输入拒绝原因"
             rows="4"
           />
@@ -81,11 +81,11 @@
         confirmLoading: false,
         validatorRules: {
           status: { rules: [{ required: true, message: '请选择复核结果!' }] },
-          refuseReason: { rules: [{ required: true, message: '请输入拒绝原因!' }] },
+          remark: { rules: [{ required: true, message: '请输入拒绝原因!' }] },
         },
         url: {
-          payment: '/hlgpayment/hlgPayment/payment',
-          nextPayment: '/hlgpayment/hlgPayment/nextPayment'
+          payment: '/hwpayment/hwPaymentDetail/payment',
+          nextPayment: '/hwpayment/hwPaymentDetail/nextPayment'
         }
 
       }
@@ -100,7 +100,7 @@
         this.form.resetFields()
         this.model = Object.assign({}, record)
         this.is_show = false;
-        this.balance = record.isThroughPlatform ? record.hlgCpAccount.balance : record.hlgAccount.balance
+        this.balance = record.accountBalance
         this.visible = true
         console.log(this.model)
       },
@@ -111,11 +111,11 @@
       handleOk() {
         const that = this
         //余额是否足够
-        const isEnough = this.balance >= this.model.totalPayment
+        const isEnough = this.balance >= this.model.payment
         // 触发表单验证
         this.form.validateFields((err, values) => {
           if (!err) {
-            if (isEnough || values.status == 2) {
+            if (isEnough || values.status == 0) {
               //开始复核
               that.confirmLoading = true;
               let httpurl = this.url.payment;
@@ -157,7 +157,6 @@
                       onOk: () => {
                         this.$refs.RechargeModel.edit(this.model)
                         this.$refs.RechargeModel.title = '我要充值'
-                        this.$refs.RechargeModel.subcontractorName = this.model.subcontractorName
                         this.$refs.RechargeModel.disableSubmit = false
                       }
                     })
@@ -176,7 +175,6 @@
                 onOk: () => {
                   this.$refs.RechargeModel.edit(this.model)
                   this.$refs.RechargeModel.title = '我要充值'
-                  this.$refs.RechargeModel.subcontractorName = this.model.subcontractorName
                   this.$refs.RechargeModel.disableSubmit = false
                 }
               })
@@ -193,7 +191,7 @@
         console.log(value)
       },
       checkStatus(value){
-        this.is_show = value === '2'
+        this.is_show = value === '0'
       },
       //继续付款
       handleReviewAgain() {