dengjunjie
3 天以前 b52018589bf6c7ec1d51ce8ad000a7aa993b0ab5
´úÂë¹ÜÀí/WIDESEAWCS_Client/src/views/basicinfo/formulaDetail.vue
@@ -19,22 +19,27 @@
export default defineComponent({
  setup() {
    // è¡¨æ ¼åŸºç¡€é…ç½®
    const table = ref({
      key: "id",
      footer: "Foots",
      cnName: "配方信息详情",
      name: "formulaDetail",
      url: "/formulaDetail/",
      sortName: "createDate",
      url: "/formulaDetail/",
      sortName: "createDate",
    });
    // ç¼–辑表单绑定字段(新增supplierCode)
    const editFormFields = ref({
      id: "",
      formulaId: "",
      formulaId: "",
      componentCode: "",
      componentName: "",
      supplierCode: "",
      isScanned: "",
    });
    // ç¼–辑表单配置项(新增供方代码输入项)
    const editFormOptions = ref([
      [
        {
@@ -42,22 +47,37 @@
          field: "formulaId",
          type: "input",
          width: 200,
          require: true
          require: true,
        },
        {
          title: "零件编号",
          field: "componentCode",
          type: "input",
          width: 200,
          require: true
          require: true,
        },
        {
          title: "零件名称",
          field: "componentName",
          type: "input",
          width: 200,
          require: true
        }
          require: true,
        },
        {
          title: "供方代码",
          field: "supplierCode",
          type: "input",
          width: 200,
        },
        {
          title: "是否扫码",
          field: "isScanned",
          type: "select",
          data: [
            { key: "0", value: "否" },
            { key: "1", value: "是" },
          ],
        },
      ],
      [
        {
@@ -66,24 +86,38 @@
          type: "input",
          width: 100,
          hidden: true,
          readonly: true
        }
      ]
          readonly: true,
        },
      ],
    ]);
    // æœç´¢è¡¨å•绑定字段(新增supplierCode)
    const searchFormFields = ref({
      formulaId: "",
      componentCode: "",
      componentName: "",
      supplierCode: "",
      creater: "",
      createDate: "",
      isScanned: "",
    });
    // æœç´¢è¡¨å•配置项(新增供方代码模糊搜索)
    const searchFormOptions = ref([
      [
        { title: "配方信息主键", field: "formulaId", type: "int" },
        { title: "零件编号", field: "componentCode", type: "like" },
        { title: "零件名称", field: "componentName", type: "like" },
        { title: "供方代码", field: "supplierCode", type: "like" },
        {
          title: "是否扫码",
          field: "isScanned",
          type: "select",
          data: [
            { key: "0", value: "否" },
            { key: "1", value: "是" },
          ],
        },
      ],
      [
        { title: "创建人", field: "creater", type: "like" },
@@ -91,6 +125,7 @@
      ],
    ]);
    // è¡¨æ ¼åˆ—配置(新增供方代码列)
    const columns = ref([
      {
        field: "id",
@@ -124,6 +159,25 @@
        align: "left",
      },
      {
        field: "supplierCode",
        title: "供方代码",
        type: "string",
        width: 200,
        align: "left",
      },
      {
        title: "是否扫码",
        field: "isScanned",
        type: "select",
        bind: {
          key: "value",
          data: [
            { key: "0", value: "否" },
            { key: "1", value: "是" },
          ],
        },
      },
      {
        field: "creater",
        title: "创建人",
        type: "string",
@@ -153,6 +207,7 @@
      },
    ]);
    // è¯¦æƒ…页配置(暂未使用,保持原有)
    const detail = ref({
      cnName: "",
      table: "",
@@ -173,4 +228,4 @@
    };
  },
});
</script>
</script>