|
|
@@ -69,7 +69,11 @@
|
|
|
|
|
|
<el-col
|
|
|
:span="8"
|
|
|
- v-if="[1, 23, 9, 28].includes(Number(categoryLevelPathId || $route.query.rootTreeId))"
|
|
|
+ v-if="
|
|
|
+ [1, 23, 9, 28].includes(
|
|
|
+ Number(categoryLevelPathId || $route.query.rootTreeId)
|
|
|
+ )
|
|
|
+ "
|
|
|
>
|
|
|
<el-form-item label="加工类型" prop="isConsumable">
|
|
|
<el-select
|
|
|
@@ -608,8 +612,23 @@
|
|
|
},
|
|
|
|
|
|
cancel() {
|
|
|
- finishPageTab();
|
|
|
- this.$router.go(-1);
|
|
|
+ // finishPageTab();
|
|
|
+ // this.$router.go(-1);
|
|
|
+ if (this.$route.query.rootTreeId == 9) {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/product/oneProduct',
|
|
|
+ query: {
|
|
|
+ categoryLevelId: this.form.categoryLevelId
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/material/product',
|
|
|
+ query: {
|
|
|
+ categoryLevelId: this.form.categoryLevelId
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
// 保存
|
|
|
@@ -741,21 +760,22 @@
|
|
|
this.$message.success(msg);
|
|
|
// reloadPageTab({ fullPath: '/material/product' });
|
|
|
// this.$router.go(-1);
|
|
|
- if (this.$route.query.rootTreeId == 9) {
|
|
|
- this.$router.push({
|
|
|
- path: '/product/oneProduct',
|
|
|
- query: {
|
|
|
- categoryLevelId: this.form.categoryLevelId
|
|
|
- }
|
|
|
- });
|
|
|
- } else {
|
|
|
- this.$router.push({
|
|
|
- path: '/material/product',
|
|
|
- query: {
|
|
|
- categoryLevelId: this.form.categoryLevelId
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
+ this.cancel();
|
|
|
+ // if (this.$route.query.rootTreeId == 9) {
|
|
|
+ // this.$router.push({
|
|
|
+ // path: '/product/oneProduct',
|
|
|
+ // query: {
|
|
|
+ // categoryLevelId: this.form.categoryLevelId
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // } else {
|
|
|
+ // this.$router.push({
|
|
|
+ // path: '/material/product',
|
|
|
+ // query: {
|
|
|
+ // categoryLevelId: this.form.categoryLevelId
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // }
|
|
|
})
|
|
|
.catch((e) => {
|
|
|
this.loading = false;
|