Browse Source

2026-06-10

生产派工单列表增加动态列
master
fengyuan_yang 3 days ago
parent
commit
bcc87f22b7
  1. 391
      src/views/modules/shopOrder/productionOrderScheduling/searchProductionDispatchList.vue

391
src/views/modules/shopOrder/productionOrderScheduling/searchProductionDispatchList.vue

@ -232,7 +232,7 @@
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> <Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist>
<!-- 动态列 --> <!-- 动态列 -->
<column v-if="visible" ref="column" @refreshData="getTableUserColumn" v-drag></column>
<!-- <column v-if="visible" ref="column" @refreshData="getTableUserColumn" v-drag></column>-->
</div> </div>
</template> </template>
@ -330,9 +330,9 @@ export default {
columnList: [ columnList: [
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableSerialNumber',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableSerialNumber',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "serialNumber", columnProp: "serialNumber",
headerAlign: "center", headerAlign: "center",
@ -348,9 +348,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableOrderNo',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableOrderNo',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "orderNo", columnProp: "orderNo",
headerAlign: "center", headerAlign: "center",
@ -366,9 +366,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableSeqNo',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableSeqNo',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "seqNo", columnProp: "seqNo",
headerAlign: "center", headerAlign: "center",
@ -384,9 +384,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableItemNo',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableItemNo',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "itemNo", columnProp: "itemNo",
headerAlign: "center", headerAlign: "center",
@ -402,9 +402,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableOperationDesc',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableOperationDesc',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "operationDesc", columnProp: "operationDesc",
headerAlign: "center", headerAlign: "center",
@ -420,9 +420,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableSResourceID',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableSResourceID',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "sResourceID", columnProp: "sResourceID",
headerAlign: "center", headerAlign: "center",
@ -438,9 +438,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TablePlanStartTime',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TablePlanStartTime',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "planStartTime", columnProp: "planStartTime",
headerAlign: "center", headerAlign: "center",
@ -456,9 +456,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TablePlanFinishTime',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TablePlanFinishTime',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "planFinishTime", columnProp: "planFinishTime",
headerAlign: "center", headerAlign: "center",
@ -474,9 +474,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableInAdvancedFlag',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableInAdvancedFlag',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "inAdvancedFlag", columnProp: "inAdvancedFlag",
headerAlign: "center", headerAlign: "center",
@ -492,9 +492,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TablePreOpsPlanStartTime',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TablePreOpsPlanStartTime',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "preOpsPlanStartTime", columnProp: "preOpsPlanStartTime",
headerAlign: "center", headerAlign: "center",
@ -510,9 +510,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TablePreOpsPlanFinishTime',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TablePreOpsPlanFinishTime',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "preOpsPlanFinishTime", columnProp: "preOpsPlanFinishTime",
headerAlign: "center", headerAlign: "center",
@ -528,9 +528,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TablePartNo',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TablePartNo',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "partNo", columnProp: "partNo",
headerAlign: "center", headerAlign: "center",
@ -546,9 +546,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TablePartDescription',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TablePartDescription',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "partDescription", columnProp: "partDescription",
headerAlign: "center", headerAlign: "center",
@ -564,9 +564,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableSpec',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableSpec',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "spec", columnProp: "spec",
headerAlign: "center", headerAlign: "center",
@ -582,9 +582,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableOrderQty',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableOrderQty',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "orderQty", columnProp: "orderQty",
headerAlign: "center", headerAlign: "center",
@ -600,9 +600,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableLotSize',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableLotSize',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "lotSize", columnProp: "lotSize",
headerAlign: "center", headerAlign: "center",
@ -618,9 +618,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableTotalRoll',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableTotalRoll',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "totalRoll", columnProp: "totalRoll",
headerAlign: "center", headerAlign: "center",
@ -636,9 +636,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableTotalRoll',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableRowCount',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "rowCount", columnProp: "rowCount",
headerAlign: "center", headerAlign: "center",
@ -654,9 +654,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableTotalRoll',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableRollCount',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "rollCount", columnProp: "rollCount",
headerAlign: "center", headerAlign: "center",
@ -672,9 +672,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableQtyReported',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableQtyReported',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "qtyReported", columnProp: "qtyReported",
headerAlign: "center", headerAlign: "center",
@ -690,9 +690,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableRollCount',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableRollCount',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "rollCount", columnProp: "rollCount",
headerAlign: "center", headerAlign: "center",
@ -708,9 +708,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableLotSize',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableQtyToReport',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "qtyToReport", columnProp: "qtyToReport",
headerAlign: "center", headerAlign: "center",
@ -726,9 +726,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableClosedFlag',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableClosedFlag',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "closedFlag", columnProp: "closedFlag",
headerAlign: "center", headerAlign: "center",
@ -744,9 +744,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableTimeRequired',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableTimeRequired',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "timeRequired", columnProp: "timeRequired",
headerAlign: "center", headerAlign: "center",
@ -762,9 +762,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableNeedDate',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableNeedDate',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "needDate", columnProp: "needDate",
headerAlign: "center", headerAlign: "center",
@ -780,9 +780,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TablePreItemNo',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TablePreItemNo',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "preItemNo", columnProp: "preItemNo",
headerAlign: "center", headerAlign: "center",
@ -798,9 +798,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TablePreOperationDesc',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TablePreOperationDesc',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "preOperationDesc", columnProp: "preOperationDesc",
headerAlign: "center", headerAlign: "center",
@ -816,9 +816,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TablePreScheduledFlag',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TablePreScheduledFlag',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "preScheduledFlag", columnProp: "preScheduledFlag",
headerAlign: "center", headerAlign: "center",
@ -834,9 +834,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableNextItemNo',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableNextItemNo',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "nextItemNo", columnProp: "nextItemNo",
headerAlign: "center", headerAlign: "center",
@ -852,9 +852,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableNextOperationDesc',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableNextOperationDesc',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "nextOperationDesc", columnProp: "nextOperationDesc",
headerAlign: "center", headerAlign: "center",
@ -870,9 +870,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableNextScheduledFlag',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableNextScheduledFlag',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "nextScheduledFlag", columnProp: "nextScheduledFlag",
headerAlign: "center", headerAlign: "center",
@ -888,9 +888,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableConfigurationTemplateID',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableCustomerName',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "CustomerName", columnProp: "CustomerName",
headerAlign: "center", headerAlign: "center",
@ -906,9 +906,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableEnterDate',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableEnterDate',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "enterDate", columnProp: "enterDate",
headerAlign: "center", headerAlign: "center",
@ -924,9 +924,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableAvailResource',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableAvailResource',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "availResource", columnProp: "availResource",
headerAlign: "center", headerAlign: "center",
@ -942,9 +942,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableWorkCenterNo',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableWorkCenterNo',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "workCenterNo", columnProp: "workCenterNo",
headerAlign: "center", headerAlign: "center",
@ -960,9 +960,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableMachRunFactor',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableMachRunFactor',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "machRunFactor", columnProp: "machRunFactor",
headerAlign: "center", headerAlign: "center",
@ -978,9 +978,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableMachSetupTime',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableMachSetupTime',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "machSetupTime", columnProp: "machSetupTime",
headerAlign: "center", headerAlign: "center",
@ -996,9 +996,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableFactorUnit',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableFactorUnit',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "factorUnit", columnProp: "factorUnit",
headerAlign: "center", headerAlign: "center",
@ -1014,9 +1014,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableQtyScheduledPreOps',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableQtyScheduledPreOps',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "qtyScheduledPreOps", columnProp: "qtyScheduledPreOps",
headerAlign: "center", headerAlign: "center",
@ -1032,9 +1032,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableLatethanShipTime',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableLatethanShipTime',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "latethanShipTime", columnProp: "latethanShipTime",
headerAlign: "center", headerAlign: "center",
@ -1050,9 +1050,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableTimeRequiredOriginal',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableRequiredOriginal',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "requiredOriginal", columnProp: "requiredOriginal",
headerAlign: "center", headerAlign: "center",
@ -1068,9 +1068,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableParkFlag',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableParkFlag',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "parkFlag", columnProp: "parkFlag",
headerAlign: "center", headerAlign: "center",
@ -1086,9 +1086,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableCustPartNo',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableCustPartNo',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "custPartNo", columnProp: "custPartNo",
headerAlign: "center", headerAlign: "center",
@ -1104,9 +1104,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableClosedby',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableClosedby',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "closedby", columnProp: "closedby",
headerAlign: "center", headerAlign: "center",
@ -1122,9 +1122,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableClosedDate',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableClosedDate',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "closedDate", columnProp: "closedDate",
headerAlign: "center", headerAlign: "center",
@ -1140,9 +1140,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 6023,
serialNumber: '6023TableRemark',
tableId: "6023Table",
functionId: 104001005,
serialNumber: '104001005TableRemark',
tableId: "104001005Table",
tableName: "查询生产派工单表", tableName: "查询生产派工单表",
columnProp: "remark", columnProp: "remark",
headerAlign: "center", headerAlign: "center",
@ -1157,20 +1157,6 @@ export default {
columnWidth: 150 columnWidth: 150
} }
], ],
queryTable: {
userId: this.$store.state.user.name,
functionId: this.$route.meta.menuId,
tableId: "6023Table",
languageCode: this.$i18n.locale
},
// table
queryTableUser: {
userId: this.$store.state.user.name,
functionId: this.$route.meta.menuId,
tableId: "6023Table",
status: true,
languageCode: this.$i18n.locale
},
// table // table
userColumnList: [], userColumnList: [],
} }
@ -1635,97 +1621,50 @@ export default {
}); });
}, },
//
userSetting() {
this.visible = true;
let queryTable = {
//
async getTableUserColumn (tableId, columnId) {
let queryTableUser = {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: this.$route.meta.menuId, functionId: this.$route.meta.menuId,
tableId: "6023Table",
tableId: tableId,
status: true,
languageCode: this.$i18n.locale languageCode: this.$i18n.locale
} }
this.$nextTick(() => {
this.$refs.column.init(queryTable);
});
},
//
getTableUserColumn() {
getTableUserListLanguage(this.queryTableUser).then(({data}) => {
await getTableUserListLanguage(queryTableUser).then(({data}) => {
if (data.rows.length > 0) { if (data.rows.length > 0) {
//this.columnList = []
this.columnList = data.rows;
switch (columnId) {
case 1:
this.columnList = data.rows
break;
}
} else { } else {
this.getColumnList()
this.getColumnList(tableId, columnId)
} }
}) })
}, },
//
async saveColumnList() {
//
if (this.userColumnList) {
// user
await removerUser(this.queryTable)
}
//
await removerDefault(this.queryTable)
// table
let sumColumnList = this.columnList;//concat(this.columnList1);
sumColumnList = sumColumnList.map(item => {
return item = {
tableId: item.tableId,
tableName: item.tableName,
columnProp: item.columnProp,
columnLabel: item.columnLabel,
columnHidden: false,
columnImage: false,
columnSortable: item.columnSortable,
columnWidth: item.columnWidth,
format: item.format,
functionId: this.$route.meta.menuId,
sortLv: item.sortLv,
status: true,
fixed: item.fixed,
serialNumber: item.serialNumber,
columnType: item.columnType,
align: item.align
}
})
await saveTableDefaultList(sumColumnList)
// button label title
/* let buttons = this.buttonList.map(item => {
return item = {
functionId: this.$route.meta.menuId,
languageValue: item.languageValue,
objectId: item.objectId,
objectType: item.objectType,
tableId: item.tableId
}
})
await saveButtonList(buttons)*/
this.getFunctionButtonList()
this.getColumnList()
},
// tableDefault // tableDefault
getColumnList() {
getTableDefaultListLanguage(this.queryTable).then(({data}) => {
if (!data.rows.length == 0) {
// this.showDefault = false
this.columnList = data.rows
} else {
// this.showDefault = true
async getColumnList (tableId, columnId) {
let queryTable = {
functionId: this.$route.meta.menuId,
tableId: tableId,
languageCode: this.$i18n.locale
}
await getTableDefaultListLanguage(queryTable).then(({data}) => {
if (data.rows.length !== 0) {
switch (columnId) {
case 1:
this.columnList = data.rows
break;
}
} }
}) })
}, },
}, },
created() { created() {
// //
// this.getTableUserColumn();
this.getTableUserColumn(this.$route.meta.menuId+'table',1)
} }
} }
</script> </script>

Loading…
Cancel
Save