Commit 3f96063e authored by liudong1993's avatar liudong1993

1 PIC付款查询

parent 1e5a90c5
......@@ -547,6 +547,7 @@
color: #333;
border: 1px solid #d1d1d1;
font-weight: bold;
text-align: center;
}
.leaderPayTable tr td {
......@@ -775,6 +776,7 @@
<button v-if="HandShow" class="hollowFixedBtn"
@click="Handwithfee">{{$t('objFill.handdistributionfeeincome')}}</button>
<button class="hollowFixedBtn" @click="ZhiDanChongDi"> {{$t('objFill.precharge')}}</button>
<button v-if="this.userId==2739 || this.userId==3038 || this.userId==2604" class="hollowFixedBtn" @click="openPICPayDialog">今日应付款</button>
<button v-if="this.userId==2739 || this.userId==3038 || this.userId==2604" class="hollowFixedBtn" @click="openMarkDialog">
{{$t('objFill.v101.FinancialModule.picyouxfkjl')}}</button>
<!-- v-if="F_Advance_Match" -->
......@@ -1884,6 +1886,58 @@
</div>
</el-dialog>
<el-dialog title="今日付款查询" width="1060px" height="600px" :visible.sync="picPayState" center>
<el-form class="cdForm" label-width="80px">
<el-form-item label="付款日期" prop="picPayDate">
<el-date-picker class="h34" v-model="picPayDate" type="daterange"
value-format="yyyy-MM-dd" :range-separator="$t('restaurant.res_To')">
</el-date-picker>
</el-form-item>
<el-form-item label="" prop="picPayDate">
<el-checkbox v-model="picMsg.IsSelectAduiting" true-label="1" false-label="0">只看待付款</el-checkbox>
</el-form-item>
<el-form-item>
<input type="button" :value="$t('pub.searchBtn')" class="hollowFixedBtn" @click="getPICPayList()">
<input type="button" :value="$t('visa.v_daochu')" class="hollowFixedBtn" @click="downloadPICPayData()">
</el-form-item>
</el-form>
<div style="height:500px">
<table class="leaderPayTable" border="0" cellspacing="1" cellpadding="0" v-loading="MarkLoading" >
<tr>
<th>{{$t('fnc.danhao')}}</th>
<th>{{$t('sm.company')}}</th>
<th>{{$t('fnc.feiyongleixing')}}</th>
<th>{{$t('fnc.jine')}}</th>
<th width="250">{{$t('fnc.fkduixiang')}}</th>
<th>{{$t('fnc.zhidanren')}}</th>
<th>{{$t('fnc.a_djztai')}}</th>
<th>优先付款</th>
<th>付款日期</th>
<th>会计</th>
</tr>
<tr v-for="(item,index) in picPayData" :key="index">
<td>{{item.FrID}}</td>
<td>{{item.RB_BranchName}}</td>
<td>{{item.CostTypeIdStr}}</td>
<td>{{item.WBMoney+" " + item.CurrencyName}}</td>
<td>{{item.RemitterName}}</td>
<td>{{item.CreateBy}}{{item.CreateDate}}</td>
<td>{{item.StatusName}}</td>
<td :style="item.LossType==1?'color:red':''">{{(item.LossType==1?'√':'')}}</td>
<td>{{item.PayDate}}</td>
<td>{{item.FinanceName}}</td>
</tr>
<tr v-if="picPayTotal">
<td colspan='3'>{{$t('fnc.a_heji')}}</td>
<td>{{picPayTotal}}</td>
</tr>
<tr v-if="picPayData.length==0">
<td colspan="13">{{$t('system.content_noData')}}</td>
</tr>
</table>
</div>
</el-dialog>
<!-- 修改汇率
<el-dialog :title="$t('objFill.modifytheexchangerate')" width="400px"
:visible.sync="costmodeHL" center >
......@@ -2167,6 +2221,18 @@
isUploadAttachment: false,
imgLength: 0,
//工资单附件结束
picPayState: false,
picPayDate:[],
picMsg:{
pageIndex: 1,
pageSize: 9999,
QStartDate: "",
QEndDate: "",
IsSelectAduiting: '1',
EmployeeId:0
},
picPayData:[],
picPayTotal:0
};
},
created() {
......@@ -2723,6 +2789,29 @@
this.MarkState = true;
this.MarkList = [];
},
openPICPayDialog(){
this.picPayState = true;
this.picPayData = [];
this.picMsg.QEndDate= this.getBeforeDate(0, new Date().Format("yyyy-MM-dd"));
this.picMsg.QStartDate =this.getBeforeDate(7, new Date().Format("yyyy-MM-dd"));
this.picPayDate = [this.picMsg.QStartDate,this.picMsg.QEndDate];
this.getPICPayList();
},
getPICPayList() {
this.picMsg.QEndDate= this.picPayDate[1];
this.picMsg.QStartDate =this.picPayDate[0];
this.MarkLoading = true
this.apipost(
"Financial_post_GetPICPayDatePageList", this.picMsg,res => {
this.MarkLoading = false
if (res.data.resultCode === 1) {
this.picPayData = res.data.data.list.pageData;
this.picPayTotal = res.data.data.TotalMoney;
}
},
null
);
},
goUrlZD(item) {
let that = this;
let yfcheckList
......@@ -2884,6 +2973,12 @@
".xls");
this.yfcdLoading = false
},
downloadPICPayData() {
this.picMsg.QEndDate= this.picPayDate[1];
this.picMsg.QStartDate =this.picPayDate[0];
this.picMsg.EmployeeId = this.getLocalStorage().EmployeeId
this.GetLocalFile("Financial_post_GetPICPayDateListToExcel", this.picMsg, "今日付款" +this.picMsg.QEndDate+".xls");
},
HebingSPLast() {
if (this.checkList.length == 0) {
this.Error(this.$t('fnc.a_qxzdanju'));
......
......@@ -628,6 +628,7 @@
<div class="recpayQueryMore" v-if="(scope.row.Type==1||scope.row.Type==2)&& IsUpdatePayment" @click="showHelpBranch(scope.row)">{{scope.row.Type==1?$t('objFill.xiugaibdsgs'):(scope.row.Type==2?$t('objFill.xiugaibdfgs'):'')}}</div>
<div class="recpayQueryMore" v-if="scope.row.Type==2 && scope.row.CostTypeList && scope.row.CostTypeList[0]=='固定资产-车辆'" @click="showAssets(scope.row.FrID)">{{$t('objFill.v101.FinancialModule.shezzjrq')}}</div>
<div class="recpayQueryMore" v-if="scope.row.KingdeeMark!=1&&IsUpdatePayment" @click="EditKingdeeMark(scope.row)">标记金蝶已导入</div>
<div class="recpayQueryMore" v-if="Finance_ExpenseType==true && scope.row.Type==2" @click="showPICPayDateDialog(scope.row)">修改预付款日</div>
<i slot="reference" style="width: 30px;
height: 30px;
display: inline-block;
......@@ -934,6 +935,24 @@
<el-button class="normalBtn" type="primary" @click="setUpdateCreate" :loading="transTax.loading">{{$t('pub.sureBtn')}}</el-button>
</div>
</el-dialog>
<!--修改PIC预付款日-->
<el-dialog title="修改PIC预付款日期" width="400px" :visible.sync="showPICPayDate" center >
<el-form class="cdForm" label-width="110px">
<el-form-item label="预付款日" prop="CreateDate">
<el-date-picker
v-model="FixedAssetsMsg.CreateDate"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择日期">
</el-date-picker>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button class="hollowFixedBtn" @click="showPICPayDate=false">{{$t('pub.cancelBtn')}}</el-button>
<el-button class="normalBtn" type="primary" @click="setPICPayDate" :loading="transTax.loading">{{$t('pub.sureBtn')}}</el-button>
</div>
</el-dialog>
</div>
</template>
<script>
......@@ -1114,6 +1133,7 @@
isBatchPrinting: false,
ShowFixedAssets: false,
showUpdateCreate:false,
showPICPayDate:false,
FixedAssetsMsg:{
BaseFinanceId:0,
RelevanceFrId2:0,
......@@ -1446,6 +1466,11 @@
this.FixedAssetsMsg.CreateDate='';
this.showUpdateCreate=true;
},
showPICPayDateDialog(item){
this.FixedAssetsMsg.BaseFinanceId = item.FrID;
this.FixedAssetsMsg.CreateDate= item.PICPayDate;
this.showPICPayDate=true;
},
// 确定垫付对象
setFixedAssets() {
if (this.transTax.loading) return;
......@@ -1489,6 +1514,30 @@
this.Error(this.$t('objFill.v101.FinancialModule.qingxzxzdrq')) ;
}
},
setPICPayDate(){
if (this.transTax.loading) return;
this.transTax.loading = true;
if (this.FixedAssetsMsg.BaseFinanceId && this.FixedAssetsMsg.CreateDate) {
this.apipost(
"Financial_post_SetPICPayDate", {BaseFinanceId:this.FixedAssetsMsg.BaseFinanceId,CreateDate:this.FixedAssetsMsg.CreateDate},res => {
if (res.data.resultCode == 1) {
this.Success(this.$t('objFill.v101.FinancialModule.gengxincg')) ;
this.showPICPayDate = false;
this.getPageList()
}else{
this.Error(res.data.message);
}
this.transTax.loading = false;
},
err => {
this.transTax.loading = false;
}
);
} else {
this.transTax.loading = false;
this.Error(this.$t('objFill.v101.FinancialModule.qingxzxzdrq')) ;
}
},
showHelpBranch(item) {
//弹出付款对象修改
this.HelpBranchMsg.FrId = item.FrID;
......
......@@ -228,6 +228,24 @@
<span>凭证编号:</span>{{GetDetail.AuditNumber}}
</div>
</div>
<div class="OrderReceivablesAccount-center" v-if="GetDetail.ClientAccountType==1&&IsExpensesMonthlyShare">
<div class="border-b">
</div>
<div v-if="IsEditPICPayDate==false">
<el-tooltip class="item" effect="dark" content="用于PIC每日查看可付款单据" placement="top"><span>预付款日:</span></el-tooltip>
{{picMsg.CreateDate}}
<el-tooltip effect="dark" :content="$t('pub.updateMsg')" placement="top">
<i class="edit el-icon-edit" @click="IsEditPICPayDate=true"></i>
</el-tooltip>
</div>
<div v-else>
<el-tooltip class="item" effect="dark" content="用于PIC每日查看可付款单据" placement="top"><span>预付款日:</span></el-tooltip>
<div>
<el-date-picker v-model="picMsg.CreateDate" type="date" placeholder="选择日期" value-format="yyyy-MM-dd"></el-date-picker>
<el-button size="mini" type="success" icon="el-icon-check" circle @click="SavePICPayDate()"></el-button>
</div>
</div>
</div>
<div class="OrderReceivablesAccount-center" v-if="clientBankAccountData.JapanPayMark && clientBankAccountData.JapanPayMark.length>0">
<div v-if="clientBankAccountData.AccountCreateTime" class="border-b">
</div>
......@@ -406,6 +424,7 @@
data() {
return {
IsEditTravelRemark:false,
IsEditPICPayDate:false,
// clientBankAccountData: {},
tableData: [],
msg:{
......@@ -430,6 +449,10 @@
srcList: [],
idEditFinNote: false,
isFinance_ExpenseType: false,
picMsg:{
BaseFinanceId:0,
CreateDate:''
}
}
},
watch: {
......@@ -448,6 +471,9 @@
this.saveMsg.Voucher = this.GetDetail.FInnerVoucher&&this.GetDetail.FInnerVoucher.length>0?JSON.parse(JSON.stringify(this.GetDetail.FInnerVoucher)):[]
this.saveMsg.Remark = this.GetDetail.FInnerRemark
this.srcList = this.GetDetail.FInnerVoucher&&this.GetDetail.FInnerVoucher.length>0?this.GetDetail.FInnerVoucher.map(x=>{return x.Content}):[]
this.picMsg.BaseFinanceId = this.GetDetail.FrID
this.picMsg.CreateDate = this.GetDetail.PICPayDate
},
deep: true,
immediate: false
......@@ -464,6 +490,9 @@
this.isFinance_ExpenseType=true;
}
this.picMsg.BaseFinanceId = this.GetDetail.FrID
this.picMsg.CreateDate = this.GetDetail.PICPayDate
this.msg.BaseFinanceId = this.GetDetail.FrID
this.saveMsg.FrId = this.GetDetail.FrID
this.saveMsg.Voucher = this.GetDetail.FInnerVoucher&&this.GetDetail.FInnerVoucher.length>0?JSON.parse(JSON.stringify(this.GetDetail.FInnerVoucher)):[]
......@@ -652,6 +681,16 @@
this.$message.error(res.data.message);
}
}, err => {})
},
SavePICPayDate(){
this.apipost('Financial_post_SetPICPayDate', this.picMsg, res => {
if (res.data.resultCode == 1) {
this.IsEditPICPayDate=false;
this.$message.success(res.data.message);
} else {
this.$message.error(res.data.message);
}
}, err => {})
}
},
mounted() {
......
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