Commit 68414f37 authored by zhengke's avatar zhengke

no message

parent eb9dc0c2
...@@ -392,9 +392,16 @@ ...@@ -392,9 +392,16 @@
this.getList(); this.getList();
this.GetTicketStatusEnumList() this.GetTicketStatusEnumList()
let $this = this let $this = this
this.MsgBus.$on("closeGetList", function() { $this.MsgBus.$on("closeGetList", function() {
$this.getList() $this.getList()
}); });
$this.MsgBus.$on("closeBillMaking", function() {
for(let i=0;i<$this.dataList.length;i++){
$this.dataList[i].checkList = []
$this.dataList[i].MultipleChoiceList = []
$this.dataList[i].selectedType = ""
}
});
}, },
methods: { methods: {
// 取消 // 取消
...@@ -405,11 +412,18 @@ ...@@ -405,11 +412,18 @@
if(num==3){ if(num==3){
this.dataList[index].cost =false this.dataList[index].cost =false
} }
this.dataList[index].MultipleChoiceList = [] this.dataList.forEach(item=>{
this.dataList[index].selectedType = '' item.checkList = []
item.MultipleChoiceList = []
item.selectedType = ''
})
}, },
// 关闭弹窗 // 确定弹窗
popClick(row, index, num){ popClick(row, index, num){
if(!row.selectedType){
this.$message.warning('请选择类型!');
return
}
this.makeAdocumentFun(row, index, num) this.makeAdocumentFun(row, index, num)
if(num==1){ if(num==1){
this.dataList[index].actuallyReceived =false this.dataList[index].actuallyReceived =false
...@@ -532,10 +546,12 @@ ...@@ -532,10 +546,12 @@
} }
}, },
makeAdocumentFun(row, index, num){ makeAdocumentFun(row, index, num){
let list = row.OrderType&&row.OrderType.split(',')
if (this.userInfo.EmName != row.EnterName) { if (this.userInfo.EmName != row.EnterName) {
this.ValidateOperator() this.ValidateOperator()
} else { } else {
if (row.OrderStatus != '2') { if (row.OrderStatus != '2') {
if(num=='2'){
let type let type
type = num == 1 ? 1 : 2 // 1收款 2退款 3成本 type = num == 1 ? 1 : 2 // 1收款 2退款 3成本
let href let href
...@@ -554,13 +570,20 @@ ...@@ -554,13 +570,20 @@
GuestId: row.GuestId, GuestId: row.GuestId,
RelevanceFrId: row.selectedType?row.selectedType:row.OrderType // 单据类型 RelevanceFrId: row.selectedType?row.selectedType:row.OrderType // 单据类型
}] }]
this.dataList.forEach(item=>{
item.checkList = []
item.MultipleChoiceList = []
item.selectedType = ''
})
href = url + 'automaticLogin?token=' + this.getLocalStorage().token + '&data=' + JSON.stringify(data) href = url + 'automaticLogin?token=' + this.getLocalStorage().token + '&data=' + JSON.stringify(data)
window.open(href); window.open(href);
}if(num=='1'&&list&&list.length>1){
let type
type = num == 1 ? 1 : 2 // 1收款 2退款 3成本anceId2 = num
let $this = this;
this.MsgBus.$emit("BillMakingOrderBoxOpen", $this.ID, row, true);
}else{
this.apipost2("Financial_post_SetFinanceInfoForCRMIn",{},(res)=>{
})
}
} }
} }
......
...@@ -351,6 +351,12 @@ ...@@ -351,6 +351,12 @@
$this.obj = obj; $this.obj = obj;
$this.dialogTicketOrderVisible = true; $this.dialogTicketOrderVisible = true;
}); });
this.MsgBus.$on("BillMakingOrderBoxOpen", function (GuestId, obj) {
$this.dialogTicketOrderVisibleName = "制单";
$this.GuestId = GuestId;
$this.obj = obj;
$this.dialogTicketOrderVisible = true;
});
this.MsgBus.$on("closeTicketOrderDialogBox", function () { this.MsgBus.$on("closeTicketOrderDialogBox", function () {
$this.dialogTicketOrderVisible = false; $this.dialogTicketOrderVisible = false;
this.$emit("getList"); this.$emit("getList");
......
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