Commit d5f3e0c3 authored by 华国豪's avatar 华国豪 🙄

1

parent 2e1672dd
...@@ -138,7 +138,8 @@ ...@@ -138,7 +138,8 @@
v-if="img !== ''" style="cursor: pointer;color:blue;">{{ '凭证' + (imgIndex + 1)}}</p> v-if="img !== ''" style="cursor: pointer;color:blue;">{{ '凭证' + (imgIndex + 1)}}</p>
</td> </td>
<td :rowspan="item.ShopDetailsList.length" v-if='subIndex==0' style=""> <td :rowspan="item.ShopDetailsList.length" v-if='subIndex==0' style="">
<div style="display:none;"> <!-- style="display:none;" -->
<div >
<p style="cursor: pointer;color:blue;" @click="CreateBill(item.ShopDetailsList)">生成单据</p> <p style="cursor: pointer;color:blue;" @click="CreateBill(item.ShopDetailsList)">生成单据</p>
<p style="cursor: pointer;color:blue;" @click="CreateHandBill(outItem)">手动生成单据</p> <p style="cursor: pointer;color:blue;" @click="CreateHandBill(outItem)">手动生成单据</p>
</div> </div>
...@@ -228,23 +229,30 @@ ...@@ -228,23 +229,30 @@
CreateHandBillList: [], CreateHandBillList: [],
zhuanjiaoBox: false, zhuanjiaoBox: false,
CreateHandBillID: '', CreateHandBillID: '',
CreateHandObj: {},
} }
}, },
methods: { methods: {
goCreateHandBill: function () { goCreateHandBill: function () {
console.log(this.CreateHandBillID) console.log(this.CreateHandBillID)
let obj = {}
for(let i = 0; i < this.CreateHandBillList.length; i++) {
if (this.CreateHandBillList[i].id == this.CreateHandBillID) {
obj = this.CreateHandBillList[i]
}
}
let orderObj = { let orderObj = {
OrderID: '', //订单号 OrderID: '',
OrderSource: '', //12 OrderSource: 8,
Obj: {}, Obj: {},
SourceID: '', //机票id SourceID: '',
TCIDList: [this.CreateHandBillID] TCIDList: [obj.TCID]
}; };
this.$router.push({ this.$router.push({
name: "ChoiceAddFinancialDocuments", name: "ChoiceAddFinancialDocuments",
query: { query: {
Type: 0, Type: 0,
companyID: item.RB_Branch_Id, //公司id companyID: obj.OutBranchId, //公司id
path: "", path: "",
blank: "y", blank: "y",
orderObj: JSON.stringify(orderObj) orderObj: JSON.stringify(orderObj)
...@@ -252,11 +260,14 @@ ...@@ -252,11 +260,14 @@
}); });
this.zhuanjiaoBox = false; this.zhuanjiaoBox = false;
}, },
CreateHandBill: function (obj) { CreateHandBill: function (obj) {
this.CreateHandObj = obj
let newList = [] let newList = []
for(let i = 0 ; i < obj.TCList.length; i++) { for(let i = 0 ; i < obj.TCList.length; i++) {
newList.push({ newList.push({
id: obj.TCList[i].TCNUMS TCID: obj.TCList[i].TCID,
id: obj.TCList[i].TCNUMS,
OutBranchId: obj.TCList[i].OutBranchId
}) })
} }
this.CreateHandBillList = newList this.CreateHandBillList = newList
......
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