|
|
@@ -193,11 +193,12 @@ const add_gyzlent = async (event,id1,id2,id3) => {
|
|
|
// console.log("response",response)
|
|
|
form['开数'] = response.data['开数']
|
|
|
form['联数'] = response.data['联数']
|
|
|
- form['工序'] = response.data['工序号']
|
|
|
- if(yjList.value !== undefined){
|
|
|
+ form['工序'] = response.data['工序号']
|
|
|
+ if(yjList.value.length>1){
|
|
|
const node = yjList.value.find(item => item.no ===form['yjno'])
|
|
|
if (! node) {
|
|
|
yjdisplay.value = true
|
|
|
+ console.log('yjList.value',yjList.value)
|
|
|
}
|
|
|
document.getElementById(id3).focus()
|
|
|
}
|
|
|
@@ -348,6 +349,7 @@ const open = async (gdbh, gxlist,_gdgyrow) => {
|
|
|
|
|
|
//id.value代表全局工单编号
|
|
|
id.value = gdbh
|
|
|
+ yjList.value = []
|
|
|
const res = await PrintDetailList({workOrder: id.value})
|
|
|
if(res.data.length === 1){
|
|
|
form['yjno'] = res.data[0]['no']
|