石广澎
2023-12-13 3f0228da470c797e7339964cc4c3df3ed86415da
feat:
物品规格管理 接口对接
2个文件已修改
20 ■■■■■ 已修改文件
admin-web/src/views/foundation/material/edit.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin-web/src/views/foundation/material/index.vue 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin-web/src/views/foundation/material/edit.vue
@@ -9,10 +9,6 @@
                  style="width: 100%"/>
      </el-form-item>
      <el-form-item label="物品分类" prop="categoryId">
        <!--        <el-select v-model="formData.categoryId" clearable placeholder="请选择" style="width: 100%">
                  <el-option v-for="item in categoryList" :key="item.id" :label="item.categoryName"
                             :value="item.id"></el-option>
                </el-select>-->
        <el-cascader
            clearable
            filterable
@@ -25,7 +21,7 @@
      <el-row :gutter="20" v-for="(m, i) in formData.models">
        <el-col :span="9">
          <el-form-item label="规格型号" :prop="`models.${i}.modelName`" :rules="rules.modelName">
            <el-input v-model="m.modelName" placeholder="请输入规格型号名称" clearable maxlength="20" show-word-limit
            <el-input :disabled="!!setting.id" v-model="m.modelName" placeholder="请输入规格型号名称" clearable maxlength="20" show-word-limit
                      style="width: 100%"/>
          </el-form-item>
        </el-col>
admin-web/src/views/foundation/material/index.vue
@@ -218,7 +218,7 @@
            {
              title: '编辑',
              events: (row) => {
                this.showAudit(row);
                this.showAdd(row.id);
              },
            },
            {
@@ -294,14 +294,10 @@
        .catch(() => {
        });
    },
    showAdd() {
      // if (!this.editSetting.orgId) {
      //   this.$message.warning('请先选择左侧机构')
      // } else {
        this.editSetting.id = null;
        this.editSetting.title = '新增';
        this.editSetting.show = true;
      // }
    showAdd(id) {
      this.editSetting.id = id;
      this.editSetting.title = id?'编辑':'新增';
      this.editSetting.show = true;
    },
    showSpecs(row) {
      this.specsSetting.goodsTemplatesId = row.id;