From ac5f3574affb06666b9f3a6b76a961ffa69802e4 Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周一, 23 12月 2024 15:30:18 +0800 Subject: [PATCH] 222 --- LA24030_LuLiPackageLine_Pda/pages/untie/untie.vue | 30 +++++++++++++++++++++++++++++- 1 files changed, 29 insertions(+), 1 deletions(-) diff --git a/LA24030_LuLiPackageLine_Pda/pages/untie/untie.vue b/LA24030_LuLiPackageLine_Pda/pages/untie/untie.vue index 38fb9ea..25852e7 100644 --- a/LA24030_LuLiPackageLine_Pda/pages/untie/untie.vue +++ b/LA24030_LuLiPackageLine_Pda/pages/untie/untie.vue @@ -298,8 +298,9 @@ <button-modal :subShow="true" garmenTitle="閲嶇疆" + subTitle="纭NG" @submit="rest" - @reset="rest" + @reset="do_UnlineForNGPackage" /> </view> </template> @@ -314,6 +315,7 @@ onlyUpdateDutyCycle, getBhbMaterialList, getenumDataList, + UnlineForNGPackage } from "../../api/putIn/artificial.js"; export default { data() { @@ -384,6 +386,31 @@ mounted() {}, methods: { + do_UnlineForNGPackage() { + //debugger + const params = { + PackageCode:this.singlist[0].packageCode, + IsNG:true + }; + //debugger + uni.showModal({ + title: "鏁村寘NG涓嬬嚎", + content: "鏄惁纭 鏁村寘NG涓嬬嚎锛�", + showCancel: true, + cancelColor: "#333333", + success: (res) => { + if (res.confirm) { + UnlineForNGPackage(params).then((res) => { + this.rescode = 200; + this.$refs.resmodal.show = true; + this.resmessage = "鏁村寘NG涓嬬嚎鎴愬姛"; + }); + } else if (res.cancel) { + } + }, + }); + + }, getEnumName(value) { const name = this.enumList.find((item) => item.value === value); return name ? name.name : ""; @@ -415,6 +442,7 @@ }, rest() { + //alert(11) this.warehouse.upi = ""; this.warehouse.upi = ""; this.singlist = []; -- Gitblit v1.9.3