From c44041199aafb63622bf4839ae6fec54ba313ab4 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期日, 04 八月 2024 15:24:18 +0800
Subject: [PATCH] Merge branch 'master' of http://114.132.189.42:9002/r/center-lims-before into master
---
src/components/do/b1-ins-order/add.vue | 18 ++++++++++++++----
1 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/src/components/do/b1-ins-order/add.vue b/src/components/do/b1-ins-order/add.vue
index 88699bb..96d8980 100644
--- a/src/components/do/b1-ins-order/add.vue
+++ b/src/components/do/b1-ins-order/add.vue
@@ -1219,6 +1219,9 @@
}
})
this.circulateShow = false
+ this.changeProductList0()
+ this.currentMethod.insProduct = this.productList0
+ this.getProNum()
},
spliceTemperatureTest () {
if (this.temperatureTest.length === 0) {
@@ -1375,6 +1378,9 @@
a.manHour = obj.manHour
a.price = obj.price
a.tell = obj.tell
+ }
+ if(a.state == 0&&a.bsmRow){
+ a = this.HaveJson(a.bsmRow)
}
})
},
@@ -1778,6 +1784,7 @@
},
saveMethod(sampleList){
this.saveLoad = true
+ console.log(333333,sampleList)
this.$axios.post(this.$api.insOrder.addInsOrder, {
str: JSON.stringify({
insOrder: this.addObj,
@@ -2084,7 +2091,11 @@
this.productList0 = JSON.parse(JSON.stringify(this.productList))
setTimeout(() => {
this.productList.forEach(a => {
- if (a.state == 1) this.toggleSelection(a)
+ if (a.state == 1) {
+ this.toggleSelection(a)
+ }else{
+ this.$refs.productTable.toggleRowSelection(a, false);
+ }
})
}, 200)
},
@@ -2109,7 +2120,6 @@
row.bsm1 = false
}else if(arr.length>0){
try{
- row.bsmRow = this.HaveJson(row)
let section = arr[0].section
let arr0 = JSON.parse(row.section)
let arr1 = JSON.parse(row.ask)
@@ -2329,9 +2339,9 @@
}
this.getProductLoad = true
let selectTreeList = this.selectTree.split(" - ")
- selectTreeList[selectTreeList.length - 1] = this.addObj.model
+ this.addObj.model&&(selectTreeList[selectTreeList.length - 1] = this.addObj.model)
this.$axios.post(this.$api.standardTree.selectStandardProductList, {
- model: this.addObj.model + '-' + row.modelNum,
+ model: (this.addObj.model?this.addObj.model:row.model) + '-' + row.modelNum,
standardMethodListId: val,
factory: selectTreeList.join(" - "),
}, {
--
Gitblit v1.9.3