You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

227 lines
8.0 KiB

<template>
<div class="app-container">
<button-bar ref="btnbar" view-title="监管工作日报" :btndisabled="btndisabled" @btnhandle="btnHandle" />
<div class="main-content">
<div class="searchcon">
<div class="search" style="margin-top: 5px;">
<el-form ref="sform" :model="queryParams" :inline="true" class="tab-header">
<el-form-item label="数据日期">
<el-date-picker v-model="queryParams.params.dataDateStart" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择数据开始日期" style="width: 140px;" />
<span style="padding: 0 8px">至</span>
<el-date-picker v-model="queryParams.params.dataDateEnd" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择数据结束日期" style="width: 140px;" />
</el-form-item> </el-form>
<div class="btn" style="text-align: center">
<el-button type="primary" size="small" icon="el-icon-search" @click="dosearch">查询</el-button>
<el-button type="primary" size="small" icon="el-icon-refresh" @click="resetQuery">重置</el-button>
</div>
</div>
</div>
<div class="listtop">
<div class="tit">工作日报列表</div>
</div>
<el-table v-loading="tableloading" :data="logList" style="width: 100%" border>
<el-table-column prop="orderDate" label="数据日期" align="center" width="110" />
<el-table-column prop="projectName" label="项目名称" align="center" />
<el-table-column prop="totalLoan" label="授信总额(元)" align="center" width="140" />
<el-table-column prop="useLimit" label="用信额度(元)" align="center" width="140" />
<el-table-column prop="accountsBalance" label="帐户余额(元)" align="center" width="140" />
<el-table-column prop="accountsReceivable" label="应收账款(元)" align="center" width="140" />
<el-table-column prop="stockAmount" label="库存货值(元)" align="center" width="140" />
<el-table-column prop="transitAmount" label="在途货值(元)" align="center" width="140" />
<el-table-column prop="advancePayment" label="预付款(元)" align="center" width="140" />
<el-table-column prop="advancePayment" label="质押率" align="center" width="80">
<template slot-scope="scope">
<div>{{ scope.row.pledgeRatePercent }}%</div>
</template>
</el-table-column>
<el-table-column label="操作" align="center" width="150">
<template slot-scope="scope">
<el-button type="primary" icon="el-icon-view" size="small" @click="showView(scope.row)">详情</el-button>
</template>
</el-table-column>
</el-table>
<div class="pages">
<div class="tit" />
<pagination
v-show="logList.length > 0"
:total="queryParams.total"
:page.sync="queryParams.current"
:limit.sync="queryParams.size"
class="pagination"
@pagination="loadLogList"
/>
</div>
</div>
<el-dialog title="监管日报" :visible.sync="dialogVisible" width="60%">
<el-form ref="form_daily" :model="viewobj" label-position="right" class="formadd">
<div class="title">
<div>项目监管数据</div>
</div>
<el-row>
<el-col :span="4" class="tleftb2"><el-form-item label="监管项目" /></el-col>
<el-col :span="8" class="trightb"><el-form-item>{{ viewobj.projectName }}</el-form-item></el-col>
<el-col :span="4" class="tleftb2"><el-form-item label="填报日期" /></el-col>
<el-col :span="8" class="trightb"><el-form-item>{{ viewobj.orderDate }}</el-form-item></el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb2"><el-form-item label="授信额度(元)" /></el-col>
<el-col :span="8" class="trightb"><el-form-item>{{ viewobj.totalLoan }}</el-form-item></el-col>
<el-col :span="4" class="tleftb2"><el-form-item label="用信总额(元)" /></el-col>
<el-col :span="8" class="trightb"><el-form-item>{{ viewobj.useLimit }}</el-form-item></el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb2"><el-form-item label="库存货值(元)" /></el-col>
<el-col :span="8" class="trightb"><el-form-item>{{ viewobj.stockAmount }}</el-form-item></el-col>
<el-col :span="4" class="tleftb2"><el-form-item label="质押率" /></el-col>
<el-col :span="8" class="trightb"><el-form-item>{{ viewobj.pledgeRatePercent }}% </el-form-item></el-col>
</el-row>
<el-row style="padding-top: 12px;padding-bottom: 5px;">
<el-col :span="4" class="tleftb2"><span>工作日报</span></el-col>
<el-col :span="20" class="trightb">{{ viewobj.remarks }}</el-col>
</el-row>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible=false"> </el-button>
</span>
</el-dialog>
</div>
</template>
<script>
import req from '@/api/gfApi/report'
import Pagination from '@/components/pagination'
import ButtonBar from '@/components/ButtonBar'
export default {
components: {
ButtonBar,
Pagination
},
data() {
return {
tableloading: false,
btndisabled: false,
dialogVisible: false,
btnList: [{
type: 'info',
size: 'small',
icon: 'cross',
btnKey: 'doClose',
btnLabel: '关闭'
}],
logList: [],
queryParams: {
current: 1,
size: 10,
total: 0,
params: {
dataDateStart: '',
dataDateEnd: '',
projectSid: ''
}
},
agentList: [],
groupList: [],
workflowList: [],
witchgroupList: [{
value: '河南安阳',
label: '河南安阳'
},
{
value: '山东曲阜',
label: '山东曲阜'
},
{
value: '庄河整县',
label: '庄河整县'
}
],
phaseList: [{
value: '1',
label: '进件'
},
{
value: '2',
label: '签约'
},
{
value: '3',
label: '交货'
},
{
value: '4',
label: '完工'
},
{
value: '5',
label: '并网'
}
],
powerall: '',
viewobj: {}
}
},
mounted() {
// 初始化按钮
this.$refs['btnbar'].setButtonList(this.btnList)
},
created() {
// 初始化变量
this.loadLogList()
},
methods: {
dosearch() {
this.loadLogList()
},
resetQuery() {
this.queryParams = {
current: 1,
size: 10,
total: 0,
params: {
agent_id: '',
search_time: [],
witch_data: '',
workflow: '',
witch_group: [],
phase: ''
}
}
this.loadLogList()
},
// 右上角点击事件
btnHandle(btnKey) {
switch (btnKey) {
case 'doClose': // 关闭
this.doClose()
break
default:
break
}
},
loadLogList() {
this.tableloading = true
req.projectdailypage(this.queryParams).then((res) => {
this.tableloading = false
this.queryParams.total = res.data.total
this.logList = res.data.records
}).catch(e => {
this.tableloading = false
console.log('CsmCashLog-loadList-ee:', e)
})
},
showView(row) {
this.viewobj = row
this.dialogVisible = true
},
doClose() {
this.$store.dispatch('tagsView/delView', this.$route)
this.$router.go(-1)
}
}
}
</script>
<style scoped>
</style>