结算页面优化
This commit is contained in:
parent
e7f64beeb5
commit
40c37af130
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
},
|
||||
/** 完工结算 结算明细*/
|
||||
|
|
|
|||
|
|
@ -453,7 +453,6 @@ export default {
|
|||
})
|
||||
},
|
||||
selectType(id) {
|
||||
console.log(id)
|
||||
getListByMaType({ typeId: id }).then((response) => {
|
||||
this.modelList = response.data
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue