Commit 7316f2b3 authored by 沈良进's avatar 沈良进

save

parent 8d08f4f6
...@@ -374,29 +374,27 @@ ...@@ -374,29 +374,27 @@
<div class="divActive" v-show="type==2"></div> <div class="divActive" v-show="type==2"></div>
</li> </li>
</div> </div>
<div class="_mc_list _scrollbar" :class="addShow==true?'_edHeight':''"><table class="leaderPayTable" border="0" cellspacing="1" cellpadding="0"> <div class="_mc_list _scrollbar" :class="addShow==true?'_edHeight':''"><table v-loading="loading" class="leaderPayTable" border="0" cellspacing="1" cellpadding="0">
<tr> <tr>
<th>单号</th> <th>创建者</th>
<th>公司</th> <th>创建时间</th>
<th>费用类型</th> <th>审核状态</th>
<th>金额</th> <th>金额</th>
<th>状态</th> <th>审核人</th>
<th>付款对象</th> <th>审核时间</th>
<th>操作</th> <th>审核理由</th>
<th v-if="type==0">操作</th>
</tr> </tr>
<tr v-for="(item,index) in czList" :key="index"> <tr v-for="(item,index) in czList" :key="index">
<td>{{item.FrID}}</td> <td>{{item.createBy}}</td>
<td>{{item.BranchName}}</td> <td>{{item.createDate}}</td>
<td>{{item.TypeName}}</td> <td>{{item.statusName}}</td>
<td>{{item.Money}}</td> <td>{{item.totalPrice}}</td>
<td>{{item.StatusStr}}</td> <td>{{item.examineEmpName}}</td>
<td> <td>{{item.examineTime}}</td>
<el-tooltip class="item" effect="dark" :content="item.ClientTypeName+':'+item.RemitterName+'('+item.AccountNumber+')'" placement="top-start"> <td>{{item.examineReason}}</td>
<div style="width:250px;overflow:hidden">{{item.RemitterName}}</div> <td v-if="type==0"><el-button type="primary" size="mini" @click="financeCheck(item)">审核</el-button>
</el-tooltip>
</td> </td>
<td>
</td>
</tr> </tr>
<tr v-if="czList.length==0"> <tr v-if="czList.length==0">
<td colspan="13">暂无数据</td> <td colspan="13">暂无数据</td>
...@@ -405,10 +403,16 @@ ...@@ -405,10 +403,16 @@
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage" <el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" :page-size="this.msg.pageSize" :total="total"> layout="total,prev, pager, next, jumper" :page-size="this.msg.pageSize" :total="total">
</el-pagination> </el-pagination>
<el-dialog custom-class='addCompany' title="结算" width="400px" :visible.sync="showCheck" center> <el-dialog
<el-form label-width="100px"> custom-class="addCompany page_MyCustomer"
<el-form-item label="凭证" prop="SigningFile"> title="结算"
<!-- <el-upload v-if="!saveMsg || !saveMsg.length" class="upload-demo" width="400px"
:visible.sync="showCheck"
center
>
<el-form label-width="100px">
<el-form-item label="凭证" prop="SigningFile">
<!-- <el-upload v-if="!saveMsg || !saveMsg.length" class="upload-demo"
style="display:inline-block;position:relative;top:-1px;left:3px;" :http-request="uploadFileBtn" style="display:inline-block;position:relative;top:-1px;left:3px;" :http-request="uploadFileBtn"
:show-file-list="false" action=""> :show-file-list="false" action="">
<el-button size="small" type="primary">凭证</el-button> <el-button size="small" type="primary">凭证</el-button>
...@@ -422,21 +426,44 @@ ...@@ -422,21 +426,44 @@
@click="DeleteFile(subIndex)">删除</a> @click="DeleteFile(subIndex)">删除</a>
</template> </template>
</template> --> </template> -->
<el-upload class="avatar-uploader" action="" :http-request="uploadImg" <el-upload
accept="image/jpeg,image/gif,image/png,image/bmp" :show-file-list="false"> class="avatar-uploader"
<img v-if="BusinessCardPhotos" :src="BusinessCardPhotos" class="avatar"> action=""
<i v-else class="el-icon-plus avatar-uploader-icon"></i> :http-request="uploadImg"
</el-upload> accept="image/jpeg,image/gif,image/png,image/bmp"
</el-form-item> :show-file-list="false"
<el-form-item :label="$t('hotel.hotel_remark')"> >
<el-input type="textarea" v-model="addMsg.Notes" class="w216"></el-input> <img
</el-form-item> v-if="BusinessCardPhotos"
</el-form> :src="BusinessCardPhotos"
<div slot="footer" class="dialog-footer"> class="avatar"
<button class="normalBtn" type="primary" @click="checkSubmit">{{$t('pub.saveBtn')}}</button> />
<button class="hollowFixedBtn" @click="showCheck=false">{{$t('pub.cancelBtn')}}</button> <i v-else class="el-icon-plus avatar-uploader-icon"></i>
</div> </el-upload>
</el-dialog> </el-form-item>
<el-form-item :label="$t('hotel.hotel_remark')">
<el-input
type="textarea"
v-model="addMsg.ExamineReason"
class="w216"
></el-input>
</el-form-item>
<el-form-item label="审核意见">
<el-radio-group v-model="addMsg.Status">
<el-radio :label="1">已审批</el-radio>
<el-radio :label="2">已拒绝</el-radio>
</el-radio-group>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<button class="normalBtn" type="primary" @click="checkSubmit">
{{ $t("pub.saveBtn") }}
</button>
<button class="hollowFixedBtn" @click="showCheck = false">
{{ $t("pub.cancelBtn") }}
</button>
</div>
</el-dialog>
</div> </div>
</div> </div>
...@@ -516,20 +543,31 @@ ...@@ -516,20 +543,31 @@
.map((item) => item.FrID) .map((item) => item.FrID)
.join(","); .join(",");
}, },
checkSubmit() { financeCheck(item) {
if(!this.BusinessCardPhotos) { this.checkObj = item;
this.$message.error('请上传凭证') this.showCheck = true
return },
} checkSubmit() {
this.addMsg.Voucher = this.BusinessCardPhotos; if (!this.BusinessCardPhotos) {
this.apipost('customer_post_GetSigningFinance', this.addMsg, res => { this.$message.error("请上传凭证");
return;
}
this.addMsg.ExamineVoucher = this.BusinessCardPhotos;
this.addMsg.Id = this.checkObj.customerAccountId;
this.apipost(
"customer_post_UpdateSigningSettlement",
this.addMsg,
(res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.showCheck = false this.showCheck = false;
this.$message.success(res.data.message || "操作成功");
} else { } else {
this.$message.error(res.data.message || '发生异常,请重试') this.$message.error(res.data.message || "发生异常,请重试");
} }
}, err => {}) },
}, (err) => {}
);
},
uploadImg(file) { uploadImg(file) {
//上传 //上传
let newArr = []; let newArr = [];
...@@ -584,6 +622,7 @@ ...@@ -584,6 +622,7 @@
this.getList() this.getList()
}, },
getList() { // 获取列表数据 getList() { // 获取列表数据
this.loading = true
this.czList = [] this.czList = []
this.apipost('customer_post_GetSettlementCustomerPage', this.msg, res => { this.apipost('customer_post_GetSettlementCustomerPage', this.msg, res => {
if (res.data.resultCode == 0) { if (res.data.resultCode == 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