|
|
@@ -14,6 +14,20 @@
|
|
|
</template>
|
|
|
<a-form class="inlineForm"
|
|
|
:model="formState">
|
|
|
+ <Des :list="desList"
|
|
|
+ :slotDesName="'账户角色'">
|
|
|
+ <a-checkbox-group class="commonCheckboxGroup"
|
|
|
+ v-model:value="formState.roleids">
|
|
|
+ <a-row>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-checkbox :value="22">业务员</a-checkbox>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-checkbox :value="23">跟单员</a-checkbox>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ </a-checkbox-group>
|
|
|
+ </Des>
|
|
|
<a-row :gutter="24">
|
|
|
<a-col :span="12">
|
|
|
<a-form-item label="登录账号"
|
|
|
@@ -55,15 +69,18 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import { defineComponent, PropType, watchEffect } from 'vue';
|
|
|
+import { defineComponent, PropType, ref, watchEffect } from 'vue';
|
|
|
import { closeModal } from '@/common/setup/modal/index';
|
|
|
import { mergeTwoObj } from '@/utils/objHandle';
|
|
|
import { handleBusinessForm } from '../setup';
|
|
|
import { ErmcpLoginUser } from '@/services/go/ermcp/account/interface';
|
|
|
+import { Des, handleDesList } from '@/common/components/commonDes';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'business-detail',
|
|
|
- components: {},
|
|
|
+ components: {
|
|
|
+ Des,
|
|
|
+ },
|
|
|
props: {
|
|
|
selectedData: {
|
|
|
type: Object as PropType<ErmcpLoginUser>,
|
|
|
@@ -73,8 +90,15 @@ export default defineComponent({
|
|
|
setup(props) {
|
|
|
const { visible, cancel } = closeModal('detail');
|
|
|
const { formState } = handleBusinessForm();
|
|
|
+ const { desList, getDesList } = handleDesList();
|
|
|
watchEffect(() => {
|
|
|
if (visible.value) {
|
|
|
+ const data = props.selectedData;
|
|
|
+ getDesList([
|
|
|
+ { label: '登录账号', value: data.logincode },
|
|
|
+ { label: '账户名称', value: data.accountname },
|
|
|
+ { label: '手机号码', value: data.mobile },
|
|
|
+ ]);
|
|
|
mergeTwoObj(formState, props.selectedData);
|
|
|
// roletype :string;//角色类型(逗号隔开,如22,23), 22:业务员 23:跟单员 24:交易员
|
|
|
formState.roleids = props.selectedData.roletype.split(',').map((e) => +e);
|
|
|
@@ -84,6 +108,7 @@ export default defineComponent({
|
|
|
visible,
|
|
|
cancel,
|
|
|
formState,
|
|
|
+ desList,
|
|
|
maskClosableFlag: false,
|
|
|
};
|
|
|
},
|