Commit 938ba950 authored by Mac's avatar Mac

财务的收据功能

parent f0551b0b
......@@ -438,6 +438,49 @@ export function setSellStudyAbroadSendEmployee(data) {
})
}
/**
* 获取收据详情
*/
export function getReceiptInfoForFinanceId(data) {
return request({
url: '/Finance/GetReceiptInfoForFinanceId',
method: 'post',
data
})
}
/**
* 新增修改收据信息
*/
export function setReceiptInfo(data) {
return request({
url: '/Finance/SetReceiptInfo',
method: 'post',
data
})
}
/**
* 新增修改收据信息
*/
export function delReceiptInfo(data) {
return request({
url: '/Finance/DelReceiptInfo',
method: 'post',
data
})
}
/**
* 获取收据分页列表
*/
export function getReceiptInfoPageList(data) {
return request({
url: '/Finance/GetReceiptInfoPageList',
method: 'post',
data
})
}
This diff is collapsed.
This diff is collapsed.
......@@ -771,6 +771,7 @@
cursor: pointer;
text-decoration: underline;
}
</style>
......@@ -1076,6 +1077,16 @@
</div>
</div>
</div>
<div v-if="ConfigInfo && ConfigInfo.Enable==1 && getreceipt() ">
<p class="_splic" >
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
</p>
<div class="_tit _tit2 w890px ConfigInfoStyle">
<mySJModule :FrID='ID' :GetDetail="GetDetail"></mySJModule>
</div>
</div>
<p class="_splic">
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
</p>
......@@ -1359,6 +1370,7 @@
</div>
</template>
</el-dialog>
<a id='groupTourOrder_DownLoad' target="_blank" style="display:none">1不要删除</a>
<classinfo-form v-if="isShowClassInfo" :seting-obj="classObjOption" @close="closeClass" @success="refreshClass">
</classinfo-form>
......@@ -1384,13 +1396,15 @@
import huijiBill from "../components/huijiBill.vue";
import czBillModule from "../components/czBillModule.vue";
import mySJModule from "../components/mySJModule.vue";
import {
UploadSelfFile
} from '../../../api/common/common'
import {
getClassNameList,
queryStudyNameList
queryStudyNameList,
getReceiptConfigInfo
} from '../../../api/finance/index'
import classinfoForm from '../../../components/course/classinfo-form';
import viewquotationForm from '../../../components/sale/viewquotation-form';
......@@ -1477,6 +1491,8 @@
isShowviewQuo: false, //是否显示预览报价单
rId: 0,
showbohui: false, //5-10新加
ConfigInfo:null,//收据配置数据
}
},
components: {
......@@ -1496,6 +1512,7 @@
'myJiPiaoBill': myJiPiaoBill,
'huijiBill': huijiBill,
"czBillModule": czBillModule,
"mySJModule": mySJModule,
'classinfo-form': classinfoForm,
'viewquotationForm': viewquotationForm
},
......@@ -2289,13 +2306,31 @@
this.OpenNewUrl('/financial/financalDocument/FinancialDocumentsDetail', {
"id": item
});
}
},
getReceiptif(){
getReceiptConfigInfo({}).then(res => {
if (res.Code == 1) {
this.ConfigInfo = res.Data;
}
})
},
getreceipt(){
if(this.ConfigInfo.TempleteIds.indexOf(this.GetDetail.TemplateId)!=-1){
return true
}else{
return false
}
},
},
mounted() {
this.GetAuth();
this.userInfo = this.getLocalStorage();
this.qjGroupId = this.QjGroupId();
this.Financial_post_GetDetail(this.ID)
this.getReceiptif()//获取收据配置
this.queryMsg.FinanceId = this.$route.query.id;
if (this.$route.query.Conditon) {
this.returnCode = this.$route.query.Conditon;
......
......@@ -39,6 +39,12 @@
<my-GZ-Bill :ID="id" :width="widthSon" :isPrintPage="true" :color="colorSon" :OrderSource="OrderSource" :name='index+1'></my-GZ-Bill>
</div>
</template>
<!-- 收据3 -->
<template v-if="type==='3'">
<div class="_border_1" v-for="(item,index) in loopNumT">
<my-SJ-Bill :ID="id" :width="widthSon" :isPrintPage="true" :color="colorSon" :OrderSource="OrderSource" :name='index+1'></my-SJ-Bill>
</div>
</template>
<template v-if="Merge==='1'">
<div class="_border_1" v-for="(item,index) in loopNumN">
<my-HB-Bill v-on:helloPP="numAdd" :Num="num" :ID="id" :width="widthSon" :isPrintPage="true" :color="colorSon" :name='index+1'></my-HB-Bill>
......@@ -52,6 +58,7 @@
import myrbvBill from "../components/ReceivablesModule.vue";
import myhrBill from "../components/MergeBillModule.vue";
import myGZBill from "../components/GZBillModule.vue";
import mySJBill from "../components/SJBillModule.vue";
export default {
data(){
return{
......@@ -71,7 +78,9 @@
'my-Bill': myBill,
'my-RVB-Bill':myrbvBill,
'my-HB-Bill':myhrBill,
'my-GZ-Bill': myGZBill
'my-GZ-Bill': myGZBill,
'my-SJ-Bill': mySJBill,
},methods:{
numAdd(){
this.num = this.num + 1
......
<style>
@import "../css/cssReset.css";
</style>
<template>
<div class='flexOne page-body'>
<div class="query-box">
<ul>
<li>
<span>
<em>财务单据</em>
<el-input type="text" v-model="msg.FinanceId" placeholder="请输入财务单据"></el-input>
</span>
</li>
<li>
<span>
<em>收据状态</em>
<el-select v-model="msg.State" filterable clearable>
<el-option label="不限" :value="0"></el-option>
<el-option label="已认领" :value="1"></el-option>
<el-option label="未认领" :value="2"></el-option>
</el-select>
</span>
</li>
<li>
<span><em>收据编码</em>
<el-input type="text" v-model="msg.ReceiptNo" placeholder="请输入收据编码"></el-input>
</span>
</li>
<li>
<span><em>交款人</em>
<el-input type="text" v-model="msg.Remitter" placeholder="请输入交款人"></el-input>
</span>
</li>
<li>
<q-btn color="primary" size="11px" label="查询"  @click="handleCurrentChange(1)" />
</li>
</ul>
</div>
<div class="cm_content">
<table class="singeRowTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading">
<tr>
<th width="250">财务单据</th>
<th >收据编码</th>
<th >交款人</th>
<th width="100">金额</th>
<th>收款事由</th>
<th>状态</th>
<th>认领码</th>
<th>甲鹤用户</th>
<th>经办人</th>
<th>开票日期</th>
</tr>
<tr v-for="item in dataList">
<td> <span style="cursor: pointer;text-decoration: underline;" @click="goFinancialDetail(item)">{{item.FinanceId}}</span> </td>
<td>{{item.ReceiptNo}}</td>
<td>{{item.Remitter}}</td>
<td>{{item.Money}}</td>
<td>{{item.Remark}}</td>
<td>{{item.State==1?'已认领':'未认领'}}</td>
<td>{{item.ClaimCode}}</td>
<td>{{item.UserName}}</td>
<td>{{item.CreateByName}}</td>
<td>{{item.CreateTime}}</td>
</tr>
</table>
<div class="noDataNotice" v-if="dataList && dataList.length<1">
<i class="iconfont icon-kong"></i>
<p>{{$t("active.ld_noData")}}</p>
</div>
</div>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="msg.pageIndex"
:page-size="msg.pageSize" layout="total,prev, pager, next, jumper" :total="msg.total"></el-pagination>
</div>
</template>
<script>
import {
getReceiptInfoPageList,
} from '../../../api/finance/index'
export default {
data() {
return {
msg: {
pageIndex: 1,
pageSize: 10,
FinanceId: '',
State: 0,
ReceiptNo: '',
Remitter: '',
total:0
},
loading: false,
dataList: [],
}
},
methods: {
handleCurrentChange(val) {
this.msg.pageIndex = val;
this.getList();
},
getList() { //获取列表
this.loading = true;
getReceiptInfoPageList(this.msg).then(res => {
if (res.Code == 1) {
this.loading = false;
this.dataList = res.Data.PageData;
this.msg.total = res.Data.Count;
}
})
},
goFinancialDetail(item){
this.OpenNewUrl("/financial/financalDocument/FinancialDocumentsDetail", {
id: item.FinanceId
});
},
},
mounted() {
this.getList();
}
}
</script>
\ No newline at end of file
......@@ -561,6 +561,11 @@ const routes = [{
component: () =>
import("pages/financial/financalDocument/InAndOutDdetails.vue")
},
{
path: "/financial/financalDocument/receiptManager", //财务收据管理
component: () =>
import("pages/financial/financalDocument/receiptManager.vue")
},
{
......@@ -1377,6 +1382,7 @@ const routes = [{
},
{
path: '/AssetsShenpi', //资产管理审批
name: 'AssetsShenpi',
......
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