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

新增抖音订单管理页面

parent f0391916
This diff is collapsed.
This diff is collapsed.
......@@ -1089,7 +1089,7 @@
newArr.push(file.file);
let path = "/Sale/Uploadvideo/";
this.UploadFileToAli2024(path, newArr, x => {
console.log("UploadFileToAli2024", x)
//console.log("UploadFileToAli2024", x)
});
},
//绑定手机
......
......@@ -1201,7 +1201,6 @@
getList() {
this.apipost("travelcontract_post_GetContractInfoService", this.msg, res => {
if (res.data.resultCode === 1) {
console.log("travelcontract_post_GetContractInfoService_details", res.data.data);
this.dataList = res.data.data;
} else {
this.Error(res.data.message);
......
......@@ -1711,7 +1711,6 @@
(res) => {
if (res.data.resultCode === 1) {
var tempObj = res.data.data;
console.log("travelcontract_post_GetContractInfoService", tempObj);
this.CtObj = tempObj;
this.guestList = tempObj.allGuestList;
this.CtObj.tcid = this.$route.query.TCID;
......
......@@ -99,7 +99,6 @@
this.headerList = [];
this.apipost('JapanCar_get_GetJapanOrderCarConfirmPageList', this.msg, res => {
this.loading = false;
console.log("JapanCar_get_GetJapanOrderCarConfirmPageList", JSON.parse(JSON.stringify(res.data)));
if (res.data.resultCode == 1) {
this.total = res.data.data.count;
var tempArray = res.data.data.pageData;
......@@ -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;
} else {
this.Error(res.data.message);
......
......@@ -97,31 +97,109 @@
<template>
<div>
<div class="LM_mainDiv">
<!--保存-->
<table border="0" cellspacing="0" cellpadding="0" class="LP_table" v-loading="this.loading">
<tr>
<th width="40%">项目名称</th>
<th width="150">{{$t('hotel.table_operat')}}&nbsp;&nbsp; <i
class="iconfont icon-bumenguanli-tianjia addLessPrice" @click="addLessPrice()"></i></th>
</tr>
<tr>
<td>
<div v-for="subItem in dataList" class="comLessDiv">
<el-input placeholder="名称" v-model="subItem.Name"> </el-input>
</div>
</td>
<td>
<div v-for="(subItem,subIndex) in dataList" class="comLessDiv">
<input type='button' class="normalBtn lessBtn" @click="SaveLessPrice(subItem)"
:value="$t('pub.saveBtn')" />
<input type='button' class="normalBtn lessBtn" @click="RemoveItem( subItem, subIndex)" value="删除" />
</div>
</td>
</tr>
<thead>
<tr>
<th width="30%">问题名称</th>
<th width="30%">问题类型</th>
<th width="40%">{{$t('hotel.table_operat')}}&nbsp;&nbsp; <i
class="iconfont icon-bumenguanli-tianjia addLessPrice" @click="AddQuestion(null)"></i></th>
</tr>
</thead>
<tbody v-for="(item,index) in dataList" :key="index+10000">
<tr>
<td>
{{item.Name}}
</td>
<td>
<template v-if="item.Code==1">
单选
</template>
<template v-if="item.Code==2">
多选
</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>
</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>
</template>
<script>
......@@ -130,23 +208,102 @@
return {
//列表
dataList: [],
//角色列表
RoleList: [],
loading: false,
LineList: [],
commonSelect: 0,
isShowEdit: false, //是否显示弹窗
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: {
//保存少价管理
SaveLessPrice(subItem) {
if (subItem) {
if (subItem.Name.length == 0) {
return this.Error('请填写标记信息');
//显示弹窗
AddQuestion(obj) {
this.opTitle = "新增问题";
this.isShowEdit = true;
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(
"dict_post_Set", subItem,
"dict_post_Set", this.postMsg,
res => {
if (res.data.resultCode == 1) {
this.Success(res.data.message);
......@@ -155,15 +312,15 @@
this.Error(res.data.message);
}
},
err => {}
);
},
//获取列表
getList() {
this.isShowEdit = false;
this.loading = true;
var that = this;
that.apipost(
"dict_post_GetList", {
"dict_post_GetDouYinConfigList", {
Key: 'DouYin_MainOrder'
},
res => {
......@@ -175,7 +332,6 @@
that.Error(res.data.message);
}
},
err => {}
);
},
//获取列表
......@@ -185,7 +341,7 @@
return;
}
var that = this;
this.Confirm("是否删除此标记信息?", function () {
this.Confirm("是否删除此问题?", function () {
if (subItem.ID > 0) {
that.apipost(
"dict_post_Remove", {
......@@ -204,16 +360,6 @@
}
});
},
//点击添加
addLessPrice() {
var obj = {
Name: '',
DictKey: 'DouYin_MainOrder',
ID: 0,
}
this.dataList.push(obj);
this.$forceUpdate()
}
},
mounted() {
this.getList();
......
......@@ -2229,11 +2229,19 @@ export default {
},
},
{
path: '/douyinOrder', //抖音订单
path: '/douyinOrder', //抖音订单管理
name: 'douyinOrder',
component: resolve => require(['@/components/SingleAirTicket/douyinOrder'], resolve),
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