|
|
@@ -78,6 +78,7 @@ export default {
|
|
|
|
|
|
// 罗湖样品编号列表
|
|
|
let lhypbhList = []
|
|
|
+ let lhypmcList = []
|
|
|
// 罗湖委托单列表
|
|
|
let lhwtsqbList = []
|
|
|
// 罗湖样品表列表
|
|
|
@@ -190,6 +191,7 @@ export default {
|
|
|
lhypIdNewList.push('{"id_":"' + ypInfoList[yp].id_ + '"}')
|
|
|
uuidList.push(ypInfoList[yp].biao_zhi_uuid_)
|
|
|
ypbh.push(ypInfoList[yp].yang_pin_bian_hao)
|
|
|
+ lhypmcList.push(ypInfoList[yp].yang_pin_ming_che)
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
@@ -315,7 +317,7 @@ export default {
|
|
|
3-1、根据 wtdAndYpb 的 wtID 更改委托表的 委托状态 wei_tuo_zhuang_ta 变成 已完成
|
|
|
3-2、根据每个样品对应的检测项目,开启一个或多个任务 / 遍历样品表开任务分配流程,一个样品可能对应多个检测
|
|
|
3-3、委托表找zhan_shi_biao_id_ 修改 t_lhwtzsb "zhuang_tai_"为"任务分配进行中"
|
|
|
-
|
|
|
+*/
|
|
|
// console.log('委托单及样品信息',wtdAndYpb)
|
|
|
// console.log('委托单id列表 ',lhwtbID)
|
|
|
// console.log('展示表id列表 ',lhwtzsbID)
|
|
|
@@ -325,10 +327,10 @@ export default {
|
|
|
let rws = []
|
|
|
if(wtdAndYpb.length>0){
|
|
|
for(var i in wtdAndYpb){
|
|
|
- let strs = wtdAndYpb[i].jian_ce_xiang_mu_.split(',')
|
|
|
- for(var l in strs){
|
|
|
+ // let strs = wtdAndYpb[i].jian_ce_xiang_mu_.split(',')
|
|
|
+ // for(var l in strs){
|
|
|
let rw = {}
|
|
|
- rw["ren_wu_ming_cheng"] = strs[l] //检测项目
|
|
|
+ // rw["ren_wu_ming_cheng"] = strs[l] //检测项目
|
|
|
rw["yang_pin_ming_che"] = wtdAndYpb[i].yang_pin_ming_che//样品名称
|
|
|
rw["yang_pin_bian_hao"] = wtdAndYpb[i].yang_pin_bian_hao//样品编号
|
|
|
rw["wei_tuo_lei_xing_"] = wtdAndYpb[i].wei_tuo_lei_xing_ //委托类型
|
|
|
@@ -368,7 +370,7 @@ export default {
|
|
|
rw["xin_xiang_mu_ming"] = wtdAndYpb[i].xiang_mu_ming_che //项目名称
|
|
|
rw["zhan_shi_biao_id_"] = wtdAndYpb[i].zhan_shi_biao_id_ //展示表id
|
|
|
rws.push(rw)
|
|
|
- }
|
|
|
+ // }
|
|
|
}
|
|
|
// console.log("任务分配",rws)
|
|
|
repostCurd('add', '{"tableName":"t_lhrwfpb","paramWhere":'+JSON.stringify(rws)+',"defKey":"Process_04o0csc","formKey":"lhrwfp"}')
|
|
|
@@ -380,17 +382,17 @@ export default {
|
|
|
if(lhwtzsbID.length > 0){
|
|
|
repostCurd('updates', '{"tableName":"t_lhwtzsb","paramWhere":['+lhwtzsbID+'],"paramCond":{"zhuang_tai_":"任务分配进行中"}}')
|
|
|
}
|
|
|
- */
|
|
|
+
|
|
|
|
|
|
/*
|
|
|
3、【任务分配2022/11/23 取消 直接 批量开检测子流程】
|
|
|
3-1、根据 wtdAndYpb 的 wtID 更改委托表的 委托状态 wei_tuo_zhuang_ta 变成 已完成
|
|
|
3-2、根据每个样品对应的检测项目,开启一个或多个任务 / 遍历样品表开检测子流程,一个样品可能对应多个检测
|
|
|
3-3、委托表找zhan_shi_biao_id_ 修改 t_lhwtzsb "zhuang_tai_"为"待环境监控"
|
|
|
- */
|
|
|
+
|
|
|
|
|
|
repostCurd('updates', '{"tableName":"t_lhwtsqb","paramWhere":[' + lhwtbID + '],"paramCond":{"wei_tuo_zhuang_ta":"已完成"}}')
|
|
|
-
|
|
|
+*/
|
|
|
// console.log('dWhere : ',dWhere)
|
|
|
|
|
|
/* 2、更新货架位置信息(位置状态、样品编号、入库时间)如果是重复位置,则新增一条位置记录,并增加对应UUID */
|
|
|
@@ -400,7 +402,7 @@ export default {
|
|
|
let resArr = response.variables.data
|
|
|
if (resArr.length == 1) {
|
|
|
if (resArr[0].wei_zhi_zhuang_ta == "空余") {
|
|
|
- repostCurd('update', '{"tableName":"t_ypcfwz","paramWhere":' + dWhere[num] + ',"paramCond":' + '{"wei_zhi_zhuang_ta":"占用","yang_pin_bian_hao":"' + ypbh[num] +'","ru_ku_shi_jian_":"' + this_.dateFormat() + '"}}').then(res => {
|
|
|
+ repostCurd('update', '{"tableName":"t_ypcfwz","paramWhere":' + dWhere[num] + ',"paramCond":' + '{"wei_zhi_zhuang_ta":"占用","yang_pin_bian_hao":"' + ypbh[num] +'","yang_pin_ming_che":"' + lhypmcList[num] +'","ru_ku_shi_jian_":"' + this_.dateFormat() + '"}}').then(res => {
|
|
|
// console.log("原本位置为空余 ,新位置更新成功")
|
|
|
})
|
|
|
} else if (resArr[0].wei_zhi_zhuang_ta == "占用") {
|
|
|
@@ -419,6 +421,7 @@ export default {
|
|
|
cfNew["cun_chu_tiao_jian"] = resArr[0].cun_chu_tiao_jian
|
|
|
cfNew["yang_pin_bian_hao"] = ypbh[num]
|
|
|
// cfNew["yang_pin_bian_hao"] = lhypIdList[num]
|
|
|
+ cfNew["yang_pin_ming_che"] = lhypmcList[num]
|
|
|
cfNew["ru_ku_shi_jian_"] = this_.dateFormat()
|
|
|
cfNew["biao_zhi_uuid_"] = uuidList[num]
|
|
|
cfNewList.push(cfNew)
|
|
|
@@ -448,7 +451,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
+/*
|
|
|
let ffbSql = "select * from t_lhfbb where FIND_IN_SET( parent_id_,'"+ fbbIdStr +"')"
|
|
|
repostCurd('sql',ffbSql).then(response => {
|
|
|
let ffbList = response.variables.data
|
|
|
@@ -520,7 +523,7 @@ export default {
|
|
|
if(lhwtzsbID.length > 0){
|
|
|
repostCurd('updates', '{"tableName":"t_lhwtzsb","paramWhere":['+lhwtzsbID+'],"paramCond":{"zhuang_tai_":"检测进行中"}}')
|
|
|
}
|
|
|
-
|
|
|
+*/
|
|
|
})
|
|
|
this.$emit('callback', true)
|
|
|
this.visable = false
|