修改重新审核bug,选择固=时间去记账之后返回还是原本的时间和tab
This commit is contained in:
@ -276,6 +276,7 @@ export default {
|
||||
auditPhotoList:[],
|
||||
supplierPhotoList:[],
|
||||
index:'',//记录工单对账属于哪个状态
|
||||
queryTime:'',//记录工单对账选择的时间
|
||||
uploadedImage: null,
|
||||
show:false,//是否显示弹框
|
||||
imgId:'',//删除供应商图片的Id
|
||||
@ -358,6 +359,8 @@ export default {
|
||||
this.id=this.$route.params?.id;
|
||||
this.postfix=this.$route.params?.postfix;
|
||||
this.index=this.$route.params?.index;
|
||||
this.queryTime = this.$route.params?.queryTime
|
||||
// console.log(" this.queryTime", this.queryTime)
|
||||
this.$nextTick(async ()=>{
|
||||
await this.getDetail()
|
||||
})
|
||||
@ -395,7 +398,8 @@ export default {
|
||||
this.$router.push({
|
||||
name:"workOrderReconciliation",
|
||||
params:{
|
||||
activeIndex:this.index
|
||||
activeIndex:this.index,
|
||||
queryTime:this.queryTime
|
||||
}
|
||||
})
|
||||
},
|
||||
@ -566,7 +570,14 @@ export default {
|
||||
if(res.code === 200){
|
||||
this.$toast('操作成功')
|
||||
setTimeout(()=>{
|
||||
this.$router.back()
|
||||
// this.$router.back()
|
||||
this.$router.push({
|
||||
name:"workOrderReconciliation",
|
||||
params:{
|
||||
activeIndex:this.index,
|
||||
queryTime:this.queryTime
|
||||
}
|
||||
})
|
||||
},2000)
|
||||
}
|
||||
this.loading = false;
|
||||
@ -597,6 +608,7 @@ export default {
|
||||
if(this.form.financePrice >= this.form.settleAmount){//服务商确认中道价格,且等于财务金额,则直接到审核完成
|
||||
accountStatus = 4
|
||||
}
|
||||
this.form.accountStatus = accountStatus;
|
||||
const formData = new FormData();
|
||||
let obj = this.form;
|
||||
Object.keys(obj).forEach((key) => {
|
||||
@ -605,7 +617,7 @@ export default {
|
||||
this.files.forEach((file) => {
|
||||
formData.append('file', file.file);
|
||||
});
|
||||
formData.append('accountStatus', accountStatus);
|
||||
// formData.append('accountStatus', accountStatus);
|
||||
formData.append('state', 0);
|
||||
formData.append('postfix', this.postfix);
|
||||
formData.append('supplierBridgeAmount', parseInt(this.form.supplierBridgeAmountAb || 0) + parseInt(this.form.supplierBridgeAmountBc || 0) + parseInt(this.form.supplierBridgeAmountCa || 0));
|
||||
@ -613,7 +625,14 @@ export default {
|
||||
if(res.code === 200){
|
||||
this.$toast('操作成功')
|
||||
setTimeout(()=>{
|
||||
this.$router.back()
|
||||
// this.$router.back()
|
||||
this.$router.push({
|
||||
name:"workOrderReconciliation",
|
||||
params:{
|
||||
activeIndex:this.index,
|
||||
queryTime:this.queryTime
|
||||
}
|
||||
})
|
||||
},2000)
|
||||
}
|
||||
this.loading1 = false;
|
||||
|
Reference in New Issue
Block a user