tengmingxue 2 роки тому
батько
коміт
5ab4bfe413

+ 5 - 9
src/layout/components/Header/index.vue

@@ -51,14 +51,14 @@
           <i
             title="大屏"
             @click="openBigScreen"
-            style="margin: 0px" 
+            style="margin: 0 6px" 
           ><img src="../../../assets/images/home/bigPicture.png" /></i>
           <!-- class="el-icon-s-home" -->
           <i
             v-if="showDashboard"
             title="首页"
             @click="home"
-            style="margin: 0px;"
+            style="margin: 0 6px;padding:0;" 
           ><img src="../../../assets/images/home/home.png" /></i>
 
           <el-popover
@@ -66,7 +66,7 @@
             width="185"
             trigger="hover"
             popper-class="popover"
-            style="margin: 0px;"
+            style="margin: 0 6px"
           >
             <img
               src="../../../assets/images/home/erweima.png"
@@ -82,7 +82,7 @@
             class="el-icon-message-solid bell-info"
             title="消息提示"
             @click="notificationDialog = true"
-            style="margin: 0 8px;top: -3px;"
+            style="margin: 0 6px;top: -3px;font-size: 22px;"
           >
             <span v-show="notificationNum !== 0" class="bell-dot">{{
               notificationNum > 100 ? "99+" : notificationNum
@@ -103,17 +103,13 @@
               src="../../../assets/images/home/msg.mp3"
               style="display: none"
             />
-            <!-- <audio autoplay="autoplay">
-              <source src="/i/song.ogg" type="audio/ogg" />
-              <source src="/i/song.mp3" type="audio/mpeg" />
-            </audio> -->
           </i>
           <!-- class="el-icon-setting" -->
           <i
             v-if="showSystemSetting"
             title="系统管理"
             @click="handleSys('sysSetting')"
-            style="margin: 0px"
+            style="margin: 0 6px"
           >
             <img src="../../../assets/images/home/setting.png" />
           </i>

+ 2 - 2
src/views/currentSystem/regionalMetering/DMAManageUser/index.vue

@@ -33,7 +33,7 @@
                     </el-select>
                   </el-col> -->
                   <el-col :span="8">
-                    <el-input v-model="pagination.inputcontent" size="small" clearable placeholder="请输入客户编号\名称\地址关键字查询" />
+                    <el-input v-model="pagination.linkStr" size="small" clearable placeholder="请输入客户名称\地址关键字查询" />
                   </el-col>
                   <el-col :span="2">
                     <el-button
@@ -158,7 +158,7 @@ export default {
           prop: 'waterMeterCode'
         }
       ],
-      pagination: { current: 1, size: 20, dmaId: 0, cbbName: '', inputcontent: '', export: '0' },
+      pagination: { current: 1, size: 20, dmaId: 0, cbbName: '', linkStr: '', export: '0' },
       yhbhList: [],
       total: 0,
       disabledBtn: true,

+ 1 - 1
src/views/currentSystem/work/monitoring/allWork/index.vue

@@ -16,7 +16,7 @@
               <el-cascader
                 v-model="type"
                 :props="{ multiple:true,checkStrictly: false }"
-                placeholder="请选择工单类型"
+                placeholder="请选择工单类型11"
                 size="mini"
                 style="width:100%"
                 collapse-tags

+ 33 - 8
src/views/mbsys/components/examineForm.vue

@@ -46,8 +46,11 @@
             ></el-input>
           </el-form-item>
         </el-col>
+        <!-- v-if="(form.headleState == 1 || form.headleState == 2) && !isLastStep" -->
+        <!-- 显示情况:(1)当处理结果为1(通过)并且不是最后一个节点
+                      (2)当处理结果为2 -->
         <el-col
-          v-if="(form.headleState == 1 || form.headleState == 2) && !isLastStop"
+          v-if="((form.headleState == 1 && !isLastStep) || (form.headleState == 2))"
           :span="8"
         >
           <el-form-item label="下一环节:">
@@ -77,9 +80,9 @@
             </el-select>
           </el-form-item>
         </el-col>
-
+        <!-- v-if="(form.headleState == 1 || form.headleState == 2) && !isLastStep" -->
         <el-col
-          v-if="(form.headleState == 1 || form.headleState == 2) && !isLastStop"
+          v-if="((form.headleState == 1 && !isLastStep) || (form.headleState == 2))"
           :span="8"
         >
           <el-form-item label="下一环节处理部门:">
@@ -109,8 +112,9 @@
             </el-select>
           </el-form-item>
         </el-col>
+        <!-- v-if="(form.headleState == 1 || form.headleState == 2) && !isLastStep" -->
         <el-col
-          v-if="(form.headleState == 1 || form.headleState == 2) && !isLastStop"
+          v-if="((form.headleState == 1 && !isLastStep) || (form.headleState == 2))"
           :span="8"
         >
           <el-form-item label="下一环节处理人:">
@@ -346,7 +350,7 @@ export default {
         deptStaff: "", //下一环节出处理
         remarks: "", //备注
       },
-      isLastStop: false, //是不是最后一步审核
+      isLastStep: false, //是不是最后一步审核
       curStepStaffs: [], //转派时候的被驳回人
       curStepDepts: [], //转派时候的驳回部门
       examinaHistory: [], //审核历史
@@ -571,7 +575,7 @@ export default {
   },
 
   mounted() {
-    //this.handleTypeChange(1);
+
   },
 
   methods: {
@@ -583,7 +587,7 @@ export default {
       if (JSON.stringify(this.step.nextStep) === "{}") {
         this.form.curProcessStep = this.editData.currentNode.processStep;
         this.form.curStepNode = this.editData.currentNode.stepNode;
-        this.isLastStop = true;
+        this.isLastStep = true;
       } else {
         this.setNextSelect();
       }
@@ -696,6 +700,24 @@ export default {
                 this.nextStepChange(this.form.processStep);
                 this.form.dept = upStepNode.handleDept; //下一环节处理部门
                 this.nextStepDeptChange(this.form.dept);
+                //如果审核人不在this.nextStepStaffs中则加进去
+                if (
+                  !this.nextStepStaffs.find(
+                    (n) => n.id == upStepNode.handleStaff
+                  )
+                ) {
+                  const dept = this.allDeptAndUser.find(
+                    (n) => n.id == upStepNode.handleDept
+                  );
+                  const user = dept.users.find(
+                    (u) => u.id == upStepNode.handleStaff
+                  );
+                  if (user)
+                    this.nextStepStaffs.push({
+                      id: user.id,
+                      name: user.realName,
+                    });
+                }
                 this.form.deptStaff = upStepNode.handleStaff; //下一环节处理人
               }
             }
@@ -847,7 +869,7 @@ export default {
      */
     nextStepChange(value) {
       this.nextStepDepts = [];
-      this.nextStepStaffs = [];
+      //this.nextStepStaffs = [];
       this.nextStepDepts = [];
       this.form.dept = "";
       this.form.deptStaff = "";
@@ -896,6 +918,9 @@ export default {
       return this.form;
     },
   },
+  destroyed(){
+    this.isLastStep = false
+  }
 };
 </script>
 

+ 3 - 3
src/views/mbsys/materialmanage/materialApply/materialApplyArchives/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <!-- 采购档案 -->
+  <!-- 物资申请档案 -->
   <div class="content-container">
     <div class="top">
       <el-form
@@ -546,7 +546,7 @@ export default {
      */
     formParamMapping(data, state) {
       let params = {
-        operateState:0 //	表单类型:0、其它; 1、采购入库(关联采购工单);2、余料退库(关联出库工单);3、工程出库(关联工程工单);4其它出库;5、维修出库(关联维修工单)
+        operateState:0 //	表单类型:0、其它; 1、物资申请入库(关联物资申请工单);2、余料退库(关联出库工单);3、工程出库(关联工程工单);4其它出库;5、维修出库(关联维修工单)
       };
       let formData = new FormData();
       if(this.curEditRow != null) Object.assign(params, { id: this.curEditRow.id }) //流程ID
@@ -607,7 +607,7 @@ export default {
           });
         });
         if (stuffDtos.length > 0)
-          Object.assign(processNode, { stuffDtos: stuffDtos }); //采购物资信息
+          Object.assign(processNode, { stuffDtos: stuffDtos }); //物资申请物资信息
       }
       //其他费用
       if (data.hasOwnProperty("otherCost")) {

+ 14 - 13
src/views/mbsys/materialmanage/materialApply/materialApplyExamine/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <!-- 采购审核 -->
+  <!-- 物资申请审核 -->
   <div class="content-container">
     <div class="top">
       <el-form
@@ -539,7 +539,7 @@ export default {
       this.curEditRow = type ? row : null;
       qOrderProcessById(row.id).then((res) => {
         if (res.code == 1) {
-          this.title = type ? "采购单-审核" : "采购单-详情";
+          this.title = type ? "物资申请单-审核" : "物资申请单-详情";
           this.optionType = type ? 2 : 0; ////操作类型 0:查看,1:新增,2:修改
           this.editData = res.result;
           this.dialogFormVisible = true;
@@ -602,7 +602,7 @@ export default {
     examineFormParamMapping(data, state) {
       let params = {
         handleResults: 0, //处理结果0:不处理;1:同意;2:不同意
-        operateState: 0, //表单类型:0、其它; 1、采购入库(关联采购工单);2、余料退库(关联出库工单);3、工程出库(关联工程工单);4其它出库;5、维修出库(关联维修工单)
+        operateState: 0, //表单类型:0、其它; 1、物资申请入库(关联物资申请工单);2、余料退库(关联出库工单);3、工程出库(关联工程工单);4其它出库;5、维修出库(关联维修工单)
         processStep: data.curProcessStep, //当前流程步骤
         stepNode: data.curStepNode, //当前步骤结点
         headleState: data.headleState, //处理状态:1提交;2:驳回;3:转派;4:终止;
@@ -631,14 +631,15 @@ export default {
       if (data.hasOwnProperty("configId")) {
         params = Object.assign(params, { configId: data.configId }); //流程配置ID
       }
-      if (
-        state == 1 &&
-        data.headleState == 1 &&
-        (nextStep.deptStaff == "" || nextStep.deptStaff == null)
-      ) {
-        this.$message.warning("提交请选择下一步审核人");
-        return null;
-      }
+      
+      // if (
+      //   state == 1 &&
+      //   data.headleState == 1 &&
+      //   (nextStep.deptStaff == "" || nextStep.deptStaff == null)
+      // ) {
+      //   this.$message.warning("提交请选择下一步审核人");
+      //   return null;
+      // }
       Object.assign(params, { nextStep: nextStep });
       const json = JSON.stringify(params);
       // 将 json 字符串转化为 Blob 对象
@@ -660,7 +661,7 @@ export default {
      */
     formParamMapping(data, state) {
       let params = {
-        operateState: 0, //	表单类型:0、其它; 1、采购入库(关联采购工单);2、余料退库(关联出库工单);3、工程出库(关联工程工单);4其它出库;5、维修出库(关联维修工单)
+        operateState: 0, //	表单类型:0、其它; 1、物资申请入库(关联物资申请工单);2、余料退库(关联出库工单);3、工程出库(关联工程工单);4其它出库;5、维修出库(关联维修工单)
       };
       let formData = new FormData();
       if (this.curEditRow != null)
@@ -742,7 +743,7 @@ export default {
           });
         });
         if (stuffDtos.length > 0)
-          Object.assign(processNode, { stuffDtos: stuffDtos }); //采购物资信息
+          Object.assign(processNode, { stuffDtos: stuffDtos }); //物资申请物资信息
       }
 
       Object.assign(params, { processNode: processNode }); //业务类型

+ 2 - 2
src/views/mbsys/materialmanage/materialApply/materialApplyRegist/index.vue

@@ -563,7 +563,7 @@ export default {
      */
     formParamMapping(data, state) {
       let params = {
-        operateState: 0, //	表单类型:0、其它; 1、采购入库(关联采购工单);2、余料退库(关联出库工单);3、工程出库(关联工程工单);4其它出库;5、维修出库(关联维修工单)
+        operateState: 0, //	表单类型:0、其它; 1、物资申请入库(关联物资申请工单);2、余料退库(关联出库工单);3、工程出库(关联工程工单);4其它出库;5、维修出库(关联维修工单)
       };
       let formData = new FormData();
       if (this.curEditRow != null)
@@ -645,7 +645,7 @@ export default {
           });
         });
         if (stuffDtos.length > 0)
-          Object.assign(processNode, { stuffDtos: stuffDtos }); //采购物资信息
+          Object.assign(processNode, { stuffDtos: stuffDtos }); //物资申请物资信息
       }
 
       Object.assign(params, { processNode: processNode }); //业务类型

+ 1 - 1
src/views/mbsys/materialmanage/materialApply/materialApplyRegist/registerForm.vue

@@ -531,7 +531,7 @@ export default {
                     );
                     if (ma) {
                       material["materialCount"] = ma.quantity; //采购数量
-                      material["oldReturn"] = ma.oldReturn == 1 ? true : false; //采购单价
+                      material["oldReturn"] = ma.oldReturn == 1 ? true : false; //物资申请单价
                       material["position"] = ma.position; //采购总价
                       material["remark"] = ma.remark; //备注
                       this.tableData.push(material);

+ 4 - 4
src/views/mbsys/materialmanage/materialApply/materialApplySupervise/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <!-- 采购督办 -->
+  <!-- 物资申请督办 -->
   <div class="content-container">
     <div class="top">
       <el-form
@@ -514,7 +514,7 @@ export default {
       this.curEditRow = type ? row : null;
       qOrderProcessById(row.id).then((res) => {
         if (res.code == 1) {
-          this.title = type ? "采购单-审核" : "采购单-详情";
+          this.title = type ? "物资申请单-审核" : "物资申请单-详情";
           this.optionType = type ? 2 : 0; ////操作类型 0:查看,1:新增,2:修改
           this.editData = res.result;
           this.dialogFormVisible = true;
@@ -650,7 +650,7 @@ export default {
       examineProcess(param).then((res) => {
         if (res.code == 1) {
           this.queryProcess();
-          this.$message.success("新增采购单成功!");
+          this.$message.success("新增物资申请单成功!");
         }
       });
     },
@@ -672,7 +672,7 @@ export default {
     formParamMapping(data, state) {
       let params = {
         handleResults: 0, //处理结果0:不处理;1:同意;2:不同意
-        operateState: 0, //表单类型:0、其它; 1、采购入库(关联采购工单);2、余料退库(关联出库工单);3、工程出库(关联工程工单);4其它出库;5、维修出库(关联维修工单)
+        operateState: 0, //表单类型:0、其它; 1、物资申请入库(关联物资申请工单);2、余料退库(关联出库工单);3、工程出库(关联工程工单);4其它出库;5、维修出库(关联维修工单)
         processStep: data.curProcessStep, //当前流程步骤
         stepNode: data.curStepNode, //当前步骤结点
         headleState: data.headleState, //处理状态:1提交;2:驳回;3:转派;4:终止;

+ 2 - 1
src/views/zhpt/buildsitemanage/components/buildDetails.vue

@@ -613,7 +613,8 @@ export default {
 				}
 			})
         }).catch((ex) => {
-          that.$message.error("上报审核出错,请重试"+ex.message);
+          that.$message.warning("已取消审核!");
+		  that.dialogClose();
         });
     },
 	

+ 2 - 1
src/views/zhpt/hiddendangermanage/components/troubleDetails.vue

@@ -610,7 +610,8 @@ export default {
 				}
 			})
         }).catch((ex) => {
-          that.$message.error("上报审核出错,请重试"+ex.message);
+          that.$message.warning("已取消审核!");
+		  that.dialogClose();
         });
     },
 	

+ 2 - 2
src/views/zhpt/scada/scadaCraftMap/widget.vue

@@ -116,7 +116,7 @@
             height="calc(100% - 43px)"
             style="width: 100%"
           >
-            <el-table-column prop="startTime" label="时间" />
+            <el-table-column prop="scadaTime" label="时间" />
             <el-table-column prop="value" label="测量值" />
           </el-table>
           <el-row style="margin-top: 8px">
@@ -991,7 +991,7 @@ export default {
           for (var i = 0, il = res, ii = il.length; i < ii; i++) {
             var v = parseFloat(il[i].value)
             if (dontShow && v == -9999) continue
-            var x = il[i].startTime.split(' ')[1]
+            var x = il[i].startTime ? il[i].startTime.split(' ')[1] : ( il[i].scadaTime ? il[i].scadaTime.split(' ')[1] : '')
             dataX.push(x)
             dataY.push(v)
             // if (v < min) min = v