leiqunqing
2026-01-19 ba8aa925e7901381ceb394adb53eca8723d1c4c5
´úÂë¹ÜÀí/WIDESEAWCS_Client/src/views/basicinfo/formula.vue
@@ -24,13 +24,13 @@
      footer: "Foots",
      cnName: "配方信息",
      name: "formula",
      url: "/formula/",
      sortName: "createDate",
      url: "/formula/",
      sortName: "createDate",
    });
    const editFormFields = ref({
      id: "",
      productCode: "",
      productCode: "",
      productName: "",
      productLength: 0,
      productWidth: 0,
@@ -44,8 +44,8 @@
      yDirectionHeight2: 0,
      xDirectionDistance3: 0,
      yDirectionHeight3: 0,
});
    });
    const editFormOptions = ref([
      [
        {
@@ -53,106 +53,14 @@
          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",
@@ -160,9 +68,9 @@
          type: "input",
          width: 100,
          hidden: true,
          readonly: true
        }
      ]
          readonly: true,
        },
      ],
    ]);
    const searchFormFields = ref({
@@ -198,6 +106,7 @@
        field: "productCode",
        title: "成品编号",
        type: "string",
        link: true,
        width: 200,
        align: "left",
      },
@@ -205,90 +114,6 @@
        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",
      },
@@ -321,13 +146,50 @@
        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 {
@@ -342,4 +204,4 @@
    };
  },
});
</script>
</script>