| | |
| | | this.close(); |
| | | this.$emit('search'); |
| | | }) |
| | | .catch((err) => { |
| | | this.$message.warning(err.msg); |
| | | this.loading = false |
| | | }); |
| | | } |
| | | } else { |
| | | this.$message.error('校验未通过,请检查。'); |
| | |
| | | vm.$modal.msgSuccess(text + '成功'); |
| | | vm.search(); |
| | | } |
| | | }).catch((err) => { |
| | | vm.$message.warning(err.msg); |
| | | }); |
| | | }) |
| | | }); |
| | | }, |
| | | del(row) { |
| | |
| | | that.$message.success('删除成功!'); |
| | | that.refreshData(); |
| | | }) |
| | | .catch((err) => { |
| | | that.$message.warning(err.msg); |
| | | }); |
| | | }); |
| | | }, |
| | | showAdd() { |
| | |
| | | } else { |
| | | this.$message.error('保存失败') |
| | | } |
| | | }).catch((err) => { |
| | | this.$message.warning(err.msg) |
| | | this.loading = false |
| | | }); |
| | | }) |
| | | } else { |
| | | params.orgId = this.setting.orgId |
| | | addGoods(params).then(res => { |
| | |
| | | } else { |
| | | this.$message.error('保存失败') |
| | | } |
| | | }).catch(() => { |
| | | this.$message.warning(err.msg) |
| | | this.loading = false |
| | | }); |
| | | }) |
| | | } |
| | | } else { |
| | | this.$message.error('校验未通过,请检查。') |
| | |
| | | transpileDependencies: ['element-ui', 'vuex', 'js-cookie', '@babel', 'resize-detector'], |
| | | publicPath: './', |
| | | // publicPath: '/', |
| | | outputDir: 'lowConsumWeb', |
| | | outputDir: 'lowconsum', |
| | | assetsDir: 'static', |
| | | lintOnSave: process.env.NODE_ENV === 'development', |
| | | productionSourceMap: false, |