|
@@ -8,14 +8,14 @@
|
|
|
{{ selectedParent?.accountname }}
|
|
{{ selectedParent?.accountname }}
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="所有者类型" prop="userinfotype">
|
|
<el-form-item label="所有者类型" prop="userinfotype">
|
|
|
- <el-radio-group v-model="formData.userinfotype" :disabled="!!selectedRow">
|
|
|
|
|
|
|
+ <el-radio-group v-model="formData.userinfotype" :disabled="!!record">
|
|
|
<template v-for="item in getUserInfoTypeList()" :key="item.value">
|
|
<template v-for="item in getUserInfoTypeList()" :key="item.value">
|
|
|
<el-radio :label="item.label" :value="item.value" />
|
|
<el-radio :label="item.label" :value="item.value" />
|
|
|
</template>
|
|
</template>
|
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="机构代码" prop="userid">
|
|
<el-form-item label="机构代码" prop="userid">
|
|
|
- <el-input v-model="formData.userid" maxlength="4" placeholder="请输入" :disabled="!!selectedRow" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.userid" maxlength="4" placeholder="请输入" :disabled="!!record" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="机构名称" prop="accountname">
|
|
<el-form-item label="机构名称" prop="accountname">
|
|
|
<el-input v-model="formData.accountname" maxlength="50" placeholder="请输入" />
|
|
<el-input v-model="formData.accountname" maxlength="50" placeholder="请输入" />
|
|
@@ -99,12 +99,12 @@
|
|
|
<fieldset class="g-fieldset el-form--horizontal">
|
|
<fieldset class="g-fieldset el-form--horizontal">
|
|
|
<legend class="g-fieldset__legend">管理员及账户信息</legend>
|
|
<legend class="g-fieldset__legend">管理员及账户信息</legend>
|
|
|
<el-form-item label="管理员登录账号" prop="logincode">
|
|
<el-form-item label="管理员登录账号" prop="logincode">
|
|
|
- <el-input v-model="formData.logincode" maxlength="50" placeholder="请输入" :disabled="!!selectedRow" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.logincode" maxlength="50" placeholder="请输入" :disabled="!!record" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="管理员名称" prop="username">
|
|
<el-form-item label="管理员名称" prop="username">
|
|
|
- <el-input v-model="formData.username" maxlength="50" placeholder="请输入" :disabled="!!selectedRow" />
|
|
|
|
|
|
|
+ <el-input v-model="formData.username" maxlength="50" placeholder="请输入" :disabled="!!record" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item label="默认登录密码" prop="smpassword" v-if="!selectedRow">
|
|
|
|
|
|
|
+ <el-form-item label="默认登录密码" prop="smpassword" v-if="!record">
|
|
|
<el-input value="123456" disabled />
|
|
<el-input value="123456" disabled />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</fieldset>
|
|
</fieldset>
|
|
@@ -123,7 +123,7 @@
|
|
|
<template #footer>
|
|
<template #footer>
|
|
|
<el-button @click="onCancel(false)">取消</el-button>
|
|
<el-button @click="onCancel(false)">取消</el-button>
|
|
|
<el-button type="primary" @click="onSubmit(2)">保存</el-button>
|
|
<el-button type="primary" @click="onSubmit(2)">保存</el-button>
|
|
|
- <el-button type="primary" @click="onSubmit(4)" v-if="selectedRow?.accountstatus === 4">提交审核</el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" @click="onSubmit(4)" v-if="record?.accountstatus === 4">提交审核</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</app-drawer>
|
|
</app-drawer>
|
|
|
</template>
|
|
</template>
|
|
@@ -146,7 +146,7 @@ const props = defineProps({
|
|
|
selectedParent: {
|
|
selectedParent: {
|
|
|
type: Object as PropType<Model.AreaAndAllChildsRsp>
|
|
type: Object as PropType<Model.AreaAndAllChildsRsp>
|
|
|
},
|
|
},
|
|
|
- selectedRow: {
|
|
|
|
|
|
|
+ record: {
|
|
|
type: Object as PropType<Model.OrganSonRsp>
|
|
type: Object as PropType<Model.OrganSonRsp>
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
@@ -279,7 +279,7 @@ const onSubmit = (modifystatus?: number) => {
|
|
|
formRef.value?.validate((valid) => {
|
|
formRef.value?.validate((valid) => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
loading.value = true
|
|
loading.value = true
|
|
|
- if (props.selectedRow) {
|
|
|
|
|
|
|
+ if (props.record) {
|
|
|
rawData.modifystatus = modifystatus
|
|
rawData.modifystatus = modifystatus
|
|
|
if (rawData.modifystatus === 4) {
|
|
if (rawData.modifystatus === 4) {
|
|
|
organSonEdit({
|
|
organSonEdit({
|
|
@@ -321,7 +321,7 @@ const onSubmit = (modifystatus?: number) => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
- const { userid, modifystatus } = props.selectedRow ?? {}
|
|
|
|
|
|
|
+ const { userid, modifystatus } = props.record ?? {}
|
|
|
if (userid) {
|
|
if (userid) {
|
|
|
run({
|
|
run({
|
|
|
areaid: userid,
|
|
areaid: userid,
|