@@ -318,7 +318,7 @@
} else {
this.$message.error('发布失败,请重新发布!');
}
- this.$router.back();
+ this.back();
} catch (error) {
console.error(error);
@@ -328,6 +328,12 @@
});
},
+
+ back () {
+ const key = getRouteTabKey();
+ this.$router.push('/productionPlan');
+ removePageTab({ key });
+ },
// 班次改变选择执行人
async handleClasseChange (val, row) {
if (!val) {
@@ -551,6 +551,8 @@
publishData (type) {
let params = deepClone(this.form);
+ params.categoryId = params.salesOrders[0]?.categoryId;
let request =
this.$route.query.type == 'edit' ? updateSaleToPlan : saveSaleToPlan;
if (this.$route.query.type != 'edit') {