From a4ee6ba0ca28833cbbb8cf0e675561b10fa4c1af Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期四, 12 九月 2024 01:23:40 +0800 Subject: [PATCH] 规则维护更新 --- src/views/tigerprojects/system/lowcode/entityts/BIZ_MES_WO.ts | 108 +++++++++++++++++++++--------------------------------- 1 files changed, 42 insertions(+), 66 deletions(-) diff --git a/src/views/tigerprojects/system/lowcode/entityts/BIZ_MES_WO.ts b/src/views/tigerprojects/system/lowcode/entityts/BIZ_MES_WO.ts index c3edae7..a3c71f8 100644 --- a/src/views/tigerprojects/system/lowcode/entityts/BIZ_MES_WO.ts +++ b/src/views/tigerprojects/system/lowcode/entityts/BIZ_MES_WO.ts @@ -4,7 +4,7 @@ * @version: * @Date: 2024-06-19 20:34:27 * @LastEditors: Ben Lin - * @LastEditTime: 2024-07-22 19:37:56 + * @LastEditTime: 2024-09-11 22:41:44 */ import { Ref, h, ref, render, unref } from 'vue'; @@ -43,7 +43,7 @@ * @description: 鑾峰彇鏂板鎸夐挳鐨勮涓� * @return {*} */ - CreateAction: (fnName: string) => { + CreateAction: (type: string) => { return { action: 'drawer', //drawer(鎵撳紑宸︿晶鎶藉眽妗�) | go(璺宠浆鍒版柊鐨勯〉闈�) }; @@ -300,8 +300,7 @@ try { const form = param.values['forminfo']; const wo = param.values['mValues']; - wo.ROUTE_CODE = form.ROUTE_CODE; - wo.STATUS = 2; + wo.STATUS = wo.STATUS == 3?wo.STATUS: 2; let input: SaveWoBatchInput = { Wo: wo, WoBatch: { @@ -320,7 +319,7 @@ CUST_CODE: wo.CUST_CODE, FACTORY: wo.FACTORY, WS_CODE: wo.WS_CODE, - ACT_LINE: form.PLAN_LINE, + ACT_LINE: form.ACT_LINE, STD_WORKER_QTY: wo.STD_WORKER_QTY, ACT_WORKER_QTY: wo.ACT_WORKER_QTY, RELEASE_TIME: new Date(), @@ -369,6 +368,7 @@ keyFieldValues: { ORDER_NO: params['record']['ORDER_NO'] }, colSlots: params['colSlots'].value, SessionName: 'BIZ_MES_WO_BATCH_update', + ifSave: false, }; // 灏嗗璞¤浆鎹负JSON瀛楃涓插苟淇濆瓨鍒皊essionStorage sessionStorage.removeItem(`${id.SessionName}_params`); @@ -383,34 +383,6 @@ * @return {*} */ function handleConfig(args, params: Recordable) { - // const openCustModal = args[7]; - // // rotSchema.value = getFormSchema('rotinfo'); - // params['routeData'].value = { - // nodes: [], - // edges: [], - // }; - // initRoute(params['currlf'], params['record'].ROUTE_CODE, params['routeData'], params['currlf']); - // getEntity({ - // sqlcmd: `ROT_CODE = '${params['record'].ROUTE_CODE}'`, - // entityName: 'MES_ROUTE', - // order: '', - // }).then((rot) => { - // params['selectVals'].value['ROUTE_CODE'] = params['record'].ROUTE_CODE; - // params['selectVals'].value['ROT_ID'] = - // !isNullOrEmpty(rot.Data) && !isNullOrEmpty(rot.Data.Items) ? rot.Data.Items[0].ID : ''; - // openCustModal(true, { - // isUpdate: true, - // ctype: 'BIZ_MES_WO_Config', - // title: '宸ヨ壓閰嶇疆', - // width: '1200px', - // formEl: params['useFormData'].value, //濡傛灉鏄涓〃鍗曪紝澧炲姞澶氫釜鎻掓Ы - // formElName: ['woinfo', 'prodinfo', 'rotinfo'], //琛ㄥ崟鎻掓Ы鍚嶇О锛屾敮鎸佸涓〃鍗� - // RowKey: '', - // fnName: 'SaveCofig', //淇濆瓨鏂规硶鍚� - // others: params['routeData'].value, - // values: { ...params['record'], ...params['selectVals'].value }, //琛ㄥ崟璁板綍 - // }); - // }); const go = args[5]; const id = { ID: params['record'].ID, @@ -418,11 +390,14 @@ CODE: params['record'].ORDER_NO, Title: `宸ュ崟[${params['record'].ORDER_NO}]宸ヨ壓缁戝畾`, colSlots: params['colSlots'].value, /* 琛ㄦ牸鍐呯殑鏌ヨ琛ㄥ崟瀛楁鐨勬彃妲藉垪琛紝涓�鑸敤浜庡脊鍑洪�夋嫨妗嗘寜閽� */ - crudColSlots: [] /* 澧炲垹鏀硅〃鍗曞瓧娈电殑鎻掓Ы鍒楄〃锛屼竴鑸敤浜庡脊鍑洪�夋嫨妗嗘寜閽� */, + crudColSlots: {BAS_PKG_DTL:['BAS_LABEL_TEMP1add'], ItemCode: ['BAS_CODE_RULE1add']} /* 澧炲垹鏀硅〃鍗曞瓧娈电殑鎻掓Ы鍒楄〃锛屼竴鑸敤浜庡脊鍑洪�夋嫨妗嗘寜閽� */, + OtherTableName: ['BAS_PKG_DTL', 'ItemCode'], /* 鑷畾涔夋樉绀哄垪琛ㄧ殑琛ㄥ悕锛岃窡涓婇潰澧炲垹鏀圭殑琛ㄥ悕涓�鑷达紝鏈夊涓氨鏀惧垪琛ㄤ腑 */ dense: true, pageTitle: `宸ュ崟宸ヨ壓缁戝畾`, - pageContent: `杩欓噷鏄鐞嗗伐鍗曠殑宸ヨ壓缁戝畾锛屼竴涓伐鍗曞彲浠ョ粦瀹氬涓伐鑹鸿矾绾縛, + pageContent: `杩欓噷鏄鐞嗗伐鍗曠殑宸ヨ壓缁戝畾锛屼竴涓伐鍗曞彲浠ョ粦瀹氫竴涓伐鑹鸿矾绾匡紝骞跺彲浠ヤ繚瀛樹负瀹㈡埛涓撶敤鐨勫伐鑹鸿矾绾縛, SessionName: 'WoRouteBinding_update', + ifSave: false, + rotType: 'Wo' }; // 灏嗗璞¤浆鎹负JSON瀛楃涓插苟淇濆瓨鍒皊essionStorage sessionStorage.removeItem(`${id.SessionName}_params`); @@ -451,6 +426,7 @@ }); } + /* 涓嬪彂鐣岄潰涓殑琛ㄥ崟鍒楄〃 */ const woformSchema: FormSchema[] = [ { field: 'PLAN_QTY', @@ -474,8 +450,8 @@ }, }, { - label: '璁″垝浜х嚎', - field: 'PLAN_LINE', + label: '瀹為檯浜х嚎', + field: 'ACT_LINE', component: 'ApiSelect', required: true, colProps: { @@ -489,35 +465,35 @@ valueField: 'LINE_CODE', }, }, - { - label: '宸ヨ壓璺嚎', - field: 'ROUTE_CODE', - component: 'Input', - required: true, - colProps: { - span: 22, - }, - }, - { - field: 'add', - component: 'Input', - label: '1', - colSlot: 'add', - defaultValue: 'MES_ROUTE', - colProps: { - span: 1, - }, - }, - { - field: 'set', - component: 'Input', - label: '1', - colSlot: 'set', - defaultValue: 'MES_ROUTE', - colProps: { - span: 1, - }, - }, + // { + // label: '宸ヨ壓璺嚎', + // field: 'ROUTE_CODE', + // component: 'Input', + // required: true, + // colProps: { + // span: 22, + // }, + // }, + // { + // field: 'add', + // component: 'Input', + // label: '1', + // colSlot: 'add', + // defaultValue: 'MES_ROUTE', + // colProps: { + // span: 1, + // }, + // }, + // { + // field: 'set', + // component: 'Input', + // label: '1', + // colSlot: 'set', + // defaultValue: 'MES_ROUTE', + // colProps: { + // span: 1, + // }, + // }, ]; const woCfgformSchema: FormSchema[] = [ -- Gitblit v1.9.3