Commit c5219f6d authored by youjie's avatar youjie

no message

parent c9740bb2
...@@ -51,9 +51,7 @@ ...@@ -51,9 +51,7 @@
</span> </span>
<el-switch <el-switch
style="margin-left: 15px;" style="margin-left: 15px;"
v-model="addMsg.Is_Merge" v-model="SwitchStatus"
active-value="1"
inactive-value="0"
@change="getVisaType"> @change="getVisaType">
</el-switch> </el-switch>
...@@ -255,6 +253,7 @@ export default { ...@@ -255,6 +253,7 @@ export default {
return { return {
newProofList: [], newProofList: [],
proofList:[], proofList:[],
SwitchStatus: false,
dataList: [], dataList: [],
showState: true, showState: true,
loading: false, loading: false,
...@@ -373,8 +372,10 @@ export default { ...@@ -373,8 +372,10 @@ export default {
OrderIdStr: this.addMsg.OrderIdStr, OrderIdStr: this.addMsg.OrderIdStr,
AuditId: this.addMsg.AuditId, AuditId: this.addMsg.AuditId,
detailList: [], detailList: [],
vorcherInos: [] vorcherInos: [],
Is_Merge: 0
} }
msg.Is_Merge = this.SwitchStatus==true?1:0
this.addMsg.detailList.forEach(x=>{ this.addMsg.detailList.forEach(x=>{
let obj = { let obj = {
TemplateId: x.TemplateId, TemplateId: x.TemplateId,
...@@ -399,6 +400,8 @@ export default { ...@@ -399,6 +400,8 @@ export default {
msg.vorcherInos.push(obj) msg.vorcherInos.push(obj)
}) })
}) })
console.log(msg,'-----')
return
this.submitLoading = true this.submitLoading = true
this.apipost("Financial_post_SetVisaBathCreateFinance",msg, res => { this.apipost("Financial_post_SetVisaBathCreateFinance",msg, res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
...@@ -503,9 +506,9 @@ export default { ...@@ -503,9 +506,9 @@ export default {
Content: null, Content: null,
Url: null Url: null
} }
if(this.addMsg.Is_Merge&&(x.SetUpTypeStr=='签证费'||x.SetUpTypeStr=='快递费')){ if(this.SwitchStatus==true&&(x.SetUpTypeStr=='签证费'||x.SetUpTypeStr=='快递费')){
y.vorcherInos.push(obj) y.vorcherInos.push(obj)
}if(!this.addMsg.Is_Merge){ }if(!this.SwitchStatus){
y.vorcherInos.push(obj) y.vorcherInos.push(obj)
} }
}) })
......
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