|
@ -181,12 +181,12 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
message.warning(`物料${val[0]['itemCode']}已经存在`) |
|
|
message.warning(`物料${val[0]['itemCode']}已经存在`) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const isType = await isItemType(val[0]['itemCode'], labelType.value) |
|
|
const isType = await isItemType(val[0]['itemCode'], labelType.value) |
|
|
if(!isType){ |
|
|
if(!isType){ |
|
|
message.warning('当前物料可制造与其他数据不一致,请重新选择!') |
|
|
message.warning('当前物料可制造与其他数据不一致,请重新选择!') |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
|
|
|
row['batch'] = val[0]['batch']==''?formatTime(new Date(), 'yyyyMMdd'):val[0]['batch'] |
|
|
row['batch'] = val[0]['batch']==''?formatTime(new Date(), 'yyyyMMdd'):val[0]['batch'] |
|
|
row['itemCode'] = val[0]['itemCode'] |
|
|
row['itemCode'] = val[0]['itemCode'] |
|
|
row['uom'] = val[0]['uom'] |
|
|
row['uom'] = val[0]['uom'] |
|
@ -524,7 +524,7 @@ const openForm =async (type: string, row?: number) => { |
|
|
/** 详情操作 */ |
|
|
/** 详情操作 */ |
|
|
const detailRef = ref() |
|
|
const detailRef = ref() |
|
|
const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
detailRef.value.openDetail(row, titleName, titleValue) |
|
|
detailRef.value.openDetail(row, titleName, titleValue,"requestProductionreturnMainNo") |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** 删除按钮操作 */ |
|
|
/** 删除按钮操作 */ |
|
@ -716,7 +716,7 @@ const labelPrint = async (row) => { |
|
|
|
|
|
|
|
|
// 批量打印--生产退料 |
|
|
// 批量打印--生产退料 |
|
|
const searchTableSuccess1 = async (formField, searchField, val, formRef, type, row) => { |
|
|
const searchTableSuccess1 = async (formField, searchField, val, formRef, type, row) => { |
|
|
|
|
|
|
|
|
console.log('批量打印',val) |
|
|
console.log('批量打印',val) |
|
|
// let rows:any = [] |
|
|
// let rows:any = [] |
|
|
// val.forEach(item=>{ |
|
|
// val.forEach(item=>{ |
|
|