结算页面优化

This commit is contained in:
BianLzhaoMin 2024-08-01 16:06:28 +08:00
parent e7f64beeb5
commit 40c37af130
4 changed files with 24 additions and 5 deletions

View File

@ -71,6 +71,10 @@ export const editSaveApi = (params) => {
export const submitFeeBearApi = (params) => {
return request.post('/material/sltAgreementInfo/submitFeeBear', params)
}
/** 获取月结记录接口*/
export const getMonthRecordApi = (params) => {
return request.post('/material//sltAgreementInfo/getSltInfoMonth', params)
}

View File

@ -137,19 +137,26 @@
</template>
<script>
import { getMonthRecordApi } from '@/api/cost/cost.js'
export default {
props: {
monthRecordDialogVisible: {
type: Boolean,
default: () => false,
},
getRecordParams: {
type: Array,
default: () => {
return []
},
},
},
data() {
return {
//
costBearList: [
{ id: 1, label: '全部', value: '' },
{ id: 2, label: '01', value: '02' },
{ id: 2, label: '01', value: '01' },
{ id: 3, label: '03', value: '03' },
],
//
@ -176,10 +183,16 @@ export default {
monthRecordTotal: 1,
}
},
created() {
this.getMonthRecordList()
},
methods: {
/** 获取月结记录列表数据 */
async getMonthRecordList() {
// console.log('99999')
// Api
const res = await getMonthRecordApi(this.getRecordParams)
console.log(res, '月结记录---')
},
/** 查询 */
handleQuery() {
@ -218,9 +231,6 @@ export default {
this.innerVisible = true
},
},
created() {
// this.getMonthRecordList()
},
}
</script>

View File

@ -180,7 +180,9 @@
/>
<!-- 月结记录弹框 -->
<MonthRecord
v-if="monthRecordDialogVisible"
:monthRecordDialogVisible="monthRecordDialogVisible"
:getRecordParams="getRecordParams"
@handleCloseMonthRecordDialog="handleCloseMonthRecordDialog"
/>
</template>
@ -259,6 +261,8 @@ export default {
currRowInfo: null,
//
pageContent: '',
//
getRecordParams: [],
}
},
created() {
@ -352,6 +356,8 @@ export default {
},
/** 月结记录 */
handleMonthRecord(row) {
this.getRecordParams.push({ agreementId: row.agreementId })
console.log(this.getRecordParams, '月结记录')
this.monthRecordDialogVisible = true
},
/** 完工结算 结算明细*/

View File

@ -453,7 +453,6 @@ export default {
})
},
selectType(id) {
console.log(id)
getListByMaType({ typeId: id }).then((response) => {
this.modelList = response.data
})