|
@@ -345,9 +345,9 @@
|
|
|
type="text"
|
|
|
v-if="
|
|
|
scope.row.caoZuoType == '0' &&
|
|
|
- scope.row.isCaoZuoDept == 0 &&
|
|
|
- (scope.row.currentState == '未通过' ||
|
|
|
- scope.row.currentState == '待处理')
|
|
|
+ scope.row.isCaoZuoDept == 0 &&
|
|
|
+ (scope.row.currentState == '未通过' ||
|
|
|
+ scope.row.currentState == '待处理')
|
|
|
"
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
>整改</el-button
|
|
@@ -358,8 +358,8 @@
|
|
|
@click="shenpifun(scope.row)"
|
|
|
v-if="
|
|
|
queryParams.caoZuoType == 0 &&
|
|
|
- scope.row.isShenPi == 0 &&
|
|
|
- scope.row.currentState == '待验收'
|
|
|
+ scope.row.isShenPi == 0 &&
|
|
|
+ scope.row.currentState == '待验收'
|
|
|
"
|
|
|
>审批</el-button
|
|
|
>
|
|
@@ -413,7 +413,7 @@
|
|
|
@change="unitCheckIdfun"
|
|
|
clearable
|
|
|
placeholder="请选择检查单位"
|
|
|
- :disabled="disabled || this.isdisabled == true"
|
|
|
+ :disabled="disabled && btnnum != 0 && btnnum != 1 && zg == 3"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="dict in unitId"
|
|
@@ -429,7 +429,7 @@
|
|
|
@change="inspectedUnitfun"
|
|
|
clearable
|
|
|
placeholder="请选择受检单位"
|
|
|
- :disabled="disabled || this.isdisabled == true"
|
|
|
+ :disabled="disabled && btnnum != 0 && btnnum != 1 && zg == 3"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="dict in unitId"
|
|
@@ -439,30 +439,10 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <!-- <el-form-item label="检查单位" prop="unitCheck">
|
|
|
- <el-select v-model="form.unitCheck" clearable placeholder="请选择检查单位">
|
|
|
- <el-option
|
|
|
- v-for="dict in unitId"
|
|
|
- :key="dict.deptId"
|
|
|
- :label="dict.deptName"
|
|
|
- :value="dict.deptId"
|
|
|
- ></el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>-->
|
|
|
- <!-- <el-form-item label="受检单位" prop="inspectedUnit">
|
|
|
- <el-select v-model="form.inspectedUnit" clearable placeholder="请选择受检单位">
|
|
|
- <el-option
|
|
|
- v-for="dict in unitId"
|
|
|
- :key="dict.deptId"
|
|
|
- :label="dict.deptName"
|
|
|
- :value="dict.deptId"
|
|
|
- ></el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>-->
|
|
|
<el-form-item label="类型" prop="inspectionType">
|
|
|
<el-select
|
|
|
v-model="form.inspectionType"
|
|
|
- :disabled="disabled"
|
|
|
+ :disabled="disabled && btnnum != 0 && btnnum != 1 && zg == 3"
|
|
|
clearable
|
|
|
placeholder="请选择类型"
|
|
|
>
|
|
@@ -474,9 +454,6 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <!-- <el-form-item label="单位检查_id" prop="unitCheckId">
|
|
|
- <el-input v-model="form.unitCheckId" placeholder="请输入单位检查_id" />
|
|
|
- </el-form-item>-->
|
|
|
<el-form-item label="检查时间" prop="inspectionTime">
|
|
|
<el-date-picker
|
|
|
clearable
|
|
@@ -486,13 +463,13 @@
|
|
|
default-time="00:00:00"
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
placeholder="选择检查时间"
|
|
|
- :disabled="disabled || this.isdisabled == true"
|
|
|
+ :disabled="disabled && btnnum != 0 && btnnum != 1 && zg == 3"
|
|
|
></el-date-picker>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="检查地点" prop="inspectionSite">
|
|
|
<el-input
|
|
|
v-model="form.inspectionSite"
|
|
|
- :disabled="disabled"
|
|
|
+ :disabled="disabled && btnnum != 0 && btnnum != 1 && zg == 3"
|
|
|
placeholder="请输入检查地点"
|
|
|
/>
|
|
|
</el-form-item>
|
|
@@ -517,7 +494,7 @@
|
|
|
default-time="00:00:00"
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
placeholder="选择整改时间"
|
|
|
- :disabled="disabled"
|
|
|
+ :disabled="disabled && btnnum != 0 && btnnum != 1 && zg == 3"
|
|
|
></el-date-picker>
|
|
|
</el-form-item>
|
|
|
<el-form-item
|
|
@@ -530,7 +507,7 @@
|
|
|
clearable
|
|
|
@change="chargePeoplefun"
|
|
|
placeholder="请选择受检负责人"
|
|
|
- :disabled="disabled"
|
|
|
+ :disabled="disabled && btnnum != 0 && btnnum != 1 && zg != 3"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="dict in peopleIds"
|
|
@@ -540,46 +517,13 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <!-- <el-form-item label="负责人" prop="chargePeople">
|
|
|
- <el-select
|
|
|
- v-model="form.chargePeople"
|
|
|
- clearable
|
|
|
- @change="peopleIdfun"
|
|
|
- ref="peopleId"
|
|
|
- placeholder="请选择负责人"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="dict in peopleIds"
|
|
|
- :key="dict.id"
|
|
|
- :label="dict.name"
|
|
|
- :value="dict.id"
|
|
|
- ></el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>-->
|
|
|
- <!-- <el-form-item label="当前状态" prop="currentState">
|
|
|
- <el-input v-model="form.currentState" placeholder="请输入当前状态" />
|
|
|
- </el-form-item>-->
|
|
|
- <!-- <el-form-item label="是由" prop="question">
|
|
|
- <el-input v-model="form.question" placeholder="请输入是由" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="创建人ID" prop="createUserId">
|
|
|
- <el-input v-model="form.createUserId" placeholder="请输入创建人ID" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="创建人" prop="createUser">
|
|
|
- <el-input v-model="form.createUser" placeholder="请输入创建人" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="负责人ID" prop="chargePeopleId">
|
|
|
- <el-input v-model="form.chargePeopleId" placeholder="请输入负责人ID" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="负责人" prop="chargePeople">
|
|
|
- <el-input v-model="form.chargePeople" placeholder="请输入负责人" />
|
|
|
- </el-form-item>-->
|
|
|
+
|
|
|
<div class="jiben" v-if="queryParams.caoZuoType == 0">存在问题</div>
|
|
|
<div class="jiben" v-if="queryParams.caoZuoType == 1">加分事由</div>
|
|
|
<el-form-item label prop="question">
|
|
|
<el-input
|
|
|
v-model="form.question"
|
|
|
- :disabled="disabled"
|
|
|
+ :disabled="disabled && btnnum != 0 && btnnum != 1 && zg == 3"
|
|
|
type="textarea"
|
|
|
placeholder="请输入内容"
|
|
|
/>
|
|
@@ -588,7 +532,7 @@
|
|
|
<el-form-item label prop="correctiveAction" v-if="jiannum != 0">
|
|
|
<el-input
|
|
|
v-model="form.correctiveAction"
|
|
|
- :disabled="disabled"
|
|
|
+ :disabled="disabled && btnnum != 0 && btnnum != 1 && zg != 3"
|
|
|
type="textarea"
|
|
|
placeholder="请输入内容"
|
|
|
/>
|
|
@@ -596,7 +540,6 @@
|
|
|
<div class="jiben" v-if="jiannum != 0">图片举证</div>
|
|
|
<el-form-item label prop="pictureProof" v-if="jiannum != 0">
|
|
|
<imageUpload v-model="form.pictureProof" :limit="1" />
|
|
|
- <!-- <el-input v-model="form.pictureProof" placeholder="请输入图片举证" /> -->
|
|
|
</el-form-item>
|
|
|
<div class="jiben" v-if="jiannum != 0">文件举证</div>
|
|
|
<el-form-item label prop="documentProof" v-if="jiannum != 0">
|
|
@@ -663,7 +606,7 @@
|
|
|
@change="unitCheckIdfun"
|
|
|
clearable
|
|
|
placeholder="请选择检查单位"
|
|
|
- :disabled="disabled || this.isdisabled == true"
|
|
|
+ :disabled="disabled"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="dict in unitId"
|
|
@@ -679,7 +622,7 @@
|
|
|
@change="inspectedUnitfun"
|
|
|
clearable
|
|
|
placeholder="请选择受检单位"
|
|
|
- :disabled="disabled || this.isdisabled == true"
|
|
|
+ :disabled="disabled"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="dict in unitId"
|
|
@@ -763,6 +706,212 @@
|
|
|
<el-button @click="open1 = false" size="btn">取 消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog
|
|
|
+ :title="title"
|
|
|
+ :visible.sync="open3"
|
|
|
+ width="500px"
|
|
|
+ append-to-body
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ >
|
|
|
+ <el-form
|
|
|
+ ref="form"
|
|
|
+ :model="form"
|
|
|
+ :rules="rules"
|
|
|
+ :inline="true"
|
|
|
+ label-width="120px"
|
|
|
+ >
|
|
|
+ <div class="jiben">基本信息</div>
|
|
|
+ <el-form-item label="检查单位" prop="unitCheck">
|
|
|
+ <el-select
|
|
|
+ v-model="form.unitCheck"
|
|
|
+ @change="unitCheckIdfun"
|
|
|
+ clearable
|
|
|
+ placeholder="请选择检查单位"
|
|
|
+ :disabled="disabled"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="dict in unitId"
|
|
|
+ :key="dict.deptId"
|
|
|
+ :label="dict.deptName"
|
|
|
+ :value="dict"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="受检单位" prop="inspectedUnit">
|
|
|
+ <el-select
|
|
|
+ v-model="form.inspectedUnit"
|
|
|
+ @change="inspectedUnitfun"
|
|
|
+ clearable
|
|
|
+ placeholder="请选择受检单位"
|
|
|
+ :disabled="disabled"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="dict in unitId"
|
|
|
+ :key="dict.deptId"
|
|
|
+ :label="dict.deptName"
|
|
|
+ :value="dict"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="类型" prop="inspectionType">
|
|
|
+ <el-select
|
|
|
+ v-model="form.inspectionType"
|
|
|
+ :disabled="disabled"
|
|
|
+ clearable
|
|
|
+ placeholder="请选择类型"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="dict in inspectionType"
|
|
|
+ :key="dict.dictValue"
|
|
|
+ :label="dict.dictLabel"
|
|
|
+ :value="dict.dictValue"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="检查时间" prop="inspectionTime">
|
|
|
+ <el-date-picker
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ v-model="form.inspectionTime"
|
|
|
+ type="datetime"
|
|
|
+ default-time="00:00:00"
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ placeholder="选择检查时间"
|
|
|
+ :disabled="disabled"
|
|
|
+ ></el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="检查地点" prop="inspectionSite">
|
|
|
+ <el-input
|
|
|
+ v-model="form.inspectionSite"
|
|
|
+ :disabled="disabled"
|
|
|
+ placeholder="请输入检查地点"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="分值" prop="score" v-if="jiannum == 0">
|
|
|
+ <!-- <el-input v-model="form.score" type="number" @blur="scoreblur" :disabled="disabled" placeholder="请输入分值" /> -->
|
|
|
+ <el-input-number
|
|
|
+ v-model="form.score"
|
|
|
+ controls-position="right"
|
|
|
+ :min="0"
|
|
|
+ ></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item
|
|
|
+ label="整改时间"
|
|
|
+ prop="rectificationTime"
|
|
|
+ v-if="queryParams.caoZuoType == 0"
|
|
|
+ >
|
|
|
+ <el-date-picker
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ v-model="form.rectificationTime"
|
|
|
+ type="datetime"
|
|
|
+ default-time="00:00:00"
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ placeholder="选择整改时间"
|
|
|
+ :disabled="disabled"
|
|
|
+ ></el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item
|
|
|
+ label="受检负责人"
|
|
|
+ prop="chargePeople"
|
|
|
+ v-if="jiannum != 0"
|
|
|
+ >
|
|
|
+ <el-select
|
|
|
+ v-model="form.chargePeople"
|
|
|
+ clearable
|
|
|
+ @change="chargePeoplefun"
|
|
|
+ placeholder="请选择受检负责人"
|
|
|
+ :disabled="disabled"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="dict in peopleIds"
|
|
|
+ :key="dict.id"
|
|
|
+ :label="dict.name"
|
|
|
+ :value="dict"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <div class="jiben" v-if="queryParams.caoZuoType == 0">存在问题</div>
|
|
|
+ <div class="jiben" v-if="queryParams.caoZuoType == 1">加分事由</div>
|
|
|
+ <el-form-item label prop="question">
|
|
|
+ <el-input
|
|
|
+ v-model="form.question"
|
|
|
+ :disabled="disabled"
|
|
|
+ type="textarea"
|
|
|
+ placeholder="请输入内容"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <div class="jiben" v-if="jiannum != 0">整改措施</div>
|
|
|
+ <el-form-item label prop="correctiveAction" v-if="jiannum != 0">
|
|
|
+ <el-input
|
|
|
+ v-model="form.correctiveAction"
|
|
|
+ :disabled="disabled"
|
|
|
+ type="textarea"
|
|
|
+ placeholder="请输入内容"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <div class="jiben" v-if="jiannum != 0">图片举证</div>
|
|
|
+ <el-form-item label prop="pictureProof" v-if="jiannum != 0">
|
|
|
+ <imageUpload v-model="form.pictureProof" :limit="1" />
|
|
|
+ </el-form-item>
|
|
|
+ <div class="jiben" v-if="jiannum != 0">文件举证</div>
|
|
|
+ <el-form-item label prop="documentProof" v-if="jiannum != 0">
|
|
|
+ <!-- <fileUpload
|
|
|
+ v-model="form.documentProof"
|
|
|
+ :limit="1"
|
|
|
+ :class="{ active: isActive }"
|
|
|
+ /> -->
|
|
|
+ <input
|
|
|
+ label="附件名称"
|
|
|
+ v-model="form.wenjianname"
|
|
|
+ style="width: 600px"
|
|
|
+ class="wenjian"
|
|
|
+ />
|
|
|
+ <a
|
|
|
+ :href="url+form.documentProof"
|
|
|
+ :download="form.wenjianname"
|
|
|
+ title="下载"
|
|
|
+ style="color: white; margin-left: 10px"
|
|
|
+ class="downloadfile"
|
|
|
+ >下载附件</a
|
|
|
+ >
|
|
|
+ </el-form-item>
|
|
|
+ <div class="jiben" v-if="currentState == 1">未通过原因</div>
|
|
|
+ <el-form-item label prop="score" v-if="currentState == 1">
|
|
|
+ <el-input
|
|
|
+ v-model="form.reasonReturn"
|
|
|
+ :disabled="disabled || curr"
|
|
|
+ type="textarea"
|
|
|
+ placeholder="请输入未通过原因"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click="submitForm"
|
|
|
+ v-if="btnnum != 0 && btnnum != 1 && zg != 3"
|
|
|
+ >确 定</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click="submitForm2"
|
|
|
+ v-if="btnnum != 0 && btnnum != 1 && zg == 3"
|
|
|
+ >确 定</el-button
|
|
|
+ >
|
|
|
+ <el-button type="primary" @click="tongguofun" v-if="btnnum == 0"
|
|
|
+ >通 过</el-button
|
|
|
+ >
|
|
|
+ <el-button type="primary" @click="zhenggaifun" v-if="btnnum == 0"
|
|
|
+ >重新整改</el-button
|
|
|
+ >
|
|
|
+ <el-button type="primary" @click="weitongguofun" v-if="btnnum == 1"
|
|
|
+ >确 定</el-button
|
|
|
+ >
|
|
|
+ <el-button @click="cancel" size="btn">取 消</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -780,7 +929,7 @@ import {
|
|
|
editissuccess,
|
|
|
editisfalse,
|
|
|
bumenlist,
|
|
|
- listRegularinfos,
|
|
|
+ listRegularinfos
|
|
|
} from "@/api/bdglregular/regularinfo";
|
|
|
import { getUserProfile } from "@/api/system/user";
|
|
|
export default {
|
|
@@ -830,7 +979,7 @@ export default {
|
|
|
correctiveAction: null,
|
|
|
pictureProof: null,
|
|
|
documentProof: null,
|
|
|
- caoZuoType: 0,
|
|
|
+ caoZuoType: 0
|
|
|
},
|
|
|
// 用户
|
|
|
user: {},
|
|
@@ -841,27 +990,27 @@ export default {
|
|
|
// 表单校验
|
|
|
rules: {
|
|
|
unitCheck: [
|
|
|
- { required: true, message: "检查单位不能为空", trigger: "change" },
|
|
|
+ { required: true, message: "检查单位不能为空", trigger: "change" }
|
|
|
],
|
|
|
inspectedUnit: [
|
|
|
- { required: true, message: "受检单位不能为空", trigger: "change" },
|
|
|
+ { required: true, message: "受检单位不能为空", trigger: "change" }
|
|
|
],
|
|
|
inspectionType: [
|
|
|
- { required: true, message: "类型不能为空", trigger: "change" },
|
|
|
+ { required: true, message: "类型不能为空", trigger: "change" }
|
|
|
],
|
|
|
inspectionTime: [
|
|
|
- { required: true, message: "检查时间不能为空", trigger: "change" },
|
|
|
+ { required: true, message: "检查时间不能为空", trigger: "change" }
|
|
|
],
|
|
|
inspectionSite: [
|
|
|
- { required: true, message: "检查地点不能为空", trigger: "blur" },
|
|
|
+ { required: true, message: "检查地点不能为空", trigger: "blur" }
|
|
|
],
|
|
|
score: [{ required: true, message: "分值不能为空", trigger: "blur" }],
|
|
|
rectificationTime: [
|
|
|
- { required: true, message: "整改时间不能为空", trigger: "change" },
|
|
|
+ { required: true, message: "整改时间不能为空", trigger: "change" }
|
|
|
],
|
|
|
chargePeople: [
|
|
|
- { required: true, message: "负责人不能为空", trigger: "change" },
|
|
|
- ],
|
|
|
+ { required: true, message: "负责人不能为空", trigger: "change" }
|
|
|
+ ]
|
|
|
},
|
|
|
//单位
|
|
|
unitId: [],
|
|
@@ -879,6 +1028,9 @@ export default {
|
|
|
open1: false,
|
|
|
zg: null,
|
|
|
isActive: null,
|
|
|
+ sp: null,
|
|
|
+ open3: false,
|
|
|
+ url: process.env.VUE_APP_BASE_API
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -904,28 +1056,28 @@ export default {
|
|
|
correctiveAction: null,
|
|
|
pictureProof: null,
|
|
|
documentProof: null,
|
|
|
- caoZuoType: 0,
|
|
|
+ caoZuoType: 0
|
|
|
};
|
|
|
// this.danWiess()
|
|
|
//部门数据
|
|
|
- getDept().then((res) => {
|
|
|
+ getDept().then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.unitId = res.data;
|
|
|
}
|
|
|
});
|
|
|
//调动人员对象
|
|
|
- listPeople().then((res) => {
|
|
|
+ listPeople().then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.peopleIds = res.rows;
|
|
|
}
|
|
|
});
|
|
|
//检查类型
|
|
|
- this.getDicts("inspectionType").then((response) => {
|
|
|
+ this.getDicts("inspectionType").then(response => {
|
|
|
this.inspectionType = response.data;
|
|
|
});
|
|
|
|
|
|
if (this.$route.query.id) {
|
|
|
- bumenlist(this.$route.query.id).then((res) => {
|
|
|
+ bumenlist(this.$route.query.id).then(res => {
|
|
|
console.log(1);
|
|
|
this.regularinfoList = res.rows;
|
|
|
this.total = res.total;
|
|
@@ -958,10 +1110,10 @@ export default {
|
|
|
correctiveAction: null,
|
|
|
pictureProof: null,
|
|
|
documentProof: null,
|
|
|
- caoZuoType: 0,
|
|
|
+ caoZuoType: 0
|
|
|
};
|
|
|
if (to.query.id) {
|
|
|
- bumenlist(to.query.id).then((res) => {
|
|
|
+ bumenlist(to.query.id).then(res => {
|
|
|
this.regularinfoList = res.rows;
|
|
|
this.total = res.total;
|
|
|
this.loading = false;
|
|
@@ -970,7 +1122,7 @@ export default {
|
|
|
this.queryParams.inspectedUnitId = to.query.obj.id + "";
|
|
|
this.queryParams.currentState = to.query.obj.name + "";
|
|
|
|
|
|
- listRegularinfos(this.queryParams).then((res) => {
|
|
|
+ listRegularinfos(this.queryParams).then(res => {
|
|
|
console.log(res);
|
|
|
this.regularinfoList = res.rows;
|
|
|
this.total = res.total;
|
|
@@ -982,7 +1134,7 @@ export default {
|
|
|
|
|
|
// listRegularinfos
|
|
|
// console.log(to.query.obj);
|
|
|
- },
|
|
|
+ }
|
|
|
},
|
|
|
mounted() {
|
|
|
console.log(0);
|
|
@@ -991,7 +1143,7 @@ export default {
|
|
|
methods: {
|
|
|
danWiess() {
|
|
|
// 获取当前用户接口
|
|
|
- getUserProfile().then((response) => {
|
|
|
+ getUserProfile().then(response => {
|
|
|
this.user = response.data;
|
|
|
console.log(this.user);
|
|
|
// console.log(response.data.dept.deptId+"这是")
|
|
@@ -1002,7 +1154,7 @@ export default {
|
|
|
/** 查询经常性检查列表 */
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
- listRegularinfo(this.queryParams).then((response) => {
|
|
|
+ listRegularinfo(this.queryParams).then(response => {
|
|
|
this.regularinfoList = response.rows;
|
|
|
this.total = response.total;
|
|
|
this.loading = false;
|
|
@@ -1011,6 +1163,7 @@ export default {
|
|
|
// 取消按钮
|
|
|
cancel() {
|
|
|
this.open = false;
|
|
|
+ this.open3 = false;
|
|
|
this.reset();
|
|
|
this.jiannum = null;
|
|
|
},
|
|
@@ -1038,7 +1191,7 @@ export default {
|
|
|
correctiveAction: null,
|
|
|
pictureProof: null,
|
|
|
documentProof: null,
|
|
|
- reasonReturn: null,
|
|
|
+ reasonReturn: null
|
|
|
};
|
|
|
this.resetForm("form");
|
|
|
},
|
|
@@ -1054,7 +1207,7 @@ export default {
|
|
|
},
|
|
|
// 多选框选中数据
|
|
|
handleSelectionChange(selection) {
|
|
|
- this.ids = selection.map((item) => item.id);
|
|
|
+ this.ids = selection.map(item => item.id);
|
|
|
this.single = selection.length !== 1;
|
|
|
this.multiple = !selection.length;
|
|
|
},
|
|
@@ -1107,8 +1260,9 @@ export default {
|
|
|
console.log(row);
|
|
|
this.reset();
|
|
|
const id = row.id || this.ids;
|
|
|
- getRegularinfo(id).then((response) => {
|
|
|
+ getRegularinfo(id).then(response => {
|
|
|
this.form = response.data;
|
|
|
+ this.disabled = true;
|
|
|
this.open = true;
|
|
|
this.title = "修改经常性检查";
|
|
|
this.jiannum = 1;
|
|
@@ -1126,7 +1280,7 @@ export default {
|
|
|
this.isdisabled = true;
|
|
|
this.reset();
|
|
|
const id = row.id || this.ids;
|
|
|
- getRegularinfo(id).then((response) => {
|
|
|
+ getRegularinfo(id).then(response => {
|
|
|
this.form = response.data;
|
|
|
this.open1 = true;
|
|
|
this.title = "修改经常性检查";
|
|
@@ -1142,22 +1296,24 @@ export default {
|
|
|
shenpifun(row) {
|
|
|
this.reset();
|
|
|
const id = row.id || this.ids;
|
|
|
- getRegularinfo(id).then((response) => {
|
|
|
+ getRegularinfo(id).then(response => {
|
|
|
this.disabled = true;
|
|
|
this.form = response.data;
|
|
|
- this.open = true;
|
|
|
+ this.open3 = true;
|
|
|
this.title = "修改经常性检查";
|
|
|
this.jiannum = 1;
|
|
|
this.btnnum = 0;
|
|
|
this.isActive = 1;
|
|
|
+ this.sp = 0;
|
|
|
});
|
|
|
},
|
|
|
//通过
|
|
|
tongguofun() {
|
|
|
- editissuccess(this.form).then((res) => {
|
|
|
+ editissuccess(this.form).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.$modal.msgSuccess("审批成功");
|
|
|
this.open = false;
|
|
|
+ this.open3 = false;
|
|
|
this.getList();
|
|
|
}
|
|
|
});
|
|
@@ -1169,6 +1325,8 @@ export default {
|
|
|
this.disabled = false;
|
|
|
this.currentState = 1;
|
|
|
this.curr = false;
|
|
|
+ this.open3 = false;
|
|
|
+ this.open = true;
|
|
|
// this.reset();
|
|
|
// editissuccess().then(res => {
|
|
|
// if (res.code == 200) {
|
|
@@ -1178,45 +1336,57 @@ export default {
|
|
|
},
|
|
|
//未通过提交
|
|
|
weitongguofun() {
|
|
|
- editisfalse(this.form).then((res) => {
|
|
|
+ editisfalse(this.form).then(res => {
|
|
|
this.$modal.msgSuccess("操作成功");
|
|
|
this.open = false;
|
|
|
this.getList();
|
|
|
});
|
|
|
},
|
|
|
submitForm2() {
|
|
|
- this.form.documentProof = this.form.documentProof[0].url;
|
|
|
- // console.log(this.form);
|
|
|
- editquestion(this.form).then((response) => {
|
|
|
+ if (this.form.documentProof) {
|
|
|
+ if (typeof this.form.documentProof != "string") {
|
|
|
+ let documentProofs = this.form.documentProof;
|
|
|
+ this.form.documentProof = documentProofs[0].url;
|
|
|
+ this.form.wenjianname = documentProofs[0].name;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.form.caoZuoType = this.queryParams.caoZuoType;
|
|
|
+ editquestion(this.form).then(response => {
|
|
|
this.$modal.msgSuccess("整改成功");
|
|
|
this.open = false;
|
|
|
this.open1 = false;
|
|
|
+ // this.open3=false;
|
|
|
this.getList();
|
|
|
});
|
|
|
},
|
|
|
/** 提交按钮 */
|
|
|
submitForm() {
|
|
|
// console.log(this.form)
|
|
|
- this.$refs["form"].validate((valid) => {
|
|
|
+ this.$refs["form"].validate(valid => {
|
|
|
if (valid) {
|
|
|
if (this.form.documentProof) {
|
|
|
- this.form.documentProof = this.form.documentProof[0].url;
|
|
|
+ if (typeof this.form.documentProof != "string") {
|
|
|
+ let documentProofs = this.form.documentProof;
|
|
|
+ this.form.documentProof = documentProofs[0].url;
|
|
|
+ this.form.wenjianname = documentProofs[0].name;
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
if (this.form.id != null) {
|
|
|
this.form.caoZuoType = this.queryParams.caoZuoType;
|
|
|
- updateRegularinfo(this.form).then((response) => {
|
|
|
+ updateRegularinfo(this.form).then(response => {
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
this.open = false;
|
|
|
this.open1 = false;
|
|
|
+ // this.open3=false;
|
|
|
this.getList();
|
|
|
});
|
|
|
} else {
|
|
|
this.form.caoZuoType = this.queryParams.caoZuoType;
|
|
|
- addRegularinfo(this.form).then((response) => {
|
|
|
+ addRegularinfo(this.form).then(response => {
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
this.open = false;
|
|
|
this.open1 = false;
|
|
|
+ // this.open3=false;
|
|
|
this.getList();
|
|
|
});
|
|
|
}
|
|
@@ -1228,7 +1398,7 @@ export default {
|
|
|
const ids = row.id || this.ids;
|
|
|
this.$modal
|
|
|
.confirm("是否确认删除经常性检查的数据项?")
|
|
|
- .then(function () {
|
|
|
+ .then(function() {
|
|
|
return delRegularinfo(ids);
|
|
|
})
|
|
|
.then(() => {
|
|
@@ -1246,7 +1416,7 @@ export default {
|
|
|
this.exportLoading = true;
|
|
|
return exportRegularinfo(queryParams);
|
|
|
})
|
|
|
- .then((response) => {
|
|
|
+ .then(response => {
|
|
|
this.$download.name(response.msg);
|
|
|
this.exportLoading = false;
|
|
|
})
|
|
@@ -1275,8 +1445,8 @@ export default {
|
|
|
if (this.form.score < 0) {
|
|
|
this.form.score = null;
|
|
|
}
|
|
|
- },
|
|
|
- },
|
|
|
+ }
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|
|
|
<style scoped>
|
|
@@ -1411,4 +1581,18 @@ hr {
|
|
|
::v-deep .active .upload-file-uploader .el-upload .el-button {
|
|
|
display: none;
|
|
|
}
|
|
|
+/* 下载按钮 */
|
|
|
+.downloadfile {
|
|
|
+ border: 1px solid white;
|
|
|
+ display: inline-block;
|
|
|
+ width: 100px;
|
|
|
+ height: 33px;
|
|
|
+ border-radius: 5px;
|
|
|
+ line-height: 33px;
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
+.wenjian {
|
|
|
+ width: 600px !important;
|
|
|
+ height: 33px;
|
|
|
+}
|
|
|
</style>
|