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

1

parent 97a849c9
......@@ -441,7 +441,7 @@
@click="goFncUrl('DebitNote', subItem.FinanceId)">借支单</span></p>
</td>
<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)" />
</td>
</tr>
......@@ -532,7 +532,8 @@
}
});
},
goZhiDan2: function (obj) {
goZhiDan2: function (obj, type) {
if (!type) {
let allMoney = this.TotalNav.reimburseTotalPrice.PlanPrice * 0.95
let totailMoney = 0
this.nav.forEach(x => {
......@@ -541,6 +542,7 @@
})
if ((allMoney - totailMoney) < 0) return this.$message.error('最大领款为预付合计金额的95%!')
if (!obj.LeaderGetPriceT || obj.LeaderGetPriceT <= 0) return this.$message.error('请输入金额!')
}
let TCIDARR = [obj.TCIDS]
let orderObj = {
OrderID: 0,
......
......@@ -140,6 +140,7 @@
<td :rowspan="item.ShopDetailsList.length" v-if='subIndex==0'>
<div>
<p style="cursor: pointer;color:blue;" @click="CreateBill(item.ShopDetailsList)">生成单据</p>
<p style="cursor: pointer;color:blue;" @click="CreateHandBill(outItem)">手动生成单据</p>
</div>
</td>
......@@ -187,6 +188,21 @@
layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total="msg.total"></el-pagination>
</div>
<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>
</template>
<script>
......@@ -209,9 +225,43 @@
LineList: [],
LineTeamList: [],
shopDataList: [],
CreateHandBillList: [],
zhuanjiaoBox: false,
CreateHandBillID: '',
}
},
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) {
let dom = document.querySelector("#blankLink1")
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