From 01d07f7cb533a9d18d51edcc281e30f271631d02 Mon Sep 17 00:00:00 2001 From: "LAPTOP-R6EHHS26\\86155" <2217640373@qq.com> Date: Tue, 31 Oct 2023 17:56:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC=E6=9B=B4=E6=96=B00.0.8=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BF=94=E5=9B=9E=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/mes/Pallethandling/index.vue | 7 ++++++- src/pages/mes/Pallethandling/model.ts | 2 +- src/pages/shouye/me.vue | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/pages/mes/Pallethandling/index.vue b/src/pages/mes/Pallethandling/index.vue index e8dd559..21a38db 100644 --- a/src/pages/mes/Pallethandling/index.vue +++ b/src/pages/mes/Pallethandling/index.vue @@ -224,9 +224,14 @@ export default class ChangePalletNew extends BasePage { //productionState: this.productCodeList.value, }; await this.model.palletInforUpdate(params); - if (model.SubmitCode == 200) { + if (model.SubmitCode.code == 200) { this.uni.showToast({ title: '成功' }); this.Clear(); + } else { + (this.$refs.uToast as any).show({ + title: model.SubmitCode.msg, + type: 'default', + }); } } Clear() { diff --git a/src/pages/mes/Pallethandling/model.ts b/src/pages/mes/Pallethandling/model.ts index ea9ed00..b508260 100644 --- a/src/pages/mes/Pallethandling/model.ts +++ b/src/pages/mes/Pallethandling/model.ts @@ -33,7 +33,7 @@ export class ChangePalletNew extends VuexModule { @MutationAction async palletInforUpdate(params: any) { const result: any = await http.post(url.lanjumes.product.ErrorPalletHandling, params); - const SubmitCode = result.code; + const SubmitCode = result; return { SubmitCode }; } //目的地点下拉列表 diff --git a/src/pages/shouye/me.vue b/src/pages/shouye/me.vue index c1c80ca..9c64337 100644 --- a/src/pages/shouye/me.vue +++ b/src/pages/shouye/me.vue @@ -65,7 +65,7 @@ export default class RawHome extends BasePage { model = model; src: 'http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg'; today = dayjs().format('YYYY-MM-DD dddd'); - version = '0.0.7'; + version = '0.0.8'; checkversion: any = {}; onLoad() { // this.model.getMenuList();