结算页面优化

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) => { 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)
}

View File

@ -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>

View File

@ -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
}, },
/** 完工结算 结算明细*/ /** 完工结算 结算明细*/

View File

@ -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
}) })