ltao 3 år sedan
förälder
incheckning
9723801372

+ 1 - 0
src/components/FileUpload/index.vue

@@ -157,6 +157,7 @@ export default {
     handleDelete(index) {
       this.fileList.splice(index, 1);
       this.$emit("input", this.fileList);
+      
     },
     // 获取文件名称
     getFileName(name) {

BIN
src/images/底1.png


BIN
src/images/底2.png


BIN
src/images/量化/底1.png


BIN
src/images/量化/底2.png


+ 142 - 3
src/views/bdglregular/regularinfo/index.vue

@@ -355,7 +355,11 @@
             "
             >审批</el-button
           >
-          <el-button size="btu" type="text" @click="handleAdds(scope.row)"
+          <el-button
+            v-if=""
+            size="btu"
+            type="text"
+            @click="handleAdds(scope.row)"
             >修改</el-button
           >
           <el-button size="btd" type="text" @click="handleDelete(scope.row)"
@@ -613,6 +617,127 @@
         <el-button @click="cancel" size="btn">取 消</el-button>
       </div>
     </el-dialog>
+    <el-dialog
+      :title="title"
+      :visible.sync="open1"
+      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 || this.isdisabled == true"
+          >
+            <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 || this.isdisabled == true"
+          >
+            <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="选择检查时间"
+          ></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">
+          <!-- <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>
+
+        <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>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitForm">确 定</el-button>
+        <el-button @click="open1 = false" size="btn">取 消</el-button>
+      </div>
+    </el-dialog>
   </div>
 </template>
 
@@ -632,7 +757,7 @@ import {
   bumenlist,
   listRegularinfos,
 } from "@/api/bdglregular/regularinfo";
-
+import { getUserProfile } from "@/api/system/user";
 export default {
   name: "Regularinfo",
   dicts: ["inspectionType"],
@@ -682,6 +807,10 @@ export default {
         documentProof: null,
         caoZuoType: 0,
       },
+      // 用户
+      user:{},
+      danWie:"",
+      yongHu:"",
       // 表单参数
       form: {},
       // 表单校验
@@ -722,6 +851,7 @@ export default {
       currentState: null,
       curr: null,
       isdisabled: false,
+      open1: false,
     };
   },
   created() {
@@ -748,6 +878,11 @@ export default {
       documentProof: null,
       caoZuoType: 0,
     };
+    getUserProfile().then((response) => {
+      this.user = response.data;
+      this.danWie = response.data.dept.deptName;
+      this.yongHu = response.data.nickName;
+    });
     //部门数据
     getDept().then((res) => {
       if (res.code == 200) {
@@ -895,6 +1030,7 @@ export default {
       this.title = "经常性检查";
       this.jiannum = 0;
       this.btnnum = null;
+      this.isdisabled = false;
       var today = new Date();
       var y = today.getFullYear();
       var M = today.getMonth() + 1;
@@ -955,7 +1091,7 @@ export default {
       const id = row.id || this.ids;
       getRegularinfo(id).then((response) => {
         this.form = response.data;
-        this.open = true;
+        this.open1 = true;
         this.title = "修改经常性检查";
         this.jiannum = 1;
         this.btnnum = null;
@@ -1012,6 +1148,7 @@ export default {
     },
     /** 提交按钮 */
     submitForm() {
+      // console.log(this.form)
       this.$refs["form"].validate((valid) => {
         if (valid) {
           if (this.form.documentProof) {
@@ -1023,6 +1160,7 @@ export default {
             editquestion(this.form).then((response) => {
               this.$modal.msgSuccess("修改成功");
               this.open = false;
+              this.open1 = false;
               this.getList();
             });
           } else {
@@ -1030,6 +1168,7 @@ export default {
             addRegularinfo(this.form).then((response) => {
               this.$modal.msgSuccess("新增成功");
               this.open = false;
+              this.open1 = false;
               this.getList();
             });
           }