|
@@ -1,35 +1,100 @@
|
|
<template>
|
|
<template>
|
|
<div class="distributionDetailIdx">
|
|
<div class="distributionDetailIdx">
|
|
<s-header :name="title" :noback="false"></s-header>
|
|
<s-header :name="title" :noback="false"></s-header>
|
|
- <van-form show-error-message @submit="onSubmit">
|
|
|
|
- <div class="cust_vantBorder">
|
|
|
|
- <div class="kBordBott">
|
|
|
|
- <template v-if="clientId">
|
|
|
|
- <van-field disabled colon :border="false" v-model="cofficentForm.clientId" clearable label-width="110"
|
|
|
|
- name="clientId" :label="$t('distributionSet.addDist.clientId')"
|
|
|
|
- :placeholder="$t('distributionSet.addDist.autoBrought')" />
|
|
|
|
- </template>
|
|
|
|
- <template v-else>
|
|
|
|
- <van-field colon :border="false" required @click-input="busiInpClk" readonly clearable label-width="110"
|
|
|
|
- v-model="cofficentForm.clientId" :placeholder="$t('distributionSet.addDist.clientIdPlace')"
|
|
|
|
- :label="$t('distributionSet.addDist.clientId')" name="clientId"
|
|
|
|
- :rules="[{ required: true, message: $t('distributionSet.addDist.clientIdPlace') }]">
|
|
|
|
- <template #right-icon>
|
|
|
|
- <div class="l-flex-RC">
|
|
|
|
- <van-icon v-if="cofficentForm.clientId" @click="cofficentForm.clientId = ''" class="o-mr-6"
|
|
|
|
- name="clear" />
|
|
|
|
- <van-icon @click="busiInpClk" name="arrow-down" />
|
|
|
|
- </div>
|
|
|
|
- </template>
|
|
|
|
- </van-field>
|
|
|
|
- </template>
|
|
|
|
- <div class="l-flex-RC o-p-5 c-text-13 c-text-b">
|
|
|
|
- <div style="padding: var(--van-cell-vertical-padding) var(--van-cell-horizontal-padding);">
|
|
|
|
- {{ $t('distributionSet.addDist.distInof') }}
|
|
|
|
|
|
+ <div class="cust_vantBorder">
|
|
|
|
+ <div class="kBordBott">
|
|
|
|
+ <template v-if="clientId">
|
|
|
|
+ <van-field disabled colon :border="false" v-model="cofficentForm.clientId" clearable label-width="110"
|
|
|
|
+ name="clientId" :label="$t('distributionSet.addDist.clientId')"
|
|
|
|
+ :placeholder="$t('distributionSet.addDist.autoBrought')" />
|
|
|
|
+ </template>
|
|
|
|
+ <template v-else>
|
|
|
|
+ <van-field colon :border="false" required @click-input="busiInpClk" readonly clearable label-width="110"
|
|
|
|
+ v-model="cofficentForm.clientId" :placeholder="$t('distributionSet.addDist.clientIdPlace')"
|
|
|
|
+ :label="$t('distributionSet.addDist.clientId')" name="clientId"
|
|
|
|
+ :rules="[{ required: true, message: $t('distributionSet.addDist.clientIdPlace') }]">
|
|
|
|
+ <template #right-icon>
|
|
|
|
+ <div class="l-flex-RC">
|
|
|
|
+ <van-icon v-if="cofficentForm.clientId" @click="cofficentForm.clientId = ''" class="o-mr-6"
|
|
|
|
+ name="clear" />
|
|
|
|
+ <van-icon @click="busiInpClk" name="arrow-down" />
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </van-field>
|
|
|
|
+ </template>
|
|
|
|
+ <div class="l-flex-RC o-p-5 c-text-13 c-text-b">
|
|
|
|
+ <div v-if="proportionCheck"
|
|
|
|
+ style="padding: var(--van-cell-vertical-padding) var(--van-cell-horizontal-padding);">
|
|
|
|
+ {{ $t('distributionSet.addDist.pendingRecord') }}
|
|
|
|
+ </div>
|
|
|
|
+ <div v-else style="padding: var(--van-cell-vertical-padding) var(--van-cell-horizontal-padding);">
|
|
|
|
+ {{ $t('distributionSet.addDist.distInof') }}
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-if="proportionCheck">
|
|
|
|
+ <div class="l-flex-RC" style="padding: var(--van-cell-vertical-padding) var(--van-cell-horizontal-padding);">
|
|
|
|
+ <div class="c-text-13">
|
|
|
|
+ {{ $t('device.proportionOfPlatformDistributionLabel') }}:
|
|
|
|
+ </div>
|
|
|
|
+ <div class="c-text-14 c-text-b c-text-color">{{ proportionCheck.adminProportion }}%</div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="l-flex-RC" style="padding: var(--van-cell-vertical-padding) var(--van-cell-horizontal-padding);">
|
|
|
|
+ <div class="c-text-13">
|
|
|
|
+ {{ $t('distributionSet.addDist.myDistProport') }}:
|
|
|
|
+ </div>
|
|
|
|
+ <div class="c-text-14 c-text-b c-text-color">{{ proportionCheck.proportion }}%</div>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-if="proportionCheck.agencyId" class="l-flex-RC" style="padding: var(--van-cell-vertical-padding) var(--van-cell-horizontal-padding);">
|
|
|
|
+ <div class="l-flex-RC o-pr-20">
|
|
|
|
+ <div class="c-text-13">
|
|
|
|
+ {{ $t('device.accountNoOfDistributorLabel') }}:
|
|
|
|
+ </div>
|
|
|
|
+ <div class="c-text-14 c-text-b c-text-color">{{ proportionCheck.agencyName }}</div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="l-flex-RC">
|
|
|
|
+ <div class="c-text-13" >
|
|
|
|
+ {{ $t('device.distributionProportionLabel') }}:
|
|
</div>
|
|
</div>
|
|
- <!-- <div class="c-text-13 c-text-b" style="color: #A8A8C5;">{{ $t('distributionSet.addDist.distInof') }}
|
|
|
|
- </div> -->
|
|
|
|
|
|
+ <div class="c-text-14 c-text-b c-text-color">{{ proportionCheck.agencyProportion }}%</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-if="proportionCheck.merchantId" class="l-flex-RC" style="padding: var(--van-cell-vertical-padding) var(--van-cell-horizontal-padding);">
|
|
|
|
+ <div class="l-flex-RC o-pr-20">
|
|
|
|
+ <div class="c-text-13">
|
|
|
|
+ {{ $t('device.accountNoOfDistributorLabel') }}:
|
|
|
|
+ </div>
|
|
|
|
+ <div class="c-text-14 c-text-b c-text-color">{{ proportionCheck.merchantName }}</div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="l-flex-RC">
|
|
|
|
+ <div class="c-text-13" >
|
|
|
|
+ {{ $t('device.distributionProportionLabel') }}:
|
|
|
|
+ </div>
|
|
|
|
+ <div class="c-text-14 c-text-b c-text-color">{{ proportionCheck.merchantProportion }}%</div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-if="proportionCheck.personageId" class="l-flex-RC" style="padding: var(--van-cell-vertical-padding) var(--van-cell-horizontal-padding);">
|
|
|
|
+ <div class="l-flex-RC o-pr-20">
|
|
|
|
+ <div class="c-text-13">
|
|
|
|
+ {{ $t('device.accountNoOfDistributorLabel') }}:
|
|
|
|
+ </div>
|
|
|
|
+ <div class="c-text-14 c-text-b c-text-color">{{ proportionCheck.personageName }}</div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="l-flex-RC">
|
|
|
|
+ <div class="c-text-13" >
|
|
|
|
+ {{ $t('device.distributionProportionLabel') }}:
|
|
|
|
+ </div>
|
|
|
|
+ <div class="c-text-14 c-text-b c-text-color">{{ proportionCheck.personageProportion }}%</div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div style="margin: 50px;">
|
|
|
|
+ <van-button round block type="primary" @click="cancelDistri(proportionCheck.id)">
|
|
|
|
+ {{ $t('device.cancelForApproval') }}
|
|
|
|
+ </van-button>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-else>
|
|
|
|
+ <van-form show-error-message @submit="onSubmit">
|
|
<div class="noPaddingTopCell l-flex-RC">
|
|
<div class="noPaddingTopCell l-flex-RC">
|
|
<van-field type="digit" colon :border="false" required v-model="cofficentForm.distProp" clearable
|
|
<van-field type="digit" colon :border="false" required v-model="cofficentForm.distProp" clearable
|
|
label-width="110" name="distProp" :label="$t('device.proportionOfPlatformDistributionLabel')"
|
|
label-width="110" name="distProp" :label="$t('device.proportionOfPlatformDistributionLabel')"
|
|
@@ -38,41 +103,43 @@
|
|
<span class="o-pl-10 c-text-18 c-text-b" style="color: #434D74;">%</span>
|
|
<span class="o-pl-10 c-text-18 c-text-b" style="color: #434D74;">%</span>
|
|
</div>
|
|
</div>
|
|
<div class="l-flex-RC">
|
|
<div class="l-flex-RC">
|
|
- <div class="c-text-14" style="padding: var(--van-cell-vertical-padding) var(--van-cell-horizontal-padding);">
|
|
|
|
|
|
+ <div class="c-text-13"
|
|
|
|
+ style="padding: var(--van-cell-vertical-padding) var(--van-cell-horizontal-padding);">
|
|
{{ $t('distributionSet.addDist.myDistProport') }}:
|
|
{{ $t('distributionSet.addDist.myDistProport') }}:
|
|
</div>
|
|
</div>
|
|
<div class="c-text-13 c-text-b c-text-color">{{ myDistProp }}%</div>
|
|
<div class="c-text-13 c-text-b c-text-color">{{ myDistProp }}%</div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- <div v-for="(item, index) in distPropList" :key="index" class="kBordBott">
|
|
|
|
- <van-field colon :border="false" required v-model="item.name1" clearable label-width="110" name="name1"
|
|
|
|
- :label="$t('device.accountNoOfDistributorLabel')"
|
|
|
|
- :placeholder="$t('device.accountNoOfDistributorPlaceholder')"
|
|
|
|
- :rules="[{ required: true, message: $t('device.accountNoOfDistributorPlaceholder') }]" />
|
|
|
|
- <div class="l-flex-between noPaddingRCell">
|
|
|
|
- <div class="l-flex-RC">
|
|
|
|
- <van-field type="digit" colon :border="false" required v-model="item.name2" clearable label-width="110"
|
|
|
|
- name="name2" :label="$t('device.distributionProportionLabel')"
|
|
|
|
- :placeholder="$t('device.distributionProportionPlaceholder')"
|
|
|
|
- :rules="[{ required: true, message: $t('device.distributionProportionPlaceholder') }, { required: true, validator: distPropVali, message: $t('distributionSet.addDist.distPropRange'), trigger: ['onChange', 'onBlur', 'onSubmit'] }]" />
|
|
|
|
- <span class="o-pl-10 c-text-18 c-text-b" style="color: #434D74;">%</span>
|
|
|
|
- </div>
|
|
|
|
- <div @click="toDele(index)" class="l-flex-RC" style="color: #FE5D55;">
|
|
|
|
- <van-icon size="18" name="delete-o" />
|
|
|
|
- <span class="c-text-12">{{ $t('device.delete') }}</span>
|
|
|
|
|
|
+ <div v-for="(item, index) in distPropList" :key="index" class="kBordBott">
|
|
|
|
+ <van-field colon :border="false" required v-model="item.name1" clearable label-width="110" name="name1"
|
|
|
|
+ :label="$t('device.accountNoOfDistributorLabel')"
|
|
|
|
+ :placeholder="$t('device.accountNoOfDistributorPlaceholder')"
|
|
|
|
+ :rules="[{ required: true, message: $t('device.accountNoOfDistributorPlaceholder') }]" />
|
|
|
|
+ <div class="l-flex-between noPaddingRCell">
|
|
|
|
+ <div class="l-flex-RC">
|
|
|
|
+ <van-field type="digit" colon :border="false" required v-model="item.name2" clearable label-width="110"
|
|
|
|
+ name="name2" :label="$t('device.distributionProportionLabel')"
|
|
|
|
+ :placeholder="$t('device.distributionProportionPlaceholder')"
|
|
|
|
+ :rules="[{ required: true, message: $t('device.distributionProportionPlaceholder') }, { required: true, validator: distPropVali, message: $t('distributionSet.addDist.distPropRange'), trigger: ['onChange', 'onBlur', 'onSubmit'] }]" />
|
|
|
|
+ <span class="o-pl-10 c-text-18 c-text-b" style="color: #434D74;">%</span>
|
|
|
|
+ </div>
|
|
|
|
+ <div @click="toDele(index)" class="l-flex-RC" style="color: #FE5D55;">
|
|
|
|
+ <van-icon size="18" name="delete-o" />
|
|
|
|
+ <span class="c-text-12">{{ $t('device.delete') }}</span>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div v-if="distPropList.length <= 2" @click="toAdd" class="kBordBott l-flex-center o-ptb-20 c-text-14 c-text-w6">
|
|
|
|
- +{{ $t('device.continueToAddDistributors') }}
|
|
|
|
- </div>
|
|
|
|
- <div style="margin: 16px;">
|
|
|
|
- <van-button round block type="primary" native-type="submit">
|
|
|
|
- {{ $t('device.submitForApproval') }}
|
|
|
|
- </van-button>
|
|
|
|
|
|
+ <div v-if="distPropList.length <= 2" @click="toAdd"
|
|
|
|
+ class="kBordBott l-flex-center o-ptb-20 c-text-14 c-text-w6">
|
|
|
|
+ +{{ $t('device.continueToAddDistributors') }}
|
|
|
|
+ </div>
|
|
|
|
+ <div style="margin: 50px;">
|
|
|
|
+ <van-button round block type="primary" native-type="submit">
|
|
|
|
+ {{ $t('device.submitForApproval') }}
|
|
|
|
+ </van-button>
|
|
|
|
+ </div>
|
|
|
|
+ </van-form>
|
|
</div>
|
|
</div>
|
|
- </van-form>
|
|
|
|
|
|
+ </div>
|
|
<!-- 设备编码选择框 -->
|
|
<!-- 设备编码选择框 -->
|
|
<van-popup v-model:show="busiPopShow" position="bottom">
|
|
<van-popup v-model:show="busiPopShow" position="bottom">
|
|
<van-picker :title="$t('distributionSet.addDist.clientIdPlace')" :columns="busiPopList"
|
|
<van-picker :title="$t('distributionSet.addDist.clientIdPlace')" :columns="busiPopList"
|
|
@@ -83,28 +150,31 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { getEquipmentList } from '@/service/typeSelectList';
|
|
import { getEquipmentList } from '@/service/typeSelectList';
|
|
-import { Api_getDistriDetail } from "@/service/distributionSet";
|
|
|
|
|
|
+import { Api_getDistriDetail, Api_getCheckPending, Api_cancelDistri } from "@/service/distributionSet";
|
|
import { saveProportion, getProportion } from '@/service/device';
|
|
import { saveProportion, getProportion } from '@/service/device';
|
|
import sHeader from "@/components/SimpleHeader";
|
|
import sHeader from "@/components/SimpleHeader";
|
|
-import { showToast } from 'vant';
|
|
|
|
import { computed, onMounted, reactive, ref } from 'vue';
|
|
import { computed, onMounted, reactive, ref } from 'vue';
|
|
import { getLoginUser } from "@/common/js/utils";
|
|
import { getLoginUser } from "@/common/js/utils";
|
|
import { useRoute, useRouter } from "vue-router";
|
|
import { useRoute, useRouter } from "vue-router";
|
|
import { useI18n } from 'vue-i18n';
|
|
import { useI18n } from 'vue-i18n';
|
|
import { styleUrl } from '../../common/js/utils';
|
|
import { styleUrl } from '../../common/js/utils';
|
|
|
|
+import { showToast, showConfirmDialog, showSuccessToast, showFailToast } from "vant";
|
|
|
|
+
|
|
export default {
|
|
export default {
|
|
components: { sHeader },
|
|
components: { sHeader },
|
|
setup() {
|
|
setup() {
|
|
const route = useRoute();
|
|
const route = useRoute();
|
|
// 定义设备id,如果路由中有,那就是设备编辑里面进来的
|
|
// 定义设备id,如果路由中有,那就是设备编辑里面进来的
|
|
const clientId = ref('');
|
|
const clientId = ref('');
|
|
|
|
+ // 待审核记录
|
|
|
|
+ const proportionCheck = ref(null);
|
|
|
|
+ const id = route.query.id || '';
|
|
|
|
+ const type = route.query.type || '';
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
// 加载样式
|
|
// 加载样式
|
|
styleUrl('distributionSet');
|
|
styleUrl('distributionSet');
|
|
|
|
|
|
clientId.value = route.query.clientId || '';
|
|
clientId.value = route.query.clientId || '';
|
|
- const id = route.query.id || '';
|
|
|
|
- const type = route.query.type || '';
|
|
|
|
cofficentForm.clientId = clientId.value;
|
|
cofficentForm.clientId = clientId.value;
|
|
// 如果没有携带编码进来,那就请求接口让用户选择机器编码
|
|
// 如果没有携带编码进来,那就请求接口让用户选择机器编码
|
|
if (!clientId.value) {
|
|
if (!clientId.value) {
|
|
@@ -117,7 +187,9 @@ export default {
|
|
// 如果设备操作里进来的
|
|
// 如果设备操作里进来的
|
|
getProportionFun(2, clientId.value);
|
|
getProportionFun(2, clientId.value);
|
|
}
|
|
}
|
|
|
|
+ getCheckPending();
|
|
}
|
|
}
|
|
|
|
+ console.log("待审核记录1", proportionCheck.value);
|
|
});
|
|
});
|
|
// 获取分销详情填充信息
|
|
// 获取分销详情填充信息
|
|
// 获取分销信息填充
|
|
// 获取分销信息填充
|
|
@@ -128,7 +200,7 @@ export default {
|
|
} else {
|
|
} else {
|
|
res = await getProportion({ adminId: user.id, clientId: id });
|
|
res = await getProportion({ adminId: user.id, clientId: id });
|
|
}
|
|
}
|
|
- console.log('res', res)
|
|
|
|
|
|
+ // console.log('res', res)
|
|
const data = res.data;
|
|
const data = res.data;
|
|
if (data.code === '00000') {
|
|
if (data.code === '00000') {
|
|
cofficentForm.clientId = data.data.clientId;
|
|
cofficentForm.clientId = data.data.clientId;
|
|
@@ -149,7 +221,7 @@ export default {
|
|
distPropList[2]['name1'] = data.data.personageName;
|
|
distPropList[2]['name1'] = data.data.personageName;
|
|
distPropList[2]['name2'] = data.data.personageProportion;
|
|
distPropList[2]['name2'] = data.data.personageProportion;
|
|
}
|
|
}
|
|
- console.log('distPropList1111', distPropList)
|
|
|
|
|
|
+ // console.log('distPropList1111', distPropList)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
const { t } = useI18n();
|
|
const { t } = useI18n();
|
|
@@ -180,6 +252,21 @@ export default {
|
|
showToast(t('distributionSet.addDist.noZero'));
|
|
showToast(t('distributionSet.addDist.noZero'));
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ if (distPropList.length > 0) {
|
|
|
|
+ if (distPropList[0] && distPropList[0]['name2'] == '0') {
|
|
|
|
+ showToast(t('distributionSet.addDist.zeroDis'));
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ if (distPropList[1] && distPropList[1]['name2'] == '0') {
|
|
|
|
+ showToast(t('distributionSet.addDist.zeroDis'));
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ if (distPropList[2] && distPropList[2]['name2'] == '0') {
|
|
|
|
+ showToast(t('distributionSet.addDist.zeroDis'));
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ console.log("分销比例", cofficentForm.distProp)
|
|
let param = {
|
|
let param = {
|
|
adminId: user.id,
|
|
adminId: user.id,
|
|
clientId: cofficentForm.clientId,
|
|
clientId: cofficentForm.clientId,
|
|
@@ -234,7 +321,7 @@ export default {
|
|
busiPopList.value = data.data.map(item => {
|
|
busiPopList.value = data.data.map(item => {
|
|
return { name: item.name != null ? item.name : item.clientId, clientId: item.clientId }
|
|
return { name: item.name != null ? item.name : item.clientId, clientId: item.clientId }
|
|
});
|
|
});
|
|
- console.log(busiPopList.value);
|
|
|
|
|
|
+ // console.log(busiPopList.value);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
// 设备编码选择框
|
|
// 设备编码选择框
|
|
@@ -249,16 +336,60 @@ export default {
|
|
};
|
|
};
|
|
// 点击确定按钮
|
|
// 点击确定按钮
|
|
const busiPopConfirm = ({ selectedOptions }) => {
|
|
const busiPopConfirm = ({ selectedOptions }) => {
|
|
- console.log(selectedOptions[0]);
|
|
|
|
|
|
+ // console.log(selectedOptions[0]);
|
|
busiPopShow.value = false;
|
|
busiPopShow.value = false;
|
|
cofficentForm.clientId = selectedOptions[0].clientId;
|
|
cofficentForm.clientId = selectedOptions[0].clientId;
|
|
|
|
|
|
// 重新获取当前设备的分销情况
|
|
// 重新获取当前设备的分销情况
|
|
getProportionFun(2, selectedOptions[0].clientId);
|
|
getProportionFun(2, selectedOptions[0].clientId);
|
|
|
|
+ getCheckPending();
|
|
};
|
|
};
|
|
const busiPopCancel = () => {
|
|
const busiPopCancel = () => {
|
|
busiPopShow.value = false;
|
|
busiPopShow.value = false;
|
|
};
|
|
};
|
|
|
|
+
|
|
|
|
+ // 获取已提交的审核记录
|
|
|
|
+ const getCheckPending = async () => {
|
|
|
|
+ const { data } = await Api_getCheckPending({ adminId: user.id, clientId: cofficentForm.clientId });
|
|
|
|
+ if (data.code === '00000') {
|
|
|
|
+ // 存在审核记录,则不能再提交
|
|
|
|
+ proportionCheck.value = data.data;
|
|
|
|
+ console.log("待审核记录", proportionCheck.value);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // 撤销分销申请
|
|
|
|
+ const cancelDistri = (value) => {
|
|
|
|
+ showConfirmDialog({
|
|
|
|
+ title: t('user.tips'),
|
|
|
|
+ message: t('distributionSet.changeTips'),
|
|
|
|
+ }).then(async () => {
|
|
|
|
+ const { data } = await Api_cancelDistri({ id: value });
|
|
|
|
+ if (data.code == "00000") {
|
|
|
|
+ showSuccessToast(t('distributionSet.cancelSuccess'));
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ proportionCheck.value = [];
|
|
|
|
+ if (!clientId.value) {
|
|
|
|
+ getDeviceListFun();
|
|
|
|
+ } else {
|
|
|
|
+ if (id) {
|
|
|
|
+ // 如果是从分销列表进来的
|
|
|
|
+ getProportionFun(1, id, type);
|
|
|
|
+ } else {
|
|
|
|
+ // 如果设备操作里进来的
|
|
|
|
+ getProportionFun(2, clientId.value);
|
|
|
|
+ }
|
|
|
|
+ getCheckPending();
|
|
|
|
+ }
|
|
|
|
+ }, 1000);
|
|
|
|
+ } else {
|
|
|
|
+ showFailToast(data.message);
|
|
|
|
+ }
|
|
|
|
+ }).catch((error) => {
|
|
|
|
+ console.error(error);
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
return {
|
|
return {
|
|
onSubmit,
|
|
onSubmit,
|
|
cofficentForm,
|
|
cofficentForm,
|
|
@@ -275,6 +406,8 @@ export default {
|
|
busiPopConfirm,
|
|
busiPopConfirm,
|
|
busiPopCancel,
|
|
busiPopCancel,
|
|
clientId,
|
|
clientId,
|
|
|
|
+ proportionCheck,
|
|
|
|
+ cancelDistri,
|
|
};
|
|
};
|
|
}
|
|
}
|
|
}
|
|
}
|