From d3088af9c5dcad8da4b0c35e4241e00f8ca1a5e5 Mon Sep 17 00:00:00 2001 From: PQZ Date: Wed, 30 Oct 2024 20:04:35 +0800 Subject: [PATCH] 1 --- pages-home/service/todoDetail.vue | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/pages-home/service/todoDetail.vue b/pages-home/service/todoDetail.vue index b2ba71f..2442324 100644 --- a/pages-home/service/todoDetail.vue +++ b/pages-home/service/todoDetail.vue @@ -21,9 +21,13 @@ 单位 {{ item.wares.unit }} + + + + - 编码 - {{ item.wares.code || ""}} + 售价 + @@ -110,12 +114,32 @@ export default { }) }, confirmOpe(type){ + let forSign = true + this.repairList.map(item=>{ + if (item.wares.price == null || item.wares.price == ''){ + uni.showToast({ + title: '售价不能为空!', + icon: 'none' + }) + forSign = false + return; + } + }) + if (!forSign) { + return; + } let url = '/admin-api/repair/tw/audit' let dataObj={ id:this.id, type:"01", status:"yes"==type?"02":"05" } + dataObj.repairWaresList = [...this.repairList.map(item => { + return{ + id:item.id, + price:item.wares.price + } + })] request({ url: url, method: 'POST',