材料站班组结算
This commit is contained in:
parent
10aeb9ff75
commit
eabd6088b6
|
|
@ -9,6 +9,15 @@ export function getSltAgreementInfo(query) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 查询材料站费用结算申请列表
|
||||||
|
export function getClzSltAgreementInfo(query) {
|
||||||
|
return request({
|
||||||
|
url: '/material/material_sltAgreementInfo/getSltAgreementInfo4Project',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// 查询费用结算申请详情
|
// 查询费用结算申请详情
|
||||||
export function getSltInfo(params){
|
export function getSltInfo(params){
|
||||||
return request({
|
return request({
|
||||||
|
|
@ -128,6 +137,16 @@ export function getProjectListByUnitIds(params){
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 查询材料站的工程列表,根据班组ids
|
||||||
|
export function getClzProjectListByUnitIds(params){
|
||||||
|
return request({
|
||||||
|
url: '/material/material_sltAgreementInfo/getProjectListByUnitIds',
|
||||||
|
method: 'post',
|
||||||
|
data: params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// 协议
|
// 协议
|
||||||
export function getAgreementInfoById(data) {
|
export function getAgreementInfoById(data) {
|
||||||
return request({
|
return request({
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
noChildrenText="没有数据了"
|
noChildrenText="没有数据了"
|
||||||
noOptionsText="没有数据"
|
noOptionsText="没有数据"
|
||||||
noResultsText="没有搜索结果"
|
noResultsText="没有搜索结果"
|
||||||
placeholder="请选择结算单位"
|
placeholder="请选择结算班组"
|
||||||
@select="unitChange"
|
@select="unitChange"
|
||||||
:multiple="true"
|
:multiple="true"
|
||||||
></treeselect>
|
></treeselect>
|
||||||
|
|
@ -72,7 +72,7 @@
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="协议号" align="center" prop="agreementCode" :show-overflow-tooltip="true" />
|
<el-table-column label="协议号" align="center" prop="agreementCode" :show-overflow-tooltip="true" />
|
||||||
<el-table-column label="结算单位" align="center" prop="unitName" width="200" />
|
<el-table-column label="结算班组" align="center" prop="unitName" width="200" />
|
||||||
<el-table-column label="结算工程" align="center" prop="projectName" width="200" />
|
<el-table-column label="结算工程" align="center" prop="projectName" width="200" />
|
||||||
<el-table-column label="合计费用(元)" align="center" prop="costs" :show-overflow-tooltip="true">
|
<el-table-column label="合计费用(元)" align="center" prop="costs" :show-overflow-tooltip="true">
|
||||||
<template slot-scope="scope" v-if="scope.row.costs != null && scope.row.costs != ''">
|
<template slot-scope="scope" v-if="scope.row.costs != null && scope.row.costs != ''">
|
||||||
|
|
@ -198,7 +198,8 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getUnitList } from '@/api/back/index.js'
|
import { getUnitList } from '@/api/back/index.js'
|
||||||
import { getSltAgreementInfo, getProjectListByUnitIds, getAgreementInfoById, getSltInfo } from '@/api/cost/cost'
|
import { getTeamList } from '@/api/materialsStation/auth.js'
|
||||||
|
import { getSltAgreementInfo, getClzSltAgreementInfo, getProjectListByUnitIds, getClzProjectListByUnitIds, getAgreementInfoById, getSltInfo } from '@/api/cost/cost'
|
||||||
import { toChineseAmount } from '@/utils/bonus.js'
|
import { toChineseAmount } from '@/utils/bonus.js'
|
||||||
import vueEasyPrint from 'vue-easy-print'
|
import vueEasyPrint from 'vue-easy-print'
|
||||||
import Treeselect from '@riophae/vue-treeselect'
|
import Treeselect from '@riophae/vue-treeselect'
|
||||||
|
|
@ -263,17 +264,6 @@ export default {
|
||||||
newData: new Date().toISOString().split('T')[0]
|
newData: new Date().toISOString().split('T')[0]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// updated() {
|
|
||||||
// this.$nextTick(() => {
|
|
||||||
// // 通过 ref 获取 treeselect 组件的 DOM 元素
|
|
||||||
// const treeselectElm = this.$refs.treeselectRef.$el;
|
|
||||||
// if (treeselectElm && typeof treeselectElm.getBoundingClientRect === 'function') {
|
|
||||||
// const rect = treeselectElm.getBoundingClientRect();
|
|
||||||
// // 处理 rect
|
|
||||||
// console.log(rect);
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
// },
|
|
||||||
created() {
|
created() {
|
||||||
this.GetUnitData()
|
this.GetUnitData()
|
||||||
// this.GetProData()
|
// this.GetProData()
|
||||||
|
|
@ -291,12 +281,12 @@ export default {
|
||||||
children: node.children
|
children: node.children
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 获取 来往单位 列表数据
|
// 获取来往单位数据,只获取班组
|
||||||
async GetUnitData() {
|
async GetUnitData() {
|
||||||
const params = {
|
const params = {
|
||||||
// projectId: this.queryParams.projectId /* */,
|
// projectId: this.queryParams.projectId /* */,
|
||||||
}
|
}
|
||||||
const res = await getUnitList(params)
|
const res = await getTeamList(params)
|
||||||
this.unitList = res.data
|
this.unitList = res.data
|
||||||
if (this.queryParams.projectId) {
|
if (this.queryParams.projectId) {
|
||||||
this.getAgreementInfo()
|
this.getAgreementInfo()
|
||||||
|
|
@ -320,7 +310,7 @@ export default {
|
||||||
const params = {
|
const params = {
|
||||||
unitIds: unitIdsAsNumbers
|
unitIds: unitIdsAsNumbers
|
||||||
}
|
}
|
||||||
const res = await getProjectListByUnitIds(params)
|
const res = await getClzProjectListByUnitIds(params)
|
||||||
this.proList = res.data
|
this.proList = res.data
|
||||||
|
|
||||||
this.getAgreementInfo()
|
this.getAgreementInfo()
|
||||||
|
|
@ -362,7 +352,7 @@ export default {
|
||||||
// ...this.queryParams,
|
// ...this.queryParams,
|
||||||
unitIds: this.unitIds
|
unitIds: this.unitIds
|
||||||
}
|
}
|
||||||
getSltAgreementInfo(params).then(response => {
|
getClzSltAgreementInfo(params).then(response => {
|
||||||
this.tableList = response.data.rows
|
this.tableList = response.data.rows
|
||||||
this.total = response.data.total
|
this.total = response.data.total
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<!-- 结算申请-->
|
<!-- 材料站班组结算申请-->
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<PageHeader v-if="isShowComponent !== 'ApplyHome'" :pageContent="pageContent" @goBack="goBack" />
|
<PageHeader v-if="isShowComponent !== 'ApplyHome'" :pageContent="pageContent" @goBack="goBack" />
|
||||||
<component :is="isShowComponent" :row="rowData" @goDetail="goDetail" @goBackPage="goBack" />
|
<component :is="isShowComponent" :row="rowData" @goDetail="goDetail" @goBackPage="goBack" />
|
||||||
|
|
@ -29,7 +29,7 @@ export default {
|
||||||
// 退料编辑
|
// 退料编辑
|
||||||
goDetail(rowData) {
|
goDetail(rowData) {
|
||||||
this.rowData = rowData
|
this.rowData = rowData
|
||||||
this.pageContent = '结算详情'
|
this.pageContent = '班组结算详情'
|
||||||
this.isShowComponent = 'ApplyDetail'
|
this.isShowComponent = 'ApplyDetail'
|
||||||
},
|
},
|
||||||
goBack() {
|
goBack() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue