Commit 0fc1e86a authored by Mac's avatar Mac

修改

parent 5c24b0f8
...@@ -282,8 +282,8 @@ ...@@ -282,8 +282,8 @@
</template> </template>
<script> <script>
import VueAMap from 'vue-amap' // import VueAMap from 'vue-amap'
let amapManager = new VueAMap.AMapManager(); // let amapManager = new VueAMap.AMapManager();
import { import {
getDepartmentGetList, getDepartmentGetList,
getAttendanceInfo, getAttendanceInfo,
...@@ -315,7 +315,7 @@ ...@@ -315,7 +315,7 @@
} }
}, },
zoom: 12, zoom: 12,
amapManager, // amapManager,
events: {}, events: {},
searchData: [], searchData: [],
lnglatXY: [], lnglatXY: [],
......
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
<i v-if="name===2">{{$t('fnc.kuaijilian')}}</i> <i v-if="name===2">{{$t('fnc.kuaijilian')}}</i>
</p> </p>
<!--<p class="_yewudanju">订单号:<span class="_jump_page" @click="GetDetail.OrderID>0?jumpPage('RegistrationList',GetDetail.TCID,1):''">{{GetDetail.OrderID?GetDetail.OrderID:'无'}}</span></p>--> <!--<p class="_yewudanju">订单号:<span class="_jump_page" @click="GetDetail.OrderID>0?jumpPage('RegistrationList',GetDetail.TCID,1):''">{{GetDetail.OrderID?GetDetail.OrderID:'无'}}</span></p>-->
<p class="_yewudanju" v-if="GetDetail.OrderSource==8&&!isPrintPage">{{$t('hotel.order_Number')}}<span class="_jump_page" @click="GetDetail.OrderID>0?jumpPage('RegistrationList',GetDetail.TCID,1):''">{{GetDetail.OrderID?GetDetail.OrderID:$t('fnc.no')}}</span></p> <p class="_yewudanju" v-if="GetDetail.OrderSource==17&&!isPrintPage">{{$t('hotel.order_Number')}}<span class="_jump_page" @click="GetDetail.OrderID>0?jumpPage('RegistrationList',GetDetail.TCID,1):''">{{GetDetail.OrderID?GetDetail.OrderID:$t('fnc.no')}}</span></p>
<p class="_yewudanju" v-if="isPrintPage">{{$t('fnc.dayinshijian')}}<span >{{printTime}}</span></p> <p class="_yewudanju" v-if="isPrintPage">{{$t('fnc.dayinshijian')}}<span >{{printTime}}</span></p>
<div class="rb_top_row _r_mb5"> <div class="rb_top_row _r_mb5">
<p v-if="GetDetail.Type==1 || GetDetail.Type==5">{{$t('fnc.hnrdanwei')}}<span class="_r_name">{{GetDetail.RemitterName}}</span></p> <p v-if="GetDetail.Type==1 || GetDetail.Type==5">{{$t('fnc.hnrdanwei')}}<span class="_r_name">{{GetDetail.RemitterName}}</span></p>
...@@ -285,7 +285,7 @@ export default { ...@@ -285,7 +285,7 @@ export default {
props:["ID","width","color","isPrintPage","name","OrderSource"], //接收参数 ID width color props:["ID","width","color","isPrintPage","name","OrderSource"], //接收参数 ID width color
data(){ data(){
return{ return{
loading:true, loading:true,
EmployeeId:'', EmployeeId:'',
EndDate:'', EndDate:'',
StartDate:'', StartDate:'',
...@@ -345,7 +345,7 @@ export default { ...@@ -345,7 +345,7 @@ export default {
this.loading=false this.loading=false
} }
}, err => {}) }, err => {})
}, },
},mounted(){ },mounted(){
const myDate = new Date(); const myDate = new Date();
let yaer = myDate.getFullYear(); //获取完整的年份(4位,1970-????) let yaer = myDate.getFullYear(); //获取完整的年份(4位,1970-????)
...@@ -353,7 +353,7 @@ export default { ...@@ -353,7 +353,7 @@ export default {
let dateS = myDate.getDate(); //获取当前日(1-31) let dateS = myDate.getDate(); //获取当前日(1-31)
this.StartDate = yaer + '-' + month + '-' + '01'; this.StartDate = yaer + '-' + month + '-' + '01';
this.EndDate = yaer + '-' + month + '-' + dateS; this.EndDate = yaer + '-' + month + '-' + dateS;
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.EmployeeId = userInfo.EmployeeId; this.EmployeeId = userInfo.EmployeeId;
this.Financial_post_GetDetail(this.ID); this.Financial_post_GetDetail(this.ID);
},watch: { // 监听参数变化 },watch: { // 监听参数变化
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
._color_b{color: #333333 !important;font-size: 12px} ._color_b{color: #333333 !important;font-size: 12px}
.rb_top_row span._r_name._no_border{border: none} .rb_top_row span._r_name._no_border{border: none}
._font_size12{font-size: 12px} ._font_size12{font-size: 12px}
._yewudanju{ ._yewudanju{
position: absolute; position: absolute;
text-align: right; text-align: right;
...@@ -87,11 +87,12 @@ ...@@ -87,11 +87,12 @@
{{GetDetail.PlatFormName}}</span> {{GetDetail.PlatFormName}}</span>
</a> </a>
</p> </p>
<p class="_yewudanju" v-if="GetDetail.OrderSource==8&&!isPrintPage">{{$t('hotel.order_Number')}}<span class="_jump_page" @click="GetDetail.OrderID>0?jumpPage('RegistrationList',GetDetail.TCID,1):''">{{GetDetail.OrderID?GetDetail.OrderID:'无'}}</span></p> <p class="_yewudanju" v-if="GetDetail.OrderSource==17&&!isPrintPage">{{$t('hotel.order_Number')}}<span class="_jump_page" @click="GetDetail.OrderID>0?jumpPage('RegistrationList',GetDetail.TCID,1):''">{{GetDetail.OrderID?GetDetail.OrderID:'无'}}</span></p>
<p class="_yewudanju" v-if="GetDetail.OrderSource==15&&!isPrintPage">{{$t('hotel.order_Number')}}<span class="_jump_page" @click="GetDetail.OrderID>0?jumpFreePage('freeTravelOrderStatiDetails',GetDetail.OrderID,1):''">{{GetDetail.OrderID?GetDetail.OrderID:'无'}}</span></p> <!-- <p class="_yewudanju" v-if="GetDetail.OrderSource==8&&!isPrintPage">{{$t('hotel.order_Number')}}<span class="_jump_page" @click="GetDetail.OrderID>0?jumpPage('RegistrationList',GetDetail.TCID,1):''">{{GetDetail.OrderID?GetDetail.OrderID:'无'}}</span></p>-->
<p class="_yewudanju" v-if="GetDetail.OrderSource==1&&!isPrintPage">{{$t('hotel.order_Number')}}<span class="_jump_page" @click="GetDetail.OrderID>0?jumpFreePage('OpHotelOrderDetail',GetDetail.OrderID,1):''">{{GetDetail.OrderID?GetDetail.OrderID:'无'}}</span></p> <!-- <p class="_yewudanju" v-if="GetDetail.OrderSource==15&&!isPrintPage">{{$t('hotel.order_Number')}}<span class="_jump_page" @click="GetDetail.OrderID>0?jumpFreePage('freeTravelOrderStatiDetails',GetDetail.OrderID,1):''">{{GetDetail.OrderID?GetDetail.OrderID:'无'}}</span></p>-->
<p class="_yewudanju" v-if="GetDetail.OrderSource==3&&!isPrintPage">{{$t('hotel.order_Number')}}<span class="_jump_page" @click="GetDetail.OrderID>0?jumpFreePage('scenOrderDetails',GetDetail.OrderID,1):''">{{GetDetail.OrderID?GetDetail.OrderID:'无'}}</span></p> <!-- <p class="_yewudanju" v-if="GetDetail.OrderSource==1&&!isPrintPage">{{$t('hotel.order_Number')}}<span class="_jump_page" @click="GetDetail.OrderID>0?jumpFreePage('OpHotelOrderDetail',GetDetail.OrderID,1):''">{{GetDetail.OrderID?GetDetail.OrderID:'无'}}</span></p>-->
<!-- <p class="_yewudanju" v-if="GetDetail.OrderSource==3&&!isPrintPage">{{$t('hotel.order_Number')}}<span class="_jump_page" @click="GetDetail.OrderID>0?jumpFreePage('scenOrderDetails',GetDetail.OrderID,1):''">{{GetDetail.OrderID?GetDetail.OrderID:'无'}}</span></p>-->
<p class="_yewudanju" v-if="isPrintPage">{{$t('fnc.dayinshijian')}}<span >{{printTime}}</span></p> <p class="_yewudanju" v-if="isPrintPage">{{$t('fnc.dayinshijian')}}<span >{{printTime}}</span></p>
<div class="rb_top_row _r_mb5"> <div class="rb_top_row _r_mb5">
<p v-if="GetDetail.CashierDetail&&GetDetail.CashierDetail[0]">{{$t('fnc.fkuanzhanghu')}}<span class="_r_name _no_border">{{GetDetail.CashierDetail[0].Alias}}</span></p> <p v-if="GetDetail.CashierDetail&&GetDetail.CashierDetail[0]">{{$t('fnc.fkuanzhanghu')}}<span class="_r_name _no_border">{{GetDetail.CashierDetail[0].Alias}}</span></p>
...@@ -322,7 +323,7 @@ export default { ...@@ -322,7 +323,7 @@ export default {
jumpPageNew(){ jumpPageNew(){
this.$router.push({ this.$router.push({
name: 'platOrderquery', name: 'platOrderquery',
query: { query: {
platName: this.GetDetail.PlatFormName, platName: this.GetDetail.PlatFormName,
TradeWay: this.GetDetail.OrderTradeWay, TradeWay: this.GetDetail.OrderTradeWay,
PlatformAccount: this.GetDetail.PlatformAccountId, PlatformAccount: this.GetDetail.PlatformAccountId,
...@@ -344,14 +345,14 @@ export default { ...@@ -344,14 +345,14 @@ export default {
// query: { id:id,orderID:this.GetDetail.OrderID,isShow:false} // query: { id:id,orderID:this.GetDetail.OrderID,isShow:false}
// }); // });
// window.open(routeData.href, "_blank"); // window.open(routeData.href, "_blank");
let idStr = ''; // let idStr = '';
if(this.GetDetail.TCIDList.length>0){ // if(this.GetDetail.TCIDList.length>0){
idStr = this.GetDetail.TCIDList[0]; // idStr = this.GetDetail.TCIDList[0];
} // }
this.$router.push({ // this.$router.push({
name: path, // name: path,
query: { id:idStr,orderID:this.GetDetail.OrderID,isShow:false,blank:'y',tab:'报名清单'} // query: { id:idStr,orderID:this.GetDetail.OrderID,isShow:false,blank:'y',tab:'报名清单'}
}) // })
}else if(type==2){ }else if(type==2){
// let routeData = this.$router.resolve({ // let routeData = this.$router.resolve({
// name: path, // name: path,
...@@ -393,7 +394,7 @@ export default { ...@@ -393,7 +394,7 @@ export default {
this.$set(this.$data,"GetDetail",data); this.$set(this.$data,"GetDetail",data);
} }
}, err => {}) }, err => {})
}, },
},mounted(){ },mounted(){
const myDate = new Date(); const myDate = new Date();
let yaer = myDate.getFullYear(); //获取完整的年份(4位,1970-????) let yaer = myDate.getFullYear(); //获取完整的年份(4位,1970-????)
...@@ -402,7 +403,7 @@ export default { ...@@ -402,7 +403,7 @@ export default {
this.StartDate = yaer + '-' + month + '-' + '01'; this.StartDate = yaer + '-' + month + '-' + '01';
this.EndDate = yaer + '-' + month + '-' + dateS; this.EndDate = yaer + '-' + month + '-' + dateS;
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.EmployeeId = userInfo.EmployeeId; this.EmployeeId = userInfo.EmployeeId;
this.Financial_post_GetDetail(this.ID); this.Financial_post_GetDetail(this.ID);
},watch: { // 监听参数变化 },watch: { // 监听参数变化
GetDetail: { GetDetail: {
......
...@@ -751,7 +751,7 @@ ...@@ -751,7 +751,7 @@
<div class="_TCIDAndTCNUMList" style="display: flex;"> <div class="_TCIDAndTCNUMList" style="display: flex;">
<span>团号:</span> <span>团号:</span>
<div v-if="scope.row.TCIDAndTCNUMList&&scope.row.TCIDAndTCNUMList.length>0"> <div v-if="scope.row.TCIDAndTCNUMList&&scope.row.TCIDAndTCNUMList.length>0">
<p><span v-for="(i,ix) in scope.row.TCIDAndTCNUMList">{{i.TCNUM}}{{i.TCID}}<span v-if="ix!=scope.row.TCIDAndTCNUMList.length-1">,</br></span></span></p> <p><span v-for="(i,ix) in scope.row.TCIDAndTCNUMList">{{i.ClassName}}{{i.ClassId}}<span v-if="ix!=scope.row.TCIDAndTCNUMList.length-1">,</br></span></span></p>
</div> </div>
<div v-else> <div v-else>
<span></span> <span></span>
...@@ -912,6 +912,8 @@ ...@@ -912,6 +912,8 @@
import myBill from "../components/BillModule.vue"; import myBill from "../components/BillModule.vue";
import myrbvBill from "../components/ReceivablesModule.vue"; import myrbvBill from "../components/ReceivablesModule.vue";
import myhrBill from "../components/MergeBillModule.vue"; import myhrBill from "../components/MergeBillModule.vue";
import {getClassNameList} from '../../../api/finance/index'
import { import {
queryEmployee queryEmployee
} from '../../../api/users/user' } from '../../../api/users/user'
...@@ -1216,14 +1218,40 @@ ...@@ -1216,14 +1218,40 @@
} }
}) })
this.total = res.data.data.count; this.total = res.data.data.count;
let da = []
if (this.total == 0) { if (this.total == 0) {
this.DataList = []; this.DataList = [];
} else { } else {
data.forEach(x => { data.forEach(x => {
// this.columns[0].filters.push({label:x.FrID,value:x.FrID}) // this.columns[0].filters.push({label:x.FrID,value:x.FrID})
x.modelShow = false; x.modelShow = false;
if(x.TCIDList.length>0){
da =da.concat(x.TCIDList)
}
}) })
this.DataList = data; this.DataList = data;
if(da.length>0){
let str = da.join(',')
getClassNameList({ClassIds:str}).then(res => {
this.DataList.forEach(x=>{
if(x.TCIDList.length>0){
x.TCIDList.forEach(z=>{
res.Data.forEach(j=>{
if(z == j.ClassId){
x.TCIDAndTCNUMList.push(j)
}
})
})
}
})
}).catch(() => {
})
}
} }
this.loading = false; this.loading = false;
} else { } else {
......
...@@ -1123,6 +1123,8 @@ ...@@ -1123,6 +1123,8 @@
} else { } else {
this.msg.ClientType = 0; this.msg.ClientType = 0;
} }
if (this.msg.RB_Branch_Id == '' || this.msg.RB_Branch_Id == 0) return this.$message.error('请选择校区');
// IsPublic 2 现金 IsLeader 0 临时领队 // IsPublic 2 现金 IsLeader 0 临时领队
if (this.msg.IsPublic < 2 && this.IsLeader === 1) { if (this.msg.IsPublic < 2 && this.IsLeader === 1) {
if (this.msg.ClientID === '') return this.$message.error(this.$t('rule.qxzkhmingcheng')); if (this.msg.ClientID === '') return this.$message.error(this.$t('rule.qxzkhmingcheng'));
......
...@@ -444,11 +444,11 @@ ...@@ -444,11 +444,11 @@
<input v-model="da.UnitPrice" type="number" @keydown="handleInput2" @change="Calculation(2,daIn+1)" @blur="addList(2,daIn+1)" class="w80 h34 _border_b_1"></input> <input v-model="da.UnitPrice" type="number" @keydown="handleInput2" @change="Calculation(2,daIn+1)" @blur="addList(2,daIn+1)" class="w80 h34 _border_b_1"></input>
</td> --> </td> -->
<td height="26px"> <td height="26px">
<el-input v-model="da.Number" @keyup.native="checkInteger(da,'Number')" type="text" <el-input v-model="da.Number" @keyup.native="checkInteger(da,'Number')" type="text" @input="chages($event)"
@blur="addList(2,daIn+1)" @change="Calculation(2,daIn+1)" class="w80 _border_b_1"></el-input> @blur="addList(2,daIn+1)" @change="Calculation(2,daIn+1)" class="w80 _border_b_1"></el-input>
</td> </td>
<td height="26px"> <td height="26px">
<el-input v-model="da.UnitPrice" type="text" @keyup.native="checkPrice(da,'UnitPrice',true)" <el-input v-model="da.UnitPrice" type="text" @keyup.native="checkPrice(da,'UnitPrice',true)" @input="chages($event)"
@change="Calculation(2,daIn+1)" @blur="addList(2,daIn+1)" class="w80 h34 _border_b_1"></el-input> @change="Calculation(2,daIn+1)" @blur="addList(2,daIn+1)" class="w80 h34 _border_b_1"></el-input>
</td> </td>
<td height="26px"> <td height="26px">
...@@ -461,7 +461,7 @@ ...@@ -461,7 +461,7 @@
</td> </td>
<td height="26px">{{da.bTotalPrice}}</td> <td height="26px">{{da.bTotalPrice}}</td>
<td height="26px"> <td height="26px">
<el-input v-model="da.Remark" type="textarea" class="w80 _border_b_1"></el-input> <i <el-input v-model="da.Remark" type="textarea" class="w80 _border_b_1" @input="chages($event)"></el-input> <i
@click="deleteRow(daIn,da)" class="_delete_row iconfont icon-img_delete_small"></i> @click="deleteRow(daIn,da)" class="_delete_row iconfont icon-img_delete_small"></i>
</td> </td>
</tr> </tr>
...@@ -481,12 +481,12 @@ ...@@ -481,12 +481,12 @@
<input v-model="detailList.UnitPrice" type="number" @keydown="handleInput2" @change="Calculation(1)" @blur="addList(1)" class="w80 h34 _border_b_1"></input> <input v-model="detailList.UnitPrice" type="number" @keydown="handleInput2" @change="Calculation(1)" @blur="addList(1)" class="w80 h34 _border_b_1"></input>
</td> --> </td> -->
<td> <td>
<el-input v-model="detailList.Number" type="text" @keyup.native="checkInteger(detailList,'Number')" <el-input v-model="detailList.Number" type="text" @keyup.native="checkInteger(detailList,'Number')" @input="chages($event)"
@blur="addList(1)" @change="Calculation(1)" class="w80 _border_b_1"></el-input> @blur="addList(1)" @change="Calculation(1)" class="w80 _border_b_1"></el-input>
</td> </td>
<td> <td>
<el-input v-model="detailList.UnitPrice" type="text" <el-input v-model="detailList.UnitPrice" type="text"
@keyup.native="checkPrice(detailList,'UnitPrice',true)" @change="Calculation(1)" @blur="addList(1)" @keyup.native="checkPrice(detailList,'UnitPrice',true)" @change="Calculation(1)" @blur="addList(1)" @input="chages($event)"
class="w80 h34 _border_b_1"></el-input> class="w80 h34 _border_b_1"></el-input>
</td> </td>
<td> <td>
...@@ -499,7 +499,7 @@ ...@@ -499,7 +499,7 @@
</td> </td>
<td>{{detailList.bTotalPrice}}</td> <td>{{detailList.bTotalPrice}}</td>
<td> <td>
<el-input v-model="detailList.Remark" @blur="addList(1)" type="textarea" class="w80 _border_b_1"> <el-input v-model="detailList.Remark" @blur="addList(1)" type="textarea" class="w80 _border_b_1" @input="chages($event)">
</el-input> </el-input>
</td> </td>
</tr> </tr>
...@@ -1281,6 +1281,7 @@ ...@@ -1281,6 +1281,7 @@
return this.$message.error(this.$t('rule.qxzjylshuihao')); return this.$message.error(this.$t('rule.qxzjylshuihao'));
} }
} }
if (this.msg.RB_Branch_Id == '' || this.msg.RB_Branch_Id == 0) return this.$message.error('请选择校区');
if (this.msg.BankId == '') return this.$message.error(this.$t('rule.qxzskzhanghao')); if (this.msg.BankId == '') return this.$message.error(this.$t('rule.qxzskzhanghao'));
if (!this.msg.RB_Depart_Id) return this.$message.error(this.$t('rule.qxzzdbumen')); if (!this.msg.RB_Depart_Id) return this.$message.error(this.$t('rule.qxzzdbumen'));
if (!this.$route.query.edit) { if (!this.$route.query.edit) {
...@@ -1531,6 +1532,9 @@ ...@@ -1531,6 +1532,9 @@
this.msg.BankList[0].Fee = parseFloat(this.msg.BankList[0].ybFee); this.msg.BankList[0].Fee = parseFloat(this.msg.BankList[0].ybFee);
this.$forceUpdate(); this.$forceUpdate();
}, },
chages(){
this.$forceUpdate()
},
shouxufeiJiSuan: function () { shouxufeiJiSuan: function () {
let price = 0; let price = 0;
this.msg.detailList.forEach(y => { this.msg.detailList.forEach(y => {
...@@ -1789,6 +1793,7 @@ ...@@ -1789,6 +1793,7 @@
this.msg.RB_BranchName = x.SName; this.msg.RB_BranchName = x.SName;
} }
}) })
}).catch(() => { }).catch(() => {
}) })
......
...@@ -178,6 +178,7 @@ ...@@ -178,6 +178,7 @@
myorderObjOption:{}, myorderObjOption:{},
classObjOption: null, classObjOption: null,
isShowClassInfo: false, //是否显示课程信息 isShowClassInfo: false, //是否显示课程信息
showone:false,
} }
}, },
created() { created() {
...@@ -220,9 +221,11 @@ ...@@ -220,9 +221,11 @@
//翻页 //翻页
changePage(val) { changePage(val) {
if(val !=1 && this.msg.pageIndex!=1){//对第一次进来防止掉2次getList if(this.showone == true){
this.msg.pageIndex = val; this.msg.pageIndex = val;
this.getList() this.getList()
}else {
this.showone=true
} }
}, },
...@@ -259,6 +262,7 @@ ...@@ -259,6 +262,7 @@
this.data.List.forEach(x=>{ this.data.List.forEach(x=>{
OrderIds.push(x.OrderId) OrderIds.push(x.OrderId)
}) })
this.loading = false
OrderIds = OrderIds.join(',') OrderIds = OrderIds.join(',')
// this.getOrderFinanceList(OrderIds) // this.getOrderFinanceList(OrderIds)
if( this.data.List.length>0){ if( this.data.List.length>0){
......
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