Commit b3156415 by damodmg

更新门店组件

parent 351318fa
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><link rel=stylesheet type=text/css href=./static/css/iconfont.css><link rel=stylesheet type=text/css href=./static/css/common.css><link rel="shortcut icon" type=image/x-icon href=./static/img/favicon.ico><title>积分商城</title><link href=./static/css/app.ea4641d10ac4b4547f4e2665d80d43d9.css rel=stylesheet></head><body><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.5.2/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/elementUI/index.2.5.4.js></script><script src=//web-1251519181.file.myqcloud.com/components/header.2.0.30.js></script><script src=//web-1251519181.file.myqcloud.com/components/aside-menu.2.0.11.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-linkage.2.0.17.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-new.2.0.11.js></script><script src=//web-1251519181.file.myqcloud.com/components/card.2.0.06.js></script><script src=//web-1251519181.file.myqcloud.com/components/export-excel.2.0.11.js></script><script src=//web-1251519181.file.myqcloud.com/components/people.2.0.26.js></script><script src=//web-1251519181.file.myqcloud.com/components/delete.2.0.00.js></script><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.3c5834cc437c7b2d524e.js></script><script type=text/javascript src=./static/js/app.0cd57ad130674746c397.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><link rel=stylesheet type=text/css href=./static/css/iconfont.css><link rel=stylesheet type=text/css href=./static/css/common.css><link rel="shortcut icon" type=image/x-icon href=./static/img/favicon.ico><title>积分商城</title><link href=./static/css/app.86f396cfbc278f234299c7037d129745.css rel=stylesheet></head><body><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.5.2/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/elementUI/index.2.5.4.js></script><script src=//web-1251519181.file.myqcloud.com/components/header.2.0.30.js></script><script src=//web-1251519181.file.myqcloud.com/components/aside-menu.2.0.11.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-linkage.2.0.35.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-new.2.0.11.js></script><script src=//web-1251519181.file.myqcloud.com/components/card.2.0.06.js></script><script src=//web-1251519181.file.myqcloud.com/components/export-excel.2.0.11.js></script><script src=//web-1251519181.file.myqcloud.com/components/people.2.0.26.js></script><script src=//web-1251519181.file.myqcloud.com/components/delete.2.0.00.js></script><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.3c5834cc437c7b2d524e.js></script><script type=text/javascript src=./static/js/app.4390219ddd544c87ec39.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -18,7 +18,7 @@
<script src="//web-1251519181.file.myqcloud.com/components/header.2.0.30.js"></script>
<script src="//web-1251519181.file.myqcloud.com/components/aside-menu.2.0.11.js"></script>
<script src="//web-1251519181.file.myqcloud.com/components/footer.2.0.02.js"></script>
<script src='//web-1251519181.file.myqcloud.com/components/store-linkage.2.0.17.js'></script>
<script src='//web-1251519181.file.myqcloud.com/components/store-linkage.2.0.35.js'></script>
<script src="//web-1251519181.file.myqcloud.com/components/store-new.2.0.11.js"></script>
<!-- <script src="//web-1251519181.file.myqcloud.com/components/member-info.1.0.01.js"></script> -->
<script src="//web-1251519181.file.myqcloud.com/components/card.2.0.06.js"></script>
......
......@@ -112,11 +112,14 @@
</div>
</div>
</el-form-item> -->
<el-form-item label="展现门店" required style="position:relative">
<!-- <el-form-item label="展现门店" required style="position:relative">
<vue-gic-store-linkage :disabled="isInfo" :msg="sendChildData" @getDisGroupList="getDisGroupList" :openFlag="openFlag" ref="selectTree" @sendSelectGroupData="getSelectGroupData"></vue-gic-store-linkage>
<span v-if="sendChildData.storeType === 1" class="store-tip">若选中的门店分组下有新增的门店,系统不会默认选中此新增门店,请重新确认选择并保存礼品</span>
</el-form-item> -->
<el-form-item label="展现门店" required style="position:relative">
<vue-gic-store-linkage :disabled="isInfo" @getDisGroupList="getDisGroupList" :msg="sendChildData" :openFlag="openFlag" ref="selectTree" @sendSelectGroupData="getSelectGroupData"></vue-gic-store-linkage>
<span v-if="sendChildData.storeType === 1" class="store-tip">若选中的门店分组下有新增的门店,系统不会默认选中此新增门店,请重新确认选择并保存礼品</span>
</el-form-item>
<el-form-item label="限兑">
<el-checkbox v-model="couponForm.limitTimesStatus" @change="refashData()">每个会员限制兑换</el-checkbox>
<span v-if="couponForm.limitTimesStatus"><el-input-number controls-position="right" v-model="couponForm.limitTimes" :precision="0" :min="0" @change="limitTimeChange"></el-input-number></span>
......@@ -308,7 +311,7 @@ export default {
// responseParams: [] //回显的数据
};
},
created() {
mounted() {
this.getOpenStatus();
window.onbeforeunload = function(e) {
// var storage = window.localStorage;
......@@ -331,6 +334,9 @@ export default {
// }
this.getMemberGradeList(); //会员等级列表\
// if (this.mallProId !== '-1') {
// this.getInfo();
// }
},
methods: {
refashData() {
......@@ -410,6 +416,7 @@ export default {
}
if (res.data.result.images) {
//主图
this.couponForm.images = [];
for (let item of res.data.result.images) {
this.couponForm.images.push({
imageUrl: item.imageUrl,
......@@ -508,6 +515,7 @@ export default {
};
request.post('/api-integral-mall/get-card', qs.stringify(params)).then(res => {
if (res.data.errorCode === 0) {
this.cardList = [];
this.cardList.push(res.data.result);
if (this.cardList) {
this.couponForm.cardType = this.cardList[0].cardType;
......@@ -544,11 +552,8 @@ export default {
},
//门店分类回执方法
getSelectGroupData(val) {
// this.sendChildData.storeType = val.storeType || 0;
// this.sendChildData.storeGroupIds = val.storeGroupIds || '';
// this.sendChildData.storeIds = val.storeIds || [];
this.sendChildData = {
storeType: val.storeType || 1,
storeType: val.storeType || 0,
storeGroupIds: val.storeGroupIds || '',
storeIds: val.storeIds || []
};
......
......@@ -400,7 +400,7 @@ export default {
storeIds: []
},
// sendChildData: {}, // 向子元素传递的对象
openFlag: true,
openFlag: false,
stockDisabled: false, //spu库存是否可输入
refash: false,
giftProStandardJson: [], //规格列表
......@@ -447,6 +447,14 @@ export default {
// responseParams: [] //回显的数据
};
},
// watch: {
// openFlag: {
// immediate: true,
// handler(newval) {
// console.log(newval);
// }
// }
// },
mounted() {
this.getOpenStatus();
window.onbeforeunload = function(e) {
......@@ -510,12 +518,13 @@ export default {
// },
methods: {
getOpenStatus() {
request.post('/api-integral-mall/is-show-self ').then(res => {
request.post('/api-integral-mall/is-show-self').then(res => {
if (res.data.errorCode === 0) {
this.openFlag = res.data.result.openFlag;
if (this.openFlag) {
this.sendChildData.storeType = 1;
} else {
this.sendChildData.storeType = 0;
}
} else {
this.$message.error(res.data.message);
......@@ -537,6 +546,7 @@ export default {
};
request.post('/api-integral-mall/get-card', qs.stringify(params)).then(res => {
if (res.data.errorCode === 0) {
this.cardList = [];
this.cardList.push(res.data.result);
if (this.cardList) {
for (let item of this.cardList) {
......@@ -669,6 +679,7 @@ export default {
this.giftForm.memberGrade = [];
}
this.giftForm.proReferId = res.data.result.proReferId;
this.giftForm.images = [];
if (res.data.result.images) {
//主图
for (let item of res.data.result.images) {
......@@ -723,6 +734,7 @@ export default {
// console.log('获取子组件的值', this.groupIdDisableList);
if (this.sendChildData.storeType === 1) {
let arr = res.data.result.storeGroupIds.split(',');
// console.log(222, this.groupIdDisableList);
for (let i = 0; i < arr.length; i++) {
if (this.groupIdDisableList.indexOf(arr[i]) !== -1) {
//存在
......@@ -731,6 +743,7 @@ export default {
}
}
this.sendChildData.storeGroupIds = arr.join(',');
// console.log(this.sendChildData.storeGroupIds);
} else if (this.sendChildData.storeType === 2) {
let list = [];
if (res.data.result.storeInfo) {
......@@ -999,9 +1012,6 @@ export default {
},
//门店分类回执方法
getSelectGroupData(val) {
// this.sendChildData.storeType = val.storeType || 0;
// this.sendChildData.storeGroupIds = val.storeGroupIds || '';
// this.sendChildData.storeIds = val.storeIds || [];
this.sendChildData = {
storeType: val.storeType || 0,
storeGroupIds: val.storeGroupIds || '',
......
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