3个文件已修改
49 ■■■■ 已修改文件
src/components/makepager/CommonFormTableView.vue 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/supplierManage/supplier/AddNewProduct.vue 28 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/supplierManage/supplier/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/makepager/CommonFormTableView.vue
@@ -223,7 +223,7 @@
      v-if="editSelCommonConfig.editVisible"
      :edit-common-config="editSelCommonConfig"
      :sign="sign"
      :selectBoxList="tableList.tableData"
      :selectBoxList="arrDisabledList"
      :quotationNumber="quotationNumber"
      @selClient="selClient"
      @getSelectArray="getSelectArray"
@@ -304,13 +304,21 @@
          mergeNumber: 1
        }
      }
    },
    disabledList:{
      type:[Array],
      default: () => {
        return []
      }
    }
  },
  data() {
    return {
      total: 0,
      productList: [],
      tableList: [],
      tableList: {
        tableData:[]
      },
      editSelCommonConfig: {
        editVisible: false,
        isSelectBox: false,
@@ -320,6 +328,7 @@
      },
      productIndex: 0,
      supplierId:null,
      arrDisabledList:[]
    }
  },
  created() {
@@ -338,7 +347,10 @@
    supplierId(n,o) {  
      this.editSelCommonConfig.supplierId=n
      console.log(n,o,"看看那") 
    }
    } ,
    'tableList.tableData':function () {
      this.arrDisabledList=this.disabledList.concat(this.tableList.tableData)
    }
  },
  computed: {},
  methods: {
@@ -372,6 +384,7 @@
    },
    getTableInfo() {
      this.tableList = this.productTableList
      this.arrDisabledList=this.disabledList.concat(this.tableList.tableData)
    },
    // 产品名称
    async getProductList() {
src/views/supplierManage/supplier/AddNewProduct.vue
@@ -16,6 +16,7 @@
          <CommonFormTableView
            ref="productTable"
            :addTypeIdMultiple="true"
            :disabledList="disabledList"
            :product-table-list="productTableList"
            :detail-enter="detailEnter"
            :isOperate="isOperate"
@@ -51,6 +52,12 @@
          title: "添加",
          infomation: {}
        }
      }
    },
    disabledList:{
      type:[Array],
      default: () => {
        return []
      }
    }
  },
@@ -133,18 +140,19 @@
      let params = {
        deliveryTime: this.deliveryTime || 0,
        id: data.id || 0,
        maximumStock: data.maximumStock || 0,
        minimumStock: data.minimumStock || 0,
        modelNumber: data.modelNumber || "",
        name: data.name || "",
        number: data.number || "",
        productType: data.productType || "",
        // maximumStock: data.maximumStock || 0,
        // minimumStock: data.minimumStock || 0,
        // modelNumber: data.modelNumber || "",
        // name: data.name || "",
        // number: data.number || "",
        // productType: data.productType || "",
        purchasePrice: this.purchasePrice || 0,
        remark: data.remark || "",
        // remark: data.remark || "",
        shippingDuration: this.shippingDuration || 0,
        specifications: data.specifications || "",
        // specifications: data.specifications || "",
        supplierId: this.supplierId || 0,
        unit: data.unit || ""
        // unit: data.unit || ""
        ...this.tableData[0]
      }
      return params
    },
@@ -188,7 +196,7 @@
    // 产品列表输入
    inputContent(val, prop, row) {
      this.tableData.map((item) => {
        if (item.number === row.number) {
        if (item.number == row.number) {
          item[prop] = val
          item.supplierId = Number(this.supplierId)
        }
src/views/supplierManage/supplier/index.vue
@@ -110,7 +110,7 @@
    <!-- 相关供应商 -->
    <RaleteSupplierList v-if="raleteSupplierConfig.visible" :common-config="raleteSupplierConfig" />
    <!-- 添加新产品 -->
    <AddNewProduct v-if="newProductConfig.visible" :add-common-config="newProductConfig" />
    <AddNewProduct v-if="newProductConfig.visible" :disabledList="productTableList.tableInfomation" :add-common-config="newProductConfig" />
    <!-- 新建/编辑 -->
    <AddPurchase v-if="editPurchaseConfig.visible" :edit-common-config="editPurchaseConfig" />
  </div>