flx:提交安全质量待办
This commit is contained in:
parent
c6f8d2fcee
commit
2a7d7f61ce
@ -776,7 +776,7 @@
|
||||
</p>
|
||||
<p class="grid-content" v-if="item.type == 1 && item.violatorId">
|
||||
<span class="label">违章人员:</span
|
||||
><span class="value">{{ personList.find(ele => ele.id == item.violatorId).workerName }}</span>
|
||||
><span class="value">{{ personList.filter(ele => item.violatorId.includes(ele.id)).map(ele => ele.workerName).join('、') }}</span>
|
||||
</p>
|
||||
<p class="grid-content" v-if="item.status == 1">
|
||||
<span class="label">驳回说明:</span
|
||||
@ -875,6 +875,8 @@
|
||||
>
|
||||
<el-select
|
||||
v-model="replyData.violatorId"
|
||||
multiple
|
||||
collapse-tags
|
||||
filterable
|
||||
size="mini"
|
||||
placeholder="请选择"
|
||||
@ -1307,10 +1309,14 @@ loadPersonList(sn) {
|
||||
this.$message.error("请选择违章人员");
|
||||
return;
|
||||
}
|
||||
this.replyData.qualityId = valId
|
||||
this.replyData.createUser = this.userIdInfo
|
||||
const result = {
|
||||
...this.replyData,
|
||||
violatorId: this.replyData.violatorId.join(","),
|
||||
qualityId: valId,
|
||||
createUser: this.userIdInfo,
|
||||
}
|
||||
console.log('整改提交的表单数据:::', this.replyData);
|
||||
addQualityRectifyRecordApi(this.replyData).then(res => {
|
||||
addQualityRectifyRecordApi(result).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.$message.success('提交成功')
|
||||
this.dialogDetil = false
|
||||
|
||||
@ -776,7 +776,7 @@
|
||||
</p>
|
||||
<p class="grid-content" v-if="item.type == 1 && item.violatorId">
|
||||
<span class="label">违章人员:</span
|
||||
><span class="value">{{ personList.find(ele => ele.id == item.violatorId).workerName }}</span>
|
||||
><span class="value">{{ personList.filter(ele => item.violatorId.includes(ele.id)).map(ele => ele.workerName).join('、') }}</span>
|
||||
</p>
|
||||
<p class="grid-content" v-if="item.status == 1">
|
||||
<span class="label">驳回说明:</span
|
||||
@ -875,6 +875,8 @@
|
||||
>
|
||||
<el-select
|
||||
v-model="replyData.violatorId"
|
||||
multiple
|
||||
collapse-tags
|
||||
filterable
|
||||
size="mini"
|
||||
placeholder="请选择"
|
||||
@ -1307,11 +1309,16 @@ if (this.replyData.violatorId == "" && type == 1 && statusType == 2) {
|
||||
this.$message.error("请选择违章人员");
|
||||
return;
|
||||
}
|
||||
this.replyData.qualityId = valId
|
||||
this.replyData.createUser = this.userIdInfo
|
||||
const result = {
|
||||
...this.replyData,
|
||||
violatorId: this.replyData.violatorId.join(","),
|
||||
qualityId: valId,
|
||||
createUser: this.userIdInfo,
|
||||
}
|
||||
|
||||
console.log('整改提交的表单数据:::', this.replyData);
|
||||
|
||||
addSafeQualityRectifyRecordApi(this.replyData).then(res => {
|
||||
addSafeQualityRectifyRecordApi(result).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.$message.success('提交成功')
|
||||
this.dialogDetil = false
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user