|
@ -60,6 +60,7 @@ |
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
@submitForm="submitForm" |
|
|
@submitForm="submitForm" |
|
|
@onEnter="onEnter" |
|
|
@onEnter="onEnter" |
|
|
|
|
|
@onChange="onChange" |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
<!-- 详情 --> |
|
|
<!-- 详情 --> |
|
@ -108,7 +109,16 @@ const tableColumns = ref([...IssueRequestMain.allSchemas.tableColumns,...IssueRe |
|
|
const updataTableColumns = (val) => { |
|
|
const updataTableColumns = (val) => { |
|
|
tableColumns.value = val |
|
|
tableColumns.value = val |
|
|
} |
|
|
} |
|
|
|
|
|
const onChange = async (field,value) => { |
|
|
|
|
|
console.log('onChange',field,value) |
|
|
|
|
|
if (field == 'workshopCode') { |
|
|
|
|
|
//车间代码 |
|
|
|
|
|
const setV = {} |
|
|
|
|
|
setV['productionLineCode'] = '' |
|
|
|
|
|
setV['workStationCode'] = '' |
|
|
|
|
|
formRef.value.formRef.setValues(setV) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
const onEnter = async (field,value) => { |
|
|
const onEnter = async (field,value) => { |
|
|
if (field == 'productionLineCode') { |
|
|
if (field == 'productionLineCode') { |
|
|
//生产线 |
|
|
//生产线 |
|
@ -168,6 +178,11 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
setV['fromWarehouseCode'] = val[0]['code'] |
|
|
setV['fromWarehouseCode'] = val[0]['code'] |
|
|
setV['toWarehouseCode'] = val[0]['code'] |
|
|
setV['toWarehouseCode'] = val[0]['code'] |
|
|
} |
|
|
} |
|
|
|
|
|
if (formField == 'workshopCode') { |
|
|
|
|
|
//车间代码 |
|
|
|
|
|
setV['productionLineCode'] = '' |
|
|
|
|
|
setV['workStationCode'] = '' |
|
|
|
|
|
} |
|
|
if (formField == 'productionLineCode') { |
|
|
if (formField == 'productionLineCode') { |
|
|
//生产线 |
|
|
//生产线 |
|
|
let res = await WorkstationApi.getWorkstationPage({ |
|
|
let res = await WorkstationApi.getWorkstationPage({ |
|
|