Commit 092031c3 authored by 罗超's avatar 罗超

no message

parent 9879337c
...@@ -272,7 +272,7 @@ textarea { ...@@ -272,7 +272,7 @@ textarea {
resize: none !important; resize: none !important;
} }
.el-dialog__wrapper { .el-dialog__wrapper {
background-color: rgb(245, 246, 249); /* background-color: rgb(245, 246, 249); */
} }
.el-dialog { .el-dialog {
box-shadow: 2px 1px 3px 0px rgba(0, 0, 0, 0.3); box-shadow: 2px 1px 3px 0px rgba(0, 0, 0, 0.3);
......
...@@ -586,8 +586,6 @@ ...@@ -586,8 +586,6 @@
if (type === 3) { if (type === 3) {
this.multipleSelection.push(this.CustomerId) this.multipleSelection.push(this.CustomerId)
} }
this.transferVisible = true
return
if(this.ruleList.length==0){ if(this.ruleList.length==0){
this.transferVisible = true this.transferVisible = true
}else{ }else{
......
<style> <style scoped>
.add-Enclosure{
display: flex;
justify-content: space-between;
}
.add-Enclosure-left{
display: flex;
}
</style> </style>
<template> <template>
<div class="Business"> <div class="Business">
<div class="add-Enclosure"> <div class="add-Enclosure">
<el-row :gutter="12">
<el-col :span="8">
<el-input size="mini" placeholder="输入订单ID" v-model="msg.OrderId" label="订单ID" @blur="getList"></el-input>
</el-col>
<el-col :span="8">
<el-select size="mini" width="200" v-model="msg.TicketStatus" placeholder="请选择" @change="getList">
<el-option v-for="(item,index) in ticketingStatusList"
:key="index" :label="item.Name" :value="item.id"></el-option>
</el-select>
</el-col>
</el-row>
<el-button plain icon="el-icon-plus" type="primary" size="mini" class="margin-right0" @click="addBusiness">创建订单</el-button> <el-button plain icon="el-icon-plus" type="primary" size="mini" class="margin-right0" @click="addBusiness">创建订单</el-button>
</div> </div>
<el-table <div class="page-content">
v-loading="loading" <el-table
stripe v-loading="loading"
ref="multipleTable" stripe
:data="dataList" ref="multipleTable"
tooltip-effect="dark" :data="dataList"
style="width: 100%" tooltip-effect="dark"
row-class-name="font-size-12"> style="width: 100%"
<el-table-column row-class-name="font-size-12">
prop="BusinessName" <el-table-column
label="订单号" prop="CreateByName"
show-overflow-tooltip> label="下单人"
<template slot-scope="scope"> show-overflow-tooltip>
<p @click="openDetails(scope)" class="font-color-link cp">{{scope.row.BusinessName}}</p> </el-table-column>
</template>
</el-table-column> <el-table-column
<el-table-column label="订单号"
prop="BudgetPrice" show-overflow-tooltip>
label="订单金额" <template slot-scope="scope">
show-overflow-tooltip> <p @click="openDetails(scope)" class="font-color-link cp">{{scope.row.OrderId}}</p>
</el-table-column> </template>
<el-table-column </el-table-column>
prop="CustomerName" <el-table-column
label="实收" label="订单状态"
show-overflow-tooltip> show-overflow-tooltip>
</el-table-column> <template slot-scope="scope">
<el-table-column {{scope.row.OrderStatus==1?"正常":"取消"}}
prop="BusinessStatusStr" </template>
label="退款" </el-table-column>
show-overflow-tooltip> <el-table-column
</el-table-column> label="地址"
<el-table-column show-overflow-tooltip>
label="手续费" <template slot-scope="scope">
show-overflow-tooltip> {{scope.row.StartCityName}}=>{{scope.row.EndCityName}}
</el-table-column> </template>
<el-table-column </el-table-column>
label="待收" <el-table-column
show-overflow-tooltip> prop="GuestCount"
</el-table-column> label="客人数"
<el-table-column show-overflow-tooltip>
label="成本" </el-table-column>
show-overflow-tooltip> <el-table-column
</el-table-column> prop="Money"
<el-table-column label="订单金额"
label="出票状态" show-overflow-tooltip>
show-overflow-tooltip> </el-table-column>
</el-table-column> <el-table-column
<el-table-column prop="IncomeMoney"
label="客户需求" label="实收"
show-overflow-tooltip> show-overflow-tooltip>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="操作" prop="PayMoney"
show-overflow-tooltip> label="付款"
</el-table-column> show-overflow-tooltip>
</el-table> </el-table-column>
<el-table-column
prop="BackMoney"
label="退款"
show-overflow-tooltip>
</el-table-column>
<el-table-column
prop="TaxMoney"
label="手续费"
show-overflow-tooltip>
</el-table-column>
<el-table-column
prop=""
label="待收"
show-overflow-tooltip>
</el-table-column>
<el-table-column
prop=""
label="成本"
show-overflow-tooltip>
</el-table-column>
<el-table-column
prop="PayFinance"
label="付款单据"
show-overflow-tooltip>
</el-table-column>
<el-table-column
prop="IncomeFinance"
label="收入单据"
show-overflow-tooltip>
</el-table-column>
<el-table-column
prop="BackFinance"
label="退款单据"
show-overflow-tooltip>
</el-table-column>
<el-table-column
prop="TicketStatusName"
label="出票状态"
show-overflow-tooltip>
</el-table-column>
<el-table-column
prop="Remark"
label="客户需求"
show-overflow-tooltip>
</el-table-column>
<el-table-column
prop="EnterName"
label="业务员"
show-overflow-tooltip>
</el-table-column>
<el-table-column
prop="CreateTime"
label="下单时间"
show-overflow-tooltip>
</el-table-column>
<el-table-column
label="操作"
show-overflow-tooltip>
</el-table-column>
</el-table>
</div>
<div v-if="dataList.length">
<el-pagination class="Mypagination" background @current-change="handleCurrentChange"
:page-sizes="[30, 60, 90, 100]" :page-size="msg.pageSize" layout="sizes, prev, pager, next"
@size-change="handleSizeChange" :total="total">
</el-pagination>
</div>
</div> </div>
</template> </template>
<script> <script>
...@@ -68,27 +153,74 @@ export default { ...@@ -68,27 +153,74 @@ export default {
props: ["ID", "BusinessType"], props: ["ID", "BusinessType"],
data() { data() {
return { return {
ticketingStatusList:[],
dataList: [], dataList: [],
loading: false, loading: false,
msg: {
pageIndex: 1,
pageSize: 10,
OrderId:"",
GuestId:"",
TicketStatus: 0,
OrderStatus:"",
StartCityName: "",
EndCityName: "",
EnterID: ""
},
total:0
}; };
}, },
watch: {}, watch: {
ID: {
handler(val, oldVal) {
this.getList();
},
deep: true,
},
},
mounted() { mounted() {
this.GetBusinessList();
this.getList();
this.GetTicketStatusEnumList()
}, },
methods: { methods: {
openDetails(scope) { openDetails(scope) {
console.log(scope.row.ID); console.log(scope.row.ID);
this.MsgBus.$emit("busnessDrawerShow", scope.row.ID, 1); this.MsgBus.$emit("busnessDrawerShow", scope.row.ID, 1);
}, },
GetBusinessList() { // 获取出票状态枚举
GetTicketStatusEnumList(){
let $this = this
this.msg.GuestId = $this.ID
console.log(this.msg.GuestId, 'this.msg.GuestId')
this.apipost(
"/api/Order/GetTicketStatusEnumList",
{},
(res) => {
if (res.data.resultCode == 1) {
this.ticketingStatusList = res.data.data;
let data = {
Name:'全部',
id:0
}
this.ticketingStatusList.unshift(data)
} else {
this.$message.error(res.data.message);
}
}
);
},
getList() {
this.loading = true;
this.apipost( this.apipost(
"/api/Customer/GetBusinessList", "/api/Order/GetGuestOrderPageList",
{ CustomerId: this.ID, CustomerType: 1 }, this.msg,
(res) => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
console.log(res.data.data); console.log(res.data.data);
this.dataList = res.data.data; this.dataList = res.data.data;
this.total = res.data.data.count;
this.loading = false
} else { } else {
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
...@@ -101,6 +233,10 @@ export default { ...@@ -101,6 +233,10 @@ export default {
}, },
guanlian() {}, guanlian() {},
jiechuguanlian() {}, jiechuguanlian() {},
handleSizeChange(val) {
this.msg.pageSize = val;
this.getList();
},
}, },
}; };
</script> </script>
...@@ -121,7 +121,7 @@ ...@@ -121,7 +121,7 @@
<Business v-if="activeName === '5'" :ID="CustomerId" /> <Business v-if="activeName === '5'" :ID="CustomerId" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="订单" name="6"> <el-tab-pane label="订单" name="6">
<Agreement /> <Agreement :ID="CustomerId" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="回款" name="7" v-if="false"> <el-tab-pane label="回款" name="7" v-if="false">
<MoneyBack /> <MoneyBack />
...@@ -238,7 +238,8 @@ ...@@ -238,7 +238,8 @@
this.$emit("transferS", 3); this.$emit("transferS", 3);
} else if (command === "g") {} } else if (command === "g") {}
}, },
handleClick(tab, event) {}, handleClick(tab, event) {
},
editCust() { editCust() {
this.$emit("editCustS", 1); this.$emit("editCustS", 1);
}, },
......
...@@ -271,6 +271,7 @@ ...@@ -271,6 +271,7 @@
}, },
data() { data() {
return { return {
ruleList:[],
queryType2: [{ queryType2: [{
label: "客户名称", label: "客户名称",
show: true, show: true,
...@@ -634,7 +635,36 @@ ...@@ -634,7 +635,36 @@
if (type === 3) { if (type === 3) {
this.multipleSelection.push(this.CustomerId); this.multipleSelection.push(this.CustomerId);
} }
this.transferVisible = true; if(this.ruleList.length==0){
this.transferVisible = true
}else{
let tips = '系统已开启自动分配,无法指定推送,是否继续推送?'
this.$confirm(tips, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
let ids
if(this.CustomerId){
ids = this.CustomerId
}else{
ids = this.multipleSelection.join(',')
}
this.apipost('/api/Customer/AutoTransferCustomer', {
IDs: ids
}, res=>{
if (res.data.resultCode == 1) {
this.$message.success(res.data.message);
this.getList()
}
})
}).catch(() => {
this.$message({
type: 'info',
message: '已取消'
});
});
}
} else { } else {
if (this.transferMsg.EmpId === "") { if (this.transferMsg.EmpId === "") {
return this.$message.error("请选择变更负责人!"); return this.$message.error("请选择变更负责人!");
...@@ -681,6 +711,15 @@ ...@@ -681,6 +711,15 @@
this.CustomerId = scope.row.ID; this.CustomerId = scope.row.ID;
this.CustomerName = scope.row.GusetName; this.CustomerName = scope.row.GusetName;
}, },
// 获取是否开启规则
GetCustomerAllotRule(){
this.apipost('/api/Customer/GetCustomerAllotRule', {}, res=>{
if (res.data.resultCode == 1) {
this.ruleList = res.data.data.EmpList
}
})
},
handleSizeChange(val) { handleSizeChange(val) {
this.msg.pageSize = val; this.msg.pageSize = val;
this.getList(); this.getList();
...@@ -710,6 +749,7 @@ ...@@ -710,6 +749,7 @@
}); });
this.total = res.data.data.count; this.total = res.data.data.count;
this.loading = false; this.loading = false;
this.GetCustomerAllotRule()
} }
} }
); );
......
...@@ -91,7 +91,9 @@ ...@@ -91,7 +91,9 @@
</div> </div>
<!-- 添加机票订单 --> <!-- 添加机票订单 -->
<div v-if="dialogTicketOrderVisible"> <div v-if="dialogTicketOrderVisible">
<ticketOrder :name="dialogTicketOrderVisibleName" :ID="TicketOrderID" :GuestId="GuestId" type="1"/> <ticketOrder :name="dialogTicketOrderVisibleName"
:ID="TicketOrderID" :GuestId="GuestId"
:msg="msg" type="1"/>
</div> </div>
<!-- 客户信息抽屉 --> <!-- 客户信息抽屉 -->
<el-drawer <el-drawer
...@@ -285,6 +287,14 @@ export default { ...@@ -285,6 +287,14 @@ export default {
GuestId: 0, GuestId: 0,
}; };
}, },
watch:{
// ID: {
// handler(val, oldVal){
// this.TicketOrderID = val
// },
// deep:true
// }
},
mounted() { mounted() {
this.userInfo = this.getLocalStorage(); this.userInfo = this.getLocalStorage();
this.Employee(); this.Employee();
...@@ -308,7 +318,7 @@ export default { ...@@ -308,7 +318,7 @@ export default {
this.MsgBus.$on("closeBusinessDialogBox", function() { this.MsgBus.$on("closeBusinessDialogBox", function() {
$this.dialogBusinessVisible = false; $this.dialogBusinessVisible = false;
}); });
this.MsgBus.$on("addTicketOrderBoxOpen", function(GuestId) { this.MsgBus.$on("addTicketOrderBoxOpen", function(GuestId,a,b) {
$this.GuestId = GuestId; $this.GuestId = GuestId;
$this.dialogTicketOrderVisible = true; $this.dialogTicketOrderVisible = true;
this.dialogTicketOrderVisibleName = "新建机票订单"; this.dialogTicketOrderVisibleName = "新建机票订单";
......
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