|
|
@@ -41,11 +41,7 @@
|
|
|
>{{ infoData.requiredFormingNum }}PCS</el-descriptions-item
|
|
|
>
|
|
|
<el-descriptions-item label="要求成型重量"
|
|
|
- >{{
|
|
|
- (
|
|
|
- infoData.requiredFormingWeight * infoData.productUnitWeight
|
|
|
- ).toFixed(4)
|
|
|
- }}kg</el-descriptions-item
|
|
|
+ >{{ infoData.requiredFormingWeight }}kg</el-descriptions-item
|
|
|
>
|
|
|
</el-descriptions>
|
|
|
|
|
|
@@ -109,7 +105,7 @@
|
|
|
import planView from './components/plan-view';
|
|
|
import { getById, getReleaseInfoById } from '@/api/productionPlan/index';
|
|
|
|
|
|
- import { removeLeftPageTab } from '@/utils/page-tab-util';
|
|
|
+ import { getRouteTabKey, removePageTab } from '@/utils/page-tab-util';
|
|
|
export default {
|
|
|
components: { planView },
|
|
|
data () {
|
|
|
@@ -158,12 +154,16 @@
|
|
|
},
|
|
|
methods: {
|
|
|
back () {
|
|
|
+ const key = getRouteTabKey();
|
|
|
if (this.type == 2) {
|
|
|
this.$router.push('/productionPlan');
|
|
|
+ removePageTab({ key });
|
|
|
return;
|
|
|
}
|
|
|
this.$confirm('返回后将清空所有方案,是否要继续?', '提示').then(() => {
|
|
|
this.$router.push('/productionPlan');
|
|
|
+
|
|
|
+ removePageTab({ key });
|
|
|
});
|
|
|
},
|
|
|
async getInfo () {
|