删除部分无用代码

This commit is contained in:
2024-12-13 08:46:51 +08:00
parent c8511d5e9a
commit d55bad0fe3

View File

@@ -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,