|
@@ -41,6 +41,10 @@
|
|
|
<DatePickerPop v-model="formData.accDate"
|
|
<DatePickerPop v-model="formData.accDate"
|
|
|
:short-cut-flag="true"/>
|
|
:short-cut-flag="true"/>
|
|
|
</DkFormItem>
|
|
</DkFormItem>
|
|
|
|
|
+ <!--客户可用余额-->
|
|
|
|
|
+ <DkFormItem prop="receiptResidue">
|
|
|
|
|
+ <InputPop ref="receiptResidue" v-model="formData.receiptResidue" :disabled="true"/>
|
|
|
|
|
+ </DkFormItem>
|
|
|
<!--合计收款金额-->
|
|
<!--合计收款金额-->
|
|
|
<DkFormItem prop="sumAmtRec">
|
|
<DkFormItem prop="sumAmtRec">
|
|
|
<InputPop ref="sumAmtRec" v-model="formData.sumAmtRec" :disabled="true"/>
|
|
<InputPop ref="sumAmtRec" v-model="formData.sumAmtRec" :disabled="true"/>
|
|
@@ -54,7 +58,7 @@
|
|
|
major-field="receiptId"
|
|
major-field="receiptId"
|
|
|
:height="this.tableHeight"
|
|
:height="this.tableHeight"
|
|
|
:new-row-flag="true"
|
|
:new-row-flag="true"
|
|
|
- :columns="this.type === this.$config.formMode.edit ? null : addReceiptColumns"
|
|
|
|
|
|
|
+ :columns="this.type === this.$config.formMode.receipt ? receiptColumns : refundColumns"
|
|
|
controlId="macId" @on-choose="getTotals" @changeValue="getTotals"/>
|
|
controlId="macId" @on-choose="getTotals" @changeValue="getTotals"/>
|
|
|
</div>
|
|
</div>
|
|
|
</DkPanel>
|
|
</DkPanel>
|
|
@@ -93,11 +97,33 @@ export default {
|
|
|
orgName: null,
|
|
orgName: null,
|
|
|
orgCode: null,
|
|
orgCode: null,
|
|
|
sumAmtRec: null,
|
|
sumAmtRec: null,
|
|
|
|
|
+ receiptResidue: null,
|
|
|
makeStaff: self.$store.state.user.id,
|
|
makeStaff: self.$store.state.user.id,
|
|
|
cpId: self.$store.state.user.cpId,
|
|
cpId: self.$store.state.user.cpId,
|
|
|
itemList: [],
|
|
itemList: [],
|
|
|
},
|
|
},
|
|
|
- addReceiptColumns: [
|
|
|
|
|
|
|
+ receiptColumns: [
|
|
|
|
|
+ {
|
|
|
|
|
+ field: 'macName',
|
|
|
|
|
+ controlId: 'macId',
|
|
|
|
|
+ type: 'tableSelect',
|
|
|
|
|
+ width: 200,
|
|
|
|
|
+ dataType: self.$config.tableSelectType.moneyAccount,
|
|
|
|
|
+ fieldUpdate: self.$updateColumns.receiptChooseMac,
|
|
|
|
|
+ searchDetailFlag: true
|
|
|
|
|
+ },
|
|
|
|
|
+ //收款金额
|
|
|
|
|
+ {
|
|
|
|
|
+ field: 'amtRec',
|
|
|
|
|
+ type: 'number',
|
|
|
|
|
+ digits: 2,
|
|
|
|
|
+ sum: true,
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ field: 'remarks', type: 'text', equal: true,
|
|
|
|
|
+ },
|
|
|
|
|
+ ],
|
|
|
|
|
+ refundColumns: [
|
|
|
{
|
|
{
|
|
|
field: 'macName',
|
|
field: 'macName',
|
|
|
controlId: 'macId',
|
|
controlId: 'macId',
|
|
@@ -118,6 +144,7 @@ export default {
|
|
|
{
|
|
{
|
|
|
field: 'amtRec',
|
|
field: 'amtRec',
|
|
|
type: 'number',
|
|
type: 'number',
|
|
|
|
|
+ negative: true,
|
|
|
digits: 2,
|
|
digits: 2,
|
|
|
sum: true,
|
|
sum: true,
|
|
|
},
|
|
},
|
|
@@ -135,6 +162,7 @@ export default {
|
|
|
* @date : 2024-02-20 15:53
|
|
* @date : 2024-02-20 15:53
|
|
|
*/
|
|
*/
|
|
|
initData() {
|
|
initData() {
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
|
* @desc : 获取客户资料并且监听每一次的客户修改
|
|
* @desc : 获取客户资料并且监听每一次的客户修改
|
|
@@ -151,6 +179,15 @@ export default {
|
|
|
this.formData.staffId = val[0].staffId
|
|
this.formData.staffId = val[0].staffId
|
|
|
this.formData.staffName = val[0].staffName
|
|
this.formData.staffName = val[0].staffName
|
|
|
this.formData.addressFull = val[0].addressFull
|
|
this.formData.addressFull = val[0].addressFull
|
|
|
|
|
+
|
|
|
|
|
+ let params = {
|
|
|
|
|
+ 'objectId': this.formData.objectId
|
|
|
|
|
+ }
|
|
|
|
|
+ this.excute(this.$service.accountService, this.$service.accountService.selectByCond, params).then(res => {
|
|
|
|
|
+ if (res.code === this.$config.SUCCESS_CODE && res.data.list.length > 0) {
|
|
|
|
|
+ this.formData.receiptResidue = res.data.list[0].receiptResidue
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|