材料站班组结算
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){
|
||||
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) {
|
||||
return request({
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
noChildrenText="没有数据了"
|
||||
noOptionsText="没有数据"
|
||||
noResultsText="没有搜索结果"
|
||||
placeholder="请选择结算单位"
|
||||
placeholder="请选择结算班组"
|
||||
@select="unitChange"
|
||||
:multiple="true"
|
||||
></treeselect>
|
||||
|
|
@ -72,7 +72,7 @@
|
|||
</template>
|
||||
</el-table-column>
|
||||
<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="costs" :show-overflow-tooltip="true">
|
||||
<template slot-scope="scope" v-if="scope.row.costs != null && scope.row.costs != ''">
|
||||
|
|
@ -198,7 +198,8 @@
|
|||
|
||||
<script>
|
||||
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 vueEasyPrint from 'vue-easy-print'
|
||||
import Treeselect from '@riophae/vue-treeselect'
|
||||
|
|
@ -263,17 +264,6 @@ export default {
|
|||
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() {
|
||||
this.GetUnitData()
|
||||
// this.GetProData()
|
||||
|
|
@ -291,12 +281,12 @@ export default {
|
|||
children: node.children
|
||||
}
|
||||
},
|
||||
// 获取 来往单位 列表数据
|
||||
// 获取来往单位数据,只获取班组
|
||||
async GetUnitData() {
|
||||
const params = {
|
||||
// projectId: this.queryParams.projectId /* */,
|
||||
}
|
||||
const res = await getUnitList(params)
|
||||
const res = await getTeamList(params)
|
||||
this.unitList = res.data
|
||||
if (this.queryParams.projectId) {
|
||||
this.getAgreementInfo()
|
||||
|
|
@ -320,7 +310,7 @@ export default {
|
|||
const params = {
|
||||
unitIds: unitIdsAsNumbers
|
||||
}
|
||||
const res = await getProjectListByUnitIds(params)
|
||||
const res = await getClzProjectListByUnitIds(params)
|
||||
this.proList = res.data
|
||||
|
||||
this.getAgreementInfo()
|
||||
|
|
@ -362,7 +352,7 @@ export default {
|
|||
// ...this.queryParams,
|
||||
unitIds: this.unitIds
|
||||
}
|
||||
getSltAgreementInfo(params).then(response => {
|
||||
getClzSltAgreementInfo(params).then(response => {
|
||||
this.tableList = response.data.rows
|
||||
this.total = response.data.total
|
||||
this.loading = false
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<!-- 结算申请-->
|
||||
<!-- 材料站班组结算申请-->
|
||||
<div class="app-container">
|
||||
<PageHeader v-if="isShowComponent !== 'ApplyHome'" :pageContent="pageContent" @goBack="goBack" />
|
||||
<component :is="isShowComponent" :row="rowData" @goDetail="goDetail" @goBackPage="goBack" />
|
||||
|
|
@ -29,7 +29,7 @@ export default {
|
|||
// 退料编辑
|
||||
goDetail(rowData) {
|
||||
this.rowData = rowData
|
||||
this.pageContent = '结算详情'
|
||||
this.pageContent = '班组结算详情'
|
||||
this.isShowComponent = 'ApplyDetail'
|
||||
},
|
||||
goBack() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue