Merge branch 'master' into ma
# Conflicts: # seller/src/views/goods/goods-seller/goodsOperation.vuemaster
commit
31349634f6
|
@ -72,19 +72,25 @@ export default {
|
||||||
xPos: this.distance
|
xPos: this.distance
|
||||||
};
|
};
|
||||||
postVerifyImg(params).then(res => {
|
postVerifyImg(params).then(res => {
|
||||||
if (res.result) {
|
if (res.success) {
|
||||||
this.bgColor = 'green';
|
if (res.result) {
|
||||||
this.verifyText = '解锁成功';
|
this.bgColor = 'green';
|
||||||
this.$emit('change', { status: true, distance: this.distance });
|
this.verifyText = '解锁成功';
|
||||||
|
this.$emit('change', { status: true, distance: this.distance });
|
||||||
|
} else {
|
||||||
|
this.bgColor = 'red';
|
||||||
|
this.verifyText = '解锁失败';
|
||||||
|
let that = this;
|
||||||
|
setTimeout(() => {
|
||||||
|
that.refresh();
|
||||||
|
}, 1000);
|
||||||
|
this.$emit('change', { status: false, distance: this.distance });
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.bgColor = 'red';
|
this.refresh()
|
||||||
this.verifyText = '解锁失败';
|
|
||||||
let that = this;
|
|
||||||
setTimeout(() => {
|
|
||||||
that.refresh();
|
|
||||||
}, 1000);
|
|
||||||
this.$emit('change', { status: false, distance: this.distance });
|
|
||||||
}
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
this.refresh()
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
refresh () { // 刷新滑块
|
refresh () { // 刷新滑块
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
"vue-router": "^3.1.3",
|
"vue-router": "^3.1.3",
|
||||||
"vuedraggable": "^2.23.2",
|
"vuedraggable": "^2.23.2",
|
||||||
"vuex": "^3.4.0",
|
"vuex": "^3.4.0",
|
||||||
"wangeditor": "^4.5.3",
|
"wangeditor": "^4.7.5",
|
||||||
"xlsx": "^0.16.2",
|
"xlsx": "^0.16.2",
|
||||||
"xss": "^1.0.7"
|
"xss": "^1.0.7"
|
||||||
},
|
},
|
||||||
|
|
|
@ -80,11 +80,11 @@ export const updateArticleCategory = (params, id) => {
|
||||||
}
|
}
|
||||||
//文章添加
|
//文章添加
|
||||||
export const saveArticle = (params) => {
|
export const saveArticle = (params) => {
|
||||||
return postRequest('/article', params)
|
return postRequest('/article', params, {"Content-Type": "application/json"})
|
||||||
}
|
}
|
||||||
//文章修改
|
//文章修改
|
||||||
export const updateArticle = (params) => {
|
export const updateArticle = (params) => {
|
||||||
return putRequest(`/article/update/${params.id}`, params)
|
return putRequest(`/article/update/${params.id}`, params, {"Content-Type": "application/json"})
|
||||||
}
|
}
|
||||||
//文章是否展示修改
|
//文章是否展示修改
|
||||||
export const updateArticleStatus = (id,params) => {
|
export const updateArticleStatus = (id,params) => {
|
||||||
|
|
|
@ -17,14 +17,14 @@ export default {
|
||||||
* @description api请求基础路径
|
* @description api请求基础路径
|
||||||
*/
|
*/
|
||||||
api_dev: {
|
api_dev: {
|
||||||
common: "https://common-api.pickmall.cn",
|
// common: "https://common-api.pickmall.cn",
|
||||||
buyer: "https://buyer-api.pickmall.cn",
|
// buyer: "https://buyer-api.pickmall.cn",
|
||||||
seller: "https://store-api.pickmall.cn",
|
// seller: "https://store-api.pickmall.cn",
|
||||||
manager: "https://admin-api.pickmall.cn"
|
// manager: "https://admin-api.pickmall.cn"
|
||||||
// common: 'http://192.168.0.109:8890',
|
common: 'http://192.168.0.109:8890',
|
||||||
// buyer: 'http://192.168.0.109:8888',
|
buyer: 'http://192.168.0.109:8888',
|
||||||
// seller: 'http://192.168.0.109:8889',
|
seller: 'http://192.168.0.109:8889',
|
||||||
// manager: 'http://192.168.0.109:8887'
|
manager: 'http://192.168.0.109:8887'
|
||||||
},
|
},
|
||||||
api_prod: {
|
api_prod: {
|
||||||
common: "https://common-api.pickmall.cn",
|
common: "https://common-api.pickmall.cn",
|
||||||
|
|
|
@ -37,8 +37,8 @@
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem label="是否通过" prop="result" v-if="handleStatus =='edit'">
|
<FormItem label="是否通过" prop="result" v-if="handleStatus =='edit'">
|
||||||
<RadioGroup v-model="result" type="button" button-style="solid">
|
<RadioGroup v-model="result" type="button" button-style="solid">
|
||||||
<Radio :key=0 :label=0>通过</Radio>
|
<Radio label="PASS">通过</Radio>
|
||||||
<Radio :key=-1 :label=-1>拒绝</Radio>
|
<Radio label="REFUSE">拒绝</Radio>
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
</Form>
|
</Form>
|
||||||
|
@ -67,7 +67,7 @@ export default {
|
||||||
loading: true, // 表单加载状态
|
loading: true, // 表单加载状态
|
||||||
modalVisible: false, // 添加或编辑显示
|
modalVisible: false, // 添加或编辑显示
|
||||||
modalTitle: "", // 添加或编辑标题
|
modalTitle: "", // 添加或编辑标题
|
||||||
result: -1, // 是否通过
|
result: 'REFUSE', // 是否通过
|
||||||
searchForm: { // 搜索框初始化对象
|
searchForm: { // 搜索框初始化对象
|
||||||
pageNumber: 1, // 当前页数
|
pageNumber: 1, // 当前页数
|
||||||
pageSize: 10, // 页面大小
|
pageSize: 10, // 页面大小
|
||||||
|
@ -80,9 +80,6 @@ export default {
|
||||||
memberName: "",
|
memberName: "",
|
||||||
price: "",
|
price: "",
|
||||||
},
|
},
|
||||||
auditForm: { // 编辑表单
|
|
||||||
result: -1
|
|
||||||
},
|
|
||||||
submitLoading: false, // 添加或编辑提交状态
|
submitLoading: false, // 添加或编辑提交状态
|
||||||
selectList: [], // 多选数据
|
selectList: [], // 多选数据
|
||||||
selectCount: 0, // 多选计数
|
selectCount: 0, // 多选计数
|
||||||
|
@ -101,11 +98,9 @@ export default {
|
||||||
title: "申请金额",
|
title: "申请金额",
|
||||||
key: "price",
|
key: "price",
|
||||||
minWidth: 90,
|
minWidth: 90,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
if (params.row.price) {
|
return h("div", this.$options.filters.unitPrice(params.row.price,'¥'));
|
||||||
return h("div", this.$options.filters.unitPrice(params.row.price,'¥'));
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "申请时间",
|
title: "申请时间",
|
||||||
|
@ -193,23 +188,27 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 初始化数据
|
||||||
init() {
|
init() {
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
},
|
},
|
||||||
|
// 改变页码
|
||||||
changePage(v) {
|
changePage(v) {
|
||||||
this.searchForm.pageNumber = v;
|
this.searchForm.pageNumber = v;
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
this.clearSelectAll();
|
|
||||||
},
|
},
|
||||||
|
// 改变页数
|
||||||
changePageSize(v) {
|
changePageSize(v) {
|
||||||
this.searchForm.pageSize = v;
|
this.searchForm.pageSize = v;
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
},
|
},
|
||||||
|
// 搜索表格
|
||||||
handleSearch() {
|
handleSearch() {
|
||||||
this.searchForm.pageNumber = 1;
|
this.searchForm.pageNumber = 1;
|
||||||
this.searchForm.pageSize = 10;
|
this.searchForm.pageSize = 10;
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
},
|
},
|
||||||
|
// 排序
|
||||||
changeSort(e) {
|
changeSort(e) {
|
||||||
this.searchForm.sort = e.key;
|
this.searchForm.sort = e.key;
|
||||||
this.searchForm.order = e.order;
|
this.searchForm.order = e.order;
|
||||||
|
@ -218,14 +217,7 @@ export default {
|
||||||
}
|
}
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
},
|
},
|
||||||
clearSelectAll() {
|
// 获取列表数据
|
||||||
this.$refs.table.selectAll(false);
|
|
||||||
},
|
|
||||||
changeSelect(e) {
|
|
||||||
this.selectList = e;
|
|
||||||
this.selectCount = e.length;
|
|
||||||
},
|
|
||||||
|
|
||||||
getDataList() {
|
getDataList() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
// 带多条件搜索参数获取表单数据 请自行修改接口
|
// 带多条件搜索参数获取表单数据 请自行修改接口
|
||||||
|
@ -241,7 +233,7 @@ export default {
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
let result = "拒绝"
|
let result = "拒绝"
|
||||||
if(this.result == 0){
|
if(this.result == 'PASS'){
|
||||||
result = "通过"
|
result = "通过"
|
||||||
}
|
}
|
||||||
this.$refs.form.validate(valid => {
|
this.$refs.form.validate(valid => {
|
||||||
|
@ -251,13 +243,14 @@ export default {
|
||||||
content: "您确认要审核"+result+"么?",
|
content: "您确认要审核"+result+"么?",
|
||||||
loading: true,
|
loading: true,
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
this.auditForm.result = this.result;
|
auditDistributionCash(this.form.id,{result:this.result}).then(res => {
|
||||||
auditDistributionCash(this.form.id,this.auditForm).then(res => {
|
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$Modal.remove();
|
this.$Modal.remove();
|
||||||
this.$Message.success("审核成功");
|
this.$Message.success("审核成功");
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
this.modalVisible = false;
|
this.modalVisible = false;
|
||||||
|
} else {
|
||||||
|
this.modalVisible = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -275,9 +268,7 @@ export default {
|
||||||
v[attr] = "";
|
v[attr] = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let str = JSON.stringify(v);
|
this.form = JSON.parse(JSON.stringify(v));
|
||||||
let data = JSON.parse(str);
|
|
||||||
this.form = data;
|
|
||||||
this.modalVisible = true;
|
this.modalVisible = true;
|
||||||
},
|
},
|
||||||
view(v){
|
view(v){
|
||||||
|
|
|
@ -122,6 +122,7 @@ export default {
|
||||||
// 如果服务器端返回的不是 {errno:0, data: [...]} 这种格式,可使用该配置
|
// 如果服务器端返回的不是 {errno:0, data: [...]} 这种格式,可使用该配置
|
||||||
customInsert: function (insertImg, result, editor) {
|
customInsert: function (insertImg, result, editor) {
|
||||||
if (result.success == true) {
|
if (result.success == true) {
|
||||||
|
console.log(insertImg,result,editor);
|
||||||
let url = result.result;
|
let url = result.result;
|
||||||
insertImg(url);
|
insertImg(url);
|
||||||
that.$Message.success("上传图片成功");
|
that.$Message.success("上传图片成功");
|
||||||
|
|
|
@ -72,19 +72,26 @@ export default {
|
||||||
xPos: this.distance
|
xPos: this.distance
|
||||||
};
|
};
|
||||||
postVerifyImg(params).then(res => {
|
postVerifyImg(params).then(res => {
|
||||||
if (res.result) {
|
if (res.success) {
|
||||||
this.bgColor = 'green';
|
if (res.result) {
|
||||||
this.verifyText = '解锁成功';
|
this.bgColor = 'green';
|
||||||
this.$emit('change', { status: true, distance: this.distance });
|
this.verifyText = '解锁成功';
|
||||||
|
this.$emit('change', { status: true, distance: this.distance });
|
||||||
|
} else {
|
||||||
|
this.bgColor = 'red';
|
||||||
|
this.verifyText = '解锁失败';
|
||||||
|
let that = this;
|
||||||
|
setTimeout(() => {
|
||||||
|
that.refresh();
|
||||||
|
}, 1000);
|
||||||
|
this.$emit('change', { status: false, distance: this.distance });
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.bgColor = 'red';
|
this.refresh()
|
||||||
this.verifyText = '解锁失败';
|
|
||||||
let that = this;
|
|
||||||
setTimeout(() => {
|
|
||||||
that.refresh();
|
|
||||||
}, 1000);
|
|
||||||
this.$emit('change', { status: false, distance: this.distance });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}).catch(()=>{
|
||||||
|
this.refresh()
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
refresh () { // 刷新滑块
|
refresh () { // 刷新滑块
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="operation">
|
<div class="operation mb_10">
|
||||||
<Button @click="addParent" icon="md-add">添加一级分类</Button>
|
<Button @click="addParent" icon="md-add">添加一级分类</Button>
|
||||||
</div>
|
</div>
|
||||||
<tree-table
|
<tree-table
|
||||||
|
@ -16,10 +16,9 @@
|
||||||
primary-key="id">
|
primary-key="id">
|
||||||
<template slot="action" slot-scope="scope">
|
<template slot="action" slot-scope="scope">
|
||||||
<Button
|
<Button
|
||||||
type="primary"
|
type="info"
|
||||||
@click="edit(scope.row)"
|
@click="edit(scope.row)"
|
||||||
size="small"
|
size="small"
|
||||||
icon="md-add"
|
|
||||||
style="margin-right:5px"
|
style="margin-right:5px"
|
||||||
>编辑
|
>编辑
|
||||||
</Button>
|
</Button>
|
||||||
|
@ -28,17 +27,14 @@
|
||||||
type="error"
|
type="error"
|
||||||
@click="remove(scope.row)"
|
@click="remove(scope.row)"
|
||||||
size="small"
|
size="small"
|
||||||
icon="md-add"
|
|
||||||
style="margin-right:5px"
|
style="margin-right:5px"
|
||||||
>删除
|
>删除
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
v-show="scope.row.level != 2 "
|
v-show="scope.row.level != 2 "
|
||||||
type="primary"
|
type="success"
|
||||||
@click="addChildren(scope.row)"
|
@click="addChildren(scope.row)"
|
||||||
size="small"
|
size="small"
|
||||||
icon="md-add"
|
|
||||||
style="margin-right:5px"
|
style="margin-right:5px"
|
||||||
>添加子分类
|
>添加子分类
|
||||||
</Button>
|
</Button>
|
||||||
|
|
|
@ -18,14 +18,14 @@ export default {
|
||||||
* @description api请求基础路径
|
* @description api请求基础路径
|
||||||
*/
|
*/
|
||||||
api_dev: {
|
api_dev: {
|
||||||
// common: 'https://common-api.pickmall.cn',
|
common: 'https://common-api.pickmall.cn',
|
||||||
// buyer: 'https://buyer-api.pickmall.cn',
|
buyer: 'https://buyer-api.pickmall.cn',
|
||||||
// seller: 'https://store-api.pickmall.cn',
|
seller: 'https://store-api.pickmall.cn',
|
||||||
// manager: 'https://admin-api.pickmall.cn',
|
manager: 'https://admin-api.pickmall.cn',
|
||||||
common: 'http://192.168.0.109:8890',
|
// common: 'http://192.168.0.109:8890',
|
||||||
buyer: 'http://192.168.0.109:8888',
|
// buyer: 'http://192.168.0.109:8888',
|
||||||
seller: 'http://192.168.0.109:8889',
|
// seller: 'http://192.168.0.109:8889',
|
||||||
manager: 'http://192.168.0.109:8887'
|
// manager: 'http://192.168.0.109:8887'
|
||||||
|
|
||||||
},
|
},
|
||||||
api_prod: {
|
api_prod: {
|
||||||
|
|
|
@ -393,38 +393,7 @@ export default {
|
||||||
secondStep,
|
secondStep,
|
||||||
thirdStep
|
thirdStep
|
||||||
},
|
},
|
||||||
watch: {
|
|
||||||
// selectGoodsType: {
|
|
||||||
// handler(val) {
|
|
||||||
// if (val && this.baseInfoForm.goodsType) {
|
|
||||||
// this.goodsTypeWay.forEach((item) => {
|
|
||||||
// item.check = false;
|
|
||||||
// if (item.type == this.baseInfoForm.goodsType) {
|
|
||||||
// item.check = true;
|
|
||||||
// }
|
|
||||||
// if (!item.type) {
|
|
||||||
// this.defaultBaseInfo();
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
// $route(to, from) {
|
|
||||||
// if (to.query.draftId) {
|
|
||||||
// this.draftId = to.query.draftId;
|
|
||||||
// this.activestep = 1;
|
|
||||||
// this.isOperationGoods = false;
|
|
||||||
// this.GET_GoodData();
|
|
||||||
// } else if (to.query.id) {
|
|
||||||
// this.activestep = 1;
|
|
||||||
// this.goodsId = this.$route.query.id;
|
|
||||||
// this.GET_GoodData();
|
|
||||||
// } else {
|
|
||||||
// this.selectGoodsType = true;
|
|
||||||
// this.defaultBaseInfo();
|
|
||||||
// }
|
|
||||||
// },
|
|
||||||
},
|
|
||||||
data() {
|
data() {
|
||||||
// 表单验证项,商品价格
|
// 表单验证项,商品价格
|
||||||
const checkPrice = (rule, value, callback) => {
|
const checkPrice = (rule, value, callback) => {
|
||||||
|
@ -482,8 +451,6 @@ export default {
|
||||||
showSkuPicture: false,
|
showSkuPicture: false,
|
||||||
//选择的sku
|
//选择的sku
|
||||||
selectedSku: {},
|
selectedSku: {},
|
||||||
//模版 id
|
|
||||||
draftId: undefined,
|
|
||||||
/** 当前激活步骤*/
|
/** 当前激活步骤*/
|
||||||
activestep: 0,
|
activestep: 0,
|
||||||
//是否在编辑商品
|
//是否在编辑商品
|
||||||
|
@ -634,7 +601,6 @@ export default {
|
||||||
}
|
}
|
||||||
// 编辑模板
|
// 编辑模板
|
||||||
else if (this.$route.query.draftId) {
|
else if (this.$route.query.draftId) {
|
||||||
this.draftId = this.$route.query.draftId;
|
|
||||||
this.activestep = 1;
|
this.activestep = 1;
|
||||||
this.isOperationGoods = false;
|
this.isOperationGoods = false;
|
||||||
this.GET_GoodData();
|
this.GET_GoodData();
|
||||||
|
@ -671,8 +637,6 @@ export default {
|
||||||
this.isPublish = true;
|
this.isPublish = true;
|
||||||
this.$refs.first.GET_NextLevelCategory();
|
this.$refs.first.GET_NextLevelCategory();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 选择参数
|
* 选择参数
|
||||||
* @paramsGroup 参数分组
|
* @paramsGroup 参数分组
|
||||||
|
@ -848,8 +812,8 @@ export default {
|
||||||
// 编辑时获取商品信息
|
// 编辑时获取商品信息
|
||||||
async GET_GoodData() {
|
async GET_GoodData() {
|
||||||
let response = {};
|
let response = {};
|
||||||
if (this.draftId) {
|
if (this.$route.query.draftId) {
|
||||||
response = await API_GOODS.getDraftGoodsDetail(this.draftId);
|
response = await API_GOODS.getDraftGoodsDetail(this.$route.query.draftId);
|
||||||
} else {
|
} else {
|
||||||
response = await API_GOODS.getGoods(this.$route.query.id);
|
response = await API_GOODS.getGoods(this.$route.query.id);
|
||||||
this.goodsId = response.result.id;
|
this.goodsId = response.result.id;
|
||||||
|
@ -1280,13 +1244,18 @@ export default {
|
||||||
/** 下一步*/
|
/** 下一步*/
|
||||||
next() {
|
next() {
|
||||||
window.scrollTo(0, 0);
|
window.scrollTo(0, 0);
|
||||||
if (this.activestep === 0 && this.draftId) {
|
if (this.activestep === 0 && this.$route.query.draftId) {
|
||||||
this.activestep = 1;
|
this.activestep = 1;
|
||||||
this.GET_GoodData();
|
this.GET_GoodData();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 1级校验 */
|
/** 1级校验 */
|
||||||
|
this.loading = true;
|
||||||
|
if (this.activestep === 0 && !this.baseInfoForm.goodsType) {
|
||||||
|
this.$Message.error('请选择商品类型')
|
||||||
|
this.loading = false;
|
||||||
|
return
|
||||||
|
}
|
||||||
if (this.activestep === 0 && !this.activeCategoryName1) {
|
if (this.activestep === 0 && !this.activeCategoryName1) {
|
||||||
this.$Message.error("请选择商品分类");
|
this.$Message.error("请选择商品分类");
|
||||||
return;
|
return;
|
||||||
|
@ -1327,8 +1296,7 @@ export default {
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/** 下一步 */
|
|
||||||
if (this.activestep++ > 2) return;
|
|
||||||
},
|
},
|
||||||
// 店内分类选择
|
// 店内分类选择
|
||||||
selectTree(v) {
|
selectTree(v) {
|
||||||
|
@ -1439,8 +1407,8 @@ export default {
|
||||||
this.baseInfoForm.categoryName = [];
|
this.baseInfoForm.categoryName = [];
|
||||||
this.baseInfoForm.saveType = 'TEMPLATE';
|
this.baseInfoForm.saveType = 'TEMPLATE';
|
||||||
|
|
||||||
if (this.draftId) {
|
if (this.$route.query.draftId) {
|
||||||
this.baseInfoForm.id = this.draftId;
|
this.baseInfoForm.id = this.$route.query.draftId;
|
||||||
this.$Modal.confirm({
|
this.$Modal.confirm({
|
||||||
title: "当前模板已存在",
|
title: "当前模板已存在",
|
||||||
content: "当前模板已存在,保存为新模板或替换原模板",
|
content: "当前模板已存在,保存为新模板或替换原模板",
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
<span v-show="activeCategoryName2">> {{ activeCategoryName2 }}</span>
|
<span v-show="activeCategoryName2">> {{ activeCategoryName2 }}</span>
|
||||||
<span v-show="activeCategoryName3">> {{ activeCategoryName3 }}</span>
|
<span v-show="activeCategoryName3">> {{ activeCategoryName3 }}</span>
|
||||||
</p>
|
</p>
|
||||||
<template v-if="!$route.query.id && draftId">
|
<template v-if="!$route.query.id">
|
||||||
<Divider>已选商品模版:{{checkedTemplate()}}</Divider>
|
<Divider>已选商品模版:{{checkedTemplate()}}</Divider>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
@ -120,7 +120,7 @@ export default {
|
||||||
// 获取已选模板
|
// 获取已选模板
|
||||||
checkedTemplate () {
|
checkedTemplate () {
|
||||||
if(this.goodsTemplates.length) {
|
if(this.goodsTemplates.length) {
|
||||||
return this.goodsTemplates.find(item=>{return item.id == this.draftId}).goodsName
|
return this.goodsTemplates.find(item=>{return item.id == this.$parent.draftId}).goodsName
|
||||||
} else {
|
} else {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
@ -134,6 +134,7 @@ export default {
|
||||||
val.check = !val.check;
|
val.check = !val.check;
|
||||||
if (!val.type) {
|
if (!val.type) {
|
||||||
this.showGoodsTemplates = true;
|
this.showGoodsTemplates = true;
|
||||||
|
this.GET_GoodsTemplate()
|
||||||
} else {
|
} else {
|
||||||
// this.baseInfoForm.goodsType = val.type;
|
// this.baseInfoForm.goodsType = val.type;
|
||||||
// this.draftId = "";
|
// this.draftId = "";
|
||||||
|
@ -198,6 +199,7 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
|
this.GET_NextLevelCategory()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -72,19 +72,26 @@ export default {
|
||||||
xPos: this.distance
|
xPos: this.distance
|
||||||
};
|
};
|
||||||
postVerifyImg(params).then(res => {
|
postVerifyImg(params).then(res => {
|
||||||
if (res.result) {
|
if (res.success) {
|
||||||
this.bgColor = 'green';
|
if (res.result) {
|
||||||
this.verifyText = '解锁成功';
|
this.bgColor = 'green';
|
||||||
this.$emit('change', { status: true, distance: this.distance });
|
this.verifyText = '解锁成功';
|
||||||
|
this.$emit('change', { status: true, distance: this.distance });
|
||||||
|
} else {
|
||||||
|
this.bgColor = 'red';
|
||||||
|
this.verifyText = '解锁失败';
|
||||||
|
let that = this;
|
||||||
|
setTimeout(() => {
|
||||||
|
that.refresh();
|
||||||
|
}, 1000);
|
||||||
|
this.$emit('change', { status: false, distance: this.distance });
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.bgColor = 'red';
|
this.refresh()
|
||||||
this.verifyText = '解锁失败';
|
|
||||||
let that = this;
|
|
||||||
setTimeout(() => {
|
|
||||||
that.refresh();
|
|
||||||
}, 1000);
|
|
||||||
this.$emit('change', { status: false, distance: this.distance });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}).catch(()=>{
|
||||||
|
this.refresh()
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
refresh () { // 刷新滑块
|
refresh () { // 刷新滑块
|
||||||
|
|
|
@ -121,7 +121,7 @@ export default {
|
||||||
{
|
{
|
||||||
title: "发票状态",
|
title: "发票状态",
|
||||||
key: "receiptStatus",
|
key: "receiptStatus",
|
||||||
width: 90,
|
width: 100,
|
||||||
tooltip: true,
|
tooltip: true,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
if (params.row.receiptStatus == 0) {
|
if (params.row.receiptStatus == 0) {
|
||||||
|
@ -138,7 +138,7 @@ export default {
|
||||||
{
|
{
|
||||||
title: "订单状态",
|
title: "订单状态",
|
||||||
key: "orderStatus",
|
key: "orderStatus",
|
||||||
width: 90,
|
width: 100,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
if (params.row.orderStatus == "UNPAID") {
|
if (params.row.orderStatus == "UNPAID") {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
|
|
Loading…
Reference in New Issue