| | |
| | | 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 |
| | |
| | | <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> |
| | |
| | | { |
| | | title: '编辑', |
| | | events: (row) => { |
| | | this.showAudit(row); |
| | | this.showAdd(row.id); |
| | | }, |
| | | }, |
| | | { |
| | |
| | | .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; |