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

1

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