未符合项整改流程
This commit is contained in:
@@ -80,7 +80,6 @@
|
|||||||
class="common-button-default"
|
class="common-button-default"
|
||||||
size="small"
|
size="small"
|
||||||
type="primary"
|
type="primary"
|
||||||
v-btn-permission="'5905d0743c3504799aee83ac9697f8c5'"
|
|
||||||
@click="dutyEngineerList">
|
@click="dutyEngineerList">
|
||||||
批量分发负责人
|
批量分发负责人
|
||||||
</el-button>
|
</el-button>
|
||||||
@@ -88,7 +87,8 @@
|
|||||||
<el-table
|
<el-table
|
||||||
:data="dataList"
|
:data="dataList"
|
||||||
border
|
border
|
||||||
@selection-change="handleSelectionChange"
|
ref="multipleTable"
|
||||||
|
@select="handleSelectionChange"
|
||||||
height="49%"
|
height="49%"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||||
@@ -101,12 +101,12 @@
|
|||||||
<el-table-column prop="planCloseTime" label="整改完成时间"/>
|
<el-table-column prop="planCloseTime" label="整改完成时间"/>
|
||||||
<el-table-column prop="responsibleUnit" label="责任部门"/>
|
<el-table-column prop="responsibleUnit" label="责任部门"/>
|
||||||
<el-table-column prop="dutyEngineer" label="责任工程师"/>
|
<el-table-column prop="dutyEngineer" label="责任工程师"/>
|
||||||
<el-table-column label="选择分发责任人" prop="duty">
|
<el-table-column label="选择分发责任人" prop="dutyPeople">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.show">
|
<span v-if="scope.row.show">
|
||||||
<el-input size="mini" placeholder="请输入内容" @blur="choiceDuty" v-model="scope.row.duty"></el-input>
|
<el-input v-model="scope.row.dutyPeople" size="mini" placeholder="请输入内容" @click.native="choiceDuty"></el-input>
|
||||||
</span>
|
</span>
|
||||||
<span v-else :disabled="true">{{scope.row.duty}}</span>
|
<span v-else>{{scope.row.dutyPeople}}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -253,45 +253,7 @@ export default {
|
|||||||
active: '1', // 默认显示
|
active: '1', // 默认显示
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
saveLoading: false,
|
saveLoading: false,
|
||||||
dataList: [
|
dataList: [],
|
||||||
{
|
|
||||||
standId: '1',
|
|
||||||
productName: '1',
|
|
||||||
itemsNum: '1',
|
|
||||||
itemsName: '1',
|
|
||||||
planCloseTime: '1',
|
|
||||||
responsibleUnit: '1',
|
|
||||||
dutyEngineer: '1',
|
|
||||||
duty: '',
|
|
||||||
},{
|
|
||||||
standId: '332',
|
|
||||||
productName: '333',
|
|
||||||
itemsNum: '33',
|
|
||||||
itemsName: '33',
|
|
||||||
planCloseTime: '33',
|
|
||||||
responsibleUnit: '33',
|
|
||||||
dutyEngineer: '33',
|
|
||||||
duty: ''
|
|
||||||
},{
|
|
||||||
standId: '312`',
|
|
||||||
productName: '31312',
|
|
||||||
itemsNum: '31`2',
|
|
||||||
itemsName: '312`1`',
|
|
||||||
planCloseTime: '321`3`2',
|
|
||||||
responsibleUnit: '312`123`',
|
|
||||||
dutyEngineer: '312123',
|
|
||||||
duty: '121'
|
|
||||||
},{
|
|
||||||
standId: '32123',
|
|
||||||
productName: '32132',
|
|
||||||
itemsNum: '312321',
|
|
||||||
itemsName: '3123',
|
|
||||||
planCloseTime: '3123',
|
|
||||||
responsibleUnit: '3123',
|
|
||||||
dutyEngineer: '3123',
|
|
||||||
duty: ''
|
|
||||||
},
|
|
||||||
],
|
|
||||||
// 新增选择分发责任人数组
|
// 新增选择分发责任人数组
|
||||||
multipleSelection: [],
|
multipleSelection: [],
|
||||||
// 当前页数
|
// 当前页数
|
||||||
@@ -333,8 +295,51 @@ export default {
|
|||||||
ProcessTitle
|
ProcessTitle
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
this.getData()
|
||||||
|
this.getTree()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getData() {
|
||||||
|
this.dataList = [
|
||||||
|
{
|
||||||
|
standId: '1',
|
||||||
|
productName: '1',
|
||||||
|
itemsNum: '1',
|
||||||
|
itemsName: '1',
|
||||||
|
planCloseTime: '1',
|
||||||
|
responsibleUnit: '1',
|
||||||
|
dutyEngineer: '1',
|
||||||
|
dutyPeople: '',
|
||||||
|
},{
|
||||||
|
standId: '332',
|
||||||
|
productName: '333',
|
||||||
|
itemsNum: '33',
|
||||||
|
itemsName: '33',
|
||||||
|
planCloseTime: '33',
|
||||||
|
responsibleUnit: '33',
|
||||||
|
dutyEngineer: '33',
|
||||||
|
dutyPeople: ''
|
||||||
|
},{
|
||||||
|
standId: '312`',
|
||||||
|
productName: '31312',
|
||||||
|
itemsNum: '31`2',
|
||||||
|
itemsName: '312`1`',
|
||||||
|
planCloseTime: '321`3`2',
|
||||||
|
responsibleUnit: '312`123`',
|
||||||
|
dutyEngineer: '312123',
|
||||||
|
dutyPeople: '121'
|
||||||
|
},{
|
||||||
|
standId: '32123',
|
||||||
|
productName: '32132',
|
||||||
|
itemsNum: '312321',
|
||||||
|
itemsName: '3123',
|
||||||
|
planCloseTime: '3123',
|
||||||
|
responsibleUnit: '3123',
|
||||||
|
dutyEngineer: '3123',
|
||||||
|
dutyPeople: ''
|
||||||
|
},
|
||||||
|
]
|
||||||
|
},
|
||||||
getList() {
|
getList() {
|
||||||
this.myLoading.loadData = true
|
this.myLoading.loadData = true
|
||||||
this.$http.get('sarStandUnqualified/sar-stand-unqualified', {
|
this.$http.get('sarStandUnqualified/sar-stand-unqualified', {
|
||||||
@@ -357,32 +362,23 @@ export default {
|
|||||||
if (this.multipleSelection.length === 0) {
|
if (this.multipleSelection.length === 0) {
|
||||||
this.$message.warning("请选择至少一条数据进行分发责任人");
|
this.$message.warning("请选择至少一条数据进行分发责任人");
|
||||||
} else {
|
} else {
|
||||||
this.multipleSelection.forEach((val, index)=> {
|
this.multipleSelection.map((i, index)=> {
|
||||||
val.show = true
|
i.show = true
|
||||||
this.$set(val, index)
|
this.$set(this.dataList, i, index)
|
||||||
})
|
})
|
||||||
// this.modalshowflag = true
|
|
||||||
// this.$set(this.dataList.duty)
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 选择勾选项的集合
|
// 选择勾选项的集合
|
||||||
handleSelectionChange(val) {
|
handleSelectionChange(value) {
|
||||||
this.multipleSelection = val;
|
this.multipleSelection = value
|
||||||
console.log(this.multipleSelection)
|
console.log(value)
|
||||||
},
|
},
|
||||||
// 选择分发责任人时
|
// 选择分发责任人时
|
||||||
choiceDuty() {
|
choiceDuty(type, title, id) {
|
||||||
for (let i = 0; i < this.multipleSelection.length; i++ ) {
|
this.nodeList = []
|
||||||
if (this.multipleSelection[i].duty !== '') {
|
this.nodeList.push(id)
|
||||||
console.log(i)
|
this.drawerTitle = title
|
||||||
for (let b = 0; b < this.multipleSelection.length; b++) {
|
this.modalshowflag = true
|
||||||
this.multipleSelection[b].duty = this.multipleSelection[i].duty
|
|
||||||
this.multipleSelection.forEach(val=> {
|
|
||||||
val.show = false
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
selectPeople(row) {
|
selectPeople(row) {
|
||||||
this.modalshowflag = true
|
this.modalshowflag = true
|
||||||
@@ -421,6 +417,18 @@ export default {
|
|||||||
},
|
},
|
||||||
// 流程节点负责人抽屉保存按钮
|
// 流程节点负责人抽屉保存按钮
|
||||||
saveUserInfo () {
|
saveUserInfo () {
|
||||||
|
// 选取负责人时的操作
|
||||||
|
for (let i = 0; i < this.multipleSelection.length; i++ ) {
|
||||||
|
this.multipleSelection[i].dutyPeople = this.roleRow.name
|
||||||
|
for (let b = 0; b < this.multipleSelection.length; b++) {
|
||||||
|
this.multipleSelection[b].dutyPeople = this.multipleSelection[i].dutyPeople
|
||||||
|
this.dataList.forEach(val=> {
|
||||||
|
val.show = false
|
||||||
|
})
|
||||||
|
}
|
||||||
|
this.multipleSelection = []
|
||||||
|
this.$refs.multipleTable.clearSelection();
|
||||||
|
}
|
||||||
if (this.type === 'dockUser') {
|
if (this.type === 'dockUser') {
|
||||||
this.roleForm.dockUser = this.roleRow.id
|
this.roleForm.dockUser = this.roleRow.id
|
||||||
this.roleForm.dockUserName = this.roleRow.name
|
this.roleForm.dockUserName = this.roleRow.name
|
||||||
|
|||||||
Reference in New Issue
Block a user