|
@@ -536,16 +536,6 @@
|
|
editCustomer(){
|
|
editCustomer(){
|
|
this.$refs.form.validate((valid) => {
|
|
this.$refs.form.validate((valid) => {
|
|
if (!valid) return
|
|
if (!valid) return
|
|
- // // 对账单位
|
|
|
|
- // if (!this.form.corpId) {
|
|
|
|
- // this.$message.warning('请选择结算单位');
|
|
|
|
- // return
|
|
|
|
- // }
|
|
|
|
- // 业务类型
|
|
|
|
- // if (!this.form.businessTypes) {
|
|
|
|
- // this.$message.warning('请选择业务类型');
|
|
|
|
- // return
|
|
|
|
- // }
|
|
|
|
if (!this.form.id) {
|
|
if (!this.form.id) {
|
|
// 是否选择从表数据
|
|
// 是否选择从表数据
|
|
if (this.handleSelectionData.length == 0) {
|
|
if (this.handleSelectionData.length == 0) {
|
|
@@ -558,10 +548,6 @@
|
|
this.$message.warning('请选择本次结算币种');
|
|
this.$message.warning('请选择本次结算币种');
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- // if (!item.currentStlAmount) {
|
|
|
|
- // this.$message.warning('请选择本次结算金额');
|
|
|
|
- // return;
|
|
|
|
- // }
|
|
|
|
}
|
|
}
|
|
this.saveLoading = true // 打开按钮动画
|
|
this.saveLoading = true // 打开按钮动画
|
|
if(this.form.estimatedTime) {
|
|
if(this.form.estimatedTime) {
|
|
@@ -571,7 +557,6 @@
|
|
this.form.billNoFormat = 'FFSQ'
|
|
this.form.billNoFormat = 'FFSQ'
|
|
this.form.businessTypeCode = 'FFSQ'
|
|
this.form.businessTypeCode = 'FFSQ'
|
|
this.form.businessType = 'FFSQ' // 结算单
|
|
this.form.businessType = 'FFSQ' // 结算单
|
|
- this.form.dc = 'C' // 付
|
|
|
|
this.form.businessTypes = this.form.businessTypes?this.form.businessTypes.join(','):'' // 业务类型
|
|
this.form.businessTypes = this.form.businessTypes?this.form.businessTypes.join(','):'' // 业务类型
|
|
this.form.finStlBillsItemsList = this.handleSelectionData.map((item,index)=>{
|
|
this.form.finStlBillsItemsList = this.handleSelectionData.map((item,index)=>{
|
|
if (item.currentStlCurCode == 'CNY') {
|
|
if (item.currentStlCurCode == 'CNY') {
|
|
@@ -579,9 +564,11 @@
|
|
}else {
|
|
}else {
|
|
item.currentStlAmount = item.currentStlAmountUSD
|
|
item.currentStlAmount = item.currentStlAmountUSD
|
|
}
|
|
}
|
|
- delete item.businessType
|
|
|
|
- delete item.billDate
|
|
|
|
- delete item.accountDc
|
|
|
|
|
|
+ if (!this.form.id) {
|
|
|
|
+ delete item.businessType
|
|
|
|
+ delete item.billDate
|
|
|
|
+ delete item.accountDc
|
|
|
|
+ }
|
|
return item
|
|
return item
|
|
})
|
|
})
|
|
finstlbillsSubmit(this.form).then(res=>{
|
|
finstlbillsSubmit(this.form).then(res=>{
|