From a745761147b17a42b4698250a170ef4c0fa0b09b Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期三, 03 七月 2024 21:18:39 +0800 Subject: [PATCH] 产品绑定工艺优化 --- src/views/tigerprojects/system/lowcode/entityts/QMS_INS_ITEM.ts | 96 ++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 84 insertions(+), 12 deletions(-) diff --git a/src/views/tigerprojects/system/lowcode/entityts/QMS_INS_ITEM.ts b/src/views/tigerprojects/system/lowcode/entityts/QMS_INS_ITEM.ts index edf92bf..25c8420 100644 --- a/src/views/tigerprojects/system/lowcode/entityts/QMS_INS_ITEM.ts +++ b/src/views/tigerprojects/system/lowcode/entityts/QMS_INS_ITEM.ts @@ -4,16 +4,13 @@ * @version: * @Date: 2024-06-19 20:34:27 * @LastEditors: Ben Lin - * @LastEditTime: 2024-07-02 19:43:08 + * @LastEditTime: 2024-07-03 19:00:59 */ import { Ref, h, unref } from 'vue'; import { DeleteEntity, GetEnum, getEntity } from '/@/api/tigerapi/system'; import { ActionItem, BasicColumn, FormSchema, useTable } from '/@/components/Table'; import { isNullOrEmpty, isNullOrUnDef } from '/@/utils/is'; -import { buildUUID } from '/@/utils/uuid'; -import { useUserStore } from '/@/store/modules/user'; -import { formatToDateTime } from '/@/utils/dateUtil'; import { Tag } from 'ant-design-vue'; import { useLocale } from '/@/locales/useLocale'; import { useDrawer } from '/@/components/Drawer'; @@ -40,9 +37,19 @@ if (item['ID'] == d.ID) return { ...item, + INS_CODE: d.INS_CODE, + INS_NAME: d.INS_NAME, STD_CODE: d.STD_CODE, - STD_NAME: d.STD_NAME, - STD_TYPE: d.STD_TYPE, + CTGY_CODE: d.CTGY_CODE, + IS_NECESSARY: d.IS_NECESSARY, + IS_JUDGE: d.IS_JUDGE, + INS_TOOL: d.INS_TOOL, + QNTV_UNIT: d.QNTV_UNIT, + QNTV_TIMES: d.QNTV_TIMES, + QNTV_DEVIATION: d.QNTV_DEVIATION, + QNTV_UPPER: d.QNTV_UPPER, + QNTV_LOWER: d.QNTV_LOWER, + QLTV_LIST: d.QLTV_LIST, REMARK: d.REMARK, }; return item; @@ -215,8 +222,14 @@ } return data; }, + /** + * @description: 涓�浜涘叾浠栫殑瀛楁鍊硷紝涓�鑸槸澧炲垹鏀规槸甯﹀叆鐨勫叧閿瓧娈靛�� + * @param {string} val + * @param {string} id + * @return {*} + */ KeyFieldValues: (val: string, id: string) => { - return { TECH_STD: val }; + return { STD_CODE: val }; }, /** * @description: 鑾峰彇鏍囬淇℃伅 @@ -241,14 +254,15 @@ * @return {*} */ function Del(args: Fn[], params: {}) { + const name = params['name']; if (!isNullOrEmpty(params['data'])) { - var _data = params['data'].value.filter((item) => item['ID'] != params['record']['ID']); - params['data'].value = _data; + var _data = params['data'].value[name].filter((item) => item['ID'] != params['record']['ID']); + params['data'].value[name] = _data; args[6]({ dataSource: [], }); args[6]({ - dataSource: params['data'], + dataSource: params['data'].value[name], }); args[1](); } else { @@ -296,8 +310,12 @@ }, }, { - title: '妫�楠屾爣鍑嗙紪鐮�', + title: '鎶�鏈姹�', dataIndex: 'TECH_STD', + }, + { + title: '妫�楠屾爣鍑嗙紪鐮�', + dataIndex: 'STD_CODE', }, { title: '鏄惁蹇呮', @@ -419,7 +437,7 @@ }, { label: '妫�楠屾爣鍑�', - field: 'TECH_STD', + field: 'STD_CODE', component: 'ApiSelect', colProps: { span: 24, @@ -452,6 +470,60 @@ }, }, { + label: '鏄惁蹇呮', + field: 'IS_NECESSARY', + component: 'Select', + required: true, + colProps: { + span: 24, + }, + componentProps: { + options: [ + { + label: '鏄�', + value: 'Y', + key: 'Y', + }, + { + label: '鍚�', + value: 'N', + key: 'N', + }, + ], + }, + }, + { + label: '鏄惁鍒ゅ畾缁撴灉', + field: 'IS_JUDGE', + component: 'Select', + required: true, + colProps: { + span: 24, + }, + componentProps: { + options: [ + { + label: '鏄�', + value: 'Y', + key: 'Y', + }, + { + label: '鍚�', + value: 'N', + key: 'N', + }, + ], + }, + }, + { + label: '鎶�鏈姹�', + field: 'TECH_STD', + component: 'Input', + colProps: { + span: 24, + }, + }, + { label: '澶囨敞', field: 'REMARK', component: 'Input', -- Gitblit v1.9.3