Commit 26df9768 authored by youjie's avatar youjie

no message

parent 6bfec481
......@@ -303,6 +303,7 @@
</el-dialog>
<template v-if="showDialog">
<selectListData
:BillMakingMsg="BillMakingMsg"
:totalZD="totalZD"
:totalBWZD="totalBWZD"
:multipleSelection="multipleSelection"
......@@ -512,20 +513,19 @@ export default {
return this.$message.error('请勾选需要制单的数据');
}
this.getMoney()
this.showDialog = true
return
this.BillMakingMsg.Money = this.totalZD
this.iszhidanBox = true
// this.iszhidanBox = true
this.apipost('Financial_post_SetFinanceHandFeeCode',{
FrIds: ids.join(',')
},res=>{
if(res.data.resultCode==1){
this.BillMakingMsg.StandardCurrencyName = res.data.data
this.showDialog = true
}else{
this.Error(res.data.message);
}
},err=>{})
},
selectable(row, index) {
if(!row.HandFeeIncomeFrId){
......
......@@ -55,7 +55,7 @@
<script>
export default {
name:'selectListData',
props: ['multipleSelection','totalZD','totalBWZD'],
props: ['multipleSelection','BillMakingMsg','totalZD','totalBWZD'],
data() {
return {
showDialog: true,
......@@ -77,19 +77,48 @@
},
methods: {
clicksubmit(){
let ids = this.dataList.map(x=>{ return x.FinanceId})
this.apipost('Financial_post_SetFinanceHandFeeCode',{
FrIds: ids.join(',')
},res=>{
if(res.data.resultCode==1){
this.BillMakingMsg.StandardCurrencyName = res.data.data
this.$emit('success')
}else{
this.Error(res.data.message);
}
},err=>{})
// let ids = this.dataList.map(x=>{ return x.FinanceId})
// this.apipost('Financial_post_SetFinanceHandFeeCode',{
// FrIds: ids.join(',')
// },res=>{
// if(res.data.resultCode==1){
// this.BillMakingMsg.StandardCurrencyName = res.data.data
// this.$emit('success')
// }else{
// this.Error(res.data.message);
// }
// },err=>{})
this.makeAdocument(1)
},
// 制作单据
makeAdocument( num,StandardCurrencyName ) {
let type = 0
if(num==3){
type = 2
}else{
type = num
}
this.BillMakingMsg.OtherType = 71;
let text = "";
if (num == 1) {
text = "收款";
} else if (num == 2) {
text = "付款";
}
let query = {
blank: "y",
tab: `新增${text}单据`,
Type: type,
orderObj: JSON.stringify(this.BillMakingMsg),
};
this.close()
this.$store.commit("ChoiceAddFinancialDocuments");
this.$router.push({
path: "/ChoiceAddFinancialDocuments",
query
});
},
close(){
this.$emit('close')
},
......
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