| | |
| | | |
| | | export default defineComponent({ |
| | | setup() { |
| | | // è¡¨æ ¼åºç¡é
ç½® - æ°å¢é»è®¤ååºãç»ä¸è§è |
| | | const table = ref({ |
| | | key: "id", |
| | | footer: "Foots", |
| | |
| | | name: "processInfoDetail", |
| | | url: "/processInfoDetail/", |
| | | sortName: "createDate", |
| | | sortOrder: "desc", // æ°å¢ï¼å建æ¶é´é»è®¤ååºï¼å主页é¢ä¿æä¸è´ |
| | | }); |
| | | |
| | | // ç¼è¾è¡¨ååæ®µ - 忥䏻页é¢ï¼æ°å¢pressPressureï¼åè£
ååï¼ï¼å¹é
å端å®ä½ |
| | | const editFormFields = ref({ |
| | | id: "", |
| | | palletCode: "", |
| | | productCode: "", |
| | | productName: "", |
| | | productSn: "", // æµæ°´å· |
| | | pressTightenNg: "", // åè£
æ§ç´§_æ§ç´§NG |
| | | pressTightenOk: "", // åè£
æ§ç´§_æ§ç´§OK |
| | | pressTightenUnfinished: "", // åè£
æ§ç´§_æ¬æ¬¡å å·¥æªå®æ |
| | | checkUnfinished: "", // æ£æµ_æ¬æ¬¡æ£æµæªå®æ |
| | | pressHeight: "", // åè£
ä½ä¸åé«åº¦ |
| | | screwTorque: "", // åè£
使§ç´§æå |
| | | screwAngle: "", // åè£
使§ç´§è§åº¦ |
| | | pressPressure: "", // ãæ°å¢ãåè£
ä½ä¸åååï¼å¹é
å端å®ä½ï¼ |
| | | height1: "", // æ§ç´§ä½æ£æµé«åº¦1 |
| | | height2: "", // æ§ç´§ä½æ£æµé«åº¦2 |
| | | height3: "", // æ§ç´§ä½æ£æµé«åº¦3 |
| | | }); |
| | | |
| | | // ç¼è¾è¡¨åé
ç½® - åæ¶åä½åç±»ãååæå¸ï¼æ°å¢åè£
åå项ï¼è¡¥å
¨é»è®¤å¼/æ ¡éªï¼ç»ä¸å®½åº¦ |
| | | const editFormOptions = ref([ |
| | | // 第ä¸è¡ï¼åºç¡æ è¯ï¼å®½åº¦åè°ï¼å主页é¢å¸å±ä¸è´ |
| | | [ |
| | | { |
| | | title: "å·¥è£
æ¿ç¼å·", |
| | | field: "palletCode", |
| | | type: "input", |
| | | width: 200, |
| | | width: 160, |
| | | require: true, |
| | | placeholder: "请è¾å
¥å·¥è£
æ¿ç¼å·", |
| | | }, |
| | | { |
| | | title: "æåç¼å·", |
| | | field: "productCode", |
| | | type: "input", |
| | | width: 200, |
| | | width: 160, |
| | | require: true, |
| | | placeholder: "请è¾å
¥æåç¼å·", |
| | | }, |
| | | { |
| | | title: "æååç§°", |
| | | field: "productName", |
| | | type: "input", |
| | | width: 200, |
| | | width: 160, |
| | | require: true, |
| | | placeholder: "请è¾å
¥æååç§°", |
| | | }, |
| | | { |
| | | title: "æµæ°´å·", |
| | | field: "productSn", |
| | | type: "input", |
| | | width: 180, |
| | | require: false, |
| | | placeholder: "请è¾å
¥äº§åæµæ°´å·", |
| | | }, |
| | | ], |
| | | // 第äºè¡ï¼4ä¸ªç¶æå+主é®ï¼è¡¥å
¨é»è®¤å¼0ï¼å¦ï¼ï¼ç»ä¸å®½åº¦/对é½ï¼éèä¸»é® |
| | | [ |
| | | { |
| | | title: "æ§ç´§NG", |
| | | field: "pressTightenNg", |
| | | type: "select", |
| | | width: 150, |
| | | align: "center", |
| | | defaultValue: "0", // æ°å¢é»è®¤å¼ï¼å主页é¢ä¸è´ |
| | | data: [ |
| | | { key: "0", value: "å¦" }, |
| | | { key: "1", value: "æ¯" }, |
| | | ], |
| | | }, |
| | | { |
| | | title: "æ§ç´§OK", |
| | | field: "pressTightenOk", |
| | | type: "select", |
| | | width: 150, |
| | | align: "center", |
| | | defaultValue: "0", // æ°å¢é»è®¤å¼ |
| | | data: [ |
| | | { key: "0", value: "å¦" }, |
| | | { key: "1", value: "æ¯" }, |
| | | ], |
| | | }, |
| | | { |
| | | title: "æ§ç´§æªå®æ", |
| | | field: "pressTightenUnfinished", |
| | | type: "select", |
| | | width: 170, |
| | | align: "center", |
| | | defaultValue: "0", |
| | | data: [ |
| | | { key: "0", value: "å¦" }, |
| | | { key: "1", value: "æ¯" }, |
| | | ], |
| | | }, |
| | | { |
| | | title: "æ£æµæªå®æ", |
| | | field: "checkUnfinished", |
| | | type: "select", |
| | | width: 150, |
| | | align: "center", |
| | | defaultValue: "0", // æ°å¢é»è®¤å¼ï¼ç»ä¸è§è |
| | | data: [ |
| | | { key: "0", value: "å¦" }, |
| | | { key: "1", value: "æ¯" }, |
| | | ], |
| | | }, |
| | | { |
| | | title: "主é®ID", |
| | | field: "id", |
| | |
| | | readonly: true, |
| | | }, |
| | | ], |
| | | [ |
| | | { |
| | | title: "åè£
é«åº¦", |
| | | field: "pressHeight", |
| | | type: "input", |
| | | inputType: "number", |
| | | width: 160, |
| | | require: false, |
| | | attrs: { step: 0.01, min: 0 }, |
| | | placeholder: "ä¿ç2ä½å°æ°", |
| | | }, |
| | | { |
| | | title: "åè£
åå", |
| | | field: "pressPressure", // æ°å¢åè£
åå项 |
| | | type: "input", |
| | | inputType: "number", |
| | | width: 160, |
| | | require: false, |
| | | attrs: { step: 0.01, min: 0 }, |
| | | placeholder: "ä¿ç2ä½å°æ°", |
| | | }, |
| | | { |
| | | title: "åè£
æå", |
| | | field: "screwTorque", |
| | | type: "input", |
| | | inputType: "number", |
| | | width: 160, |
| | | require: false, |
| | | attrs: { step: 0.01, min: 0 }, |
| | | placeholder: "ä¿ç2ä½å°æ°", |
| | | }, |
| | | { |
| | | title: "æ§ç´§è§åº¦", |
| | | field: "screwAngle", |
| | | type: "input", |
| | | inputType: "number", |
| | | width: 160, |
| | | require: false, |
| | | attrs: { step: 0.01, min: 0 }, |
| | | placeholder: "ä¿ç2ä½å°æ°", |
| | | }, |
| | | ], |
| | | // 第äºè¡ï¼æ§ç´§ä½æ£æµé«åº¦ï¼å°æ°æ ¡éªï¼å±
䏿å¸ï¼ç»ä¸å®½åº¦ |
| | | [ |
| | | { |
| | | title: "æ£æµé«åº¦1", |
| | | field: "height1", |
| | | type: "input", |
| | | inputType: "number", |
| | | width: 200, |
| | | require: false, |
| | | attrs: { step: 0.01, min: 0 }, |
| | | placeholder: "ä¿ç2ä½å°æ°", |
| | | }, |
| | | { |
| | | title: "æ£æµé«åº¦2", |
| | | field: "height2", |
| | | type: "input", |
| | | inputType: "number", |
| | | width: 200, |
| | | require: false, |
| | | attrs: { step: 0.01, min: 0 }, |
| | | placeholder: "ä¿ç2ä½å°æ°", |
| | | }, |
| | | { |
| | | title: "æ£æµé«åº¦3", |
| | | field: "height3", |
| | | type: "input", |
| | | inputType: "number", |
| | | width: 200, |
| | | require: false, |
| | | attrs: { step: 0.01, min: 0 }, |
| | | placeholder: "ä¿ç2ä½å°æ°", |
| | | }, |
| | | ], |
| | | ]); |
| | | |
| | | // æç´¢è¡¨ååæ®µ - ä¿æå主页é¢ãåæä»£ç ä¸è´ï¼æ ¸å¿æç´¢é¡¹æ è°æ´ |
| | | const searchFormFields = ref({ |
| | | palletCode: "", |
| | | productCode: "", |
| | | productName: "", |
| | | productSn: "", // æµæ°´å·æç´¢ |
| | | creater: "", |
| | | createDate: "", |
| | | }); |
| | | |
| | | // æç´¢è¡¨åé
ç½® - ä¼å宽度å¹é
å¸å±ï¼å主页é¢å®å
¨ä¸è´ |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { title: "å·¥è£
æ¿ç¼å·", field: "palletCode", type: "like" }, |
| | | { title: "æåç¼å·", field: "productCode", type: "like" }, |
| | | { title: "æååç§°", field: "productName", type: "like" }, |
| | | { title: "å·¥è£
æ¿ç¼å·", field: "palletCode", type: "like", width: 180 }, |
| | | { title: "æåç¼å·", field: "productCode", type: "like", width: 180 }, |
| | | { title: "æååç§°", field: "productName", type: "like", width: 180 }, |
| | | { title: "æµæ°´å·", field: "productSn", type: "like", width: 200 }, |
| | | ], |
| | | [ |
| | | { title: "å建人", field: "creater", type: "like" }, |
| | | { title: "å建æ¶é´", field: "createDate", type: "datetime" }, |
| | | { title: "å建人", field: "creater", type: "like", width: 200 }, |
| | | { title: "å建æ¶é´", field: "createDate", type: "datetime", width: 380 }, |
| | | ], |
| | | ]); |
| | | |
| | | // è¡¨æ ¼åé
ç½® - ãæ°å¢pressPressureåãï¼ç»ä¸åå/宽度/ç±»åï¼ä¿®å¤é¦åæ¯å¤§åé®é¢ï¼ä¼åå¯¹é½ |
| | | const columns = ref([ |
| | | { |
| | | field: "id", |
| | | title: "åºå·", |
| | | type: "int", |
| | | width: 90, |
| | | width: 80, |
| | | hidden: true, |
| | | readonly: true, |
| | | require: true, |
| | | align: "left", |
| | | align: "center", |
| | | }, |
| | | { |
| | | field: "palletCode", |
| | | title: "å·¥è£
æ¿ç¼å·", |
| | | type: "string", |
| | | width: 200, |
| | | width: 140, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "productCode", |
| | | title: "æåç¼å·", |
| | | type: "string", |
| | | width: 200, |
| | | width: 140, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "productName", |
| | | title: "æååç§°", |
| | | type: "string", |
| | | width: 200, |
| | | width: 150, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "productSn", |
| | | title: "æµæ°´å·", |
| | | type: "string", |
| | | width: 180, |
| | | align: "left", |
| | | overflow: "ellipsis", |
| | | }, |
| | | // 4ä¸ªç¶æå - ä¿®å¤åæPressTightenNgé¦åæ¯å¤§åé®é¢ï¼ç»ä¸è§è |
| | | { |
| | | field: "pressTightenNg", |
| | | title: "æ§ç´§NG", |
| | | type: "select", |
| | | width: 120, |
| | | align: "center", |
| | | bind: { |
| | | key: "value", |
| | | data: [ |
| | | { key: "0", value: "å¦" }, |
| | | { key: "1", value: "æ¯" }, |
| | | ], |
| | | }, |
| | | }, |
| | | { |
| | | field: "pressTightenOk", |
| | | title: "æ§ç´§OK", |
| | | type: "select", |
| | | width: 120, |
| | | align: "center", |
| | | bind: { |
| | | key: "value", |
| | | data: [ |
| | | { key: "0", value: "å¦" }, |
| | | { key: "1", value: "æ¯" }, |
| | | ], |
| | | }, |
| | | }, |
| | | { |
| | | field: "pressTightenUnfinished", |
| | | title: "æ§ç´§æªå®æ", |
| | | type: "select", |
| | | width: 140, |
| | | align: "center", |
| | | bind: { |
| | | key: "value", |
| | | data: [ |
| | | { key: "0", value: "å¦" }, |
| | | { key: "1", value: "æ¯" }, |
| | | ], |
| | | }, |
| | | }, |
| | | { |
| | | field: "checkUnfinished", |
| | | title: "æ£æµæªå®æ", |
| | | type: "select", |
| | | width: 120, |
| | | align: "center", |
| | | bind: { |
| | | key: "value", |
| | | data: [ |
| | | { key: "0", value: "å¦" }, |
| | | { key: "1", value: "æ¯" }, |
| | | ], |
| | | }, |
| | | }, |
| | | { |
| | | field: "pressHeight", |
| | | title: "åè£
é«åº¦", |
| | | type: "decimal", |
| | | width: 100, |
| | | align: "center", |
| | | }, |
| | | { |
| | | field: "pressPressure", // æ°å¢åè£
ååå |
| | | title: "åè£
åå", |
| | | type: "decimal", |
| | | width: 100, |
| | | align: "center", |
| | | columnDescription: "åè£
ä½ä¸ååå", |
| | | }, |
| | | { |
| | | field: "screwTorque", |
| | | title: "åè£
æå", |
| | | type: "decimal", |
| | | width: 100, |
| | | align: "center", |
| | | }, |
| | | { |
| | | field: "screwAngle", |
| | | title: "æ§ç´§è§åº¦", |
| | | type: "decimal", |
| | | width: 100, |
| | | align: "center", |
| | | }, |
| | | // æ§ç´§ä½æ£æµé«åº¦ |
| | | { |
| | | field: "height1", |
| | | title: "æ£æµé«åº¦1", |
| | | type: "decimal", |
| | | width: 100, |
| | | align: "center", |
| | | }, |
| | | { |
| | | field: "height2", |
| | | title: "æ£æµé«åº¦2", |
| | | type: "decimal", |
| | | width: 100, |
| | | align: "center", |
| | | }, |
| | | { |
| | | field: "height3", |
| | | title: "æ£æµé«åº¦3", |
| | | type: "decimal", |
| | | width: 100, |
| | | align: "center", |
| | | }, |
| | | // å
Œ
±å段 - å建/ä¿®æ¹ä¿¡æ¯ï¼å主页é¢ä¸è´ |
| | | { |
| | | field: "creater", |
| | | title: "å建人", |
| | | type: "string", |
| | | width: 90, |
| | | align: "left", |
| | | width: 80, |
| | | align: "center", |
| | | }, |
| | | { |
| | | field: "createDate", |
| | | title: "å建æ¶é´", |
| | | type: "datetime", |
| | | width: 150, |
| | | align: "left", |
| | | width: 160, |
| | | align: "center", |
| | | }, |
| | | { |
| | | field: "modifier", |
| | | title: "ä¿®æ¹äºº", |
| | | type: "string", |
| | | width: 100, |
| | | align: "left", |
| | | width: 80, |
| | | align: "center", |
| | | }, |
| | | { |
| | | field: "modifyDate", |
| | | title: "ä¿®æ¹æ¶é´", |
| | | type: "datetime", |
| | | width: 160, |
| | | align: "left", |
| | | align: "center", |
| | | }, |
| | | ]); |
| | | |
| | | // æ äºçº§æç»ï¼ä¿æç©ºé
ç½®ä¸å |
| | | const detail = ref({ |
| | | cnName: "", |
| | | table: "", |