ios页面更改
This commit is contained in:
@ -226,7 +226,7 @@ import {myMixins} from '@/utils/myMixins'
|
||||
import {leftCopy} from '@/utils/common'
|
||||
import {
|
||||
getAccountRecordDetail, accountRecordCompute,
|
||||
updateAccountRecordInfo, insertRecordPicture,
|
||||
updateAccountRecordInfo,
|
||||
selectRecordPictureList,deleteImage
|
||||
} from "@/api/mine"
|
||||
import TwoCommonBtn from "@/components/twoBtnCommon.vue"
|
||||
@ -336,6 +336,7 @@ export default {
|
||||
exceptionApprovalStatus:'',
|
||||
exceptionApprovalRemark:'',
|
||||
auditSuccessRemark:'',
|
||||
accountStatus: ''
|
||||
},
|
||||
}
|
||||
},
|
||||
@ -465,12 +466,10 @@ export default {
|
||||
await this.pictureList()
|
||||
if(this.accountStatus == 1 || this.accountStatus == 0){//没有记录,等待审核
|
||||
leftCopy(this.form, {...res.data})
|
||||
// console.log("form",this.form)
|
||||
}
|
||||
if(this.accountStatus == 2 || this.accountStatus == 3){//审核失败,再次审核
|
||||
leftCopy(this.form, {...res.data})
|
||||
this.auditFormShow = true;//是否显示审核数据
|
||||
// this.confirmAuditState = true //确定审核状态
|
||||
}
|
||||
if(this.settleType == '实拖' && this.basePriceDisabled){
|
||||
this.bcState = true
|
||||
@ -493,7 +492,6 @@ export default {
|
||||
this.bcState = true
|
||||
this.caState = true
|
||||
}
|
||||
// console.log(this.orderInfo.refBridgeAmountAB,this.orderInfo.refBridgeAmountBC,this.orderInfo.refBridgeAmountCA,"1212")
|
||||
if(this.orderInfo.refBridgeAmountAB > 0 && !this.isCPICDrag && !this.isBasement) this.bridgeAbState = true
|
||||
if(this.orderInfo.refBridgeAmountBC > 0 && !this.isCPICDrag && !this.isBasement) this.bridgeBcState = true
|
||||
if(this.orderInfo.refBridgeAmountCA > 0 && !this.isCPICDrag && !this.isBasement) this.bridgeCaState = true
|
||||
@ -517,12 +515,7 @@ export default {
|
||||
return;
|
||||
}
|
||||
}
|
||||
let data= await getAccountRecordDetail({
|
||||
id:this.id,
|
||||
postfix:this.postfix
|
||||
})
|
||||
this.accountStatus = data.data.accountStatus?.code
|
||||
if(data.data.accountStatus?.code >= 4){
|
||||
if(this.accountStatus >= 4){
|
||||
this.$alert('已进入后续流程,不允许操作');
|
||||
this.commitLoading = false;
|
||||
return;
|
||||
@ -532,6 +525,7 @@ export default {
|
||||
if(this.accountStatus == 1) accountStatus = 1
|
||||
if(this.accountStatus == 2) accountStatus = 3
|
||||
if(this.accountStatus == 3) accountStatus = 3
|
||||
this.form.accountStatus = accountStatus;
|
||||
this.form.supplierSettleMileageAb = parseInt(this.form.supplierSettleMileageAb) || 0
|
||||
this.form.supplierSettleMileageBc = parseInt(this.form.supplierSettleMileageBc) || 0
|
||||
this.form.supplierSettleMileageCa = parseInt(this.form.supplierSettleMileageCa) || 0
|
||||
@ -546,27 +540,24 @@ export default {
|
||||
this.form.supplierWaitAmount = parseInt(this.form.supplierWaitAmount) || 0
|
||||
this.form.supplierBasementFee = parseInt(this.form.supplierBasementFee) || 0
|
||||
await this.compute();
|
||||
let res = await updateAccountRecordInfo( {
|
||||
...this.form,
|
||||
accountStatus: accountStatus,
|
||||
postfix:this.postfix,
|
||||
supplierBridgeAmount:parseInt(this.form.supplierBridgeAmountAb || 0) + parseInt(this.form.supplierBridgeAmountBc || 0) + parseInt(this.form.supplierBridgeAmountCa || 0)
|
||||
});
|
||||
const formData = new FormData();
|
||||
let obj = this.form;
|
||||
Object.keys(obj).forEach((key) => {
|
||||
formData.append(key, obj[key]);
|
||||
});
|
||||
this.files.forEach((file) => {
|
||||
formData.append('file', file.file);
|
||||
});
|
||||
formData.append('taskOrderCostRecordId', this.id);
|
||||
formData.append('state', 0);
|
||||
formData.append('postfix', this.postfix);
|
||||
await insertRecordPicture(formData);
|
||||
formData.append('supplierBridgeAmount', parseInt(this.form.supplierBridgeAmountAb || 0) + parseInt(this.form.supplierBridgeAmountBc || 0) + parseInt(this.form.supplierBridgeAmountCa || 0));
|
||||
let res = await updateAccountRecordInfo( formData);
|
||||
if(res.code === 200){
|
||||
this.$toast('操作成功')
|
||||
setTimeout(()=>{
|
||||
this.$router.back()
|
||||
},2000)
|
||||
}
|
||||
this.$emit('success');
|
||||
this.commitLoading = false;
|
||||
},
|
||||
async delSupplierPhoto(item){
|
||||
|
Reference in New Issue
Block a user