|
@@ -5,7 +5,7 @@
|
|
:close-on-click-modal="false"
|
|
:close-on-click-modal="false"
|
|
v-dialogDrag
|
|
v-dialogDrag
|
|
width="800px"
|
|
width="800px"
|
|
- @close="close,closeXTable"
|
|
|
|
|
|
+ @close="close(),closeXTable()"
|
|
@keyup.enter.native="doSubmit"
|
|
@keyup.enter.native="doSubmit"
|
|
:visible.sync="visible">
|
|
:visible.sync="visible">
|
|
<el-form size="middle" :model="inputForm" ref="inputForm" v-loading="loading" :class="method==='view'?'readonly':''" :disabled="method==='view'"
|
|
<el-form size="middle" :model="inputForm" ref="inputForm" v-loading="loading" :class="method==='view'?'readonly':''" :disabled="method==='view'"
|
|
@@ -26,7 +26,7 @@
|
|
{required: true, message:'请选择是否拥有信用代码', trigger:'blur'}
|
|
{required: true, message:'请选择是否拥有信用代码', trigger:'blur'}
|
|
]">
|
|
]">
|
|
<el-radio-group v-model="inputForm.hasUscc">
|
|
<el-radio-group v-model="inputForm.hasUscc">
|
|
- <el-radio v-for="item in $dictUtils.getDictList('yes_no')" :label="item.value" :key="item.id">{{item.label}}</el-radio>
|
|
|
|
|
|
+ <el-radio v-for="item in $dictUtils.getDictList('yes_no')" :label="item.value" >{{item.label}}</el-radio>
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -89,11 +89,11 @@
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item label="代表方" prop="deputy"
|
|
|
|
|
|
+ <el-form-item label="代表方" prop="deputyList"
|
|
:rules="[
|
|
:rules="[
|
|
{required: true, message:'请选择代表方', trigger:'blur'}
|
|
{required: true, message:'请选择代表方', trigger:'blur'}
|
|
]">
|
|
]">
|
|
- <el-select v-model="inputForm.deputy" placeholder="请选择" multiple style="width:100%;">
|
|
|
|
|
|
+ <el-select v-model="inputForm.deputyList" placeholder="请选择" multiple style="width:100%;">
|
|
<el-option
|
|
<el-option
|
|
v-for="item in $dictUtils.getDictList('representative')"
|
|
v-for="item in $dictUtils.getDictList('representative')"
|
|
:key="item.value"
|
|
:key="item.value"
|
|
@@ -145,7 +145,7 @@
|
|
<SelectTree
|
|
<SelectTree
|
|
ref="areaTree"
|
|
ref="areaTree"
|
|
:props="{
|
|
:props="{
|
|
- value: 'areaId', // ID字段名
|
|
|
|
|
|
+ value: 'id', // ID字段名
|
|
label: 'name', // 显示名称
|
|
label: 'name', // 显示名称
|
|
children: 'children' // 子级字段名
|
|
children: 'children' // 子级字段名
|
|
}"
|
|
}"
|
|
@@ -184,7 +184,7 @@
|
|
<el-form-item label="开户行信息" prop="bankInfos">
|
|
<el-form-item label="开户行信息" prop="bankInfos">
|
|
<vxe-toolbar>
|
|
<vxe-toolbar>
|
|
<template #buttons>
|
|
<template #buttons>
|
|
- <vxe-button size="mini" @click="insertEvent('bank')">新增</vxe-button>
|
|
|
|
|
|
+ <vxe-button :disabled="method==='view'" size="mini" @click="insertEvent('bank')">新增</vxe-button>
|
|
</template>
|
|
</template>
|
|
</vxe-toolbar>
|
|
</vxe-toolbar>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -228,7 +228,7 @@
|
|
<el-form-item label="联系人信息" prop="linkmanInfos">
|
|
<el-form-item label="联系人信息" prop="linkmanInfos">
|
|
<vxe-toolbar>
|
|
<vxe-toolbar>
|
|
<template #buttons>
|
|
<template #buttons>
|
|
- <vxe-button size="mini" @click="insertEvent('linkman')">新增</vxe-button>
|
|
|
|
|
|
+ <vxe-button :disabled="method==='view'" size="mini" @click="insertEvent('linkman')">新增</vxe-button>
|
|
</template>
|
|
</template>
|
|
</vxe-toolbar>
|
|
</vxe-toolbar>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -376,6 +376,7 @@
|
|
visible: false,
|
|
visible: false,
|
|
loading: false,
|
|
loading: false,
|
|
inputForm: {
|
|
inputForm: {
|
|
|
|
+ deputyList: [],
|
|
permissionFlag: '', // 判断是否为当前登录人参数
|
|
permissionFlag: '', // 判断是否为当前登录人参数
|
|
name: '',
|
|
name: '',
|
|
hasUscc: '',
|
|
hasUscc: '',
|
|
@@ -487,6 +488,7 @@
|
|
})
|
|
})
|
|
this.method = method
|
|
this.method = method
|
|
this.inputForm = {
|
|
this.inputForm = {
|
|
|
|
+ deputyList: [],
|
|
name: '',
|
|
name: '',
|
|
hasUscc: '',
|
|
hasUscc: '',
|
|
uscCode: '',
|
|
uscCode: '',
|
|
@@ -547,16 +549,25 @@
|
|
if (method === 'edit' || method === 'view') { // 修改或者查看
|
|
if (method === 'edit' || method === 'view') { // 修改或者查看
|
|
this.loading = true
|
|
this.loading = true
|
|
this.workClientService.findById(this.inputForm.id).then(({data}) => {
|
|
this.workClientService.findById(this.inputForm.id).then(({data}) => {
|
|
- this.inputForm = this.recover(this.inputForm, data)
|
|
|
|
|
|
+ // this.inputForm = this.recover(this.inputForm, data)
|
|
data.workClientBank.forEach(i => {
|
|
data.workClientBank.forEach(i => {
|
|
this.bankInfos.push(i)
|
|
this.bankInfos.push(i)
|
|
})
|
|
})
|
|
data.workClientLinkman.forEach(i => {
|
|
data.workClientLinkman.forEach(i => {
|
|
this.linkmanInfos.push(i)
|
|
this.linkmanInfos.push(i)
|
|
})
|
|
})
|
|
- this.inputForm = data.workClientInfo
|
|
|
|
|
|
+ const deputyList = []
|
|
|
|
+ if (data.workClientInfo.deputy !== null && data.workClientInfo.deputy !== undefined && data.workClientInfo.deputy !== '') {
|
|
|
|
+ data.workClientInfo.deputy.split(',').forEach(item => {
|
|
|
|
+ deputyList.push(item)
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ this.inputForm = JSON.parse(JSON.stringify(data.workClientInfo))
|
|
this.inputForm.permissionFlag = data.permissionFlag
|
|
this.inputForm.permissionFlag = data.permissionFlag
|
|
|
|
+ this.inputForm.deputyList = deputyList
|
|
this.inputForm = JSON.parse(JSON.stringify(this.inputForm))
|
|
this.inputForm = JSON.parse(JSON.stringify(this.inputForm))
|
|
|
|
+ this.inputForm.hasUscc = JSON.stringify(this.inputForm.hasUscc)
|
|
|
|
+ console.log(this.inputForm)
|
|
this.loading = false
|
|
this.loading = false
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -584,7 +595,7 @@
|
|
} else {
|
|
} else {
|
|
this.inputForm.status = '5'
|
|
this.inputForm.status = '5'
|
|
}
|
|
}
|
|
- this.projectService.save(this.inputForm).then(({data}) => {
|
|
|
|
|
|
+ this.workClientService.save(this.inputForm).then(({data}) => {
|
|
this.close()
|
|
this.close()
|
|
this.$message.success(data)
|
|
this.$message.success(data)
|
|
this.$emit('refreshDataList')
|
|
this.$emit('refreshDataList')
|