From 0fdfd2fe63697590d755f50ff8e7ae9bdf7f1f7d Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期二, 13 八月 2024 16:15:11 +0800 Subject: [PATCH] 工单绑定工艺更新 --- src/views/tigerprojects/system/lowcode/entityts/BAS_LABEL_VAR.ts | 41 +++++++++++++++++++++++++++++++++-------- 1 files changed, 33 insertions(+), 8 deletions(-) diff --git a/src/views/tigerprojects/system/lowcode/entityts/BAS_LABEL_VAR.ts b/src/views/tigerprojects/system/lowcode/entityts/BAS_LABEL_VAR.ts index 25b7921..7c6f308 100644 --- a/src/views/tigerprojects/system/lowcode/entityts/BAS_LABEL_VAR.ts +++ b/src/views/tigerprojects/system/lowcode/entityts/BAS_LABEL_VAR.ts @@ -4,7 +4,7 @@ * @version: * @Date: 2024-06-19 20:34:27 * @LastEditors: Ben Lin - * @LastEditTime: 2024-07-31 23:07:14 + * @LastEditTime: 2024-08-06 22:41:33 */ import { Tag, Tooltip } from 'ant-design-vue'; @@ -401,12 +401,13 @@ }, { BAS_LABEL_VAR_WO: useDrawer() }, ]; - } /** + }, + /** * @description: 鑾峰彇琛ㄦ牸use鍒楄〃 * @param {string} type * @param {array} args * @return {*} - */, + */ GetUseTables: (data: Ref<{}>, ...args) => { // _data = data; return { @@ -542,7 +543,7 @@ LABEL_CODE: label.LABEL_CODE, LABEL_NAME: label.LABEL_NAME, TEMP_TYPE: label.TEMP_TYPE, - TEMP_PATH: label.TEMP_PATH[0], + TEMP_PATH: label.TEMP_PATH, CUST_CODE: label.CUST_CODE, PROD_CODE: label.PROD_CODE, REMARK: '', @@ -759,7 +760,8 @@ labelField: unref(getLocale) == 'zh_CN' ? 'Desc' : 'Name', valueField: 'Value', onChange: (e, v) => { - if (e == 1) { + if (e == 1 || e == 4) { + const where = e == 1? { TABLE_NAME: 'BAS_LABEL_PV', VAR_TYPE: 0}: { TABLE_NAME: 'BAS_LABEL_PV', VAR_TYPE: 1}; emit('opencust', { data: column.record, name: 'BAS_LABEL_VAR', @@ -793,7 +795,7 @@ ], tableName: 'BAS_LABEL_PV', rowKey: 'VAR_CODE', - searchInfo: { TABLE_NAME: 'BAS_LABEL_PV' }, + searchInfo: where, }, }); } @@ -820,6 +822,10 @@ text = '鑷畾涔夊彉閲�'; color = '#bfbfbf'; break; + case 4: + text = '鏉$爜鐢熸垚'; + color = '#b442df'; + break; } return h(Tooltip, { title: text }, () => h(Tag, { color: color }, () => text)); }, @@ -839,6 +845,25 @@ ifShow: (column) => true, sorter: true, resizable: true, + }, + { + dataIndex: 'BARCODE_RULE', + title: '鏉$爜鐢熸垚瑙勫垯', + ifShow: true, + edit: true, + editRule: true, + sorter: true, + resizable: true, + editComponent: 'ApiSelect', + editComponentProps: (column) => { + return { + api: getEntity, + params: { entityName: 'BAS_CODE_RULE', sqlcmd: ' 1=1 ' }, + resultField: 'Data.Items', + labelField: 'RULE_NAME', + valueField: 'RULE_CODE', + }; + }, }, { dataIndex: 'REMARK', @@ -884,8 +909,8 @@ title: `锛堝彉閲忥級${x.VAR_NAME}榛樿鍊糮, dataIndex: `DEFAULT_VALUE_${x.VAR_NAME}`, width: 280, - edit: true, - editRule: true, + // edit: true, + // editRule: true, resizable: true, ifShow: true, }, -- Gitblit v1.9.3