结算页面优化
This commit is contained in:
parent
e7f64beeb5
commit
40c37af130
|
|
@ -71,6 +71,10 @@ export const editSaveApi = (params) => {
|
||||||
export const submitFeeBearApi = (params) => {
|
export const submitFeeBearApi = (params) => {
|
||||||
return request.post('/material/sltAgreementInfo/submitFeeBear', params)
|
return request.post('/material/sltAgreementInfo/submitFeeBear', params)
|
||||||
}
|
}
|
||||||
|
/** 获取月结记录接口*/
|
||||||
|
export const getMonthRecordApi = (params) => {
|
||||||
|
return request.post('/material//sltAgreementInfo/getSltInfoMonth', params)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -137,19 +137,26 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { getMonthRecordApi } from '@/api/cost/cost.js'
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
monthRecordDialogVisible: {
|
monthRecordDialogVisible: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: () => false,
|
default: () => false,
|
||||||
},
|
},
|
||||||
|
getRecordParams: {
|
||||||
|
type: Array,
|
||||||
|
default: () => {
|
||||||
|
return []
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
// 费用承担方
|
// 费用承担方
|
||||||
costBearList: [
|
costBearList: [
|
||||||
{ id: 1, label: '全部', value: '' },
|
{ id: 1, label: '全部', value: '' },
|
||||||
{ id: 2, label: '01', value: '02' },
|
{ id: 2, label: '01', value: '01' },
|
||||||
{ id: 3, label: '03', value: '03' },
|
{ id: 3, label: '03', value: '03' },
|
||||||
],
|
],
|
||||||
// 查询参数
|
// 查询参数
|
||||||
|
|
@ -176,10 +183,16 @@ export default {
|
||||||
monthRecordTotal: 1,
|
monthRecordTotal: 1,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
created() {
|
||||||
|
this.getMonthRecordList()
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/** 获取月结记录列表数据 */
|
/** 获取月结记录列表数据 */
|
||||||
async getMonthRecordList() {
|
async getMonthRecordList() {
|
||||||
|
// console.log('99999')
|
||||||
// 调后台 Api 获取数据
|
// 调后台 Api 获取数据
|
||||||
|
const res = await getMonthRecordApi(this.getRecordParams)
|
||||||
|
console.log(res, '月结记录---')
|
||||||
},
|
},
|
||||||
/** 查询 */
|
/** 查询 */
|
||||||
handleQuery() {
|
handleQuery() {
|
||||||
|
|
@ -218,9 +231,6 @@ export default {
|
||||||
this.innerVisible = true
|
this.innerVisible = true
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
created() {
|
|
||||||
// this.getMonthRecordList()
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -180,7 +180,9 @@
|
||||||
/>
|
/>
|
||||||
<!-- 月结记录弹框 -->
|
<!-- 月结记录弹框 -->
|
||||||
<MonthRecord
|
<MonthRecord
|
||||||
|
v-if="monthRecordDialogVisible"
|
||||||
:monthRecordDialogVisible="monthRecordDialogVisible"
|
:monthRecordDialogVisible="monthRecordDialogVisible"
|
||||||
|
:getRecordParams="getRecordParams"
|
||||||
@handleCloseMonthRecordDialog="handleCloseMonthRecordDialog"
|
@handleCloseMonthRecordDialog="handleCloseMonthRecordDialog"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -259,6 +261,8 @@ export default {
|
||||||
currRowInfo: null,
|
currRowInfo: null,
|
||||||
// 页面标题
|
// 页面标题
|
||||||
pageContent: '',
|
pageContent: '',
|
||||||
|
// 查询月结记录的参数
|
||||||
|
getRecordParams: [],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
@ -352,6 +356,8 @@ export default {
|
||||||
},
|
},
|
||||||
/** 月结记录 */
|
/** 月结记录 */
|
||||||
handleMonthRecord(row) {
|
handleMonthRecord(row) {
|
||||||
|
this.getRecordParams.push({ agreementId: row.agreementId })
|
||||||
|
console.log(this.getRecordParams, '月结记录')
|
||||||
this.monthRecordDialogVisible = true
|
this.monthRecordDialogVisible = true
|
||||||
},
|
},
|
||||||
/** 完工结算 结算明细*/
|
/** 完工结算 结算明细*/
|
||||||
|
|
|
||||||
|
|
@ -453,7 +453,6 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
selectType(id) {
|
selectType(id) {
|
||||||
console.log(id)
|
|
||||||
getListByMaType({ typeId: id }).then((response) => {
|
getListByMaType({ typeId: id }).then((response) => {
|
||||||
this.modelList = response.data
|
this.modelList = response.data
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue