|
|
@@ -78,7 +78,11 @@ export default {
|
|
|
item.biao_zhi_uuid_2 = this.uuid()
|
|
|
item.biao_zhi_uuid_3 = this.uuid()
|
|
|
item.biao_zhi_uuid_4 = this.uuid()
|
|
|
- item.shi_fou_liu_yang_ = '是'
|
|
|
+ // item.shi_fou_liu_yang_ = '是'
|
|
|
+ item.shi_fou_liu_yang_yi = '是'
|
|
|
+ item.shi_fou_liu_yang_er = '是'
|
|
|
+ item.shi_fou_liu_yang_san = '是'
|
|
|
+ item.shi_fou_liu_yang_si = '是'
|
|
|
item.yan_shou_jie_guo_ = '完好'
|
|
|
item.liu_yang_shu_lian_yi = ' ml/支×1支'
|
|
|
item.shou_yang_wei_zhi_yi = cfID
|
|
|
@@ -196,37 +200,75 @@ export default {
|
|
|
this_.$message.error('操作失败,[' + ypInfoList[yp].yang_pin_ming_che + '] 验收结果不能为空!')
|
|
|
return;
|
|
|
}
|
|
|
- if (ypInfoList[yp].shi_fou_liu_yang_ == null || ypInfoList[yp].shi_fou_liu_yang_ == '') {
|
|
|
- this_.$message.error('操作失败,[' + ypInfoList[yp].yang_pin_ming_che + '] 是否留样不能为空!')
|
|
|
- return;
|
|
|
- }
|
|
|
- if (ypInfoList[yp].shi_fou_liu_yang_ == "是") {
|
|
|
+ // if (ypInfoList[yp].shi_fou_liu_yang_ == null || ypInfoList[yp].shi_fou_liu_yang_ == '') {
|
|
|
+ // this_.$message.error('操作失败,[' + ypInfoList[yp].yang_pin_ming_che + '] 是否留样不能为空!')
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ /** 如果四个是否留样中有一个为‘是’ 则 留样日期 和对应的留样位置就不能为空 */
|
|
|
+ // ypInfoList[yp].shou_yang_wei_zhi_yi == null || ypInfoList[yp].shou_yang_wei_zhi_yi == ''
|
|
|
+ if (ypInfoList[yp].shi_fou_liu_yang_yi == "是" ||
|
|
|
+ (ypInfoList[yp].flag2 == true && ypInfoList[yp].shi_fou_liu_yang_er == "是") ||
|
|
|
+ (ypInfoList[yp].flag3 == true && ypInfoList[yp].shi_fou_liu_yang_san == "是") ||
|
|
|
+ (ypInfoList[yp].flag4 == true && ypInfoList[yp].shi_fou_liu_yang_si == "是")) {
|
|
|
if (ypInfoList[yp].liu_yang_ri_qi_ == null || ypInfoList[yp].liu_yang_ri_qi_ == '') {
|
|
|
- this_.$message.error("留样时必须填写留样日期!")
|
|
|
+ this_.$message.error('留样时必须填写留样日期!')
|
|
|
return;
|
|
|
+ // this_.handleErrorData("") todo 失效
|
|
|
}
|
|
|
- // 判断位置是否为空
|
|
|
- if (ypInfoList[yp].liu_yang_wei_zhi_yi == null || ypInfoList[yp].liu_yang_wei_zhi_yi == '') {
|
|
|
- this_.$message.error('操作失败,[' + ypInfoList[yp].yang_pin_ming_che + '] 类型1的留样位置选择不能为空!')
|
|
|
- return;
|
|
|
+ if(ypInfoList[yp].shi_fou_liu_yang_yi == "是"){
|
|
|
+ // 判断位置是否为空
|
|
|
+ if (ypInfoList[yp].liu_yang_wei_zhi_yi == null || ypInfoList[yp].liu_yang_wei_zhi_yi == '') {
|
|
|
+ this_.$message.error('操作失败,[' + ypInfoList[yp].yang_pin_ming_che + '] 类型1的留样位置选择不能为空!')
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(ypInfoList[yp].liu_yang_shu_lian_yi == null || ypInfoList[yp].liu_yang_shu_lian_yi == ''){
|
|
|
+ this_.$message.error('操作失败,[' + ypInfoList[yp].yang_pin_ming_che + '] 类型1的留样数量不能为空!')
|
|
|
+ return;
|
|
|
+ }
|
|
|
}
|
|
|
- if (ypInfoList[yp].flag2 == true && (ypInfoList[yp].liu_yang_wei_zhi_er == '' || ypInfoList[yp].liu_yang_wei_zhi_er == null)) {
|
|
|
- this_.$message.error('操作失败,[' + ypInfoList[yp].yang_pin_ming_che + '] 类型2的留样位置选择不能为空!')
|
|
|
- return;
|
|
|
+ if(ypInfoList[yp].shi_fou_liu_yang_er == "是"){
|
|
|
+ if(ypInfoList[yp].flag2 == true){
|
|
|
+ if (ypInfoList[yp].liu_yang_wei_zhi_er == '' || ypInfoList[yp].liu_yang_wei_zhi_er == null) {
|
|
|
+ this_.$message.error('操作失败,[' + ypInfoList[yp].yang_pin_ming_che + '] 类型2的留样位置选择不能为空!')
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(ypInfoList[yp].liu_yang_shu_lian_er == null || ypInfoList[yp].liu_yang_shu_lian_er == ''){
|
|
|
+ this_.$message.error('操作失败,[' + ypInfoList[yp].yang_pin_ming_che + '] 类型2的留样数量不能为空!')
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
- if (ypInfoList[yp].flag3 == true && (ypInfoList[yp].liu_yang_wei_zhi_san == '' || ypInfoList[yp].liu_yang_wei_zhi_san == null)) {
|
|
|
- this_.$message.error('操作失败,[' + ypInfoList[yp].yang_pin_ming_che + '] 类型3的留样位置选择不能为空!')
|
|
|
- return;
|
|
|
+ if(ypInfoList[yp].shi_fou_liu_yang_san == "是"){
|
|
|
+ if(ypInfoList[yp].flag3 == true ){
|
|
|
+ if (ypInfoList[yp].liu_yang_wei_zhi_san == '' || ypInfoList[yp].liu_yang_wei_zhi_san == null) {
|
|
|
+ this_.$message.error('操作失败,[' + ypInfoList[yp].yang_pin_ming_che + '] 类型3的留样位置选择不能为空!')
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(ypInfoList[yp].liu_yang_shu_lian_san == null || ypInfoList[yp].liu_yang_shu_lian_san == ''){
|
|
|
+ this_.$message.error('操作失败,[' + ypInfoList[yp].yang_pin_ming_che + '] 类型3的留样数量不能为空!')
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
- if (ypInfoList[yp].flag4 == true && (ypInfoList[yp].liu_yang_wei_zhi_si == '' || ypInfoList[yp].liu_yang_wei_zhi_si == null)) {
|
|
|
- this_.$message.error('操作失败,[' + ypInfoList[yp].yang_pin_ming_che + '] 类型4的留样位置选择不能为空!')
|
|
|
- return;
|
|
|
+ if(ypInfoList[yp].shi_fou_liu_yang_si == "是"){
|
|
|
+ if(ypInfoList[yp].flag4 == true ){
|
|
|
+ if (ypInfoList[yp].liu_yang_wei_zhi_si == '' || ypInfoList[yp].liu_yang_wei_zhi_si == null) {
|
|
|
+ this_.$message.error('操作失败,[' + ypInfoList[yp].yang_pin_ming_che + '] 类型4的留样位置选择不能为空!')
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(ypInfoList[yp].liu_yang_shu_lian_si == null || ypInfoList[yp].liu_yang_shu_lian_si == ''){
|
|
|
+ this_.$message.error('操作失败,[' + ypInfoList[yp].yang_pin_ming_che + '] 类型4的留样数量不能为空!')
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- // 判断位置是否为空
|
|
|
- if (ypInfoList[yp].shou_yang_wei_zhi_yi == null || ypInfoList[yp].shou_yang_wei_zhi_yi == '') {
|
|
|
- this_.$message.error('操作失败,[' + ypInfoList[yp].yang_pin_ming_che + '] 类型1的位置选择不能为空!')
|
|
|
- return;
|
|
|
+
|
|
|
+ // 判断位置是否为空
|
|
|
+ if (ypInfoList[yp].shou_yang_wei_zhi_yi == null || ypInfoList[yp].shou_yang_wei_zhi_yi == '') {
|
|
|
+ this_.$message.error('操作失败,[' + ypInfoList[yp].yang_pin_ming_che + '] 类型1的位置选择不能为空!')
|
|
|
+ return;
|
|
|
}
|
|
|
if (ypInfoList[yp].flag2 == true && (ypInfoList[yp].shou_yang_wei_zhi_er == '' || ypInfoList[yp].shou_yang_wei_zhi_er == null)) {
|
|
|
this_.$message.error('操作失败,[' + ypInfoList[yp].yang_pin_ming_che + '] 类型2的位置选择不能为空!')
|
|
|
@@ -257,6 +299,7 @@ export default {
|
|
|
ypInfoList[yp].shou_yang_wei_zhi_san, ypInfoList[yp].liu_yang_wei_zhi_san,
|
|
|
ypInfoList[yp].shou_yang_wei_zhi_si, ypInfoList[yp].liu_yang_wei_zhi_si
|
|
|
)
|
|
|
+
|
|
|
let o = {
|
|
|
where:{
|
|
|
id_ : ypInfoList[yp].id_
|
|
|
@@ -289,7 +332,6 @@ export default {
|
|
|
sampleList.push(o)
|
|
|
}
|
|
|
localStr = localArr.filter(i => i).join(',')
|
|
|
-
|
|
|
let value = ''
|
|
|
let lhypIdStr = ''
|
|
|
for (let i = 0; i < lhypbWJ.length; i++) {
|
|
|
@@ -311,7 +353,6 @@ export default {
|
|
|
Promise.all([repostCurd("sql", allSQL), repostCurd("sql", allLocal)]).then((res) => {
|
|
|
let result = res[0].variables.data
|
|
|
let localInfo = res[1].variables.data
|
|
|
- // todo
|
|
|
// console.log(localInfo)
|
|
|
/* 1、更新货架位置信息 */
|
|
|
this.emptyLocal = []
|
|
|
@@ -320,28 +361,28 @@ export default {
|
|
|
ypInfoList.forEach(item => {
|
|
|
allUUID.push(item.biao_zhi_uuid_1, item.biao_zhi_uuid_2, item.biao_zhi_uuid_3, item.biao_zhi_uuid_4)
|
|
|
let allResult = []
|
|
|
- if(item.shou_yang_wei_zhi_yi != undefined){
|
|
|
+ if(item.shou_yang_wei_zhi_yi != undefined && item.shou_yang_wei_zhi_yi){
|
|
|
allResult.push(this.handleLocationInfo(item.shou_yang_wei_zhi_yi, '否', localInfo, locationIds, item, item.biao_zhi_uuid_1, currentTime,item.yang_pin_lei_xing,item.liu_yang_shu_lian_yi))
|
|
|
}
|
|
|
- if (item.shou_yang_wei_zhi_er != undefined) {
|
|
|
+ if (item.shou_yang_wei_zhi_er != undefined && item.shou_yang_wei_zhi_er) {
|
|
|
allResult.push(this.handleLocationInfo(item.shou_yang_wei_zhi_er, '否', localInfo, locationIds, item, item.biao_zhi_uuid_2, currentTime,item.yang_pin_lei_er_,item.liu_yang_shu_lian_er))
|
|
|
}
|
|
|
- if (item.shou_yang_wei_zhi_san != undefined) {
|
|
|
+ if (item.shou_yang_wei_zhi_san != undefined && item.shou_yang_wei_zhi_san) {
|
|
|
allResult.push(this.handleLocationInfo(item.shou_yang_wei_zhi_san, '否', localInfo, locationIds, item, item.biao_zhi_uuid_3, currentTime,item.yang_pin_lei_san_,item.liu_yang_shu_lian_san))
|
|
|
}
|
|
|
- if (item.shou_yang_wei_zhi_si != undefined) {
|
|
|
+ if (item.shou_yang_wei_zhi_si != undefined && item.shou_yang_wei_zhi_si) {
|
|
|
allResult.push(this.handleLocationInfo(item.shou_yang_wei_zhi_si, '否', localInfo, locationIds, item, item.biao_zhi_uuid_4, currentTime,item.yang_pin_lei_si_,item.liu_yang_shu_lian_si))
|
|
|
}
|
|
|
- if(item.liu_yang_wei_zhi_yi){
|
|
|
+ if(item.liu_yang_wei_zhi_yi != undefined && item.liu_yang_wei_zhi_yi && item.shi_fou_liu_yang_yi === '是'){
|
|
|
allResult.push(this.handleLocationInfo(item.liu_yang_wei_zhi_yi, '是', localInfo, locationIds, item, item.biao_zhi_uuid_1, currentTime,item.yang_pin_lei_xing,item.liu_yang_shu_lian_yi))
|
|
|
}
|
|
|
- if (item.liu_yang_wei_zhi_er != undefined) {
|
|
|
+ if (item.liu_yang_wei_zhi_er != undefined && item.liu_yang_wei_zhi_er && item.shi_fou_liu_yang_er === '是') {
|
|
|
allResult.push(this.handleLocationInfo(item.liu_yang_wei_zhi_er, '是', localInfo, locationIds, item, item.biao_zhi_uuid_2, currentTime,item.yang_pin_lei_er_,item.liu_yang_shu_lian_er))
|
|
|
}
|
|
|
- if (item.liu_yang_wei_zhi_san != undefined) {
|
|
|
+ if (item.liu_yang_wei_zhi_san != undefined && item.liu_yang_wei_zhi_san && item.shi_fou_liu_yang_san === '是') {
|
|
|
allResult.push(this.handleLocationInfo(item.liu_yang_wei_zhi_san, '是', localInfo, locationIds, item, item.biao_zhi_uuid_3, currentTime,item.yang_pin_lei_san_,item.liu_yang_shu_lian_san))
|
|
|
}
|
|
|
- if (item.liu_yang_wei_zhi_si != undefined) {
|
|
|
+ if (item.liu_yang_wei_zhi_si != undefined && item.liu_yang_wei_zhi_si && item.shi_fou_liu_yang_si === '是') {
|
|
|
allResult.push(this.handleLocationInfo(item.liu_yang_wei_zhi_si, '是', localInfo, locationIds, item, item.biao_zhi_uuid_4, currentTime,item.yang_pin_lei_si_,item.liu_yang_shu_lian_si))
|
|
|
}
|
|
|
allResult.forEach(item => {
|
|
|
@@ -349,14 +390,15 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
let allUUIDStr = allUUID.filter(i => i).join(',')
|
|
|
- // console.log(allUUIDStr)
|
|
|
// 更新样品位置list
|
|
|
// console.log('emptyLocal:',this.emptyLocal)
|
|
|
- let allParams = {
|
|
|
- tableName: 't_ypcfwz',
|
|
|
- updList: this.emptyLocal
|
|
|
+ if(this.emptyLocal.length > 0){
|
|
|
+ let allParams = {
|
|
|
+ tableName: 't_ypcfwz',
|
|
|
+ updList: this.emptyLocal
|
|
|
+ }
|
|
|
+ repostCurd('updatesByWhere', JSON.stringify(allParams))
|
|
|
}
|
|
|
- repostCurd('updatesByWhere', JSON.stringify(allParams))
|
|
|
// 插入样品位置list
|
|
|
// console.log('fullLocal:',this.fullLocal)
|
|
|
repostCurd('add', '{"tableName":"t_ypcfwz","paramWhere":' + JSON.stringify(this.fullLocal) + '}').then(res => {
|
|
|
@@ -404,14 +446,42 @@ export default {
|
|
|
xmmc.push(item.chang_gui_xiang_m, item.tao_can_ming_chen)
|
|
|
let xiangMuZh = xmmc.filter(i => i).join(',')
|
|
|
|
|
|
- let yblx = c == 0 ? ypInfoList[index].yang_pin_lei_xing : c == 1 ? ypInfoList[index].yang_pin_lei_er_ : c == 2 ? ypInfoList[index].yang_pin_lei_san_ : c == 3 ? ypInfoList[index].yang_pin_lei_si_ : ''
|
|
|
- let ystj = c == 0 ? ypInfoList[index].yang_ben_yun_shu_ : c == 1 ? ypInfoList[index].yang_pin_yun_shu_ : c == 2 ? ypInfoList[index].yang_pin_yun_san : c == 3 ? ypInfoList[index].yang_pin_yun_si_ : ''
|
|
|
- let ypsl = c == 0 ? ypInfoList[index].shu_liang_ : c == 1 ? ypInfoList[index].shu_liang_er_ : c == 2 ? ypInfoList[index].shu_liang_san_ : c == 3 ? ypInfoList[index].shu_liang_si_ : ''
|
|
|
- let ybgg = c == 0 ? ypInfoList[index].yang_pin_gui_ge_ : c == 1 ? ypInfoList[index].yang_pin_gui_ge_e : c == 2 ? ypInfoList[index].yang_pin_gui_ge_s : c == 3 ? ypInfoList[index].yang_pin_gui_si_ : ''
|
|
|
- let sywz = c == 0 ? ypInfoList[index].shou_yang_wei_zhi_yi : c == 1 ? ypInfoList[index].shou_yang_wei_zhi_er : c == 2 ? ypInfoList[index].shou_yang_wei_zhi_san : c == 3 ? ypInfoList[index].shou_yang_wei_zhi_si : ''
|
|
|
- let lycf = c == 0 ? ypInfoList[index].liu_yang_wei_zhi_yi : c == 1 ? ypInfoList[index].liu_yang_wei_zhi_er : c == 2 ? ypInfoList[index].liu_yang_wei_zhi_san : c == 3 ? ypInfoList[index].liu_yang_wei_zhi_si : ''
|
|
|
- let lysl = c == 0 ? ypInfoList[index].liu_yang_shu_lian_yi : c == 1 ? ypInfoList[index].liu_yang_shu_lian_er : c == 2 ? ypInfoList[index].liu_yang_shu_lian_san : c == 3 ? ypInfoList[index].liu_yang_shu_lian_si : ''
|
|
|
- let currentUUID = c == 0 ? ypInfoList[index].biao_zhi_uuid_1 : c == 1 ? ypInfoList[index].biao_zhi_uuid_2 : c == 2 ? ypInfoList[index].biao_zhi_uuid_3 : c == 3 ? ypInfoList[index].biao_zhi_uuid_4 : ''
|
|
|
+ let yblx = c == 0 ? ypInfoList[index].yang_pin_lei_xing :
|
|
|
+ c == 1 ? ypInfoList[index].yang_pin_lei_er_ :
|
|
|
+ c == 2 ? ypInfoList[index].yang_pin_lei_san_ :
|
|
|
+ c == 3 ? ypInfoList[index].yang_pin_lei_si_ : ''
|
|
|
+ let ystj = c == 0 ? ypInfoList[index].yang_ben_yun_shu_ :
|
|
|
+ c == 1 ? ypInfoList[index].yang_pin_yun_shu_ :
|
|
|
+ c == 2 ? ypInfoList[index].yang_pin_yun_san :
|
|
|
+ c == 3 ? ypInfoList[index].yang_pin_yun_si_ : ''
|
|
|
+ let ypsl = c == 0 ? ypInfoList[index].shu_liang_ :
|
|
|
+ c == 1 ? ypInfoList[index].shu_liang_er_ :
|
|
|
+ c == 2 ? ypInfoList[index].shu_liang_san_ :
|
|
|
+ c == 3 ? ypInfoList[index].shu_liang_si_ : ''
|
|
|
+ let ybgg = c == 0 ? ypInfoList[index].yang_pin_gui_ge_ :
|
|
|
+ c == 1 ? ypInfoList[index].yang_pin_gui_ge_e :
|
|
|
+ c == 2 ? ypInfoList[index].yang_pin_gui_ge_s :
|
|
|
+ c == 3 ? ypInfoList[index].yang_pin_gui_si_ : ''
|
|
|
+ let sywz = c == 0 ? ypInfoList[index].shou_yang_wei_zhi_yi :
|
|
|
+ c == 1 ? ypInfoList[index].shou_yang_wei_zhi_er :
|
|
|
+ c == 2 ? ypInfoList[index].shou_yang_wei_zhi_san :
|
|
|
+ c == 3 ? ypInfoList[index].shou_yang_wei_zhi_si : ''
|
|
|
+ let lycf = c == 0 ? ypInfoList[index].liu_yang_wei_zhi_yi :
|
|
|
+ c == 1 ? ypInfoList[index].liu_yang_wei_zhi_er :
|
|
|
+ c == 2 ? ypInfoList[index].liu_yang_wei_zhi_san :
|
|
|
+ c == 3 ? ypInfoList[index].liu_yang_wei_zhi_si : ''
|
|
|
+ let lysl = c == 0 ? ypInfoList[index].liu_yang_shu_lian_yi :
|
|
|
+ c == 1 ? ypInfoList[index].liu_yang_shu_lian_er :
|
|
|
+ c == 2 ? ypInfoList[index].liu_yang_shu_lian_san :
|
|
|
+ c == 3 ? ypInfoList[index].liu_yang_shu_lian_si : ''
|
|
|
+ let currentUUID = c == 0 ? ypInfoList[index].biao_zhi_uuid_1 :
|
|
|
+ c == 1 ? ypInfoList[index].biao_zhi_uuid_2 :
|
|
|
+ c == 2 ? ypInfoList[index].biao_zhi_uuid_3 :
|
|
|
+ c == 3 ? ypInfoList[index].biao_zhi_uuid_4 : ''
|
|
|
+ let ifLy = c == 0 ? ypInfoList[index].shi_fou_liu_yang_yi :
|
|
|
+ c == 1 ? ypInfoList[index].shi_fou_liu_yang_er :
|
|
|
+ c == 2 ? ypInfoList[index].shi_fou_liu_yang_san:
|
|
|
+ c == 3 ? ypInfoList[index].shi_fou_liu_yang_si : ''
|
|
|
let obj = {
|
|
|
wei_tuo_dan_hao_: item.wei_tuo_bian_hao_,
|
|
|
wei_tuo_dan_wei_: item.wtdh,
|
|
|
@@ -434,11 +504,11 @@ export default {
|
|
|
yan_shou_jie_guo_: ypInfoList[index].yan_shou_jie_guo_,
|
|
|
cun_fang_wei_zhi_: sywz,
|
|
|
liu_zhuan_zhuang_: '待任务分配',
|
|
|
- shi_fou_liu_yang_: ypInfoList[index].shi_fou_liu_yang_,
|
|
|
- liu_yang_ri_qi_: ypInfoList[index].liu_yang_ri_qi_,
|
|
|
- liu_yang_cun_fang: lycf,
|
|
|
- liu_yang_shu_lian: lysl,
|
|
|
- liu_yang_qi_xian: ypInfoList[index].liu_yang_qi_xian,
|
|
|
+ shi_fou_liu_yang_: ifLy,
|
|
|
+ liu_yang_ri_qi_: ifLy == '是'? ypInfoList[index].liu_yang_ri_qi_:'',
|
|
|
+ liu_yang_cun_fang: ifLy == '是'?lycf:'',
|
|
|
+ liu_yang_shu_lian: lysl == null ?'':lysl,
|
|
|
+ liu_yang_qi_xian: ifLy == '是'? ypInfoList[index].liu_yang_qi_xian:'',
|
|
|
xiao_hui_ri_qi_: ypInfoList[index].xiao_hui_ri_qi_,
|
|
|
fan_yang_ri_qi_: ypInfoList[index].fan_yang_ri_qi_,
|
|
|
fan_yang_jyr: ypInfoList[index].fan_yang_jyr,
|
|
|
@@ -447,6 +517,7 @@ export default {
|
|
|
jian_ce_xiang_mu_: xiangMuZh,
|
|
|
shou_yang_ren_:this.$store.getters.userInfo.user.name
|
|
|
}
|
|
|
+ // console.log(obj)
|
|
|
ypdjb.push(obj)
|
|
|
}
|
|
|
// 2-2:封装任务分配表
|
|
|
@@ -499,7 +570,8 @@ export default {
|
|
|
// console.log('3、更新样品表',lhypIdNewList)
|
|
|
repostCurd('updates', '{"tableName":"t_lhypb","paramWhere":[' + lhypIdNewList + '],"paramCond":{"jie_yang_zhuang_t":"已接收"}}').then(res=>{
|
|
|
this.handleAnySituation(true,"样品成功接收,正在开启任务分配!",'success')
|
|
|
- })*/
|
|
|
+ })
|
|
|
+ */
|
|
|
console.log('更新样品表',sampleList)
|
|
|
let allSampleParams ={
|
|
|
tableName:'t_lhypb',
|
|
|
@@ -508,6 +580,7 @@ export default {
|
|
|
repostCurd('updatesByWhere', JSON.stringify(allSampleParams)).then(res=>{
|
|
|
this.handleAnySituation(true,"样品成功接收,正在开启任务分配!",'success')
|
|
|
})
|
|
|
+
|
|
|
})
|
|
|
|
|
|
|
|
|
@@ -516,6 +589,7 @@ export default {
|
|
|
})
|
|
|
}).catch(_ => { });
|
|
|
}
|
|
|
+
|
|
|
},
|
|
|
/* 去除指定行数据 使用过滤器filter过滤指定行号数据 */
|
|
|
deleteData(val) {
|
|
|
@@ -566,7 +640,6 @@ export default {
|
|
|
},
|
|
|
handleLocationInfo(currentLocation, isLiuYang, localInfo, locationIds, item, UUID, currentTime,sampleType,liuYangNum) {
|
|
|
!locationIds.has(currentLocation) ? locationIds.add(currentLocation) : localInfo.find(i => i.id_ === currentLocation).wei_zhi_zhuang_ta = '占用'
|
|
|
- // console.log(localInfo.find(i => i.id_ === currentLocation), currentLocation)
|
|
|
if (localInfo.find(i => i.id_ === currentLocation)!=undefined &&localInfo.find(i => i.id_ === currentLocation).wei_zhi_zhuang_ta === '空余') {
|
|
|
let obj = {
|
|
|
where: {
|
|
|
@@ -579,7 +652,7 @@ export default {
|
|
|
yang_pin_ming_che: item.yang_pin_ming_che,
|
|
|
shi_fou_liu_yang_: isLiuYang,
|
|
|
yang_pin_lei_xing: sampleType,
|
|
|
- liu_yang_shu_lian: liuYangNum
|
|
|
+ liu_yang_shu_lian: liuYangNum == null? '':liuYangNum
|
|
|
}
|
|
|
}
|
|
|
let result = {
|
|
|
@@ -595,7 +668,7 @@ export default {
|
|
|
biao_zhi_uuid_: UUID,
|
|
|
shi_fou_liu_yang_: isLiuYang,
|
|
|
type: sampleType,
|
|
|
- num: liuYangNum
|
|
|
+ num: liuYangNum == null? '':liuYangNum
|
|
|
}
|
|
|
let newLocation = this.generateNewLocation(localInfo.find(i => i.id_ === currentLocation), sampleInfo)
|
|
|
let result = {
|