| | |
| | | <template> |
| | | <win-md title="规格型号" @close="close" :width="'800px'"> |
| | | <!--列表--> |
| | | <my-table-v2 ref="myTable" :table="table"/> |
| | | <my-table-v2 ref="myTable" :filter="{goodsTemplatesId: setting.goodsTemplatesId}" :table="table"/> |
| | | <div slot="footer" align="center" class="dialog-footer"> |
| | | <my-button name="取消" site="form" @click="close"/> |
| | | </div> |
| | |
| | | ...mapGetters(['userInfo']) |
| | | }, |
| | | mounted() { |
| | | this.$nextTick(()=>{ |
| | | this.$nextTick(() => { |
| | | this.search() |
| | | }) |
| | | |
| | | }, |
| | | methods: { |
| | | showAdd(){ |
| | | showAdd() { |
| | | this.specsSetting.goodsTemplatesId = this.setting.goodsTemplatesId;//物品ID |
| | | this.specsSetting.show = true; |
| | | }, |
| | |
| | | this.$modal |
| | | .confirm('是否确认删除名称为"' + row.modelName + '"的规格吗?') |
| | | .then(function () { |
| | | delSpecs({ id: row.id }).then((res) => {}); |
| | | delSpecs({id: row.id}).then((res) => { |
| | | }); |
| | | }) |
| | | .then((res) => { |
| | | this.$message.success('删除成功!');this.$refs.myTable.search(); |
| | | this.$message.success('删除成功!'); |
| | | this.$refs.myTable.search(); |
| | | }) |
| | | .catch(() => {}); |
| | | .catch(() => { |
| | | }); |
| | | }, |
| | | close() { |
| | | this.$emit('close') |
| | | }, |
| | | // 查询table列表 |
| | | search() { |
| | | this.$refs.myTable.search({goodsTemplatesId:this.specsSetting.goodsTemplatesId}) |
| | | this.$refs.myTable.search() |
| | | }, |
| | | |
| | | } |