|
@@ -43,18 +43,18 @@
|
|
|
</DkFormItem>
|
|
</DkFormItem>
|
|
|
<!--客户可用余额-->
|
|
<!--客户可用余额-->
|
|
|
<DkFormItem prop="receiptResidue">
|
|
<DkFormItem prop="receiptResidue">
|
|
|
- <InputPop ref="receiptResidue" v-model="formData.receiptResidue" :disabled="true"/>
|
|
|
|
|
|
|
+ <InputNumberPop ref="receiptResidue" v-model="formData.receiptResidue" :disabled="true"/>
|
|
|
</DkFormItem>
|
|
</DkFormItem>
|
|
|
<!--合计收款金额-->
|
|
<!--合计收款金额-->
|
|
|
<DkFormItem prop="sumAmtRec">
|
|
<DkFormItem prop="sumAmtRec">
|
|
|
- <InputPop ref="sumAmtRec" v-model="formData.sumAmtRec" :disabled="true"/>
|
|
|
|
|
|
|
+ <InputNumberPop ref="sumAmtRec" v-model="formData.sumAmtRec" :disabled="true"/>
|
|
|
</DkFormItem>
|
|
</DkFormItem>
|
|
|
</DkForm>
|
|
</DkForm>
|
|
|
</DkPanel>
|
|
</DkPanel>
|
|
|
<!--客户收款-->
|
|
<!--客户收款-->
|
|
|
<DkPanel prop="customerAccount">
|
|
<DkPanel prop="customerAccount">
|
|
|
<div id="search-cond-div-goods-info" ref="search-cond-div-goods-info" slot="content">
|
|
<div id="search-cond-div-goods-info" ref="search-cond-div-goods-info" slot="content">
|
|
|
- <EditTable ref="receiptTable" :data="receiptData" showFooter
|
|
|
|
|
|
|
+ <EditTable ref="receiptTable" :data="formData.itemList" showFooter
|
|
|
major-field="receiptId"
|
|
major-field="receiptId"
|
|
|
:height="this.tableHeight"
|
|
:height="this.tableHeight"
|
|
|
:new-row-flag="true"
|
|
:new-row-flag="true"
|
|
@@ -81,7 +81,6 @@ export default {
|
|
|
//控制客户是否可以输入
|
|
//控制客户是否可以输入
|
|
|
readonlyFlag: true,
|
|
readonlyFlag: true,
|
|
|
allCanNoEdit: false, //是否所有的都不允许编辑
|
|
allCanNoEdit: false, //是否所有的都不允许编辑
|
|
|
- receiptData: [],
|
|
|
|
|
// 画面表单数据
|
|
// 画面表单数据
|
|
|
formData: {
|
|
formData: {
|
|
|
accDate: new Date(),
|
|
accDate: new Date(),
|
|
@@ -101,6 +100,7 @@ export default {
|
|
|
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: [],
|
|
|
|
|
+ deleteItemList: [],
|
|
|
},
|
|
},
|
|
|
receiptColumns: [
|
|
receiptColumns: [
|
|
|
{
|
|
{
|
|
@@ -213,7 +213,7 @@ export default {
|
|
|
* @date : 2022/03/04 13:17
|
|
* @date : 2022/03/04 13:17
|
|
|
*/
|
|
*/
|
|
|
detail(id) {
|
|
detail(id) {
|
|
|
- return this.excuteNoParam(this.$service.cusReceiptService, this.$service.cusReceiptService.getOrderForUpdate, [id]);
|
|
|
|
|
|
|
+ return this.excuteNoParam(this.$service.cusReceiptService, this.$service.cusReceiptService.getRpForUpdate, [id]);
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
|
* @desc : 编辑页面赋值
|
|
* @desc : 编辑页面赋值
|
|
@@ -223,6 +223,8 @@ export default {
|
|
|
setValuesByEdit(data) {
|
|
setValuesByEdit(data) {
|
|
|
if (data) {
|
|
if (data) {
|
|
|
this.formData = data["data"];
|
|
this.formData = data["data"];
|
|
|
|
|
+ this.formData.itemList = data["dataItem"];
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
@@ -250,6 +252,12 @@ export default {
|
|
|
* @date : 2023/6/25 14:31
|
|
* @date : 2023/6/25 14:31
|
|
|
*/
|
|
*/
|
|
|
setParams(arg) {
|
|
setParams(arg) {
|
|
|
|
|
+ if (this.type === this.$config.formMode.edit) {
|
|
|
|
|
+ // 删除的表数据
|
|
|
|
|
+ let deleteItemTable = this.$refs['receiptTable'].getDeleteData();
|
|
|
|
|
+ this.formData.deleteItemList = deleteItemTable
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if (this.type === this.$config.formMode.receipt) {
|
|
if (this.type === this.$config.formMode.receipt) {
|
|
|
this.formData.rpType = this.$config.rpType.shouKuan
|
|
this.formData.rpType = this.$config.rpType.shouKuan
|
|
|
} else if (this.type === this.$config.formMode.refund) {
|
|
} else if (this.type === this.$config.formMode.refund) {
|
|
@@ -287,20 +295,23 @@ export default {
|
|
|
let self = this
|
|
let self = this
|
|
|
this.formData = {
|
|
this.formData = {
|
|
|
accDate: new Date(),
|
|
accDate: new Date(),
|
|
|
- rpType: null,
|
|
|
|
|
- objectId: null,//客户Id
|
|
|
|
|
- cusName: null,
|
|
|
|
|
- cusPhone: null,
|
|
|
|
|
- addressFull: null, // 详细地址
|
|
|
|
|
- staffId: null,
|
|
|
|
|
- staffName: null,
|
|
|
|
|
- staffCode: null,
|
|
|
|
|
- orgId: null,
|
|
|
|
|
- orgName: null,
|
|
|
|
|
- orgCode: null,
|
|
|
|
|
- makeStaff: self.$store.state.user.id,
|
|
|
|
|
|
|
+ rpType: null,
|
|
|
|
|
+ objectId: null,//客户Id
|
|
|
|
|
+ cusName: null,
|
|
|
|
|
+ cusPhone: null,
|
|
|
|
|
+ addressFull: null, // 详细地址
|
|
|
|
|
+ staffId: null,
|
|
|
|
|
+ staffName: null,
|
|
|
|
|
+ staffCode: null,
|
|
|
|
|
+ orgId: null,
|
|
|
|
|
+ orgName: null,
|
|
|
|
|
+ orgCode: null,
|
|
|
|
|
+ sumAmtRec: null,
|
|
|
|
|
+ receiptResidue: null,
|
|
|
|
|
+ makeStaff: self.$store.state.user.id,
|
|
|
|
|
+ cpId: self.$store.state.user.cpId,
|
|
|
|
|
+ itemList: [],
|
|
|
}
|
|
}
|
|
|
- this.receiptData = [];
|
|
|
|
|
},
|
|
},
|
|
|
}
|
|
}
|
|
|
,
|
|
,
|