Commit a4de6d75 authored by zhengke's avatar zhengke

no message

parent a615a77a
...@@ -107,6 +107,20 @@ ...@@ -107,6 +107,20 @@
:label="item.Name" :value="item.Id"> </el-option> :label="item.Name" :value="item.Id"> </el-option>
</el-select> </el-select>
</el-col> </el-col>
<el-col :xs="7" :sm="6" :md="5" :lg="4" :xl="3">
<span class="font-size-12" style="padding-right: 10px"
>出签状态</span
>
<el-select size="mini" v-model="msg.VisaStatus" @change="getList">
<el-option
v-for="(item, index) in VisaList"
:key="index"
:label="item.Name"
:value="item.Id"
>
</el-option>
</el-select>
</el-col>
<el-col :xs="7" :sm="6" :md="5" :lg="4" :xl="3"> <el-col :xs="7" :sm="6" :md="5" :lg="4" :xl="3">
<span class="font-size-12" style="padding-right: 10px">订单状态</span> <span class="font-size-12" style="padding-right: 10px">订单状态</span>
<el-select size="mini" v-model="msg.OrderStatus" @change="getList"> <el-select size="mini" v-model="msg.OrderStatus" @change="getList">
...@@ -214,6 +228,11 @@ ...@@ -214,6 +228,11 @@
}, },
data() { data() {
return { return {
VisaList:[
{ Name: "不限", Id: "0" },
{ Name: "未出签", Id: "1" },
{ Name: "已出签", Id: "2" },
],
MultipleChoiceList: [ //多选项目 MultipleChoiceList: [ //多选项目
{ {
Name: '机票', Name: '机票',
...@@ -248,16 +267,14 @@ ...@@ -248,16 +267,14 @@
EndCityName:"",//到达城市 EndCityName:"",//到达城市
EnterID:"",//业务员id EnterID:"",//业务员id
TicketStatus:"0",//出票状态 TicketStatus:"0",//出票状态
OrderStatus:"1",//订单状态 VisaStatus:"0",//出签状态
OrderStatus:"0",//订单状态
Q_IsCollect:"0",//收款状态 Q_IsCollect:"0",//收款状态
StartTime:"", StartTime:"",
EndTime:"" EndTime:""
}, },
ticketingStatusList:[],// 出票状态 ticketingStatusList:[],// 出票状态
OrderStatusList:[ OrderStatusList:[],
{Name:'正常',Id:'1'},
{Name:'取消',Id:'2'}
],
QIsCollectList:[ QIsCollectList:[
{Name:'不限',Id:'0'}, {Name:'不限',Id:'0'},
{Name:'已收齐',Id:'1'}, {Name:'已收齐',Id:'1'},
...@@ -278,6 +295,7 @@ ...@@ -278,6 +295,7 @@
} }
this.Employee() //业务员 this.Employee() //业务员
this.GetTicketStatusEnumList() //出票枚举 this.GetTicketStatusEnumList() //出票枚举
this.GetOrderStatusEnumList() //订单状态枚举
let $this = this let $this = this
this.MsgBus.$on("closeGetList", function() { this.MsgBus.$on("closeGetList", function() {
$this.getList() $this.getList()
...@@ -331,6 +349,21 @@ ...@@ -331,6 +349,21 @@
return item.More = '' return item.More = ''
}) })
}, },
// 获取订单状态枚举
GetOrderStatusEnumList() {
this.apipost("/api/Order/GetOrderStatusEnumList", {}, (res) => {
if (res.data.resultCode == 1) {
this.OrderStatusList = res.data.data;
let data = {
Name: "不限",
Id: "0",
};
this.OrderStatusList.unshift(data);
} else {
this.$message.error(res.data.message);
}
});
},
// 获取出票状态枚举 // 获取出票状态枚举
GetTicketStatusEnumList(){ GetTicketStatusEnumList(){
this.apipost( this.apipost(
......
...@@ -90,6 +90,20 @@ ...@@ -90,6 +90,20 @@
:label="item.Name" :value="item.Id"> </el-option> :label="item.Name" :value="item.Id"> </el-option>
</el-select> </el-select>
</el-col> </el-col>
<el-col :xs="7" :sm="6" :md="5" :lg="4" :xl="3">
<span class="font-size-12" style="padding-right: 10px"
>出签状态</span
>
<el-select size="mini" v-model="msg.VisaStatus" @change="getList">
<el-option
v-for="(item, index) in VisaList"
:key="index"
:label="item.Name"
:value="item.Id"
>
</el-option>
</el-select>
</el-col>
<el-col :xs="7" :sm="6" :md="5" :lg="4" :xl="3"> <el-col :xs="7" :sm="6" :md="5" :lg="4" :xl="3">
<span class="font-size-12" style="padding-right: 10px">订单状态</span> <span class="font-size-12" style="padding-right: 10px">订单状态</span>
<el-select size="mini" v-model="msg.OrderStatus" @change="getList"> <el-select size="mini" v-model="msg.OrderStatus" @change="getList">
...@@ -197,6 +211,11 @@ ...@@ -197,6 +211,11 @@
}, },
data() { data() {
return { return {
VisaList:[
{ Name: "不限", Id: "0" },
{ Name: "未出签", Id: "1" },
{ Name: "已出签", Id: "2" },
],
MultipleChoiceList: [ //多选项目 MultipleChoiceList: [ //多选项目
{ {
Name: '机票', Name: '机票',
...@@ -230,16 +249,14 @@ ...@@ -230,16 +249,14 @@
EndCityName:"",//到达城市 EndCityName:"",//到达城市
EnterID:"",//业务员id EnterID:"",//业务员id
TicketStatus:"0",//出票状态 TicketStatus:"0",//出票状态
OrderStatus:"1",//订单状态 VisaStatus:"0",//出签状态
OrderStatus:"0",//订单状态
Q_IsCollect:"0",//收款状态 Q_IsCollect:"0",//收款状态
StartTime:"2022-04-28", StartTime:"2022-04-28",
EndTime:"" EndTime:""
}, },
ticketingStatusList:[],// 出票状态 ticketingStatusList:[],// 出票状态
OrderStatusList:[ OrderStatusList:[],
{Name:'正常',Id:'1'},
{Name:'取消',Id:'2'}
],
QIsCollectList:[ QIsCollectList:[
{Name:'不限',Id:'0'}, {Name:'不限',Id:'0'},
{Name:'已收齐',Id:'1'}, {Name:'已收齐',Id:'1'},
...@@ -259,6 +276,7 @@ ...@@ -259,6 +276,7 @@
} }
this.Employee() //业务员 this.Employee() //业务员
this.GetTicketStatusEnumList() //出票枚举 this.GetTicketStatusEnumList() //出票枚举
this.GetOrderStatusEnumList() //订单状态枚举
let $this = this let $this = this
this.MsgBus.$on("closeGetList", function() { this.MsgBus.$on("closeGetList", function() {
$this.getList() $this.getList()
...@@ -312,6 +330,21 @@ ...@@ -312,6 +330,21 @@
return item.More = '' return item.More = ''
}) })
}, },
// 获取订单状态枚举
GetOrderStatusEnumList() {
this.apipost("/api/Order/GetOrderStatusEnumList", {}, (res) => {
if (res.data.resultCode == 1) {
this.OrderStatusList = res.data.data;
let data = {
Name: "不限",
Id: "0",
};
this.OrderStatusList.unshift(data);
} else {
this.$message.error(res.data.message);
}
});
},
// 获取出票状态枚举 // 获取出票状态枚举
GetTicketStatusEnumList(){ GetTicketStatusEnumList(){
this.apipost( this.apipost(
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
<th width="6.5%">手续费</th> <th width="6.5%">手续费</th>
<th width="6.5%">待收</th> <th width="6.5%">待收</th>
<th width="6.5%">出票状态</th> <th width="6.5%">出票状态</th>
<th width="6.5%">签证状态</th>
<th width="6.5%">订单状态</th> <th width="6.5%">订单状态</th>
<th width="100px">操作</th> <th width="100px">操作</th>
</tr> </tr>
...@@ -106,10 +107,24 @@ ...@@ -106,10 +107,24 @@
(item.TicketStatus==4?'Black':'')))"> (item.TicketStatus==4?'Black':'')))">
{{item.TicketStatusName}} {{item.TicketStatusName}}
</span> </span>
<i v-if="item.TicketStatus!=1&&item.TicketVoucherList!=[]&&item.CancelVoucherList!=[]&&item.TicketStatusName!='无需机票'" class="iconfont iconpingzhengchaxun Credentials" <i v-if="item.TicketStatus!=1&&item.TicketVoucherList!=[]&&item.CancelVoucherList!=[]&&item.TicketStatusName!='无需机票'" class="cp iconfont iconpingzhengchaxun Credentials"
@click="viewCredentials(item)"></i> @click="viewCredentials(item)"></i>
</p> </p>
</td>
<td style="border:none">
<p class="TicketVoucher-box">
<span @click="item.VisaStatus=='1'?AmendVisa(item):''"
class="tatusText"
:class="item.VisaStatus==0?'grey':
(item.VisaStatus==2?'success'+' cp':
(item.VisaStatus==1?'Black':''))">
{{item.VisaStatus==1?'未出签':(item.VisaStatus==2?'已出签':'无需签证')}}
</span>
<i v-if="item.VisaStatus==2" class="cp iconfont iconpingzhengchaxun Credentials"
@click="CheckOutDetails(item)"></i>
</p>
</td> </td>
<td style="border:none"> <td style="border:none">
<div style="background: rgba(2, 196, 153, 0.2);width: 70px;border-radius: 2px;text-align: center" <div style="background: rgba(2, 196, 153, 0.2);width: 70px;border-radius: 2px;text-align: center"
...@@ -143,7 +158,7 @@ ...@@ -143,7 +158,7 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td :colspan="8" style="height: 108px;text-align: left"> <td :colspan="9" style="height: 108px;text-align: left">
<div>备注:</div> <div>备注:</div>
<div class="remarks-b"> <div class="remarks-b">
<div v-if="item.Remark != null || item.Remark != ''"> <div v-if="item.Remark != null || item.Remark != ''">
...@@ -231,7 +246,7 @@ ...@@ -231,7 +246,7 @@
</table> </table>
</div> </div>
<el-drawer :with-header="false" size='70%' :visible.sync="drawer" direction="rtl" :before-close="handleClose"> <el-drawer :with-header="false" size='70%' :visible.sync="drawer" direction="rtl" :before-close="handleClose">
<customerInfoBox :CustomerId="CustomerId" /> <customerInfoBox :CustomerId="CustomerId" :activeNameNum="activeNameNum" :receiptType="receiptType"/>
</el-drawer> </el-drawer>
<!-- 单号抽屉 --> <!-- 单号抽屉 -->
<el-drawer @closed="closeOrderDrawerHandler" :with-header="false" size='70%' :visible.sync="orderDrawer" direction="rtl" :before-close="handleClose"> <el-drawer @closed="closeOrderDrawerHandler" :with-header="false" size='70%' :visible.sync="orderDrawer" direction="rtl" :before-close="handleClose">
...@@ -266,6 +281,7 @@ export default { ...@@ -266,6 +281,7 @@ export default {
}, },
data() { data() {
return { return {
receiptType:{},
activeNameNum:"1", activeNameNum:"1",
MultipleChoiceList: [ //多选项目 MultipleChoiceList: [ //多选项目
{ {
...@@ -598,6 +614,31 @@ export default { ...@@ -598,6 +614,31 @@ export default {
operationLog(row) { operationLog(row) {
this.MsgBus.$emit("logTicketOrderBoxOpen", row.GuestId, row, true); this.MsgBus.$emit("logTicketOrderBoxOpen", row.GuestId, row, true);
}, },
// 修改签证状态
AmendVisa(row){
if (this.superManage) {
this.AmendVisafun(row);
} else {
if (this.userInfo.EmName != row.EnterName) {
this.ValidateOperator();
} else {
this.AmendVisafun(row);
}
}
},
AmendVisafun(row){
this.MsgBus.$emit("AmendVisaOrderBoxOpen", row.GuestId, row, true);
},
// 出签凭证详情
CheckOutDetails(row){
let $this = this;
this.MsgBus.$emit(
"CheckOutDetailsOrderBoxOpen",
$this.ID,
row,
true
);
},
// 修改出票状态 // 修改出票状态
modifyStatus(row) { modifyStatus(row) {
if (this.superManage) { if (this.superManage) {
......
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
</el-row> </el-row>
</div> </div>
<div class="content"> <div class="content">
<el-tabs v-model="activeName" @tab-click="handleClick"> <el-tabs v-if="!receiptType.ReFinanceId" v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="活动" name="1"> <el-tab-pane label="活动" name="1">
<Activity v-if="activeName === '1'" :CustomerId="CustomerId" :showType="2" :detailsData="detailsData" /> <Activity v-if="activeName === '1'" :CustomerId="CustomerId" :showType="2" :detailsData="detailsData" />
</el-tab-pane> </el-tab-pane>
...@@ -145,6 +145,12 @@ ...@@ -145,6 +145,12 @@
<Record v-if="activeName === '9'" :CustomerId="CustomerId" /> <Record v-if="activeName === '9'" :CustomerId="CustomerId" />
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<el-tabs v-else v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="财务单据" name="12">
<finance v-if="activeName === '12'" :ID="CustomerId" :receiptType="receiptType"/>
</el-tab-pane>
</el-tabs>
</div> </div>
</div> </div>
</div> </div>
...@@ -172,6 +178,10 @@ ...@@ -172,6 +178,10 @@
guestTeam, guestTeam,
}, },
props: { props: {
documentDetails: {
type: Boolean,
default: false,
},
CustomerId: { CustomerId: {
type: Number, type: Number,
default: 0, default: 0,
...@@ -180,6 +190,14 @@ ...@@ -180,6 +190,14 @@
type: Boolean, type: Boolean,
default: false, default: false,
}, },
activeNameNum: {
type: String,
default: false
},
receiptType: {
type: Object,
default: false
}
}, },
data() { data() {
return { return {
...@@ -192,10 +210,16 @@ ...@@ -192,10 +210,16 @@
CustomerId: { CustomerId: {
handler(val, oldVal) { handler(val, oldVal) {
this.init(); this.init();
this.activeName = "1";
}, },
deep: true, deep: true,
}, },
activeNameNum: {
immediate: true,
handler(val, oldVal) {
this.activeName = val;
},
deep: true,
}
}, },
created() { created() {
......
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
:data="dataList" :data="dataList"
tooltip-effect="dark" tooltip-effect="dark"
style="width: 100%" style="width: 100%"
:height="dataList.length > 0 ? '600' : '660'" :height="dataList.length > 0 ? '600' : '600'"
row-class-name="font-size-12"> row-class-name="font-size-12">
<el-table-column <el-table-column
fixed fixed
...@@ -167,7 +167,20 @@ ...@@ -167,7 +167,20 @@
</template> </template>
<script> <script>
export default { export default {
props: ["ID", "BusinessType"], props:{
ID:{
type: Number,
default: false
},
BusinessType:{
type: Boolean,
default: false
},
receiptType:{
type: Object,
default: false
}
},
data() { data() {
return { return {
ApprovalStatusList:[ ApprovalStatusList:[
...@@ -192,7 +205,10 @@ export default { ...@@ -192,7 +205,10 @@ export default {
FrID:"0", FrID:"0",
Type:"-1", Type:"-1",
Status: "-1", Status: "-1",
GuestId:"" GuestId:"",
ReFinanceId:"",// 订单ID
ReFinanceId2:"",//1收入 2退款 3成本
RelevanceFrId:"",//收据类型
}, },
total:0 total:0
}; };
...@@ -200,10 +216,24 @@ export default { ...@@ -200,10 +216,24 @@ export default {
watch: { watch: {
ID: { ID: {
handler(val, oldVal) { handler(val, oldVal) {
this.getList(); if(!this.receiptType.ReFinanceId){
this.getList();
}
}, },
deep: true, deep: true,
}, },
receiptType: {
immediate: true,
handler(val, oldVal) {
this.msg.ReFinanceId = val.ReFinanceId
this.msg.ReFinanceId2 = val.ReFinanceId2
this.msg.RelevanceFrId = val.RelevanceFrId
if(val.ReFinanceId){
this.getList()
}
},
deep: true,
}
}, },
mounted() { mounted() {
this.msg.GuestId = this.ID this.msg.GuestId = this.ID
......
...@@ -504,7 +504,7 @@ ...@@ -504,7 +504,7 @@
<div class="form-box" v-if="show"> <div class="form-box" v-if="show">
<el-form :model="form" ref="form" class="MyEditForm" :rules="rules"> <el-form :model="form" ref="form" class="MyEditForm" :rules="rules">
<p class="form-box-tit" v-if="name!='操作日志'&&name!='凭证图'&&name!='制单'"><span class="radius"></span> <p class="form-box-tit" v-if="name!='操作日志'&&name!='凭证图'&&name!='制单'"><span class="radius"></span>
{{name!='修改出票状态'?' 基本信息':' 上传'+text+'凭证'}}</p> {{name!='修改出票状态'&&name!='修改出签状态'?' 基本信息':' 上传'+text+'凭证'}}</p>
<el-row :gutter="30"> <el-row :gutter="30">
<el-col :span="8" v-if="name=='新建机票订单'||name=='编辑机票订单'"> <el-col :span="8" v-if="name=='新建机票订单'||name=='编辑机票订单'">
<div class="MyEditForm-item"> <div class="MyEditForm-item">
...@@ -621,7 +621,7 @@ ...@@ -621,7 +621,7 @@
<div class="MyEditForm-item"> <div class="MyEditForm-item">
<el-form-item label="凭证/图片" prop=""> <el-form-item label="凭证/图片" prop="">
<div class="certificate-img-box"> <div class="certificate-img-box">
<div class="img-box" v-loding="imgShow" v-for="(item,index) in form.Voucher" :key="index"> <div class="img-box" :loding="imgShow" v-for="(item,index) in form.Voucher" :key="index">
<el-image <el-image
style="width: 100px; height: 100px" style="width: 100px; height: 100px"
:src="item" :src="item"
...@@ -640,6 +640,46 @@ ...@@ -640,6 +640,46 @@
class="upload-demo" class="upload-demo"
drag drag
action="" action=""
:show-file-list="false"
:file-list="fileList"
:http-request="uploadImg"
:multiple="true"
accept="image/jpeg,image/gif,image/png,image/bmp"
:before-upload="handleAvatarUpload"
:on-success="handleAvatarSuccess"
>
<i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
</el-upload>
</el-form-item>
</div>
</el-col>
</el-row>
<el-row v-if="name=='修改出签状态'">
<el-col :span="24">
<div class="MyEditForm-item">
<el-form-item label="凭证/图片" prop="">
<div class="certificate-img-box">
<div class="img-box" :loding="imgShow" v-for="(item,index) in form.Voucher" :key="index">
<el-image
style="width: 100px; height: 100px"
:src="item"
:preview-src-list="form.Voucher">
</el-image>
</div>
</div>
</el-form-item>
</div>
</el-col>
<el-col :span="24">
<div class="MyEditForm-item">
<el-form-item label="上传图片" prop="Voucher">
<el-upload
ref="ticketUpload"
class="upload-demo"
drag
action=""
:show-file-list="false"
:file-list="fileList" :file-list="fileList"
:http-request="uploadImg" :http-request="uploadImg"
:multiple="true" :multiple="true"
...@@ -699,6 +739,18 @@ ...@@ -699,6 +739,18 @@
</div> </div>
</div> </div>
</div> </div>
<div v-if="name=='出签凭证图'" class="Credentials-box">
<div class="Credentials-text">
<div class="Credentialstext-box">
<p>出签凭证</p>
<div class="Credentialsimg-box">
<el-image v-for="(items,index) in obj.VisaVoucherList.map(item=>{return domainManager().ViittoFileUrl + item})" :key="index"
:src="items"
:preview-src-list="obj.VisaVoucherList.map(item=>{return domainManager().ViittoFileUrl + item})"></el-image>
</div>
</div>
</div>
</div>
<div v-if="name=='操作日志'"> <div v-if="name=='操作日志'">
<div v-for="(item,index) in logData" :key="index"> <div v-for="(item,index) in logData" :key="index">
<div class="form-box-log"> <div class="form-box-log">
...@@ -1491,6 +1543,9 @@ ...@@ -1491,6 +1543,9 @@
this.AccountType_post_GetList() this.AccountType_post_GetList()
this.Financial_post_GetCostTypeList() this.Financial_post_GetCostTypeList()
} }
if (this.name == '修改出签状态') {
this.text = '出签'
}
}, },
...@@ -2207,6 +2262,38 @@ ...@@ -2207,6 +2262,38 @@
} }
}) })
}, },
// 修改出签状态
SetOrderVisaState(){
if(this.Voucher.length==0){
this.$message.warning('请上传凭证!');
return
}
let data = {
OrderId:this.obj.OrderId,//订单ID
Voucher:this.Voucher
}
this.clickShow = true
this.apipost("api/Order/SetOrderVisaState",data,(res)=>{
if (res.data.resultCode == 1) {
this.clickShow = false
this.dialogTableVisible = false;
this.Voucher = []
this.MsgBus.$emit("closeBillMaking");
this.$confirm(res.data.message, '提示', {
confirmButtonText: '确定',
cancelButtonText: '',
type: 'warning'
}).then(() => {
}).catch(() => {
});
} else {
this.clickShow = false
this.$message.error(res.data.message);
}
})
},
submitForm(addMsg) { submitForm(addMsg) {
//提交创建、修改表单 //提交创建、修改表单
if (this.name == '新建机票订单' || this.name == '编辑机票订单') { if (this.name == '新建机票订单' || this.name == '编辑机票订单') {
...@@ -2252,6 +2339,13 @@ ...@@ -2252,6 +2339,13 @@
if(this.name=='制单'){ if(this.name=='制单'){
this.Financial_post_SetFinanceInfoForCRMIn() this.Financial_post_SetFinanceInfoForCRMIn()
} }
if(this.name=='修改出签状态'){
this.SetOrderVisaState()
}
if(this.name=='凭证图'||this.name=='出签凭证图'){
this.dialogTableVisible = false;
this.MsgBus.$emit("closeTicketOrderDialogBox");
}
}, },
resetForm(formName) { resetForm(formName) {
......
This diff is collapsed.
...@@ -333,6 +333,12 @@ ...@@ -333,6 +333,12 @@
$this.obj = obj; $this.obj = obj;
$this.dialogTicketOrderVisible = true; $this.dialogTicketOrderVisible = true;
}); });
this.MsgBus.$on("AmendVisaOrderBoxOpen", function (GuestId, obj) {
$this.dialogTicketOrderVisibleName = "修改出签状态";
$this.GuestId = GuestId;
$this.obj = obj;
$this.dialogTicketOrderVisible = true;
});
this.MsgBus.$on("logTicketOrderBoxOpen", function (GuestId, obj) { this.MsgBus.$on("logTicketOrderBoxOpen", function (GuestId, obj) {
$this.dialogTicketOrderVisibleName = "操作日志"; $this.dialogTicketOrderVisibleName = "操作日志";
$this.GuestId = GuestId; $this.GuestId = GuestId;
...@@ -351,6 +357,12 @@ ...@@ -351,6 +357,12 @@
$this.obj = obj; $this.obj = obj;
$this.dialogTicketOrderVisible = true; $this.dialogTicketOrderVisible = true;
}); });
this.MsgBus.$on("CheckOutDetailsOrderBoxOpen", function (GuestId, obj) {
$this.dialogTicketOrderVisibleName = "出签凭证图";
$this.GuestId = GuestId;
$this.obj = obj;
$this.dialogTicketOrderVisible = true;
});
this.MsgBus.$on("BillMakingOrderBoxOpen", function (GuestId, obj) { this.MsgBus.$on("BillMakingOrderBoxOpen", function (GuestId, obj) {
$this.dialogTicketOrderVisibleName = "制单"; $this.dialogTicketOrderVisibleName = "制单";
$this.GuestId = GuestId; $this.GuestId = GuestId;
......
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