From d55bad0fe364eec13f24923afdf82ed9dc84d325 Mon Sep 17 00:00:00 2001 From: lq Date: Fri, 13 Dec 2024 08:46:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=83=A8=E5=88=86=E6=97=A0?= =?UTF-8?q?=E7=94=A8=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workbench_recipe/addType2.vue | 28 +------------------ 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/subPackages/sub_workbench/workbench_recipe/addType2.vue b/subPackages/sub_workbench/workbench_recipe/addType2.vue index 733d407..6319902 100644 --- a/subPackages/sub_workbench/workbench_recipe/addType2.vue +++ b/subPackages/sub_workbench/workbench_recipe/addType2.vue @@ -294,25 +294,6 @@ return 0 } }, - // setList() { - // this.getDrug(); - // let list = this.list[this.current].length > 0 ? this.list[this.current] : []; - // let arr = []; - // this.type == 2 && (arr = this.chineses) - // this.type == 3 && (arr = this.granular) - // console.log(arr, 'this.granular') - // list = list.map((item) => { - // let it = arr.find(it => it['id'] == item.id) || {} - // const obj = { - // ...item, - // ...it, - // is_add: it['id'] ? true : false, - // stock: item['stock'] - (it['number'] || 0) - // } - // return obj - // }); - // return list - // }, setList() { this.getDrug(); let list = this.list[this.current].length > 0 ? this.list[this.current] : []; @@ -375,7 +356,7 @@ } } this.useWay = JSON.parse(uni.getStorageSync('useWay')) - + }, methods: { async getRuleList(pid = 0) { @@ -623,12 +604,6 @@ }); }, setChecked(id) { - // let list = this.keyword ? this.searchList[this.current] : this.list[this.current]; - // for (var i = 0; i < list.length; i++) { - // if (list[i]['id'] == id) { - // this.$set(list[i], 'checked', !list[i]['checked']) - // } - // } this.list[this.current] = this.list[this.current].map(item => { if (item.id == id) { item.checked = !item.checked @@ -665,7 +640,6 @@ name: this.keyword, store_id: uni.getStorageSync('store_id') || 11001, })) - console.log(this.type, 'this.type') // 颗粒配方列表 this.type == 3 && (res = await granularList({ name: this.keyword,