yangfeng
2023-09-19 326ad6a54a3a0deadd41a0e5d6082598f03bb1ed
产品增加物理类型和单位字段及产品类别页面样式调整
2个文件已修改
53 ■■■■ 已修改文件
src/views/productManage/product/AddProductDialog.vue 46 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productManage/productCategory/index.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productManage/product/AddProductDialog.vue
@@ -104,6 +104,22 @@
                      </el-option>
                    </el-select>
                  </el-form-item>
                  <el-form-item label="物料类型" prop="model">
                    <el-select
                      v-model="form.model"
                      placeholder="请选择"
                      filterable
                      clearable
                      style="width: 100%"
                      :popper-append-to-body="false"
                    >
                      <el-option v-for="item in materialTypeList" :key="item.id" :label="item.name" :value="item.id">
                      </el-option>
                    </el-select>
                  </el-form-item>
                  <el-form-item label="单位" prop="unit">
                    <el-input v-model="form.unit" placeholder="请输入"></el-input>
                  </el-form-item>
                  <el-form-item label="产品类别" prop="client_name" style="margin-left: 20px">
                    <el-select
                      v-model="editConfig.infomation.memberId"
@@ -463,7 +479,33 @@
      checkedCities: ["上海", "北京"],
      cities: ["上海对对对对对对多多多多多多多北京对对对对对对", "北京对对对对对对多", "广州", "深圳"],
      addProduct: false,
      showProcure: true
      showProcure: true,
      materialTypeList: [
        {
          name: "原材料",
          id: "原材料"
        },
        {
          name: "半成品",
          id: "半成品"
        },
        {
          name: "成品",
          id: "成品"
        },
        {
          name: "辅料",
          id: "辅料"
        },
        {
          name: "耗材",
          id: "耗材"
        },
        {
          name: "其他",
          id: "其他"
        }
      ]
    }
  },
  created() {
@@ -706,7 +748,7 @@
    margin-bottom: 10px;
  }
  .list-item {
    width: 300px;
    width: 100%;
  }
  .avatar-uploader .el-upload {
    border: 1px dashed #d9d9d9;
src/views/productManage/productCategory/index.vue
@@ -10,12 +10,14 @@
      />
    </div>
    <div class="list-view">
      <div class="table">
      <TableCommonView
        ref="tableListRef"
        :table-list="tableList"
        :show-checkcol="false"
        @tableRowClick="tableRowClick"
      ></TableCommonView>
      </div>
      <div class="btn-pager">
        <PagerView class="page" :pager-options="pagerOptions" v-on="pagerEvents" />
      </div>
@@ -41,11 +43,6 @@
    return {
      tableList: {},
      searchOptions: [],
      commonDetail: {
        visible: false,
        title: "新建",
        infomation: {}
      },
      editConfig: {
        visible: false,
        title: "新建",