Commit 408fc11d authored by 黄奎's avatar 黄奎

新增抖音订单管理页面

parent f0391916
This diff is collapsed.
This diff is collapsed.
...@@ -1089,7 +1089,7 @@ ...@@ -1089,7 +1089,7 @@
newArr.push(file.file); newArr.push(file.file);
let path = "/Sale/Uploadvideo/"; let path = "/Sale/Uploadvideo/";
this.UploadFileToAli2024(path, newArr, x => { this.UploadFileToAli2024(path, newArr, x => {
console.log("UploadFileToAli2024", x) //console.log("UploadFileToAli2024", x)
}); });
}, },
//绑定手机 //绑定手机
......
...@@ -1201,7 +1201,6 @@ ...@@ -1201,7 +1201,6 @@
getList() { getList() {
this.apipost("travelcontract_post_GetContractInfoService", this.msg, res => { this.apipost("travelcontract_post_GetContractInfoService", this.msg, res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
console.log("travelcontract_post_GetContractInfoService_details", res.data.data);
this.dataList = res.data.data; this.dataList = res.data.data;
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
......
...@@ -1711,7 +1711,6 @@ ...@@ -1711,7 +1711,6 @@
(res) => { (res) => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
var tempObj = res.data.data; var tempObj = res.data.data;
console.log("travelcontract_post_GetContractInfoService", tempObj);
this.CtObj = tempObj; this.CtObj = tempObj;
this.guestList = tempObj.allGuestList; this.guestList = tempObj.allGuestList;
this.CtObj.tcid = this.$route.query.TCID; this.CtObj.tcid = this.$route.query.TCID;
......
...@@ -99,7 +99,6 @@ ...@@ -99,7 +99,6 @@
this.headerList = []; this.headerList = [];
this.apipost('JapanCar_get_GetJapanOrderCarConfirmPageList', this.msg, res => { this.apipost('JapanCar_get_GetJapanOrderCarConfirmPageList', this.msg, res => {
this.loading = false; this.loading = false;
console.log("JapanCar_get_GetJapanOrderCarConfirmPageList", JSON.parse(JSON.stringify(res.data)));
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.total = res.data.data.count; this.total = res.data.data.count;
var tempArray = res.data.data.pageData; var tempArray = res.data.data.pageData;
...@@ -113,19 +112,7 @@ ...@@ -113,19 +112,7 @@
}) })
}); });
} }
// tempArray.forEach(item => {
// item.OrderDayCalendar.forEach(subItem => {
// item[subItem.UseDateStr] = {
// BusContent: subItem.BusContent,
// EndCity: subItem.EndCity,
// StartCity: subItem.StartCity,
// UseDateStr: subItem.UseDateStr,
// UseState: subItem.UseState,
// };
// });
// });
} }
console.log("tempArray", tempArray)
this.DataList = tempArray; this.DataList = tempArray;
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
......
...@@ -97,31 +97,109 @@ ...@@ -97,31 +97,109 @@
<template> <template>
<div> <div>
<div class="LM_mainDiv"> <div class="LM_mainDiv">
<!--保存--> <!--保存-->
<table border="0" cellspacing="0" cellpadding="0" class="LP_table" v-loading="this.loading"> <table border="0" cellspacing="0" cellpadding="0" class="LP_table" v-loading="this.loading">
<tr> <thead>
<th width="40%">项目名称</th> <tr>
<th width="150">{{$t('hotel.table_operat')}}&nbsp;&nbsp; <i <th width="30%">问题名称</th>
class="iconfont icon-bumenguanli-tianjia addLessPrice" @click="addLessPrice()"></i></th> <th width="30%">问题类型</th>
</tr> <th width="40%">{{$t('hotel.table_operat')}}&nbsp;&nbsp; <i
<tr> class="iconfont icon-bumenguanli-tianjia addLessPrice" @click="AddQuestion(null)"></i></th>
<td> </tr>
<div v-for="subItem in dataList" class="comLessDiv"> </thead>
<el-input placeholder="名称" v-model="subItem.Name"> </el-input> <tbody v-for="(item,index) in dataList" :key="index+10000">
</div> <tr>
</td> <td>
<td> {{item.Name}}
<div v-for="(subItem,subIndex) in dataList" class="comLessDiv"> </td>
<input type='button' class="normalBtn lessBtn" @click="SaveLessPrice(subItem)" <td>
:value="$t('pub.saveBtn')" /> <template v-if="item.Code==1">
<input type='button' class="normalBtn lessBtn" @click="RemoveItem( subItem, subIndex)" value="删除" /> 单选
</div> </template>
</td> <template v-if="item.Code==2">
</tr> 多选
</template>
<template v-if="item.Code==3">
下拉选择
</template>
<template v-if="item.Code==4">
文本
</template>
<template v-if="item.Code==5">
图文
</template>
</td>
<td>
<input type='button' class="normalBtn lessBtn" @click="AddQuestion(item)" value="编辑" />
<input type='button' class="normalBtn lessBtn" @click="RemoveItem( item, index)" value="删除" />
</td>
</tr>
</tbody>
</table> </table>
</div> </div>
<el-dialog :title="opTitle" custom-class="w500" :visible.sync="isShowEdit" center>
<el-form :model="postMsg" label-width="100px">
<el-form-item label="标签名称">
<el-input v-model="postMsg.Name" style="width:220px;"></el-input>
</el-form-item>
<el-form-item label="标签类型">
<el-select v-model="postMsg.Code" @change="changeType()">
<el-option :key="0" :value="0" label="请选择"></el-option>
<el-option v-for="item in qTypeList" :key="item.Id" :label="item.Name" :value="item.Id">
</el-option>
</el-select>
</el-form-item>
<template v-if="postMsg.Code==1||postMsg.Code==2||postMsg.Code==3">
<table>
<thead>
<tr>
<td>
<p class="edit_form_box_tit">问题内容</p>
</td>
<td>
<div class="TFAddFlight" @click="addOption()" style="cursor:pointer; float:right;">
<i class="iconfont icon-img_haha"></i>添加
</div>
</td>
</tr>
</thead>
<tbody v-for="(item,index) in postMsg.OptionList" :key="index">
<tr>
<td>
<el-input v-model="item.Name" placeholder="名称"></el-input>
</td>
<td>
<el-input v-model="item.Sort" placeholder="排序"></el-input>
</td>
<td>
<a style="cursor:pointer;color:blue" @click="deleteOption(index)">删除</a>
</td>
</tr>
</tbody>
</table>
</template>
<template v-if="postMsg.Code==4">
<el-form-item label="文本内容">
<el-input type="text" disabled style="width:220px"></el-input>
</el-form-item>
</template>
<template v-if="postMsg.Code==5">
<el-form-item label="文本内容">
<el-input type="text" disabled style="width:220px"></el-input>
</el-form-item>
<el-form-item label="附件">
<el-upload action="" list-type="picture-card">
<i class="el-icon-plus"></i>
</el-upload>
</el-form-item>
</template>
</el-form>
<div slot="footer" class="dialog-footer">
<button class="normalBtn" type="primary" @click="submitForm()">{{$t('pub.saveBtn')}}</button> &nbsp;
<button class="hollowFixedBtn" @click="isShowEdit = false">{{$t('pub.cancelBtn')}}</button>
</div>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -130,23 +208,102 @@ ...@@ -130,23 +208,102 @@
return { return {
//列表 //列表
dataList: [], dataList: [],
//角色列表
RoleList: [],
loading: false, loading: false,
LineList: [], isShowEdit: false, //是否显示弹窗
commonSelect: 0, postMsg: {
ID: 0,
DictKey: "DouYin_MainOrder",
Name: "",
Code: 0, //1-单选,2-多选,3-下拉,4-文本,5-图文
Content: "",
OptionList: [],
},
qTypeList: [{
Id: 1,
Name: "单选"
},
{
Id: 2,
Name: "多选"
},
{
Id: 3,
Name: "下拉选择"
},
{
Id: 4,
Name: "文本"
},
{
Id: 5,
Name: "图文"
},
],
optionMsg: {
Name: "",
Sort: 0,
},
opTitle: "新增问题"
}; };
}, },
methods: { methods: {
//保存少价管理 //显示弹窗
SaveLessPrice(subItem) { AddQuestion(obj) {
if (subItem) { this.opTitle = "新增问题";
if (subItem.Name.length == 0) { this.isShowEdit = true;
return this.Error('请填写标记信息'); if (obj && obj.ID > 0) {
this.opTitle = "编辑问题";
this.postMsg.ID = obj.ID;
this.postMsg.Name = obj.Name;
if (obj.Code) {
this.postMsg.Code = Number(obj.Code);
}
if (obj.Content) {
this.postMsg.Content = obj.Content;
}
if (this.postMsg.Code == 1 || this.postMsg.Code == 2 || this.postMsg.Code == 3) {
if (obj.OptionList && obj.OptionList.length > 0) {
this.postMsg.OptionList = obj.OptionList;
}
} }
} else {
this.postMsg.ID = 0;
this.postMsg.Name = "";
this.postMsg.Code = 0;
this.postMsg.Content = "";
this.postMsg.OptionList = [];
}
},
//类型转换
changeType() {
if (this.postMsg.Code == 1 || this.postMsg.Code == 2 || this.postMsg.Code == 3) {
var mObj = JSON.parse(JSON.stringify(this.optionMsg));
this.postMsg.OptionList.push(mObj)
}
},
//添加选项
addOption() {
var mObj = JSON.parse(JSON.stringify(this.optionMsg));
this.postMsg.OptionList.push(mObj);
},
//删除选项
deleteOption(index) {
var that = this;
this.Confirm("是否删除此选项?", function () {
that.postMsg.OptionList.splice(index, 1);
})
},
//提交表单
submitForm() {
if (this.postMsg.Name == '') {
return this.Error('请填写问题标题');
}
if ((this.postMsg.Code == 1 || this.postMsg.Code == 2 || this.postMsg.Code == 3) && this.postMsg.OptionList &&
this.postMsg.OptionList.length > 0) {
this.postMsg.Content = JSON.stringify(this.postMsg.OptionList);
} }
this.apipost( this.apipost(
"dict_post_Set", subItem, "dict_post_Set", this.postMsg,
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message); this.Success(res.data.message);
...@@ -155,15 +312,15 @@ ...@@ -155,15 +312,15 @@
this.Error(res.data.message); this.Error(res.data.message);
} }
}, },
err => {}
); );
}, },
//获取列表 //获取列表
getList() { getList() {
this.isShowEdit = false;
this.loading = true; this.loading = true;
var that = this; var that = this;
that.apipost( that.apipost(
"dict_post_GetList", { "dict_post_GetDouYinConfigList", {
Key: 'DouYin_MainOrder' Key: 'DouYin_MainOrder'
}, },
res => { res => {
...@@ -175,7 +332,6 @@ ...@@ -175,7 +332,6 @@
that.Error(res.data.message); that.Error(res.data.message);
} }
}, },
err => {}
); );
}, },
//获取列表 //获取列表
...@@ -185,7 +341,7 @@ ...@@ -185,7 +341,7 @@
return; return;
} }
var that = this; var that = this;
this.Confirm("是否删除此标记信息?", function () { this.Confirm("是否删除此问题?", function () {
if (subItem.ID > 0) { if (subItem.ID > 0) {
that.apipost( that.apipost(
"dict_post_Remove", { "dict_post_Remove", {
...@@ -204,16 +360,6 @@ ...@@ -204,16 +360,6 @@
} }
}); });
}, },
//点击添加
addLessPrice() {
var obj = {
Name: '',
DictKey: 'DouYin_MainOrder',
ID: 0,
}
this.dataList.push(obj);
this.$forceUpdate()
}
}, },
mounted() { mounted() {
this.getList(); this.getList();
......
...@@ -2229,11 +2229,19 @@ export default { ...@@ -2229,11 +2229,19 @@ export default {
}, },
}, },
{ {
path: '/douyinOrder', //抖音订单 path: '/douyinOrder', //抖音订单管理
name: 'douyinOrder', name: 'douyinOrder',
component: resolve => require(['@/components/SingleAirTicket/douyinOrder'], resolve), component: resolve => require(['@/components/SingleAirTicket/douyinOrder'], resolve),
meta: { meta: {
title: '抖音订单' title: '抖音订单管理'
},
},
{
path: '/douyinSellOrder', //抖音销售订单
name: 'douyinSellOrder',
component: resolve => require(['@/components/SingleAirTicket/douyinSellOrder'], resolve),
meta: {
title: '抖音销售订单'
}, },
}, },
{ {
......
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