研发图纸文件管理系统-前端项目
he wei
2023-09-11 77354b7c536ea6249006c4fb69710fad6167bd30
U 产品上传和详情添加厂商规格
2个文件已修改
33 ■■■■ 已修改文件
src/pages/components/drawUpload/DrawUpload.vue 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/resourceManage/product/details/details.vue 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/components/drawUpload/DrawUpload.vue
@@ -125,12 +125,18 @@
        dataIndex: "quantity",
        align: "center",
      },
      // {
      //   title: '生产商',
      //   dataIndex: 'producer',
      //   align: 'center',
      //   ellipsis: true,
      // },
      {
        title: '厂家规格',
        dataIndex: 'producerSpecification',
        align: 'center',
        ellipsis: true,
      },
      {
        title: '替料',
        dataIndex: 'relatedMaterialCodes',
        align: 'center',
        ellipsis: true,
      },
      {
        title: "封装类型/材质",
        dataIndex: "material",
src/pages/resourceManage/product/details/details.vue
@@ -50,7 +50,7 @@
                  :data-source="dataSource"
                  :pagination="false"
                  :expandRowByClick="true"
                  :row-key="(record, index) => record.subCode + '_' + index"
                  :row-key="(record, index) => record.p_subCode ? record.p_subCode + '_' + record.subCode + '_' + index : record.subCode + '_' + index"
                  :rowClassName="rowClassFn"
                >
                  <template slot="dataIndex" slot-scope="text, record, index">
@@ -470,6 +470,13 @@
          width: 80,
        },
        {
          title: "厂家规格",
          dataIndex: "producerSpecification",
          key: "producer",
          align: "center",
          width: 80,
        },
        {
          title: "封装类型/材质",
          dataIndex: "material",
          key: "material",
@@ -782,7 +789,10 @@
        if (code && data) {
          list = data2.map((v) => {
            if (v.materials && v.materials.length) {
              v.children = v.materials;
              v.children = v.materials.map((vv) => {
                vv.p_subCode = v.subCode;
                return vv;
              });
            }
            return v;
          });
@@ -1010,6 +1020,7 @@
      if (record.children && record.children.length) {
        classList.push("is-replace");
      }
      // 0120是半成品
      if (/^0120/.test(record.subCode)) {
        classList.push("is-0120");
      }