|
@@ -21,6 +21,15 @@
|
|
<van-picker :title="$t('typeSelectList.companies')" :columns="companyList" @confirm="companyConfirm"
|
|
<van-picker :title="$t('typeSelectList.companies')" :columns="companyList" @confirm="companyConfirm"
|
|
@cancel="companyCancel" />
|
|
@cancel="companyCancel" />
|
|
</van-popup>
|
|
</van-popup>
|
|
|
|
+ <div v-if="isShowAdminAndCompany()" class="selectIconBox" @click="foreignShow()">
|
|
|
|
+ <div class="section3 flex-col"></div>
|
|
|
|
+ <span class="txt4">{{ ifForeignes }}</span>
|
|
|
|
+ <div class="layer1 flex-col"></div>
|
|
|
|
+ </div>
|
|
|
|
+ <van-popup v-model:show="ifForeign" position="bottom">
|
|
|
|
+ <van-picker :title="$t('typeSelectList.ifForeignes')" :columns="foreignList" @confirm="foreignConfirm"
|
|
|
|
+ @cancel="foreignCancel" />
|
|
|
|
+ </van-popup>
|
|
<div class="selectIconBox" @click="payShow()">
|
|
<div class="selectIconBox" @click="payShow()">
|
|
<div class="section3 flex-col"></div>
|
|
<div class="section3 flex-col"></div>
|
|
<span class="txt4">{{ paymentMethod }}</span>
|
|
<span class="txt4">{{ paymentMethod }}</span>
|
|
@@ -95,6 +104,8 @@ export default {
|
|
const { t } = useI18n();
|
|
const { t } = useI18n();
|
|
// 支付方式
|
|
// 支付方式
|
|
const paymentMethod = ref(t('typeSelectList.paymentMethod'));
|
|
const paymentMethod = ref(t('typeSelectList.paymentMethod'));
|
|
|
|
+ // 账号地区
|
|
|
|
+ const ifForeignes = ref(t('typeSelectList.ifForeignes'));
|
|
// 公司平台
|
|
// 公司平台
|
|
const companies = ref(t('typeSelectList.companies'));
|
|
const companies = ref(t('typeSelectList.companies'));
|
|
// 公司平台
|
|
// 公司平台
|
|
@@ -112,7 +123,8 @@ export default {
|
|
productNo: '',
|
|
productNo: '',
|
|
equipmentId: '',
|
|
equipmentId: '',
|
|
companyType: '',
|
|
companyType: '',
|
|
- machineType: ''
|
|
|
|
|
|
+ machineType: '',
|
|
|
|
+ ifForeign: '',
|
|
});
|
|
});
|
|
// 商户选择
|
|
// 商户选择
|
|
const adminTypeShow = ref(false);
|
|
const adminTypeShow = ref(false);
|
|
@@ -136,6 +148,25 @@ export default {
|
|
adminList.value.unshift(t('typeSelectList.allSuboUsers'));
|
|
adminList.value.unshift(t('typeSelectList.allSuboUsers'));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ // 账号地区选择
|
|
|
|
+ const ifForeign = ref(false);
|
|
|
|
+ const foreignShow = () => { ifForeign.value = true; };
|
|
|
|
+ const foreignSouerList = [
|
|
|
|
+ { text: t('typeSelectList.mainland'), values: '0' },
|
|
|
|
+ { text: t('typeSelectList.overseas'), values: '1' },
|
|
|
|
+ ];
|
|
|
|
+ const foreignList = ref([
|
|
|
|
+ t('typeSelectList.mainland'),
|
|
|
|
+ t('typeSelectList.overseas'),
|
|
|
|
+ ]);
|
|
|
|
+ const foreignConfirm = (currentValue) => {
|
|
|
|
+ ifForeignes.value = currentValue;
|
|
|
|
+ const selectPay = foreignSouerList.filter(i => i.text === currentValue);
|
|
|
|
+ if (selectPay && selectPay.length > 0) { searchParams.ifForeign = selectPay[0].values; }
|
|
|
|
+ ifForeign.value = false;
|
|
|
|
+ outputDate();
|
|
|
|
+ }
|
|
|
|
+ const foreignCancel = () => { ifForeign.value = false; }
|
|
// 公司平台选择
|
|
// 公司平台选择
|
|
const companyType = ref(false);
|
|
const companyType = ref(false);
|
|
const companyShow = () => { companyType.value = true; };
|
|
const companyShow = () => { companyType.value = true; };
|
|
@@ -282,6 +313,8 @@ export default {
|
|
const isShowAdmin = () => { return (user && user.type === 2); }
|
|
const isShowAdmin = () => { return (user && user.type === 2); }
|
|
// 是否管理员
|
|
// 是否管理员
|
|
const isShowCompany = () => { return (user && user.type === 0); }
|
|
const isShowCompany = () => { return (user && user.type === 0); }
|
|
|
|
+ // 是否管理员和公司人员
|
|
|
|
+ const isShowAdminAndCompany = () => { return (user && user.type < 2); }
|
|
// 是否商户及子账户
|
|
// 是否商户及子账户
|
|
const isShowDevice = () => { return (user && (user.type === 2 || user.type === 3)); }
|
|
const isShowDevice = () => { return (user && (user.type === 2 || user.type === 3)); }
|
|
// 返回参数
|
|
// 返回参数
|
|
@@ -326,12 +359,16 @@ export default {
|
|
isShowCompany,
|
|
isShowCompany,
|
|
// 是否商户及子账户
|
|
// 是否商户及子账户
|
|
isShowDevice,
|
|
isShowDevice,
|
|
|
|
+ // 是否管理员和公司人员
|
|
|
|
+ isShowAdminAndCompany,
|
|
// 商家选择
|
|
// 商家选择
|
|
adminTypeShow, adminList, adminShow, adminConfirm, adminCancel,
|
|
adminTypeShow, adminList, adminShow, adminConfirm, adminCancel,
|
|
// 支付方式选择
|
|
// 支付方式选择
|
|
payType, payList, payShow, payConfirm, payCancel,
|
|
payType, payList, payShow, payConfirm, payCancel,
|
|
// 公司平台选择
|
|
// 公司平台选择
|
|
companyType, companyList, companyShow, companyConfirm, companyCancel,
|
|
companyType, companyList, companyShow, companyConfirm, companyCancel,
|
|
|
|
+ // 国内和海外选择
|
|
|
|
+ ifForeign, foreignList, foreignShow, foreignConfirm, foreignCancel,
|
|
// 设备类型选择
|
|
// 设备类型选择
|
|
machineType, machineList, machineShow, machineConfirm, machineCancel,
|
|
machineType, machineList, machineShow, machineConfirm, machineCancel,
|
|
// 设备选择
|
|
// 设备选择
|
|
@@ -341,6 +378,7 @@ export default {
|
|
// 订单状态
|
|
// 订单状态
|
|
orderStatusShow, orderStatus, orderStatusList, orderStatusConfirm, orderStatusCancel,
|
|
orderStatusShow, orderStatus, orderStatusList, orderStatusConfirm, orderStatusCancel,
|
|
paymentMethod,
|
|
paymentMethod,
|
|
|
|
+ ifForeignes,
|
|
companies,
|
|
companies,
|
|
machines,
|
|
machines,
|
|
allDevices,
|
|
allDevices,
|