Commit 4e55ac0d by 李长胜

修改

1 parent 4b63b594
......@@ -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) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!