Commit 1b3f93c2 authored by 罗超's avatar 罗超

no message

parent 3938e9bc
......@@ -26,7 +26,7 @@ export default {
<style>
@import "./assets/css/tablevoerride.css";
@import "./assets/global/font.css";
@import "//at.alicdn.com/t/font_1627123_tcs57r3ak3a.css";
@import "//at.alicdn.com/t/font_1627123_ipry94iiny.css";
@import url("//at.alicdn.com/t/font_1627123_grz80mbm3sv.css");
/* @import './assets/css/common.css'; */
@import "./assets/css/init.css";
......
......@@ -82,7 +82,6 @@
<p>{{detailsData.SurName + detailsData.Name}}</p>
</div>
<div class="right" v-if="!hiddenMenu">
{{detailsData.IsCreate}}
<el-button class="crm-btn query-btn" @click="editCust">编辑</el-button>
<el-dropdown @command="handleCommand" style="top: 1px;" v-if="detailsData.IsCreate==1">
<el-button class="crm-btn crm-btn-more easy-btn margin-right0">
......
......@@ -45,26 +45,32 @@
<template>
<div class="Business">
<div class="add-Enclosure">
<el-row :gutter="12">
<el-row :gutter="14">
<el-col :span="8">
<el-input size="mini" placeholder="输入单号" v-model="msg.FrID" label="单号"
@keyup.enter.native="getList"></el-input>
</el-col>
<el-col :span="4">
<el-select size="mini" width="200" v-model="msg.Type" placeholder="请选择"
@change="getList">
<el-option
v-for="item in DocumentTypeList"
:key="item.Id" :label="item.Name" :value="item.Id"></el-option>
</el-select>
<el-col :span="6">
<div style="display: flex;flex-direction: row;align-items: center;">
<span class="font-size-12" style="padding-right: 10px;flex-shrink: 0;">单据类型:</span>
<el-select size="mini" width="200" v-model="msg.Type" placeholder="请选择"
@change="getList">
<el-option
v-for="item in DocumentTypeList"
:key="item.Id" :label="item.Name" :value="item.Id"></el-option>
</el-select>
</div>
</el-col>
<el-col :span="4">
<el-select size="mini" width="200" v-model="msg.Status" placeholder="请选择"
@change="getList">
<el-option
v-for="item in ApprovalStatusList"
:key="item.Id" :label="item.Name" :value="item.Id"></el-option>
</el-select>
<el-col :span="6">
<div style="display: flex;flex-direction: row;align-items: center;">
<span class="font-size-12" style="padding-right: 10px;flex-shrink: 0;">订单状态:</span>
<el-select size="mini" width="200" v-model="msg.Status" placeholder="请选择"
@change="getList">
<el-option
v-for="item in ApprovalStatusList"
:key="item.Id" :label="item.Name" :value="item.Id"></el-option>
</el-select>
</div>
</el-col>
</el-row>
</div>
......@@ -85,6 +91,13 @@
<p @click="openDetails(scope.row)" class="font-color-link cp">{{scope.row.FrID}}</p>
</template>
</el-table-column>
<el-table-column
label="单据类型"
show-overflow-tooltip :width="80">
<template slot-scope="scope">
<p>{{scope.row.Type==1?'收入':(scope.row.Type==2?'支出':'不限')}}</p>
</template>
</el-table-column>
<el-table-column
fixed
label="费用类型"
......@@ -95,28 +108,38 @@
</p>
</template>
</el-table-column>
<el-table-column
label="单据类型"
show-overflow-tooltip :width="80">
<template slot-scope="scope">
<p>{{scope.row.Type==1?'收入':(scope.row.Type==2?'支出':'不限')}}</p>
</template>
</el-table-column>
<el-table-column
label="金额"
show-overflow-tooltip>
show-overflow-tooltip
width="120">
<template slot-scope="scope">
<p>应付:{{scope.row.Money}}</p>
<p>实收:{{scope.row.PayMoney}}</p>
<p>{{scope.row.Type==1?'应收:':(scope.row.Type==2?'应付:':'')}}{{scope.row.Money}}</p>
<p>{{scope.row.Type==1?'实收:':(scope.row.Type==2?'实付:':'')}}{{scope.row.PayMoney}}</p>
</template>
</el-table-column>
<el-table-column
label="付款对象"
show-overflow-tooltip>
show-overflow-tooltip
width="120">
<template slot-scope="scope">
{{scope.row.Type==2?scope.row.ClientTypeName+':':'汇款人:'}}{{scope.row.RemitterName}}
</template>
</el-table-column>
<el-table-column
label="交易方式"
show-overflow-tooltip :width="200">
<template slot-scope="scope">
<div class="_TradeWayList"
v-for="(item,index) in scope.row.TradeWayList"
:key="index"
style="line-height: normal !important;padding: 5px 10px;background-color: #EEEEEE;border-radius: 4px;margin: 10px 0;width:230px">
<p><span style="font-weight: bold;color:#333333">{{item.Alias}}</span>
<span class="_bank_name" style="height:20px;;display: inline-block;background-color: #333333;color: white;padding: 2px 4px;border-radius: 4px;margin-left:10px;margin-letf:10px">{{scope.row.TradeWayList[0].TypeName}}</span><span style="height:20px;display: inline-block;background-color: #333333;color: white;padding: 2px 4px;border-radius: 4px;margin-left:10px;" :style="{'background-color':item.AccountType=='私'?'#2AAEF2':'#FF9C01'}">{{item.AccountType==""?'无':item.AccountType}}</span> </p>
<p style="color:#333333">{{item.BankNo}}</p>
</div>
</template>
</el-table-column>
<el-table-column
label="制单人员"
show-overflow-tooltip :width="80">
......
......@@ -60,6 +60,14 @@
</el-select>
</el-popover>
</el-col>
<el-col :span="4">
<div style="display: flex;flex-direction: row;align-items: center;">
<span class="font-size-12" style="padding-right: 10px;flex-shrink: 0;">状态:</span>
<el-select size="mini" width="100" v-model="msg.Q_TOrderState" @change="getList">
<el-option v-for="(item,index) in transactionStatusList" :key="index" :label="item.Name" :value="item.Id"> </el-option>
</el-select>
</div>
</el-col>
<el-col :span="4">
<el-button icon="iconfont iconshaixuan" class="crm-btn query-btn crm-btn-mini margin-right0"
@click="MsgBus.$emit('sceneBoxShow', 5)">高级筛选</el-button>
......@@ -115,12 +123,21 @@
</el-table-column>
<el-table-column prop="TraveNum" label="参团数" sortable v-if="queryType[4].show" show-overflow-tooltip>
</el-table-column>
<el-table-column prop="TOrderNum" label="机票数" sortable v-if="queryType[34].show" show-overflow-tooltip>
</el-table-column>
<el-table-column prop="TOrderMoney" label="机票金额" sortable v-if="queryType[35].show" show-overflow-tooltip>
</el-table-column>
<el-table-column prop="OrderCount" label="订单交易数" sortable v-if="queryType[24].show"
show-overflow-tooltip>
</el-table-column>
<el-table-column prop="OrderMoney" label="交易金额" sortable v-if="queryType[25].show"
show-overflow-tooltip>
</el-table-column>
<el-table-column label="状态" sortable v-if="queryType[36].show" show-overflow-tooltip>
<template slot-scope="scope">
{{scope.row.TOrderState==1?"未成交":(scope.row.TOrderState==2?"成交":scope.row.TOrderState==3?"多次成交":'')}}
</template>
</el-table-column>
<el-table-column prop="BirthdayAddress" label="出生地点" sortable v-if="queryType[28].show"
show-overflow-tooltip>
</el-table-column>
......@@ -267,6 +284,12 @@
},
data() {
return {
transactionStatusList:[
{Name:"全部",Id:"0"},
{Name:"未成交",Id:"1"},
{Name:"成交",Id:"2"},
{Name:"多次成交",Id:"3"},
],
ruleList: [],
queryType2: [{
label: "客户名称",
......@@ -464,7 +487,16 @@
}, {
label: "微信号",
show: true,
}, ],
}, {
label: "机票数",
show: true,
}, {
label: "机票金额",
show: true,
}, {
label: "状态",
show: true,
},],
CustomerId: 0,
CustomerIdStr: "",
transferVisible: false,
......@@ -490,6 +522,7 @@
WhereType: -1,
OrderBy: "",
ID: 36,
Q_TOrderState:"0"
},
total: 0,
WhereTypeList: [{
......
......@@ -190,7 +190,7 @@
<el-form :model="form" ref="form" class="MyEditForm" :rules="rules">
<p class="form-box-tit" v-if="name!='操作日志'"><span class="radius"></span>
{{name!='修改出票状态'?' 基本信息':' 上传'+text+'凭证'}}</p>
<el-row :gutter="30" v-if="name=='新建机票订单'">
<el-row :gutter="30" v-if="name=='新建机票订单'||name=='编辑机票订单'">
<el-col :span="8">
<div class="MyEditForm-item">
<el-form-item label="预计人数" prop="GuestCount">
......@@ -214,7 +214,7 @@
</el-col>
</el-row>
<el-row :gutter="30" v-if="name=='新建机票订单'||name=='编辑订单金额'">
<el-row :gutter="30" v-if="name=='新建机票订单'||name=='编辑订单金额'||name=='编辑机票订单'">
<el-col :span="8">
<div class="MyEditForm-item">
<el-form-item label="报价金额" prop="Money">
......@@ -223,10 +223,10 @@
</div>
</el-col>
</el-row>
<el-row v-if="name=='新建机票订单'||name=='编辑订单金额'">
<el-row v-if="name=='新建机票订单'||name=='编辑订单金额'||name=='编辑机票订单'">
<el-col :span="24">
<div class="MyEditForm-item label-pad-left">
<el-form-item v-if="name=='新建机票订单'" label="备注">
<el-form-item v-if="name=='新建机票订单'||name=='编辑机票订单'" label="备注">
<el-input type="textarea" placeholder="订单备注" v-model="form.Remark"></el-input>
</el-form-item>
<el-form-item v-if="name=='编辑订单金额'" label="备注" prop="Remark">
......@@ -432,6 +432,17 @@ export default {
},
mounted() {
this.form.GuestId = this.GuestId
if(this.name=="编辑机票订单"){
this.form = {
GuestId: this.GuestId,
OrderId: this.obj.OrderId,
GuestCount: this.obj.GuestCount,
StartCityName: this.obj.StartCityName,
EndCityName: this.obj.EndCityName,
Money: this.obj.Money,
Remark: this.obj.Remark,
}
}
if(this.obj.TicketStatus==1){
this.text = '出票'
}
......@@ -542,14 +553,28 @@ export default {
},
// 新增订单
addData() {
let data = {
OrderId: this.form.OrderId,
GuestId: this.form.GuestId,
GuestCount: this.form.GuestCount,
StartCityName: this.form.StartCityName,
EndCityName: this.form.EndCityName,
Money: this.form.Money,
Remark: this.form.Remark,
let data
if(this.name=='新建机票订单'){
data = {
OrderId: this.form.OrderId,
GuestId: this.form.GuestId,
GuestCount: this.form.GuestCount,
StartCityName: this.form.StartCityName,
EndCityName: this.form.EndCityName,
Money: this.form.Money,
Remark: this.form.Remark,
}
}
if(this.name=='编辑机票订单'){
data = {
OrderId: this.form.OrderId,
GuestId: this.form.GuestId,
GuestCount: this.form.GuestCount,
StartCityName: this.form.StartCityName,
EndCityName: this.form.EndCityName,
Money: this.form.Money,
Remark: this.form.Remark,
}
}
this.apipost("/api/Order/SetGuestOrderInfo", data, (res) => {
if (res.data.resultCode == 1) {
......@@ -565,7 +590,7 @@ export default {
},
submitForm(addMsg) {
//提交创建、修改表单
if(this.name=='新建机票订单'){
if(this.name=='新建机票订单'||this.name=='编辑机票订单'){
this.$refs[addMsg].validate((valid) => {
if (valid) {
this.addData();
......
......@@ -321,6 +321,12 @@
$this.obj = obj;
$this.dialogTicketOrderVisible = true;
});
this.MsgBus.$on("editOrderTicketOrderBoxOpen", function (GuestId, obj) {
$this.dialogTicketOrderVisibleName = "编辑机票订单";
$this.GuestId = GuestId;
$this.obj = obj;
$this.dialogTicketOrderVisible = true;
});
this.MsgBus.$on("reviseTicketOrderBoxOpen", function (GuestId, obj) {
$this.dialogTicketOrderVisibleName = "修改出票状态";
$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