|
|
@@ -98,9 +98,7 @@
|
|
|
<el-tab-pane label="入库" name="9"></el-tab-pane> -->
|
|
|
</el-tabs>
|
|
|
<ele-pro-table
|
|
|
- :columns="
|
|
|
- columnOpt[tabList[activeName].taskTypeName] || columnOpt['深加工']
|
|
|
- "
|
|
|
+ :columns="columns"
|
|
|
:datasource="datasource"
|
|
|
:key="activeName"
|
|
|
:cache-key="`produceDetal${activeName}`"
|
|
|
@@ -109,7 +107,14 @@
|
|
|
>
|
|
|
<template v-slot:toolbar>
|
|
|
<div class="tips-box">
|
|
|
- <ul v-if="chooseItem == '挤压成型'">
|
|
|
+ <ul
|
|
|
+ v-if="
|
|
|
+ chooseItem == '挤压成型' ||
|
|
|
+ chooseItem.includes('模压') ||
|
|
|
+ chooseItem.includes('挤压') ||
|
|
|
+ (chooseItem.includes('等静压') && activeName == 1)
|
|
|
+ "
|
|
|
+ >
|
|
|
<li>
|
|
|
<span class="label">累计合格品数量</span>
|
|
|
{{ countMsg.standardTotalNum }}PCS
|
|
|
@@ -125,7 +130,8 @@
|
|
|
</ul>
|
|
|
<ul
|
|
|
v-else-if="
|
|
|
- ['自然干燥', '升温干燥', '半加定长'].includes(chooseItem)
|
|
|
+ ['自然干燥', '升温干燥', '半加定长'].includes(chooseItem) ||
|
|
|
+ chooseItem.includes('半加')
|
|
|
"
|
|
|
>
|
|
|
<li>
|
|
|
@@ -1064,6 +1070,27 @@
|
|
|
this.getInfo(this.workOrderId);
|
|
|
this.requestDict('仓库');
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ columns() {
|
|
|
+ const { taskTypeName: name } = this.tabList[this.activeName];
|
|
|
+
|
|
|
+ if (name.includes('半加')) {
|
|
|
+ return this.columnOpt['半加定长'];
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ (name.includes('模压') ||
|
|
|
+ name.includes('挤压') ||
|
|
|
+ name.includes('等静压')) &&
|
|
|
+ this.activeName == 1
|
|
|
+ ) {
|
|
|
+ return this.columnOpt['挤压成型'];
|
|
|
+ }
|
|
|
+ return (
|
|
|
+ this.columnOpt[this.tabList[this.activeName].taskTypeName] ||
|
|
|
+ this.columnOpt['深加工']
|
|
|
+ );
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
handlePrint() {
|
|
|
this.$refs.orderPrintRef.open();
|