Commit c97e07c8 authored by youjie's avatar youjie

no message

parent 4595a7df
......@@ -9,6 +9,7 @@
}
.yinhangBox{
display: flex;
align-items: center;
}
/deep/.cdForm .el-upload-dragger{
width: 50px;
......@@ -21,44 +22,44 @@
</style>
<template>
<div>
<el-dialog :title="title+$t('objFill.v103.liushui')" width="660px"
<el-dialog :title="title+$t('objFill.v103.liushui')" width="800px"
:visible.sync="showState" center @close="close">
<el-form class="cdForm" label-width="90px"
:model="msg" :rules="rules" ref="msg">
<div style="display: flex;flex-direction: column;">
<div style="display: flex;flex-direction: row;">
<el-form-item :label="$t('pub.date')" prop="Date">
<el-date-picker :disabled="msg.Id==1" class="w210" :clearable="false" v-model="msg.Date" type="date"
<el-date-picker :disabled="msg.Id==1" class="w170" :clearable="false" v-model="msg.Date" type="date"
value-format="yyyy-MM-dd"></el-date-picker>
</el-form-item>
<el-form-item :label="$t('objFill.v103.qichuyue')" prop="StartBalance">
<el-input-number :disabled="msg.Id==1" class="w210" v-model="msg.StartBalance" :min="Number(0)" :step="50" size="small"/>
<el-input-number :disabled="msg.Id==1" class="w170" v-model="msg.StartBalance" :min="Number(0)" :step="50" size="small"/>
</el-form-item>
<el-form-item style=" width: 500px;margin-top: 0px;" :label="$t('objFill.fj')" prop="Image">
<div style="display: flex;flex-direction: row;">
<el-image v-if="msg.Image"
style="width: 50px; height:50px;margin-right: 20px;border-radius: 5px;"
:src="msg.Image"
:preview-src-list="[msg.Image]"
show-progress
fit="cover"/>
<el-upload v-if="msg.Id==0"
drag
:http-request="UploadImage"
:multiple="true" :show-file-list="false" action=""
accept="image/jpeg,image/gif,image/png,image/bmp">
<i class="el-icon-plus avatar-uploader-icon"></i>
<!-- <div class="el-upload__text">{{$t('active.ld_djscwj')}}</div> -->
</el-upload>
</div>
</el-form-item>
</div>
<el-form-item style=" width: 500px;margin-top: 20px;" :label="$t('objFill.fj')" prop="Image">
<div style="display: flex;flex-direction: row;">
<el-image v-if="msg.Image"
style="width: 50px; height:50px;margin-right: 20px;border-radius: 5px;"
:src="msg.Image"
:preview-src-list="[msg.Image]"
show-progress
fit="cover"/>
<el-upload v-if="msg.Id==0"
drag
:http-request="UploadImage"
:multiple="true" :show-file-list="false" action=""
accept="image/jpeg,image/gif,image/png,image/bmp">
<i class="el-icon-plus avatar-uploader-icon"></i>
<!-- <div class="el-upload__text">{{$t('active.ld_djscwj')}}</div> -->
</el-upload>
</div>
</el-form-item>
</div>
<div class="yinhangForm">
<template v-for="(item,index) in msg.SubjectList">
<div style="font-weight: bold; color: #333;">{{ item.SubjectName }}</div>
<div class="yinhangBox">
<div class="yinhangBox" style="margin-bottom: 10px;">
<div style="font-weight: bold; color: #333;width: 120px; ">{{ item.SubjectName }}</div>
<!-- <el-form-item class="ImpressionTicketing-OuterFrame" :label="item.SubjectName" label-width="100px"> -->
<el-form-item
:label="msg.SubjectList.length>0?`${$t('objFill.v103.yinhangshouru')} ${index+1} `:` ` "
......
......@@ -4,7 +4,7 @@
:visible.sync="showState" center @close="close">
<el-table :data="SubjectList" style="width: 100%;"
height="400px"
height="350"
v-loading="loading" border>
<el-table-column prop="Name" :label="$t('system.query_airName')" align="center"></el-table-column>
<el-table-column prop="Sort" :label="$t('system.table_rank')" width="100" align="center"></el-table-column>
......
......@@ -91,11 +91,14 @@
/deep/.page_CompanyAccDetail .el-table .el-table__cell {
padding: 0 12px!important;
}
.cm_content{
width: 100%;
}
.BalanceBox{
}
.BalanceBox.active{
color: #33B3FF;
color: #f56c6c;
cursor: pointer;
}
......@@ -143,7 +146,7 @@
</ul>
</div>
<div class="cm_content">
<el-table :data="SubjectList"
<el-table ref="table" :data="SubjectList"
style="width: 100%;" height="600"
v-loading="loadingTable"
:span-method="objectSpanMethod">
......@@ -164,12 +167,12 @@
<div style="cursor: pointer;" @click="getTimeObj(item)">{{ String(item.StartDate) }} <i style="color: #33B3FF" class="el-icon-edit"></i> </div>
</template>
<el-table-column :label="String(item.StartBalance)" align="center">
<el-table-column prop="Income" :label="$t('objFill.v103.yinhangshouru')" width="120" align="center">
<el-table-column prop="Income" :label="$t('objFill.v103.yinhangshouru')" min-width="120" align="center">
<template slot-scope="scope">
<div v-if="scope.row.SubjectId!=-6">
{{ scope.row.BalanceList[index].Income }}
</div>
<template v-else>
<div v-else>
<el-image v-if="scope.row.BalanceList[index].Image"
style="width: 20px; height: 20px;"
:src="scope.row.BalanceList[index].Image"
......@@ -177,10 +180,10 @@
show-progress
fit="cover"
/>
</template>
</div>
</template>
</el-table-column>
<el-table-column prop="FinanceIncome" :label="$t('objFill.v103.danjusr')" width="120" align="center">
<el-table-column prop="FinanceIncome" :label="$t('objFill.v103.danjusr')" min-width="120" align="center">
<template slot-scope="scope">
<div v-if="scope.row.SubjectId!=-6" @click="goUrl(scope.row,scope.row.BalanceList[index],1)"
class="BalanceBox"
......@@ -189,14 +192,14 @@
</div>
</template>
</el-table-column>
<el-table-column prop="Expenses" :label="$t('objFill.v103.yinhangzhichu')" width="120" align="center">
<el-table-column prop="Expenses" :label="$t('objFill.v103.yinhangzhichu')" min-width="120" align="center">
<template slot-scope="scope">
<div v-if="scope.row.SubjectId!=-6">
{{ scope.row.BalanceList[index].Expenses }}
</div>
</template>
</el-table-column>
<el-table-column prop="FinanceExpenses" :label="$t('objFill.v103.danjuzc')" width="120" align="center">
<el-table-column prop="FinanceExpenses" :label="$t('objFill.v103.danjuzc')" min-width="120" align="center">
<template slot-scope="scope">
<div v-if="scope.row.SubjectId!=-6" @click="goUrl(scope.row,scope.row.BalanceList[index],2)"
class="BalanceBox"
......@@ -263,6 +266,7 @@ export default {
Expenses:0,//银行支出
},
SubjectTypeList:[],
userId: ''
}
},
created(){
......@@ -275,6 +279,8 @@ export default {
this.productionDate=[mon2,mon1];
this.msg.StartDate=mon2;
this.msg.EndDate=mon1;
let userInfo = this.getLocalStorage();
this.userId = userInfo.EmployeeId;
this.getSubjectList()
this.getList();
},
......@@ -293,8 +299,9 @@ export default {
})
},
Export(){
let msg=this.msg;
let msg = JSON.parse(JSON.stringify(this.msg));
var fileName = this.$t('objFill.duizhnagkm') + ".xls";
msg.EmployeeId = this.userId;
this.GetLocalFile("Financial_post_DownLoadBankBalance", msg, fileName);
},
changeDataBan(){
......@@ -394,6 +401,9 @@ export default {
Image: obj.Image
})
}
this.$nextTick(() => {
this.$refs.table.doLayout(); // 若表格有 ref="table"
});
}else{
this.Error(res.data.message)
if( this.msg.ClientID == 0 ){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment