763f2396ea39c63112aac3a36ba9e8ecc1544f8a..570e846b0d715fe672fcdfec15cffe60f37c1922
2024-03-11 zuozhengqing
采购类型区分查看和编辑状态
570e84 对比 | 目录
2024-03-11 zuozhengqing
产品修改采购类型为多选
5e9261 对比 | 目录
2个文件已修改
21 ■■■■■ 已修改文件
src/views/productManage/product/AddProductDialog.vue 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productManage/product/index.vue 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productManage/product/AddProductDialog.vue
@@ -238,12 +238,13 @@
                      placeholder="请输入"
                    ></el-input>
                  </el-form-item>
                  <el-form-item label="采购类型" prop="purchaseType">
                    <el-radio-group :disabled="!showFooter" v-model="editConfig.infomation.purchaseType">
                      <el-radio v-for="item in purchaseTypeList" :key="item.id" :label="item.id">{{
                        item.name
                      }}</el-radio>
                    </el-radio-group>
                  <el-form-item label="采购类型" prop="purchaseTypeList">
                    <el-checkbox-group
                      v-model="editConfig.infomation.purchaseTypeList"
                      :disabled="!showFooter"
                    >
                      <el-checkbox v-for="item in bomPurchaseTypeList" :key="item.id" :label="item.id">{{ item.name }}</el-checkbox>
                    </el-checkbox-group>
                  </el-form-item>
                  <el-form-item label="内部编码" prop="internalReference">
                    <el-input
@@ -596,7 +597,7 @@
        // salePrice: [{ required: true, message: "请输入销售价格", trigger: "blur" }],
        unit: [{ required: true, message: "请输入单位", trigger: ["change", "blur"] }],
        // 采购类型
        purchaseType: [{ required: true, message: "请选择", trigger: "blur" }]
        purchaseTypeList: [{ required: true, message: "请选择", trigger: "blur" }]
      },
      memberOptions: [],
      productCategoryOptions: [], // 产品类别
@@ -653,7 +654,7 @@
      },
      isView: false,
      fileFormdata: null, // 上传图片入参
      purchaseTypeList: getDataByType("purchaseType"),
      bomPurchaseTypeList: getDataByType("purchaseType"),
      unitList: [],
    }
  },
src/views/productManage/product/index.vue
@@ -292,7 +292,9 @@
    // 新建
    addBtnClick() {
      this.editConfig.title = "新建"
      this.editConfig.infomation = {}
      this.editConfig.infomation = {
        purchaseTypeList:[]
      }
      this.editConfig.visible = true
    },
    // 详情