Browse Source

20240221

java8
qiezi 11 months ago
parent
commit
ec88ae557a
  1. 7
      src/assets/scss/global.scss
  2. 41
      src/views/modules/quote/index.vue
  3. 2
      src/views/modules/quote/primary/quoteTable.vue
  4. 41
      src/views/modules/quote/quoteDetailReport.vue
  5. 167
      src/views/modules/quote/quotes.vue

7
src/assets/scss/global.scss

@ -458,3 +458,10 @@ a:hover{
width: 200px; width: 200px;
line-height: 18px; line-height: 18px;
} }
//盒子高度
.box-container{
display: flex;
flex-direction: column;
height: calc(100vh - 100px);
min-height: 200px;
}

41
src/views/modules/quote/index.vue

@ -20,7 +20,7 @@ import QuoteDetail from "./detail/quoteDetail.vue";
import ChooseListEam from "../common/Chooselist_eam.vue"; import ChooseListEam from "../common/Chooselist_eam.vue";
import Quotes from "./quotes.vue"; import Quotes from "./quotes.vue";
import QuoteGroupDetail from "./detail/quoteGroupDetail.vue"; import QuoteGroupDetail from "./detail/quoteGroupDetail.vue";
import {updateColumnSize} from "../../../api/table";
import {getTableDefaultListLanguage, getTableUserListLanguage, updateColumnSize} from "../../../api/table";
export default { export default {
name: "quote", name: "quote",
@ -380,6 +380,44 @@ export default {
} }
}, },
methods:{ methods:{
//
async getTableUserColumn(tableId, columnId) {
let queryTableUser = {
userId: this.$store.state.user.name,
functionId: this.$route.meta.menuId,
tableId: tableId,
status: true,
languageCode: this.$i18n.locale
}
await getTableUserListLanguage(queryTableUser).then(({data}) => {
if (data.rows.length > 0) {
switch (columnId) {
case 1:
this.columns = data.rows
break;
}
} else {
this.getColumnList(tableId, columnId)
}
})
},
// tableDefault
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.columns = data.rows
break;
}
}
})
},
handleColumnResize(newWidth, oldWidth, column, event){ handleColumnResize(newWidth, oldWidth, column, event){
let inData= this.columnList.filter(item => item.columnProp === column.property)[0] let inData= this.columnList.filter(item => item.columnProp === column.property)[0]
inData.columnWidth=newWidth inData.columnWidth=newWidth
@ -775,6 +813,7 @@ export default {
} }
this.handleQueryBu();// BU this.handleQueryBu();// BU
this.handleSearch(0);// this.handleSearch(0);//
this.getTableUserColumn(this.$route.meta.menuId+'table1',1)
}, },
watch:{ watch:{
'quoteForm.customerNo'(newVal, oldVal){ 'quoteForm.customerNo'(newVal, oldVal){

2
src/views/modules/quote/primary/quoteTable.vue

@ -95,7 +95,7 @@ export default {
:header-align="item.headerAlign" :header-align="item.headerAlign"
:show-overflow-tooltip="item.showOverflowTooltip" :show-overflow-tooltip="item.showOverflowTooltip"
:align="item.align" :align="item.align"
:fixed="item.fixed===''?false:item.fixed"
:fixed="item.fixed === ''?false:item.fixed"
:min-width="item.columnWidth" :min-width="item.columnWidth"
:label="item.columnLabel"> :label="item.columnLabel">
<!-- <template slot="header" slot-scope="scope">--> <!-- <template slot="header" slot-scope="scope">-->

41
src/views/modules/quote/quoteDetailReport.vue

@ -14,7 +14,7 @@ import QuoteDetailOther from "./detail/primary/quoteDetailOther.vue";
import QuoteDetailCost from "./detail/primary/quoteDetailCost.vue"; import QuoteDetailCost from "./detail/primary/quoteDetailCost.vue";
import QuoteDetailRouting from "./detail/primary/quoteDetailRouting.vue"; import QuoteDetailRouting from "./detail/primary/quoteDetailRouting.vue";
import TpCost from "./detail/tpCost.vue"; import TpCost from "./detail/tpCost.vue";
import {updateColumnSize} from "../../../api/table";
import {getTableDefaultListLanguage, getTableUserListLanguage, updateColumnSize} from "../../../api/table";
export default { export default {
name: "quoteDetailReport", name: "quoteDetailReport",
@ -285,6 +285,44 @@ export default {
} }
}, },
methods: { methods: {
//
async getTableUserColumn(tableId, columnId) {
let queryTableUser = {
userId: this.$store.state.user.name,
functionId: this.$route.meta.menuId,
tableId: tableId,
status: true,
languageCode: this.$i18n.locale
}
await getTableUserListLanguage(queryTableUser).then(({data}) => {
if (data.rows.length > 0) {
switch (columnId) {
case 1:
this.columns = data.rows
break;
}
} else {
this.getColumnList(tableId, columnId)
}
})
},
// tableDefault
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.columns = data.rows
break;
}
}
})
},
handleColumnResize(newWidth, oldWidth, column, event){ handleColumnResize(newWidth, oldWidth, column, event){
let inData= this.columnList.filter(item => item.columnProp === column.property)[0] let inData= this.columnList.filter(item => item.columnProp === column.property)[0]
inData.columnWidth=newWidth inData.columnWidth=newWidth
@ -425,6 +463,7 @@ export default {
}, },
created() { created() {
this.getSiteAndBuByUserName(); this.getSiteAndBuByUserName();
this.getTableUserColumn(this.$route.meta.menuId+'table1',1)
}, },
activated() { activated() {
if (this.$route.params.type && this.$route.params.type === 'quote'){ if (this.$route.params.type && this.$route.params.type === 'quote'){

167
src/views/modules/quote/quotes.vue

@ -4,7 +4,7 @@ import {queryQuotationInformationByPage} from "@/api/quote/quotationInformation"
import {batchSaveQuote} from "@/api/quote/quote"; import {batchSaveQuote} from "@/api/quote/quote";
import {getSiteAndBuByUserName} from "../../../api/qc/qc"; import {getSiteAndBuByUserName} from "../../../api/qc/qc";
import {searchInquiryDetailHeaderInfo} from "../../../api/inquiry/inquiryDetail"; import {searchInquiryDetailHeaderInfo} from "../../../api/inquiry/inquiryDetail";
import {updateColumnSize} from "../../../api/table";
import {getTableDefaultListLanguage, getTableUserListLanguage, updateColumnSize} from "../../../api/table";
export default { export default {
name: "quotes", name: "quotes",
@ -52,9 +52,9 @@ export default {
columns:[ columns:[
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 102001,
serialNumber: '102001Table1BuDesc',
tableId: '102001Table1',
functionId: 5012,
serialNumber: '5012Table1BuDesc',
tableId: '5012Table1',
tableName: '询价信息表', tableName: '询价信息表',
columnProp: 'buDesc', columnProp: 'buDesc',
headerAlign: 'center', headerAlign: 'center',
@ -70,9 +70,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 102001,
serialNumber: '102001Table1rfqNo',
tableId: '102001Table1',
functionId: 5012,
serialNumber: '5012Table1rfqNo',
tableId: '5012Table1',
tableName: '询价信息表', tableName: '询价信息表',
columnProp: 'rfqNo', columnProp: 'rfqNo',
headerAlign: 'center', headerAlign: 'center',
@ -88,9 +88,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 102001,
serialNumber: '102001Table1CustomerNo',
tableId: '102001Table1',
functionId: 5012,
serialNumber: '5012Table1CustomerNo',
tableId: '5012Table1',
tableName: '询价信息表', tableName: '询价信息表',
columnProp: 'customerNo', columnProp: 'customerNo',
headerAlign: 'center', headerAlign: 'center',
@ -106,9 +106,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 102001,
serialNumber: '102001Table1CustomerDesc',
tableId: '102001Table1',
functionId: 5012,
serialNumber: '5012Table1CustomerDesc',
tableId: '5012Table1',
tableName: '询价信息表', tableName: '询价信息表',
columnProp: 'customerDesc', columnProp: 'customerDesc',
headerAlign: 'center', headerAlign: 'center',
@ -124,9 +124,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 102001,
serialNumber: '102001Table1RequestDate',
tableId: '102001Table1',
functionId: 5012,
serialNumber: '5012Table1RequestDate',
tableId: '5012Table1',
tableName: '询价信息表', tableName: '询价信息表',
columnProp: 'requestDate', columnProp: 'requestDate',
headerAlign: 'center', headerAlign: 'center',
@ -142,9 +142,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 102001,
serialNumber: '102001Table1RequesterName',
tableId: '102001Table1',
functionId: 5012,
serialNumber: '5012Table1RequesterName',
tableId: '5012Table1',
tableName: '询价信息表', tableName: '询价信息表',
columnProp: 'requesterName', columnProp: 'requesterName',
headerAlign: 'center', headerAlign: 'center',
@ -160,9 +160,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 102001,
serialNumber: '102001Table1QuoterName',
tableId: '102001Table1',
functionId: 5012,
serialNumber: '5012Table1QuoterName',
tableId: '5012Table1',
tableName: '询价信息表', tableName: '询价信息表',
columnProp: 'quoterName', columnProp: 'quoterName',
headerAlign: 'center', headerAlign: 'center',
@ -178,9 +178,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 102001,
serialNumber: '102001Table1RequiredCompletionDate',
tableId: '102001Table1',
functionId: 5012,
serialNumber: '5012Table1RequiredCompletionDate',
tableId: '5012Table1',
tableName: '询价信息表', tableName: '询价信息表',
columnProp: 'requiredCompletionDate', columnProp: 'requiredCompletionDate',
headerAlign: 'center', headerAlign: 'center',
@ -196,9 +196,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 102001,
serialNumber: '102001Table1CustomerInquiryNo',
tableId: '102001Table1',
functionId: 5012,
serialNumber: '5012Table1CustomerInquiryNo',
tableId: '5012Table1',
tableName: '询价信息表', tableName: '询价信息表',
columnProp: 'customerInquiryNo', columnProp: 'customerInquiryNo',
headerAlign: 'center', headerAlign: 'center',
@ -214,9 +214,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 102001,
serialNumber: '102001Table2PartNo',
tableId: '102001Table2',
functionId: 5012,
serialNumber: '5012Table2PartNo',
tableId: '5012Table2',
tableName: '询价产品表', tableName: '询价产品表',
columnProp: 'partNo', columnProp: 'partNo',
headerAlign: 'center', headerAlign: 'center',
@ -232,9 +232,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 102001,
serialNumber: '102001Table2PartDesc',
tableId: '102001Table2',
functionId: 5012,
serialNumber: '5012Table2PartDesc',
tableId: '5012Table2',
tableName: '询价产品表', tableName: '询价产品表',
columnProp: 'partDesc', columnProp: 'partDesc',
headerAlign: 'center', headerAlign: 'center',
@ -250,9 +250,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 102001,
serialNumber: '102001Table1Status',
tableId: '102001Table1',
functionId: 5012,
serialNumber: '5012Table1Status',
tableId: '5012Table1',
tableName: '询价信息表', tableName: '询价信息表',
columnProp: 'status', columnProp: 'status',
headerAlign: 'center', headerAlign: 'center',
@ -268,9 +268,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 102001,
serialNumber: '102001Table2InquiryQty',
tableId: '102001Table2',
functionId: 5012,
serialNumber: '5012Table2InquiryQty',
tableId: '5012Table2',
tableName: '询价产品表', tableName: '询价产品表',
columnProp: 'inquiryQty', columnProp: 'inquiryQty',
headerAlign: 'center', headerAlign: 'center',
@ -286,9 +286,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 102001,
serialNumber: '102001Table2Unit',
tableId: '102001Table2',
functionId: 5012,
serialNumber: '5012Table2Unit',
tableId: '5012Table2',
tableName: '询价产品表', tableName: '询价产品表',
columnProp: 'umName', columnProp: 'umName',
headerAlign: 'center', headerAlign: 'center',
@ -304,9 +304,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 102001,
serialNumber: '102001Table2CodeNo',
tableId: '102001Table2',
functionId: 5012,
serialNumber: '5012Table2CodeNo',
tableId: '5012Table2',
tableName: '询价产品表', tableName: '询价产品表',
columnProp: 'codeNo', columnProp: 'codeNo',
headerAlign: 'center', headerAlign: 'center',
@ -322,9 +322,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 102001,
serialNumber: '102001Table1PriorityLevel',
tableId: '102001Table1',
functionId: 5012,
serialNumber: '5012Table1PriorityLevel',
tableId: '5012Table1',
tableName: '询价信息表', tableName: '询价信息表',
columnProp: 'priorityLevel', columnProp: 'priorityLevel',
headerAlign: 'center', headerAlign: 'center',
@ -340,9 +340,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 102001,
serialNumber: '102001Table2Remark',
tableId: '102001Table2',
functionId: 5012,
serialNumber: '5012Table2Remark',
tableId: '5012Table2',
tableName: '询价产品表', tableName: '询价产品表',
columnProp: 'remark', columnProp: 'remark',
headerAlign: 'center', headerAlign: 'center',
@ -358,9 +358,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 102001,
serialNumber: '102001Table1CreateDate',
tableId: '102001Table1',
functionId: 5012,
serialNumber: '5012Table1CreateDate',
tableId: '5012Table1',
tableName: '询价信息表', tableName: '询价信息表',
columnProp: 'createDate', columnProp: 'createDate',
headerAlign: 'center', headerAlign: 'center',
@ -376,9 +376,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 102001,
serialNumber: '102001Table1CreateBy',
tableId: '102001Table1',
functionId: 5012,
serialNumber: '5012Table1CreateBy',
tableId: '5012Table1',
tableName: '询价信息表', tableName: '询价信息表',
columnProp: 'createBy', columnProp: 'createBy',
headerAlign: 'center', headerAlign: 'center',
@ -394,9 +394,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 102001,
serialNumber: '102001Table1UpdateDate',
tableId: '102001Table1',
functionId: 5012,
serialNumber: '5012Table1UpdateDate',
tableId: '5012Table1',
tableName: '询价信息表', tableName: '询价信息表',
columnProp: 'updateDate', columnProp: 'updateDate',
headerAlign: 'center', headerAlign: 'center',
@ -412,9 +412,9 @@ export default {
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 102001,
serialNumber: '102001Table1UpdateBy',
tableId: '102001Table1',
functionId: 5012,
serialNumber: '5012Table1UpdateBy',
tableId: '5012Table1',
tableName: '询价信息表', tableName: '询价信息表',
columnProp: 'updateBy', columnProp: 'updateBy',
headerAlign: 'center', headerAlign: 'center',
@ -433,6 +433,44 @@ export default {
} }
}, },
methods:{ methods:{
//
async getTableUserColumn(tableId, columnId) {
let queryTableUser = {
userId: this.$store.state.user.name,
functionId: this.$route.meta.menuId,
tableId: tableId,
status: true,
languageCode: this.$i18n.locale
}
await getTableUserListLanguage(queryTableUser).then(({data}) => {
if (data.rows.length > 0) {
switch (columnId) {
case 1:
this.columns = data.rows
break;
}
} else {
this.getColumnList(tableId, columnId)
}
})
},
// tableDefault
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.columns = data.rows
break;
}
}
})
},
handleColumnResize(newWidth, oldWidth, column, event){ handleColumnResize(newWidth, oldWidth, column, event){
let inData= this.columnList.filter(item => item.columnProp === column.property)[0] let inData= this.columnList.filter(item => item.columnProp === column.property)[0]
inData.columnWidth=newWidth inData.columnWidth=newWidth
@ -521,6 +559,7 @@ export default {
}, },
created() { created() {
this.handleQuery(); this.handleQuery();
this.getTableUserColumn(this.$route.meta.menuId+'table1',1)
} }
} }
</script> </script>

Loading…
Cancel
Save