Commit 55008db6 authored by 华国豪's avatar 华国豪 🙄

1

parent 97a849c9
...@@ -441,7 +441,7 @@ ...@@ -441,7 +441,7 @@
@click="goFncUrl('DebitNote', subItem.FinanceId)">借支单</span></p> @click="goFncUrl('DebitNote', subItem.FinanceId)">借支单</span></p>
</td> </td>
<td width="80" class="_zhidan"> <td width="80" class="_zhidan">
<input type="button" v-if="item.TeamType == 1" value="日当费" class="normalBtn" @click="goZhiDan(item)" /> <input type="button" v-if="item.TeamType == 1" value="日当费" class="normalBtn" @click="goZhiDan(item, 2)" />
<input type="button" value="制单" class="normalBtn" @click="goZhiDan(item)" /> <input type="button" value="制单" class="normalBtn" @click="goZhiDan(item)" />
</td> </td>
</tr> </tr>
...@@ -532,15 +532,17 @@ ...@@ -532,15 +532,17 @@
} }
}); });
}, },
goZhiDan2: function (obj) { goZhiDan2: function (obj, type) {
let allMoney = this.TotalNav.reimburseTotalPrice.PlanPrice * 0.95 if (!type) {
let totailMoney = 0 let allMoney = this.TotalNav.reimburseTotalPrice.PlanPrice * 0.95
this.nav.forEach(x => { let totailMoney = 0
totailMoney += parseFloat(x.LeaderGetPriceT) this.nav.forEach(x => {
totailMoney += x.LeaderGetPrice totailMoney += parseFloat(x.LeaderGetPriceT)
}) totailMoney += x.LeaderGetPrice
if ((allMoney - totailMoney) < 0) return this.$message.error('最大领款为预付合计金额的95%!') })
if (!obj.LeaderGetPriceT || obj.LeaderGetPriceT <= 0) return this.$message.error('请输入金额!') if ((allMoney - totailMoney) < 0) return this.$message.error('最大领款为预付合计金额的95%!')
if (!obj.LeaderGetPriceT || obj.LeaderGetPriceT <= 0) return this.$message.error('请输入金额!')
}
let TCIDARR = [obj.TCIDS] let TCIDARR = [obj.TCIDS]
let orderObj = { let orderObj = {
OrderID: 0, OrderID: 0,
......
...@@ -140,6 +140,7 @@ ...@@ -140,6 +140,7 @@
<td :rowspan="item.ShopDetailsList.length" v-if='subIndex==0'> <td :rowspan="item.ShopDetailsList.length" v-if='subIndex==0'>
<div> <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>
</div> </div>
</td> </td>
...@@ -187,6 +188,21 @@ ...@@ -187,6 +188,21 @@
layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total="msg.total"></el-pagination> layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total="msg.total"></el-pagination>
</div> </div>
<a id='blankLink1' target="_blank" style="display:none">1</a> <a id='blankLink1' target="_blank" style="display:none">1</a>
<el-dialog custom-class='w400' title="请选择需要制单的团号" :visible.sync="zhuanjiaoBox" center>
<template>
<el-form label-width="100px">
<el-form-item label="团号:">
<div v-for="item in CreateHandBillList">
<el-radio v-model="CreateHandBillID" :key="item.id" :label="item.id"></el-radio>
</div>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="zhuanjiaoBox=false">{{$t('pub.cancelBtn')}}</button>
<button class="normalBtn" type="primary" @click="goCreateHandBill()">{{$t('pub.sureBtn')}}</button>
</div>
</template>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -209,9 +225,43 @@ ...@@ -209,9 +225,43 @@
LineList: [], LineList: [],
LineTeamList: [], LineTeamList: [],
shopDataList: [], shopDataList: [],
CreateHandBillList: [],
zhuanjiaoBox: false,
CreateHandBillID: '',
} }
}, },
methods: { methods: {
goCreateHandBill: function () {
console.log(this.CreateHandBillID)
let orderObj = {
OrderID: '', //订单号
OrderSource: '', //12
Obj: {},
SourceID: '', //机票id
TCIDList: [this.CreateHandBillID]
};
this.$router.push({
name: "ChoiceAddFinancialDocuments",
query: {
Type: 0,
companyID: item.RB_Branch_Id, //公司id
path: "",
blank: "y",
orderObj: JSON.stringify(orderObj)
}
});
this.zhuanjiaoBox = false;
},
CreateHandBill: function (obj) {
let newList = []
for(let i = 0 ; i < obj.TCList.length; i++) {
newList.push({
id: obj.TCList[i].TCNUMS
})
}
this.CreateHandBillList = newList
this.zhuanjiaoBox = true
},
downLoadPZ: function (src) { downLoadPZ: function (src) {
let dom = document.querySelector("#blankLink1") let dom = document.querySelector("#blankLink1")
dom.href = src; dom.href = src;
......
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