|
|
@@ -38,6 +38,7 @@ Page({
|
|
|
contentSaveList: [{ code: 'need', title: mixins.$t("cusReturnCollectionAmt"), type: 'str' }, { code: 'amount', content: 0, type: 'number' }],
|
|
|
routeObjName: 'cusReceiptPayment',
|
|
|
accountService: app.globalData['accountService'],
|
|
|
+ customerService: app.globalData['customerService'],
|
|
|
},
|
|
|
/**
|
|
|
* @desc : 计算需收款
|
|
|
@@ -189,7 +190,26 @@ Page({
|
|
|
});
|
|
|
},
|
|
|
|
|
|
-
|
|
|
+ /**
|
|
|
+ * @desc : //销售出库跳转客户退款-查询客户
|
|
|
+ * @date : 2024/2/1 15:49
|
|
|
+ * @author : 于继渤
|
|
|
+ */
|
|
|
+ getCustomerId(id) {
|
|
|
+ return this.excute(this.data.customerService, this.data.customerService.selectCustomerById + '/' + id, {}).then(res => {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ console.log('res-getCustomerId', res)
|
|
|
+ let data = res.data.data
|
|
|
+ let formData = JSON.parse(this.data.formData)
|
|
|
+ formData.objInfo.receiptResidue = data.receiptResidue,
|
|
|
+ formData.objInfo.receivableResidue = data.receivableResidue,
|
|
|
+ formData.objInfo.cusDebt = (data.receivableResidue ? data.receivableResidue : 0) - (data.receiptResidue ? data.receiptResidue : 0)
|
|
|
+ this.setData({
|
|
|
+ formData: JSON.stringify(formData)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
|
|
|
|
|
|
/**
|
|
|
@@ -251,6 +271,7 @@ Page({
|
|
|
this.setData({
|
|
|
formData: JSON.stringify(formData)
|
|
|
})
|
|
|
+ this.getCustomerId(formData.cusId)
|
|
|
}
|
|
|
|
|
|
},
|