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();