app隐患接口修改-相关方整改不需要提交验收人

hyx_2025-01-13_xgf2.0
Shan Ao 2025-05-26 10:00:49 +08:00
parent be35580a81
commit 3aa9fc61e6
2 changed files with 5 additions and 74 deletions

View File

@ -72,14 +72,15 @@ export default {
async getData() {
let resData = await getHiddenList({
DISPOSESTATE: 2,
isIndex: 2,
isIndex: 0,
USERDEPT: this.$store.getters.getUserInfo.DEPARTMENT_ID,
SELFUSERID: this.$store.getters.getUserInfo.USER_ID,
currentPage: this.currentPage,
showCount: this.pageSize,
totalResult: 0,
postMethod: 'application/json',
CORPINFO_ID:''
XGF_CORPINFO_ID: this.$store.getters.getUserInfo.CORPINFO_ID,
CORPINFO_ID: ''
});
this.list = [...this.list, ...resData.varList];
this.totalPage = resData.page.totalPage;

View File

@ -73,51 +73,6 @@
label="整改后照片"
prop="afterRectificationFile"
/>
<view>
<u-form-item label="验收人员">
<u-button
custom-style="width: 100rpx;margin-right:0"
type="primary"
size="mini"
text="添加"
@click="fnAddAcceptanceList"
/>
</u-form-item>
<u-line/>
<view
v-for="(item, index) in acceptanceList"
:key="item.id"
style="
position: relative;
border: 1px dashed #ccc;
padding: 20rpx 20rpx 20rpx 40rpx;
"
class="mt-10"
>
<app-department
:id.sync="item.DEPARTMENT_ID"
:name.sync="item.DEPARTMENT_NAME"
:form.sync="acceptanceList[index]"
clear-key="USER_NAME,USER_ID"
label="验收部门"
/>
<app-personnel
:id.sync="item.USER_ID"
:name.sync="item.USER_NAME"
:department-id="item.DEPARTMENT_ID"
:is-allow-selection-current-person="false"
label="验收人"
/>
<u-icon
v-if="index !== 0"
name="close-circle-fill"
color="#ff2929"
size="20"
custom-style="position: absolute;right: -20rpx;top: -20rpx"
@click="acceptanceList.splice(index, 1)"
/>
</view>
</view>
<u-form-item label="是否有整改方案" prop="HAVESCHEME" required>
<u-radio-group v-model="form.HAVESCHEME" direction="horizontal">
<u-radio name="1" label="是"/>
@ -277,8 +232,6 @@ export default {
AppHiddenView,
AppTime,
AppUpload,
AppDepartment,
AppPersonnel,
},
data() {
return {
@ -399,46 +352,23 @@ export default {
message: "请上传方案照片",
trigger: ["blur", "change"],
},
},
acceptanceList: []
}
}
},
onLoad(query) {
this.hiddenId = query.HIDDEN_ID
this.fnAddAcceptanceList()
},
methods: {
fnAddAcceptanceList() {
this.acceptanceList.push({
DEPARTMENT_NAME: "",
DEPARTMENT_ID: "",
USER_NAME: "",
USER_ID: "",
id: uni.$u.guid(),
});
},
async fnSubmit() {
const isValidate = await this.$refs.formRef.validate()
if (!isValidate) return;
if (this.form.IS_NORMAL === 1 || this.form.IS_NORMAL === "1") {
for (let i = 0; i < this.acceptanceList.length; i++) {
if (
!this.acceptanceList[i].DEPARTMENT_NAME ||
!this.acceptanceList[i].USER_NAME
) {
uni.showToast({
icon: "none",
title: "请选择部门人员",
});
return;
}
}
await setHiddenRectificationSubmit({
HIDDEN_ID: this.hiddenId,
...this.form,
SCREENINGDATE: this.info.CREATTIME,
LISTNAME: this.info.LIST_NAME,
OTHER: JSON.stringify(this.acceptanceList),
IS_XGF: "1",
});
for (let i = 0; i < this.form.afterRectificationFile.length; i++) {
await this.fnUploadFile(