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