| | |
| | | footer: "Foots", |
| | | cnName: "é
æ¹ä¿¡æ¯", |
| | | name: "formula", |
| | | url: "/formula/", |
| | | sortName: "createDate", |
| | | url: "/formula/", |
| | | sortName: "createDate", |
| | | }); |
| | | |
| | | const editFormFields = ref({ |
| | | id: "", |
| | | productCode: "", |
| | | productCode: "", |
| | | productName: "", |
| | | productLength: 0, |
| | | productWidth: 0, |
| | |
| | | yDirectionHeight2: 0, |
| | | xDirectionDistance3: 0, |
| | | yDirectionHeight3: 0, |
| | | }); |
| | | |
| | | }); |
| | | |
| | | const editFormOptions = ref([ |
| | | [ |
| | | { |
| | |
| | | field: "productCode", |
| | | type: "input", |
| | | width: 200, |
| | | require: true |
| | | require: true, |
| | | }, |
| | | { |
| | | title: "æååç§°", |
| | | field: "productName", |
| | | type: "input", |
| | | width: 200, |
| | | require: true |
| | | }, |
| | | { |
| | | title: "åè£
ä½äº§åé¿åº¦", |
| | | field: "productLength", |
| | | type: "number", |
| | | width: 200, |
| | | require: false |
| | | } |
| | | ], |
| | | [ |
| | | { |
| | | title: "åè£
ä½äº§å宽度", |
| | | field: "productWidth", |
| | | type: "number", |
| | | width: 200, |
| | | require: false |
| | | }, |
| | | { |
| | | title: "åè£
ä½äº§åé«åº¦", |
| | | field: "productHeight", |
| | | type: "number", |
| | | width: 200, |
| | | require: false |
| | | }, |
| | | { |
| | | title: "åè£
使§ç´§ä¸éé«åº¦", |
| | | field: "screwDownsetDistance", |
| | | type: "number", |
| | | width: 200, |
| | | require: false |
| | | } |
| | | ], |
| | | [ |
| | | { |
| | | title: "åè£
使§ç´§æå", |
| | | field: "screwTorqueOutput", |
| | | type: "number", |
| | | width: 200, |
| | | require: false |
| | | }, |
| | | { |
| | | title: "åè£
ä½èªå¨æ§ç´§æå¼", |
| | | field: "dintAutoScrewOn", |
| | | type: "number", |
| | | width: 200, |
| | | require: false |
| | | }, |
| | | { |
| | | title: "æ£æµä½Xåç§»è·ç¦»1", |
| | | field: "xDirectionDistance1", |
| | | type: "number", |
| | | width: 200, |
| | | require: false |
| | | } |
| | | ], |
| | | [ |
| | | { |
| | | title: "æ£æµä½Zé«åº¦1", |
| | | field: "yDirectionHeight1", |
| | | type: "number", |
| | | width: 200, |
| | | require: false |
| | | }, |
| | | { |
| | | title: "æ£æµä½Xåç§»è·ç¦»2", |
| | | field: "xDirectionDistance2", |
| | | type: "number", |
| | | width: 200, |
| | | require: false |
| | | }, |
| | | { |
| | | title: "æ£æµä½Zé«åº¦2", |
| | | field: "yDirectionHeight2", |
| | | type: "number", |
| | | width: 200, |
| | | require: false |
| | | } |
| | | ], |
| | | [ |
| | | { |
| | | title: "æ£æµä½Xåç§»è·ç¦»3", |
| | | field: "xDirectionDistance3", |
| | | type: "number", |
| | | width: 200, |
| | | require: false |
| | | }, |
| | | { |
| | | title: "æ£æµä½Zé«åº¦3", |
| | | field: "yDirectionHeight3", |
| | | type: "number", |
| | | width: 200, |
| | | require: false |
| | | require: true, |
| | | }, |
| | | { |
| | | title: "主é®ID", |
| | |
| | | type: "input", |
| | | width: 100, |
| | | hidden: true, |
| | | readonly: true |
| | | } |
| | | ] |
| | | readonly: true, |
| | | }, |
| | | ], |
| | | ]); |
| | | |
| | | const searchFormFields = ref({ |
| | |
| | | field: "productCode", |
| | | title: "æåç¼å·", |
| | | type: "string", |
| | | link: true, |
| | | width: 200, |
| | | align: "left", |
| | | }, |
| | |
| | | field: "productName", |
| | | title: "æååç§°", |
| | | type: "string", |
| | | width: 200, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "productLength", |
| | | title: "åè£
ä½äº§åé¿åº¦", |
| | | type: "float", |
| | | width: 200, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "productWidth", |
| | | title: "åè£
ä½äº§å宽度", |
| | | type: "float", |
| | | width: 200, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "productHeight", |
| | | title: "åè£
ä½äº§åé«åº¦", |
| | | type: "float", |
| | | width: 200, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "screwDownsetDistance", |
| | | title: "åè£
使§ç´§ä¸éé«åº¦", |
| | | type: "float", |
| | | width: 200, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "screwTorqueOutput", |
| | | title: "åè£
使§ç´§æå", |
| | | type: "float", |
| | | width: 200, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "dintAutoScrewOn", |
| | | title: "åè£
ä½èªå¨æ§ç´§æå¼", |
| | | type: "int", |
| | | width: 200, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "xDirectionDistance1", |
| | | title: "æ£æµä½Xåç§»è·ç¦»1", |
| | | type: "float", |
| | | width: 200, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "yDirectionHeight1", |
| | | title: "æ£æµä½Zé«åº¦1", |
| | | type: "float", |
| | | width: 200, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "xDirectionDistance2", |
| | | title: "æ£æµä½Xåç§»è·ç¦»2", |
| | | type: "float", |
| | | width: 200, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "yDirectionHeight2", |
| | | title: "æ£æµä½Zé«åº¦2", |
| | | type: "float", |
| | | width: 200, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "xDirectionDistance3", |
| | | title: "æ£æµä½Xåç§»è·ç¦»3", |
| | | type: "float", |
| | | width: 200, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "yDirectionHeight3", |
| | | title: "æ£æµä½Zé«åº¦3", |
| | | type: "float", |
| | | width: 200, |
| | | align: "left", |
| | | }, |
| | |
| | | align: "left", |
| | | }, |
| | | ]); |
| | | |
| | | const detail = ref({ |
| | | cnName: "", |
| | | table: "", |
| | | columns: [], |
| | | sortName: "", |
| | | key: "", |
| | | cnName: "é¶ä»¶è¯¦ç»ä¿¡æ¯", |
| | | table: "componentDetail", |
| | | columns: [ |
| | | { |
| | | field: "formulaId", |
| | | title: "ID", |
| | | type: "int", |
| | | width: 90, |
| | | hidden: true, |
| | | require: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "componentCode", |
| | | title: "é¶ä»¶ç¼å·", |
| | | type: "string", |
| | | width: 120, |
| | | require: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "componentName", |
| | | title: "é¶ä»¶åç§°", |
| | | type: "string", |
| | | width: 150, |
| | | require: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | title: "æ¯å¦æ«ç ", |
| | | field: "isScanned", |
| | | type: "select", |
| | | bind: { |
| | | key: "value", |
| | | data: [ |
| | | { key: "0", value: "å¦" }, |
| | | { key: "1", value: "æ¯" }, |
| | | ], |
| | | }, |
| | | }, |
| | | ], |
| | | sortName: "createDate", |
| | | key: "id", |
| | | }); |
| | | |
| | | return { |
| | |
| | | }; |
| | | }, |
| | | }); |
| | | </script> |
| | | </script> |