dengjunjie
2 天以前 b784d019c3848718eb95eb0d34dde34c6a262b06
´úÂë¹ÜÀí/WIDESEAWCS_Client/src/views/basicinfo/boxing.vue
@@ -24,15 +24,17 @@
      footer: "Foots",
      cnName: "组盘信息",
      name: "boxing",
      url: "/boxing/",
      sortName: "createDate",
      url: "/boxing/",
      sortName: "createDate",
    });
    // ç¼–辑表单字段 - æ–°å¢žboxingNo
    const editFormFields = ref({
      id: "",
      palletCode: "",
      palletCode: "",
      productCode: "",
      productName: "",
      boxingNo: "", // æµæ°´å·å­—段
    });
    const editFormOptions = ref([
      [
@@ -41,41 +43,58 @@
          field: "palletCode",
          type: "input",
          width: 200,
          require: true
          require: true,
        },
        {
          title: "成品编号",
          field: "productCode",
          type: "input",
          width: 200,
          require: true
          require: true,
        },
        {
          title: "成品名称",
          field: "productName",
          type: "input",
          width: 200,
          require: true
        }
          require: true,
        },
        // æ–°å¢žï¼šæµæ°´å·ç¼–辑项(和实体一致非空,故设require: true)
        {
          title: "流水号",
          field: "boxingNo",
          type: "input",
          width: 200,
          require: true,
        },
      ],
      [
      [{
          title: "供方代码",
          field: "supplierCode",
          type: "input",
          width: 200,
          require: true,
        },
        {
          title: "主键ID",
          field: "id",
          type: "input",
          width: 100,
          hidden: true,
          readonly: true
        }
      ]
          readonly: true,
        },
      ],
    ]);
    // æŸ¥è¯¢è¡¨å•字段 - æ–°å¢žboxingNo
    const searchFormFields = ref({
      palletCode: "",
      productCode: "",
      productName: "",
      boxingNo: "", // æµæ°´å·æŸ¥è¯¢å­—段
      creater: "",
      createDate: "",
      supplierCode: "",
    });
    const searchFormOptions = ref([
@@ -83,13 +102,17 @@
        { title: "工装板编号", field: "palletCode", type: "like" },
        { title: "成品编号", field: "productCode", type: "like" },
        { title: "成品名称", field: "productName", type: "like" },
        // æ–°å¢žï¼šæµæ°´å·æŸ¥è¯¢é¡¹ï¼ˆæ¨¡ç³ŠæŸ¥è¯¢like,和其他编号保持一致)
        { title: "流水号", field: "boxingNo", type: "like" },
      ],
      [
        { title: "供方代码", field: "supplierCode", type: "like" },
        { title: "创建人", field: "creater", type: "like" },
        { title: "创建时间", field: "createDate", type: "datetime" },
      ],
    ]);
    // è¡¨æ ¼åˆ—配置 - æ–°å¢žboxingNo列
    const columns = ref([
      {
        field: "id",
@@ -105,6 +128,7 @@
        field: "palletCode",
        title: "工装板编号",
        type: "string",
        link: true,
        width: 200,
        align: "left",
      },
@@ -118,6 +142,21 @@
      {
        field: "productName",
        title: "成品名称",
        type: "string",
        width: 200,
        align: "left",
      },
      {
        field: "supplierCode",
        title: "供方代码",
        type: "string",
        width: 200,
        align: "left",
      },
      // æ–°å¢žï¼šæµæ°´å·è¡¨æ ¼åˆ—(宽度和其他编号保持200,可根据需求调整)
      {
        field: "boxingNo",
        title: "流水号",
        type: "string",
        width: 200,
        align: "left",
@@ -161,11 +200,38 @@
    ]);
    const detail = ref({
      cnName: "",
      table: "",
      columns: [],
      sortName: "",
      key: "",
      cnName: "组盘详细信息",
      table: "DoxingDetail",
      columns: [
        {
          field: "boxingId",
          title: "组盘ID",
          type: "int",
          width: 90,
          hidden: true,
          readonly: true,
          require: true,
          align: "left",
        },
        {
          field: "componentCode",
          title: "零件编号",
          type: "string",
          edit: { type: "" },
          width: 200,
          align: "left",
        },
        {
          field: "componentName",
          title: "零件名称",
          type: "string",
          edit: { type: "" },
          width: 200,
          align: "left",
        },
      ],
      sortName: "createDate",
      key: "id",
    });
    return {
@@ -180,4 +246,4 @@
    };
  },
});
</script>
</script>