|
|
|
@ -356,7 +356,7 @@ export default { |
|
|
|
filter: true, |
|
|
|
filter: true, |
|
|
|
span: 24, |
|
|
|
span: 24, |
|
|
|
search: true, |
|
|
|
search: true, |
|
|
|
width: 120, |
|
|
|
width: 180, |
|
|
|
searchOrder:6, |
|
|
|
searchOrder:6, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
@ -598,6 +598,7 @@ export default { |
|
|
|
cancelButtonText: '取消', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning', |
|
|
|
type: 'warning', |
|
|
|
}).then(() => { |
|
|
|
}).then(() => { |
|
|
|
|
|
|
|
this.loading = true; |
|
|
|
// 调用结算接口 |
|
|
|
// 调用结算接口 |
|
|
|
const params = { |
|
|
|
const params = { |
|
|
|
...this.query, |
|
|
|
...this.query, |
|
|
|
@ -610,11 +611,13 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
calculate(params).then(res => { |
|
|
|
calculate(params).then(res => { |
|
|
|
if(res.data.code == 200){ |
|
|
|
if(res.data.code == 200){ |
|
|
|
this.$message.success('结算成功'); |
|
|
|
this.$message.success('操作完成'); |
|
|
|
this.onLoad(); |
|
|
|
this.onLoad(); |
|
|
|
|
|
|
|
this.loading = false; |
|
|
|
} |
|
|
|
} |
|
|
|
}).catch(() => { |
|
|
|
}).catch(() => { |
|
|
|
// this.$message.error('结算失败'); |
|
|
|
// this.$message.error('结算失败'); |
|
|
|
|
|
|
|
this.loading = false; |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// oemSettleAccountsItem(params).then(res => { |
|
|
|
// oemSettleAccountsItem(params).then(res => { |
|
|
|
@ -684,7 +687,7 @@ export default { |
|
|
|
preSettlement(params).then(res =>{ |
|
|
|
preSettlement(params).then(res =>{ |
|
|
|
console.log('res----------',res) |
|
|
|
console.log('res----------',res) |
|
|
|
if(res.data){ |
|
|
|
if(res.data){ |
|
|
|
this.$message.success('预结算成功') |
|
|
|
this.$message.success('操作完成') |
|
|
|
this.openSettle = false |
|
|
|
this.openSettle = false |
|
|
|
NProgress.start(); |
|
|
|
NProgress.start(); |
|
|
|
downloadXls(res.data, `预结算数据表${this.$dayjs().format('YYYY-MM-DD')}.xlsx`); |
|
|
|
downloadXls(res.data, `预结算数据表${this.$dayjs().format('YYYY-MM-DD')}.xlsx`); |
|
|
|
@ -710,6 +713,7 @@ export default { |
|
|
|
summitSupplement(){ |
|
|
|
summitSupplement(){ |
|
|
|
this.$refs.supplementForm.validate(valid =>{ |
|
|
|
this.$refs.supplementForm.validate(valid =>{ |
|
|
|
if(valid){ |
|
|
|
if(valid){ |
|
|
|
|
|
|
|
this.loading = true |
|
|
|
let params = { |
|
|
|
let params = { |
|
|
|
...this.supplementForm, |
|
|
|
...this.supplementForm, |
|
|
|
postPlatingStorageTimeStart:this.supplementForm && this.supplementForm.putStoreTime && this.supplementForm.putStoreTime[0], |
|
|
|
postPlatingStorageTimeStart:this.supplementForm && this.supplementForm.putStoreTime && this.supplementForm.putStoreTime[0], |
|
|
|
@ -719,10 +723,13 @@ export default { |
|
|
|
console.log('params----------',params) |
|
|
|
console.log('params----------',params) |
|
|
|
supplement(params).then(res =>{ |
|
|
|
supplement(params).then(res =>{ |
|
|
|
if(res.data.code == 200){ |
|
|
|
if(res.data.code == 200){ |
|
|
|
this.$message.success('补充结算成功'); |
|
|
|
this.$message.success('操作完成'); |
|
|
|
this.openSupplement = false |
|
|
|
this.openSupplement = false |
|
|
|
this.onLoad() |
|
|
|
this.onLoad() |
|
|
|
|
|
|
|
this.loading = false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}).catch(() =>{ |
|
|
|
|
|
|
|
this.loading = false |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
@ -741,6 +748,7 @@ export default { |
|
|
|
cancelButtonText: '取消', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning', |
|
|
|
type: 'warning', |
|
|
|
}).then(() => { |
|
|
|
}).then(() => { |
|
|
|
|
|
|
|
this.loading = true; |
|
|
|
let params = { |
|
|
|
let params = { |
|
|
|
...this.query, |
|
|
|
...this.query, |
|
|
|
postPlatingStorageTimeStart:this.query && this.query.putStoreTime && this.query.putStoreTime[0], |
|
|
|
postPlatingStorageTimeStart:this.query && this.query.putStoreTime && this.query.putStoreTime[0], |
|
|
|
@ -749,10 +757,12 @@ export default { |
|
|
|
if(params.putStoreTime) delete params.putStoreTime; |
|
|
|
if(params.putStoreTime) delete params.putStoreTime; |
|
|
|
console.log('params----------',params) |
|
|
|
console.log('params----------',params) |
|
|
|
noSettlementItem(params).then(() => { |
|
|
|
noSettlementItem(params).then(() => { |
|
|
|
this.$message.success('无需结算成功'); |
|
|
|
this.$message.success('操作完成'); |
|
|
|
this.onLoad(); |
|
|
|
this.onLoad(); |
|
|
|
|
|
|
|
this.loading = false; |
|
|
|
}).catch(() => { |
|
|
|
}).catch(() => { |
|
|
|
// this.$message.error('无需结算失败'); |
|
|
|
// this.$message.error('无需结算失败'); |
|
|
|
|
|
|
|
this.loading = false; |
|
|
|
}); |
|
|
|
}); |
|
|
|
}).catch(() => { |
|
|
|
}).catch(() => { |
|
|
|
// 用户点击取消 |
|
|
|
// 用户点击取消 |
|
|
|
|