From bd255a701281feb2e4bd6a22d0eb90863104deec Mon Sep 17 00:00:00 2001 From: bb_pan Date: Tue, 11 Feb 2025 15:31:20 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E6=96=99-=E5=A2=9E=E5=8A=A0=E5=AE=8C?= =?UTF-8?q?=E5=A5=BD,=E6=8D=9F=E5=9D=8F=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/back/backCode.vue | 23 ++++++++-- src/pages/back/backCodeAdd.vue | 2 + src/pages/back/backCodeDetail.vue | 3 +- src/pages/back/backNum.vue | 76 +++++++++++++++++++++++++++++-- src/pages/back/backNumDetail.vue | 12 ++++- 5 files changed, 104 insertions(+), 12 deletions(-) diff --git a/src/pages/back/backCode.vue b/src/pages/back/backCode.vue index 897e3e6..f98c228 100644 --- a/src/pages/back/backCode.vue +++ b/src/pages/back/backCode.vue @@ -66,7 +66,11 @@ 外观判定: - + + + 完好 + 损坏 + @@ -99,10 +103,15 @@ const typeName = ref("")//物资类型 const materialName = ref("") //规格型号 const typeId = ref("") //类型id const maStatusName = ref("") //状态 -const apDetection = ref("") //外观判定 +const apDetection = ref("完好") //外观判定 const imgBeseUrl = ref("") //图片展示 const bmFileInfos = ref([])//图片数组 +const changeRadio = (e) => { + console.log(e.detail.value) + apDetection.value = e.detail.value +} + //根据编码获取设备类型 const getMaInfo = () => { console.log(maCode.value) @@ -213,6 +222,8 @@ const submitCode = () => { "maCode":maCode.value, "typeId":typeId.value, "apDetection":apDetection.value, + goodNum: apDetection.value == '完好' ? 1 : 0, + badNum: apDetection.value == '损坏' ? 1 : 0, "bmFileInfos":bmFileInfos.value } let param = { @@ -230,7 +241,7 @@ const submitCode = () => { maId.value="" maCode.value="" typeId.value="" - apDetection.value="" + apDetection.value="完好" bmFileInfos.value=[] // uni.navigateBack({ // delta: 1 // 返回到已存在的页面 @@ -295,7 +306,11 @@ onLoad((options)=>{ }) -