| | |
| | | :disabled="!showFooter" |
| | | > |
| | | <el-option |
| | | v-for="item in productCategoryOptions" |
| | | v-for="item in productCategoryListWithDefault" |
| | | :key="item.id" |
| | | :label="item.name" |
| | | :value="item.id" |
| | |
| | | }, |
| | | components: {}, |
| | | computed: { |
| | | productCategoryListWithDefault(){ |
| | | return [{id:0,name:'请选择'},...(this.productCategoryOptions ?? [])] |
| | | }, |
| | | modalTitle(){ |
| | | if (this.editConfig.title === '编辑' && this.editConfig.autoEdit){ |
| | | return '编辑' |
| | |
| | | memberOptions: [{ name: "管理员", id: 1 }], |
| | | productCategoryOptions: [], // 产品类别 |
| | | productTypeOptions: [ |
| | | { name: "请选择", id: 0 }, |
| | | { name: "能消耗", id: 1 }, |
| | | { name: "服务", id: 2 }, |
| | | { name: "可库存产品", id: 3 } |
| | |
| | | components: {}, |
| | | computed: { |
| | | productCategoryListWithDefault(){ |
| | | console.log(this.productCategoryList) |
| | | return [{id:0,name:'请选择'},...(this.productCategoryList?? [])] |
| | | }, |
| | | modalTitle(){ |