| | |
| | | } |
| | | if (params['selectedNodes'][0].type == 'Node') { |
| | | resetFieldsNode(); |
| | | const wonode = await getEntity({ |
| | | sqlcmd: `WORK_ORDER ='${params['objParams'].value['CODE']}' AND ID = '${res.Data.Items[0].NODE_ID}'`, |
| | | entityName: 'MES_WO_NODE', |
| | | order: '', |
| | | }); |
| | | // const wonode = await getEntity({ |
| | | // sqlcmd: `WORK_ORDER ='${params['objParams'].value['CODE']}' AND ID = '${res.Data.Items[0].NODE_ID}'`, |
| | | // entityName: 'MES_WO_NODE', |
| | | // order: '', |
| | | // }); |
| | | |
| | | if(isNullOrEmpty(res.Data.Items[0].IS_ACTIVE)){ |
| | | res.Data.Items[0].IS_ACTIVE = 'N' |
| | |
| | | OpenSelectItem: (openItemModal: Fn, ...args) => { |
| | | let config = {}; |
| | | const openCrudModal = args[1]; |
| | | const record = args[2]; |
| | | const record = args[2]; //带过来的记录 |
| | | const OrderNo = args[3]; |
| | | switch (args[0]) { |
| | | const WoRecord = args[4]; |
| | | /* args[0]是界面上的slot名字,根据slot名字来写不同的逻辑实现 */ |
| | | switch (args[0]) { |
| | | case 'scanadd': |
| | | config = ruleModalCfg; |
| | | break; |
| | |
| | | config = pkgModalCfg; |
| | | break; |
| | | } |
| | | /* 如果slot是'labeladd',打开增删改模态窗口,可编辑行 */ |
| | | if (args[0] == 'labeladd') { |
| | | openCrudModal(true, { |
| | | isUpdate: true, //是否更新操作 |
| | |
| | | width: '1024px', //弹出框宽度 |
| | | ItemColumns: TemplateBasColumn, //弹出框中表格字段结构 |
| | | schemas: [], //查询条件字段结构 |
| | | others: { WORK_ORDER: OrderNo }, //需要带到弹出窗口中的数据 |
| | | others: { WORK_ORDER: OrderNo}, //需要带到弹出窗口中的数据 |
| | | alertConfig: { |
| | | showAlert: true, |
| | | message: '销售订单备注', |
| | | description: WoRecord.SALES_REMARK, |
| | | }, /* 在弹出窗口最上位置显示提醒信息,显示销售订单备注 */ |
| | | searchInfo: { |
| | | TABLE_NAME: 'BAS_LABEL_VAR_WO', //实体名称 |
| | | LabelId: record.LABEL_CODE, //模板ID |
| | |
| | | span: 12, |
| | | }, |
| | | }, |
| | | { |
| | | field: 'LABEL_NAME', |
| | | component: 'Input', |
| | | label: '模板名称', |
| | | colProps: { |
| | | span: 12, |
| | | }, |
| | | }, |
| | | ], |
| | | ItemColumns: [ |
| | | { |
| | |
| | | function handleTemplate(args, params: Recordable) { |
| | | const openCrudModal = args[0]; |
| | | const OrderNo = args[2]; |
| | | const WoRecord = params['mainRecord']; |
| | | openCrudModal(true, { |
| | | isUpdate: true, //是否更新操作 |
| | | entityName: 'WoRouteBinding', //是哪个页面 |
| | |
| | | ItemColumns: TemplateBasColumn, //弹出框中表格字段结构 |
| | | schemas: [], //查询条件字段结构 |
| | | others: { WORK_ORDER: OrderNo }, //需要带到弹出窗口中的数据 |
| | | alertConfig: { |
| | | showAlert: true, |
| | | message: '销售订单备注', |
| | | description: WoRecord.SALES_REMARK, |
| | | }, /* 在弹出窗口最上位置显示提醒信息,显示销售订单备注 */ |
| | | searchInfo: { |
| | | TABLE_NAME: 'BAS_LABEL_VAR_WO', //实体名称 |
| | | LabelId: params['record'].LABEL_ID, //模板ID |