liuying
2024-04-24 d86353384f4071a3cea77e6151e1a7bda4486501
iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsMaterial/tabItem/WmsSubstituteGood/addFormWmsSubstituteGood.vue
@@ -7,6 +7,9 @@
        <!-- <span style="font-weight:bold;cursor:default;">
          <a style="cursor:default;">{{ row.no }}</a>单据详情
        </span> -->
        物料编号: {{  materialCode }}
        物料名称: {{    materialName }}
        <div style="margin-top: 10px;">
          <a-table :columns="columns" :data-source="list" row-key="id" :pagination="false" :scroll="{ x: true }">
            <template slot="index" slot-scope="text, record, index">{{ index + 1 }}</template>
@@ -89,46 +92,46 @@
               sorter: true,
               dataIndex: 'substituteCode'
            },
            {
               title: '物料编号',
               align: 'center',
               customHeaderCell: () => {
                  return {
                     style: {
                        'min-width': '120px'//最小列宽设置
                     }
                  }
               },
               customCell: () => {
                  return {
                     style: {
                        'min-width': '120px'//最小列宽设置
                     }
                  }
               },
               sorter: true,
               dataIndex: 'materialCode'
            },
            {
               title: '物料名称',
               align: 'center',
               customHeaderCell: () => {
                  return {
                     style: {
                        'min-width': '120px'//最小列宽设置
                     }
                  }
               },
               customCell: () => {
                  return {
                     style: {
                        'min-width': '120px'//最小列宽设置
                     }
                  }
               },
               sorter: true,
               dataIndex: 'materialName'
            },
            // {
            //    title: '物料编号',
            //    align: 'center',
            //    customHeaderCell: () => {
            //       return {
            //          style: {
            //             'min-width': '120px'//最小列宽设置
            //          }
            //       }
            //    },
            //    customCell: () => {
            //       return {
            //          style: {
            //             'min-width': '120px'//最小列宽设置
            //          }
            //       }
            //    },
            //    sorter: true,
            //    dataIndex: 'materialCode'
            // },
            // {
            //    title: '物料名称',
            //    align: 'center',
            //    customHeaderCell: () => {
            //       return {
            //          style: {
            //             'min-width': '120px'//最小列宽设置
            //          }
            //       }
            //    },
            //    customCell: () => {
            //       return {
            //          style: {
            //             'min-width': '120px'//最小列宽设置
            //          }
            //       }
            //    },
            //    sorter: true,
            //    dataIndex: 'materialName'
            // },
            {
               title: '替代品物料编号',
               align: 'center',
@@ -231,7 +234,10 @@
        this.afterClsoe()
      }
    },
    initShow() {
    initShow(materialCode,materialName) {
      this.materialCode = materialCode
      this.materialName = materialName
      this.loading = true
      this.getList(() => {
        this.loading = false
@@ -258,7 +264,6 @@
    },
    handleSubmit(item) {
      alert(1)
      this.list.push(item) 
      this.visible = false
    },