Commit 26df9768 authored by youjie's avatar youjie

no message

parent 6bfec481
...@@ -303,6 +303,7 @@ ...@@ -303,6 +303,7 @@
</el-dialog> </el-dialog>
<template v-if="showDialog"> <template v-if="showDialog">
<selectListData <selectListData
:BillMakingMsg="BillMakingMsg"
:totalZD="totalZD" :totalZD="totalZD"
:totalBWZD="totalBWZD" :totalBWZD="totalBWZD"
:multipleSelection="multipleSelection" :multipleSelection="multipleSelection"
...@@ -512,20 +513,19 @@ export default { ...@@ -512,20 +513,19 @@ export default {
return this.$message.error('请勾选需要制单的数据'); return this.$message.error('请勾选需要制单的数据');
} }
this.getMoney() this.getMoney()
this.showDialog = true
return
this.BillMakingMsg.Money = this.totalZD this.BillMakingMsg.Money = this.totalZD
this.iszhidanBox = true // this.iszhidanBox = true
this.apipost('Financial_post_SetFinanceHandFeeCode',{ this.apipost('Financial_post_SetFinanceHandFeeCode',{
FrIds: ids.join(',') FrIds: ids.join(',')
},res=>{ },res=>{
if(res.data.resultCode==1){ if(res.data.resultCode==1){
this.BillMakingMsg.StandardCurrencyName = res.data.data this.BillMakingMsg.StandardCurrencyName = res.data.data
this.showDialog = true
}else{ }else{
this.Error(res.data.message); this.Error(res.data.message);
} }
},err=>{}) },err=>{})
}, },
selectable(row, index) { selectable(row, index) {
if(!row.HandFeeIncomeFrId){ if(!row.HandFeeIncomeFrId){
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
<script> <script>
export default { export default {
name:'selectListData', name:'selectListData',
props: ['multipleSelection','totalZD','totalBWZD'], props: ['multipleSelection','BillMakingMsg','totalZD','totalBWZD'],
data() { data() {
return { return {
showDialog: true, showDialog: true,
...@@ -77,19 +77,48 @@ ...@@ -77,19 +77,48 @@
}, },
methods: { methods: {
clicksubmit(){ clicksubmit(){
let ids = this.dataList.map(x=>{ return x.FinanceId}) // let ids = this.dataList.map(x=>{ return x.FinanceId})
this.apipost('Financial_post_SetFinanceHandFeeCode',{ // this.apipost('Financial_post_SetFinanceHandFeeCode',{
FrIds: ids.join(',') // FrIds: ids.join(',')
},res=>{ // },res=>{
if(res.data.resultCode==1){ // if(res.data.resultCode==1){
this.BillMakingMsg.StandardCurrencyName = res.data.data // this.BillMakingMsg.StandardCurrencyName = res.data.data
this.$emit('success') // this.$emit('success')
}else{ // }else{
this.Error(res.data.message); // this.Error(res.data.message);
} // }
},err=>{}) // },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(){ close(){
this.$emit('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