|
|
@@ -447,7 +447,7 @@
|
|
|
clearable
|
|
|
placeholder="请选择分办单位"
|
|
|
style="width: 100%"
|
|
|
- @change="orgunitChange">
|
|
|
+ @change="orgUnitChange">
|
|
|
<el-option v-for="item in UnitOrgOptions"
|
|
|
:key="item.Id"
|
|
|
:label="item.Fullname"
|
|
|
@@ -470,7 +470,7 @@
|
|
|
class="dialog-footer">
|
|
|
<el-button size="mini"
|
|
|
@click="dialogVisibleCom = false">取 消</el-button>
|
|
|
- <el-button size="mini"
|
|
|
+ <el-button size="small"
|
|
|
type="primary"
|
|
|
@click="companySubmitToSecUnitSeparateMakeSure" :loading="loading">确定</el-button>
|
|
|
</span>
|
|
|
@@ -981,17 +981,22 @@ export default {
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- orgunitChange (val) {
|
|
|
- let deptid = val
|
|
|
- let auditstepcode = 'SUB_OFFICE_JF'
|
|
|
- api.getAuditerByDept(deptid, auditstepcode, this.$axios).then(res => {
|
|
|
+ orgUnitChange (val, way) {
|
|
|
+ if (!val) {
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ let deptId = val
|
|
|
+ let auditStepCode = 'SUB_OFFICE_JF'
|
|
|
+ api.getAuditerByDept(deptId, auditStepCode, this.$axios).then(res => {
|
|
|
this.orgauditOptions = res.data.item
|
|
|
- if (this.orgauditOptions == null || this.orgauditOptions.length === 0) {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '该单位没有分办人员!'
|
|
|
- })
|
|
|
- return false
|
|
|
+ if (way !== 'init') {
|
|
|
+ if (this.orgauditOptions == null || this.orgauditOptions.length === 0) {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '该单位没有分办人员!'
|
|
|
+ })
|
|
|
+ return false
|
|
|
+ }
|
|
|
}
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
@@ -1260,7 +1265,7 @@ export default {
|
|
|
this.UnitOrgOptions = list
|
|
|
// this.UnitOrgOptions = res.data.items['UnitOrgList']
|
|
|
this.allorgunitOptions = res.data.items['Allunitorglist']
|
|
|
- this.orgunitChange(this.UnitOrg)
|
|
|
+ this.orgUnitChange(this.UnitOrg, 'init')
|
|
|
/* this.UnitRelationOptions = res.data.items['UnitRelation']
|
|
|
this.getCityList(res.data.items['GaodeMapChinaAreas'])
|
|
|
this.CompanyTypeOptions = res.data.items['CompanyType'] */
|