| | |
| | | id: '', |
| | | name: '', |
| | | productSn: '', |
| | | code: '' |
| | | code: '', |
| | | companyId: null |
| | | }, |
| | | dataList: [], |
| | | active: null |
| | | }) |
| | | |
| | | |
| | | const openDialog = async (type, value) => { |
| | | const openDialog = async (type, value,companyId) => { |
| | | |
| | | title.value = type; |
| | | if(type === 'code'){ |
| | | state.form.code = value |
| | |
| | | |
| | | state.form = JSON.parse(JSON.stringify(value)) |
| | | } |
| | | |
| | | state.form.companyId = companyId |
| | | await getAllFlow() |
| | | } |
| | | |
| | |
| | | let param = {} |
| | | if(title.value == 'pro'){ |
| | | param = { |
| | | productId: state.form.id |
| | | productId: state.form.id, |
| | | companyId: state.form.companyId |
| | | } |
| | | }else { |
| | | param = { |
| | | productId: state.form.productId |
| | | productId: state.form.productId, |
| | | companyId: state.form.companyId |
| | | } |
| | | } |
| | | const res = await getAllProFlow(param) |
| | |
| | | let param = {} |
| | | if(title.value == 'raw'){ |
| | | param = { |
| | | hazmatId: state.form.id |
| | | hazmatId: state.form.id, |
| | | companyId: state.form.companyId |
| | | } |
| | | }else { |
| | | param = { |
| | | hazmatId: state.form.hazmatId |
| | | hazmatId: state.form.hazmatId, |
| | | companyId: state.form.companyId |
| | | } |
| | | } |
| | | const res = await getAllRawFlow(param) |
| | |
| | | } |
| | | }else if(title.value == 'code'){ |
| | | const param = { |
| | | code: state.form.code |
| | | code: state.form.code, |
| | | companyId: state.form.companyId |
| | | } |
| | | const res = await getFlowByCode(param) |
| | | if(res.code == 200){ |