leiqunqing
2026-02-06 15b3879cd259108e7ebb755fe02c190f28f1e20c
´úÂë¹ÜÀí/WIDESEAWCS_Client/src/views/basicinfo/formula.vue
@@ -28,25 +28,30 @@
      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: "成品编号",
@@ -63,16 +68,142 @@
          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: "",
@@ -80,89 +211,202 @@
      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",
@@ -171,14 +415,24 @@
          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: [