dengjunjie
3 天以前 b52018589bf6c7ec1d51ce8ad000a7aa993b0ab5
´úÂë¹ÜÀí/WIDESEAWCS_Client/src/views/basicinfo/formulaDetail.vue
@@ -19,6 +19,7 @@
export default defineComponent({
  setup() {
    // è¡¨æ ¼åŸºç¡€é…ç½®
    const table = ref({
      key: "id",
      footer: "Foots",
@@ -28,13 +29,17 @@
      sortName: "createDate",
    });
    // ç¼–辑表单绑定字段(新增supplierCode)
    const editFormFields = ref({
      id: "",
      formulaId: "",
      componentCode: "",
      componentName: "",
      supplierCode: "",
      isScanned: "",
    });
    // ç¼–辑表单配置项(新增供方代码输入项)
    const editFormOptions = ref([
      [
        {
@@ -59,6 +64,12 @@
          require: true,
        },
        {
          title: "供方代码",
          field: "supplierCode",
          type: "input",
          width: 200,
        },
        {
          title: "是否扫码",
          field: "isScanned",
          type: "select",
@@ -80,19 +91,24 @@
      ],
    ]);
    // æœç´¢è¡¨å•绑定字段(新增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",
@@ -109,6 +125,7 @@
      ],
    ]);
    // è¡¨æ ¼åˆ—配置(新增供方代码列)
    const columns = ref([
      {
        field: "id",
@@ -137,6 +154,13 @@
      {
        field: "componentName",
        title: "零件名称",
        type: "string",
        width: 200,
        align: "left",
      },
      {
        field: "supplierCode",
        title: "供方代码",
        type: "string",
        width: 200,
        align: "left",
@@ -183,6 +207,7 @@
      },
    ]);
    // è¯¦æƒ…页配置(暂未使用,保持原有)
    const detail = ref({
      cnName: "",
      table: "",