Commit c6d2a58f by 胡悦

Merge branch 'v1.0.1' of http://192.168.3.233:8090/saas/scrm-micro-marketing into v1.0.1

2 parents 83ff8152 4e55ac0d
......@@ -5700,9 +5700,9 @@
}
},
"glsx-components": {
"version": "1.3.2",
"resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.3.2.tgz",
"integrity": "sha512-+3RQzo4onfbdkfU5zcw16dsGKadi7oRWzgKO3W1v84A1C4WQsLq+4h7Z7p+CIUxq9O4WifE+Ici4mwN9eq2PNw==",
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.3.1.tgz",
"integrity": "sha512-Zsh7zfQ5svPZeGWPbyRTjn6kaDeg8en3oPqDGZhWbJX2BpEj1lZ8bbXj3E9rjmegNUKZgyM2g6JBzJN0aGtRZA==",
"requires": {
"core-js": "^3.6.5",
"element-ui": "^2.15.6",
......
......@@ -13,7 +13,7 @@
"el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
"glsx-components": "^1.3.2",
"glsx-components": "^1.3.3",
"lodash": "^4.17.21",
"vue": "^2.6.10",
"vue-router": "^3.1.3",
......
......@@ -11,7 +11,7 @@
<el-input :size="size" v-model="searchForm.packageName" placeholder="请输入名称" clearable></el-input>
</el-form-item>
<el-form-item size="small" label="类型" style="margin-left: -10px">
<el-select size="small" v-model="searchForm.orderType" placeholder="请选择">
<el-select size="small" v-model="searchForm.orderType" :disabled="merchantModel == 1 && accountLevel == 1" placeholder="请选择">
<el-option v-for="item in orderTypeList" :key="item.dictValue" :label="item.dictLabel" :value="item.dictValue"></el-option>
</el-select>
</el-form-item>
......@@ -59,6 +59,8 @@ import { getOrderListApi, orderExportApi } from '@/api/modules/order'
export default {
data() {
return {
merchantModel: 1, //集团:1,门店:2
accountLevel: 0, //1,2,3,4工厂,省代,市代,门店
url: url,
isReload: true,
pickerOptions: {
......@@ -68,10 +70,10 @@ export default {
},
size: 'small',
searchForm: {
orderStatus: '' //默认查询全部
orderStatus: '', //默认查询全部
// name: '',
// daterange:''
// orderType: ''
orderType: ''
},
choseList: ['全部', '待收货', '已完成', '退款|售后'],
currentIndex: 1,
......@@ -150,6 +152,16 @@ export default {
}
}
},
created() {
if (window.__POWERED_BY_QIANKUN__) {
console.log('kkk',this.$globalState)
this.merchantModel = this.$globalState.session.merchantModel
this.accountLevel = this.$globalState.session.accountLevel
if (this.merchantModel == 1 && this.accountLevel == 1) {
this.searchForm.orderType = 2
}
}
},
mounted() {},
methods: {
tabClick(index) {
......
......@@ -212,7 +212,7 @@ export default {
this.$messageBox.confirm('是否失效该服务?', '失效', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'error',
// type: 'error',
callback: action => {
if (action == 'confirm') {
effectiveService({ couponId: row.id, status: 3 }).then(res => {
......@@ -264,7 +264,7 @@ export default {
this.$messageBox.confirm('是否删除该服务?', '删除', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'error',
// type: 'error',
callback: action => {
if (action == 'confirm') {
deleteService({ couponId: row.id, merchantId: this.merchantId }).then(res => {
......
......@@ -208,7 +208,7 @@ export default {
this.$messageBox.confirm('下架后将隐藏且客户不能购买该套餐,已经购买的客户仍继续享有该套餐的服务?', '下架', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'error',
// type: 'error',
callback: action => {
if (action == 'confirm') {
upDownPackage(params).then(res => {
......@@ -233,7 +233,7 @@ export default {
this.$messageBox.confirm('是否删除该套餐?', '删除', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'error',
// type: 'error',
callback: action => {
if (action == 'confirm') {
deleteSetMeal({ id: row.id }).then(res => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!