|
|
@@ -654,7 +654,7 @@ export default {
|
|
|
value: 2
|
|
|
}
|
|
|
],
|
|
|
- _bankColumns: [
|
|
|
+ bankColumnsRaw: [
|
|
|
{
|
|
|
type: 'index',
|
|
|
width: 55,
|
|
|
@@ -690,7 +690,7 @@ export default {
|
|
|
align: 'center'
|
|
|
},
|
|
|
],
|
|
|
- _linkColumns: [
|
|
|
+ linkColumnsRaw: [
|
|
|
{
|
|
|
type: 'index',
|
|
|
width: 55,
|
|
|
@@ -763,7 +763,7 @@ export default {
|
|
|
align: 'center'
|
|
|
},
|
|
|
],
|
|
|
- _certificateColumns: [
|
|
|
+ certificateColumnsRaw: [
|
|
|
{
|
|
|
type: 'index',
|
|
|
width: 55,
|
|
|
@@ -823,7 +823,7 @@ export default {
|
|
|
align: "center",
|
|
|
}
|
|
|
],
|
|
|
- _orderColumns: [
|
|
|
+ orderColumnsRaw: [
|
|
|
{
|
|
|
columnKey: 'index',
|
|
|
label: '序号',
|
|
|
@@ -932,7 +932,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
- _sendColumns: [
|
|
|
+ sendColumnsRaw: [
|
|
|
{
|
|
|
columnKey: 'index',
|
|
|
label: '序号',
|
|
|
@@ -1001,7 +1001,7 @@ export default {
|
|
|
minWidth: 170
|
|
|
}
|
|
|
],
|
|
|
- _returnColumns: [
|
|
|
+ returnColumnsRaw: [
|
|
|
{
|
|
|
columnKey: 'index',
|
|
|
label: '序号',
|
|
|
@@ -1080,7 +1080,7 @@ export default {
|
|
|
minWidth: 170
|
|
|
}
|
|
|
],
|
|
|
- _reconciliationColumns: [
|
|
|
+ reconciliationColumnsRaw: [
|
|
|
{
|
|
|
columnKey: 'index',
|
|
|
label: '序号',
|
|
|
@@ -1178,7 +1178,7 @@ export default {
|
|
|
minWidth: 170
|
|
|
},
|
|
|
],
|
|
|
- _invoiceColumns: [
|
|
|
+ invoiceColumnsRaw: [
|
|
|
{
|
|
|
width: 60,
|
|
|
label: '序号',
|
|
|
@@ -1282,7 +1282,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
- _supplyColumns: [
|
|
|
+ supplyColumnsRaw: [
|
|
|
{
|
|
|
columnKey: 'index',
|
|
|
type: 'index',
|
|
|
@@ -1418,45 +1418,45 @@ export default {
|
|
|
this.loadScopedColumnWidth('sub8');
|
|
|
},
|
|
|
computed: {
|
|
|
-// 标准 mixin 列宽持久化:包成 computed 让 applyColumnWidth 应用缓存列宽
|
|
|
-invoiceColumns() {
|
|
|
- this.columnsVersion;
|
|
|
- return this.applyScopedColumnWidth(this._invoiceColumns, 'sub8');
|
|
|
-},
|
|
|
-// 副表列宽:独立 scope,缓存与主表隔离,避免被 columnsContrast 当成已删除列清掉
|
|
|
-reconciliationColumns() {
|
|
|
- this.columnsVersion;
|
|
|
- return this.applyScopedColumnWidth(this._reconciliationColumns, 'sub7');
|
|
|
-},
|
|
|
-returnColumns() {
|
|
|
- this.columnsVersion;
|
|
|
- return this.applyScopedColumnWidth(this._returnColumns, 'sub6');
|
|
|
-},
|
|
|
-sendColumns() {
|
|
|
- this.columnsVersion;
|
|
|
- return this.applyScopedColumnWidth(this._sendColumns, 'sub5');
|
|
|
-},
|
|
|
-orderColumns() {
|
|
|
- this.columnsVersion;
|
|
|
- return this.applyScopedColumnWidth(this._orderColumns, 'sub4');
|
|
|
-},
|
|
|
-certificateColumns() {
|
|
|
- this.columnsVersion;
|
|
|
- return this.applyScopedColumnWidth(this._certificateColumns, 'sub3');
|
|
|
-},
|
|
|
-supplyColumns() {
|
|
|
- this.columnsVersion;
|
|
|
- return this.applyScopedColumnWidth(this._supplyColumns, 'sub2');
|
|
|
-},
|
|
|
-linkColumns() {
|
|
|
- this.columnsVersion;
|
|
|
- return this.applyScopedColumnWidth(this._linkColumns, 'sub1');
|
|
|
-},
|
|
|
-// 主表(银行信息)仍走 mixin 主表列宽逻辑,不改
|
|
|
-bankColumns() {
|
|
|
- this.columnsVersion;
|
|
|
- return this.applyColumnWidth(this._bankColumns);
|
|
|
-},
|
|
|
+ // 标准 mixin 列宽持久化:包成 computed 让 applyColumnWidth 应用缓存列宽
|
|
|
+ invoiceColumns() {
|
|
|
+ this.columnsVersion;
|
|
|
+ return this.applyScopedColumnWidth(this.invoiceColumnsRaw, 'sub8');
|
|
|
+ },
|
|
|
+ // 副表列宽:独立 scope,缓存与主表隔离,避免被 columnsContrast 当成已删除列清掉
|
|
|
+ reconciliationColumns() {
|
|
|
+ this.columnsVersion;
|
|
|
+ return this.applyScopedColumnWidth(this.reconciliationColumnsRaw, 'sub7');
|
|
|
+ },
|
|
|
+ returnColumns() {
|
|
|
+ this.columnsVersion;
|
|
|
+ return this.applyScopedColumnWidth(this.returnColumnsRaw, 'sub6');
|
|
|
+ },
|
|
|
+ sendColumns() {
|
|
|
+ this.columnsVersion;
|
|
|
+ return this.applyScopedColumnWidth(this.sendColumnsRaw, 'sub5');
|
|
|
+ },
|
|
|
+ orderColumns() {
|
|
|
+ this.columnsVersion;
|
|
|
+ return this.applyScopedColumnWidth(this.orderColumnsRaw, 'sub4');
|
|
|
+ },
|
|
|
+ certificateColumns() {
|
|
|
+ this.columnsVersion;
|
|
|
+ return this.applyScopedColumnWidth(this.certificateColumnsRaw, 'sub3');
|
|
|
+ },
|
|
|
+ supplyColumns() {
|
|
|
+ this.columnsVersion;
|
|
|
+ return this.applyScopedColumnWidth(this.supplyColumnsRaw, 'sub2');
|
|
|
+ },
|
|
|
+ linkColumns() {
|
|
|
+ this.columnsVersion;
|
|
|
+ return this.applyScopedColumnWidth(this.linkColumnsRaw, 'sub1');
|
|
|
+ },
|
|
|
+ // 主表(银行信息)仍走 mixin 主表列宽逻辑,不改
|
|
|
+ bankColumns() {
|
|
|
+ this.columnsVersion;
|
|
|
+ return this.applyColumnWidth(this.bankColumnsRaw);
|
|
|
+ },
|
|
|
},
|
|
|
|
|
|
methods: {
|