修改bug 52201 未符合项流程-起草,添加,查询责任部门是否为选人组件(晖哥确认下)
This commit is contained in:
@@ -162,9 +162,11 @@
|
||||
</el-form-item>
|
||||
<el-form-item label="责任部门" class="search-item">
|
||||
<el-input
|
||||
:config="zrbmOptions"
|
||||
clearable
|
||||
v-model="queryUnqualidiedData.responsibleUnit"
|
||||
placeholder="请输入"
|
||||
>
|
||||
placeholder="查询责任部门"
|
||||
@click.native="choiceZRBM('ZRBMId', '查询责任部门', queryUnqualidiedData.responsibleUnit)">
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item class="search-item btn-box">
|
||||
@@ -317,6 +319,12 @@
|
||||
:nodeList="nodeList"
|
||||
@checkedRole="drawerCheck"
|
||||
/>
|
||||
<Mechanism-tree
|
||||
is-title="选择部门信息"
|
||||
:is-visible.sync="modalshowflagZRBM"
|
||||
:nodeList="nodeListZRBM"
|
||||
@checkedRole="drawerCheckZRBM"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -339,6 +347,8 @@ export default {
|
||||
name: "wfhxzgStep1",
|
||||
data() {
|
||||
return {
|
||||
modalshowflagZRBM: false,
|
||||
nodeListZRBM: [],
|
||||
loading: false,
|
||||
submitFlag: '', //是否是修改节点
|
||||
commentText: '', // 意见
|
||||
@@ -404,6 +414,32 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
drawerCheckZRBM(data) {
|
||||
let idList = ''
|
||||
let nameList = ''
|
||||
data.forEach(item => {
|
||||
// if (item.hasChild === '0') {
|
||||
if (nameList.length > 0) {
|
||||
nameList += ','
|
||||
idList += ','
|
||||
}
|
||||
idList += item.id
|
||||
nameList += item.name
|
||||
// }
|
||||
})
|
||||
if (this.drawerTitle === '责任部门') {
|
||||
this.sarStandardsInfoEO.ZRBMId = idList;
|
||||
this.queryUnqualidiedData.responsibleUnit = nameList;
|
||||
} else if (this.drawerTitle === '查询责任部门') {
|
||||
this.queryUnqualidiedData.responsibleUnit = nameList
|
||||
}
|
||||
},
|
||||
choiceZRBM(type, title, id) {
|
||||
this.nodeListZRBM = []
|
||||
this.nodeListZRBM.push(id)
|
||||
this.drawerTitle = title
|
||||
this.modalshowflagZRBM = true
|
||||
},
|
||||
getHistoryData() {
|
||||
return new Promise((resolve, reject) => {
|
||||
inboundLiaisonDetail({
|
||||
@@ -808,7 +844,7 @@ export default {
|
||||
<style lang="less">
|
||||
.wfhxzgStep1 {
|
||||
.el-drawer__container {
|
||||
|
||||
|
||||
}
|
||||
/*.el-table{*/
|
||||
/* overflow: auto;*/
|
||||
|
||||
Reference in New Issue
Block a user