Ver Fonte

update:同步退款

ct há 1 dia atrás
pai
commit
a4e415661e

+ 2 - 2
src/api/his/storePayment.js

@@ -25,11 +25,11 @@ export function getStorePayment(paymentId) {
     method: 'get'
   })
 }
-export function getStatus(paymentId,refundDate) {
+export function getStatus(paymentId,refundDate,orgHfSeqId) {
   return request({
     url: '/his/storePayment/getStatus/' + paymentId,
     method: 'get',
-    params: { refundDate: refundDate }
+    params: { refundDate: refundDate,orgHfSeqId: orgHfSeqId },
   })
 }
 export function refund(paymentId) {

+ 8 - 1
src/views/components/his/storePayDetails.vue

@@ -89,6 +89,12 @@
           style="width: 100%">
         </el-date-picker>
       </el-form-item>
+      <el-form-item label="退款全局流水号退款请求流水号" prop="orgHfSeqId">
+        <el-input
+          v-model="syncForm.orgHfSeqId"
+          style="width: 100%">
+        </el-input>
+      </el-form-item>
     </el-form>
 
     <div slot="footer" class="dialog-footer">
@@ -114,6 +120,7 @@ import { refund,listStorePayment,getStatus, getStorePayment, delStorePayment, ad
         syncLoading: false,
         syncForm: {
           refundDate: '',
+          orgHfSeqId: '',
         },
         syncRules: {
           refundDate: [
@@ -168,7 +175,7 @@ import { refund,listStorePayment,getStatus, getStorePayment, delStorePayment, ad
             this.$refs.syncForm.validate(valid => {
               if (valid) {
                 this.syncLoading = true;
-                getStatus(this.item.paymentId, this.syncForm.refundDate)
+                getStatus(this.item.paymentId, this.syncForm.refundDate,this.syncForm.orgHfSeqId)
                   .then(() => {
                     this.$message.success('同步成功');
                     this.syncDialogVisible = false;