| | |
| | | sortName: "createDate", |
| | | }); |
| | | |
| | | // ç¼è¾è¡¨ååæ®µ - æ°å¢pressFastenTorqueï¼åè£
ä½ç´§åºæç©ï¼ |
| | | const editFormFields = ref({ |
| | | id: "", |
| | | productCode: "", |
| | | productName: "", |
| | | productLength: 0, |
| | | productWidth: 0, |
| | | productHeight: 0, |
| | | screwDownsetDistance: 0, |
| | | screwTorqueOutput: 0, |
| | | dintAutoScrewOn: 0, |
| | | xDirectionDistance1: 0, |
| | | yDirectionHeight1: 0, |
| | | xDirectionDistance2: 0, |
| | | yDirectionHeight2: 0, |
| | | xDirectionDistance3: 0, |
| | | yDirectionHeight3: 0, |
| | | productLength: "", |
| | | productWidth: "", |
| | | productHeight: "", |
| | | pressNoTighten: "", |
| | | screwDownsetDistance: "", |
| | | screwTorqueOutput: "", |
| | | pressFastenTorque: "", // ãæ°å¢ãåè£
ä½ç´§åºæç© |
| | | dintAutoScrewOn: "", |
| | | p0P1Width: "", |
| | | p0P2Width: "", |
| | | p0P3Width: "", |
| | | p1P3Height: "", |
| | | p2P3Height: "", |
| | | productImagePath: "", |
| | | }); |
| | | |
| | | // ç¼è¾è¡¨åé
ç½®-æ°å¢åè£
ä½ç´§åºæç©ï¼å¸å±éé
åæç´§åæ§ |
| | | const editFormOptions = ref([ |
| | | // 第ä¸è¡ï¼åºç¡æ è¯ |
| | | [ |
| | | { |
| | | title: "æåç¼å·", |
| | |
| | | require: true, |
| | | }, |
| | | { |
| | | title: "主é®ID", |
| | | field: "id", |
| | | title: "æ§ç´§ç¨åºå·", |
| | | field: "dintAutoScrewOn", |
| | | type: "input", |
| | | width: 100, |
| | | hidden: true, |
| | | readonly: true, |
| | | inputType: "number", |
| | | width: 180, |
| | | placeholder: "请è¾å
¥æ´æ°", |
| | | }, |
| | | { |
| | | title: "产åé¿åº¦", |
| | | field: "productLength", |
| | | type: "input", |
| | | inputType: "number", |
| | | width: 120, |
| | | placeholder: "ä¿ç2ä½å°æ°", |
| | | attrs: { step: 0.01, min: 0 }, |
| | | }, |
| | | ], |
| | | [ |
| | | { |
| | | title: "产å宽度", |
| | | field: "productWidth", |
| | | type: "input", |
| | | inputType: "number", |
| | | width: 120, |
| | | placeholder: "ä¿ç2ä½å°æ°", |
| | | attrs: { step: 0.01, min: 0 }, |
| | | }, |
| | | { |
| | | title: "产åé«åº¦", |
| | | field: "productHeight", |
| | | type: "input", |
| | | inputType: "number", |
| | | width: 120, |
| | | placeholder: "ä¿ç2ä½å°æ°", |
| | | attrs: { step: 0.01, min: 0 }, |
| | | }, |
| | | { |
| | | title: "åè£
ä½ä¸æ§ç´§", |
| | | field: "pressNoTighten", |
| | | type: "select", |
| | | width: 120, |
| | | align: "center", |
| | | data: [ |
| | | { key: "0", value: "å¦" }, |
| | | { key: "1", value: "æ¯" }, |
| | | ], |
| | | }, |
| | | { |
| | | title: "ä¿ååå", |
| | | field: "screwDownsetDistance", |
| | | type: "input", |
| | | inputType: "number", |
| | | width: 150, |
| | | placeholder: "ä¿ç2ä½å°æ°", |
| | | attrs: { step: 0.01, min: 0 }, |
| | | }, |
| | | ], |
| | | [ |
| | | { |
| | | title: "ä¸å¿é«åº¦", |
| | | field: "screwTorqueOutput", |
| | | type: "input", |
| | | inputType: "number", |
| | | width: 120, |
| | | placeholder: "ä¿ç2ä½å°æ°", |
| | | attrs: { step: 0.01, min: 0 }, |
| | | }, |
| | | { |
| | | title: "ç´§åºæç©", |
| | | field: "pressFastenTorque", |
| | | type: "input", |
| | | inputType: "number", |
| | | width: 150, |
| | | placeholder: "ä¿ç2ä½å°æ°ï¼é»è®¤0.00", |
| | | attrs: { step: 0.01, min: 0 }, |
| | | }, |
| | | { |
| | | title: "P0P1宽度", |
| | | field: "p0P1Width", |
| | | type: "input", |
| | | inputType: "number", |
| | | width: 120, |
| | | placeholder: "ä¿ç2ä½å°æ°", |
| | | attrs: { step: 0.01, min: 0 }, |
| | | }, |
| | | { |
| | | title: "P0P2宽度", |
| | | field: "p0P2Width", |
| | | type: "input", |
| | | inputType: "number", |
| | | width: 120, |
| | | placeholder: "ä¿ç2ä½å°æ°", |
| | | attrs: { step: 0.01, min: 0 }, |
| | | }, |
| | | ], |
| | | // 第åè¡ï¼Pç³»åé«åº¦ + 产åå¾çè·¯å¾ |
| | | [ |
| | | { |
| | | title: "P0P3宽度", |
| | | field: "p0P3Width", |
| | | type: "input", |
| | | inputType: "number", |
| | | width: 120, |
| | | placeholder: "ä¿ç2ä½å°æ°", |
| | | attrs: { step: 0.01, min: 0 }, |
| | | }, |
| | | { |
| | | title: "P1P3é«åº¦", |
| | | field: "p1P3Height", |
| | | type: "input", |
| | | inputType: "number", |
| | | width: 150, |
| | | placeholder: "ä¿ç2ä½å°æ°", |
| | | attrs: { step: 0.01, min: 0 }, |
| | | }, |
| | | { |
| | | title: "P2P3é«åº¦", |
| | | field: "p2P3Height", |
| | | type: "input", |
| | | inputType: "number", |
| | | width: 150, |
| | | placeholder: "ä¿ç2ä½å°æ°", |
| | | attrs: { step: 0.01, min: 0 }, |
| | | }, |
| | | { |
| | | title: "产åå¾çè·¯å¾", |
| | | field: "productImagePath", |
| | | type: "textarea", |
| | | width: 400, |
| | | rows: 2, |
| | | placeholder: "请è¾å
¥å¾ç宿´è·¯å¾ï¼æ¯æ500å符以å
", |
| | | }, |
| | | ], |
| | | ]); |
| | | |
| | | // æç´¢è¡¨ååæ®µ - æ éä¿®æ¹ |
| | | const searchFormFields = ref({ |
| | | productCode: "", |
| | | productName: "", |
| | |
| | | createDate: "", |
| | | }); |
| | | |
| | | // æç´¢è¡¨åé
ç½® - æ éä¿®æ¹ |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { title: "æåç¼å·", field: "productCode", type: "like" }, |
| | | { title: "æååç§°", field: "productName", type: "like" }, |
| | | { title: "æåç¼å·", field: "productCode", type: "like", width: 200 }, |
| | | { title: "æååç§°", field: "productName", 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 }, |
| | | ], |
| | | ]); |
| | | |
| | | // è¡¨æ ¼åé
ç½® - æ°å¢åè£
ä½ç´§åºæç©å |
| | | const columns = ref([ |
| | | { |
| | | field: "id", |
| | | title: "åºå·", |
| | | type: "int", |
| | | width: 90, |
| | | width: 80, |
| | | hidden: true, |
| | | readonly: true, |
| | | require: true, |
| | | align: "left", |
| | | align: "center", |
| | | }, |
| | | { |
| | | field: "productCode", |
| | | title: "æåç¼å·", |
| | | type: "string", |
| | | link: true, |
| | | width: 200, |
| | | width: 150, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "productName", |
| | | title: "æååç§°", |
| | | type: "string", |
| | | width: 200, |
| | | width: 150, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "productLength", |
| | | title: "产åé¿åº¦", |
| | | type: "decimal", |
| | | width: 90, |
| | | align: "center", |
| | | }, |
| | | { |
| | | field: "productWidth", |
| | | title: "产å宽度", |
| | | type: "decimal", |
| | | width: 90, |
| | | align: "center", |
| | | }, |
| | | { |
| | | field: "productHeight", |
| | | title: "产åé«åº¦", |
| | | type: "decimal", |
| | | width: 90, |
| | | align: "center", |
| | | }, |
| | | { |
| | | field: "pressNoTighten", |
| | | title: "åè£
ä½ä¸æ§ç´§", |
| | | type: "select", |
| | | width: 100, |
| | | align: "center", |
| | | bind: { |
| | | key: "value", |
| | | data: [ |
| | | { key: "0", value: "å¦" }, |
| | | { key: "1", value: "æ¯" }, |
| | | ], |
| | | }, |
| | | }, |
| | | { |
| | | field: "screwDownsetDistance", |
| | | title: "ä¿ååå", |
| | | type: "decimal", |
| | | width: 110, |
| | | align: "center", |
| | | }, |
| | | { |
| | | field: "screwTorqueOutput", |
| | | title: "ä¸å¿é«åº¦", |
| | | type: "decimal", |
| | | width: 90, |
| | | align: "center", |
| | | }, |
| | | { |
| | | field: "pressFastenTorque", // ãæ°å¢ãè¡¨æ ¼å |
| | | title: "åè£
ä½ç´§åºæç©", |
| | | type: "decimal", |
| | | width: 120, |
| | | align: "center", |
| | | }, |
| | | { |
| | | field: "dintAutoScrewOn", |
| | | title: "æ§ç´§ç¨åºå·", |
| | | type: "int", |
| | | width: 100, |
| | | align: "center", |
| | | }, |
| | | // Pç³»å宽度 |
| | | { |
| | | field: "p0P1Width", |
| | | title: "P0P1宽度", |
| | | type: "decimal", |
| | | width: 90, |
| | | align: "center", |
| | | }, |
| | | { |
| | | field: "p0P2Width", |
| | | title: "P0P2宽度", |
| | | type: "decimal", |
| | | width: 90, |
| | | align: "center", |
| | | }, |
| | | { |
| | | field: "p0P3Width", |
| | | title: "P0P3宽度", |
| | | type: "decimal", |
| | | width: 90, |
| | | align: "center", |
| | | }, |
| | | // Pç³»åé«åº¦ |
| | | { |
| | | field: "p1P3Height", |
| | | title: "P1P3é«åº¦", |
| | | type: "decimal", |
| | | width: 90, |
| | | align: "center", |
| | | }, |
| | | { |
| | | field: "p2P3Height", |
| | | title: "P2P3é«åº¦", |
| | | type: "decimal", |
| | | width: 90, |
| | | align: "center", |
| | | }, |
| | | { |
| | | field: "productImagePath", |
| | | title: "å¾çè·¯å¾", |
| | | type: "string", |
| | | width: 200, |
| | | align: "left", |
| | | overflow: "ellipsis", |
| | | }, |
| | | // å
Œ
±å段 |
| | | { |
| | | 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: "componentDetail", |
| | | cnName: "é
æ¹ä¿¡æ¯è¯¦æ
", |
| | | table: "FormulaDetail", |
| | | columns: [ |
| | | { |
| | | field: "formulaId", |
| | | title: "ID", |
| | | title: "é
æ¹ID", |
| | | type: "int", |
| | | width: 90, |
| | | hidden: true, |
| | | readonly: true, |
| | | require: true, |
| | | align: "left", |
| | | align: "center", |
| | | }, |
| | | { |
| | | field: "componentCode", |
| | | title: "é¶ä»¶ç¼å·", |
| | | type: "string", |
| | | edit: { type: "" }, |
| | | width: 120, |
| | | require: true, |
| | | align: "left", |
| | |
| | | field: "componentName", |
| | | title: "é¶ä»¶åç§°", |
| | | type: "string", |
| | | edit: { type: "" }, |
| | | width: 150, |
| | | require: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "supplierCode", |
| | | title: "便¹ä»£ç ", |
| | | type: "string", |
| | | edit: { type: "" }, |
| | | width: 150, |
| | | align: "left", |
| | | }, |
| | | { |
| | | title: "æ¯å¦æ«ç ", |
| | | field: "isScanned", |
| | | type: "select", |
| | | width: 100, |
| | | align: "center", |
| | | bind: { |
| | | key: "value", |
| | | data: [ |