质量保存网络连接不好强制不退出

master
guoshuang 10 months ago
parent 1f497b4a1d
commit 203d852d95

@ -142,7 +142,7 @@ export default class LoginPage extends BasePage {
// console.log('Version////', this.Version);
}
///******************
version = '0.0.106'; //
version = '0.0.107'; //
//version = '0.0.14'; //
//*************** false true ****************
//isTest = true;

@ -1819,7 +1819,6 @@ export default class PurchaseWHSRM extends BasePage {
success: (res) => {
if (res.confirm) {
this.SaveDraft();
this.show = false;
//this.sampleQuality = null;
} else if (res.cancel) {
console.log('不关闭');
@ -1837,7 +1836,7 @@ export default class PurchaseWHSRM extends BasePage {
success: (res) => {
if (res.confirm) {
this.SaveDraft();
this.show = false;
//this.sampleQuality = null;
} else if (res.cancel) {
console.log('不关闭');
@ -1969,7 +1968,23 @@ export default class PurchaseWHSRM extends BasePage {
qczg: this.formdata.qcFrom,
};
//console.log('稿params', params);
await model.commitDraft(params); //99999
try {
await model.commitDraft(params); //99999
if (model.commitDraftCode == 200) {
(this.$refs.uToast as any).show({
title: '保存成功',
});
this.show = false;
} else {
(this.$refs.uToast as any).show({
title: '保存失败,请网络通畅了再试',
});
}
} catch (err) {
(this.$refs.uToast as any).show({
title: '保存失败,请网络通畅了再试',
});
}
}
async singname(singmark) {

@ -76,7 +76,7 @@ export class Materialinspection extends VuexModule {
@MutationAction
async commitDraft(params: any) {
const result: any = await http.post(url.lanjuquality.Materialinspection.commitCheckResultsCg, params);
const commitDraftCode: [] = result;
const commitDraftCode: [] = result.code;
return { commitDraftCode };
}
locList: any = [];

Loading…
Cancel
Save