钞小赢 пре 4 година
родитељ
комит
67a4ed7afa

+ 164 - 41
shanXiPlatform/src/views/facilitiesEquipment/equipmentManagement/deviceManagement/completed.vue

@@ -1,12 +1,65 @@
1 1
 <template>
2 2
   <div class="global">
3 3
     <div class="mainContainer">
4
+      <div class="top">
5
+        <div class="top_left">
6
+          <span style="margin-right: 40px"
7
+            >设备类型:{{ this.$route.query.equipmentCategory }}</span
8
+          >
9
+          <span style="margin-right: 40px"
10
+            >设备名称:{{ this.$route.query.equipmentName }}</span
11
+          >
12
+          <span style="margin-right: 40px"
13
+            >设备编号:{{ this.$route.query.equipmentNumber }}</span
14
+          >
15
+        </div>
16
+        <div class="top_right">
17
+          <span style="margin-right: 10px">设备管理类型:</span>
18
+          <el-select
19
+            v-model="value"
20
+            @change="valueChange($event)"
21
+            :disabled="disabledSelect"
22
+          >
23
+            <el-option
24
+              v-for="item in options"
25
+              :key="item.value"
26
+              :label="item.label"
27
+              :value="item.value"
28
+            >
29
+            </el-option>
30
+          </el-select>
31
+        </div>
32
+      </div>
33
+
4 34
       <div class="steps">
5 35
         <el-steps :active="stepActive" align-center direction="horizontal">
6
-          <el-step style="color: black"  icon="iconfont iconrun-line"  id="el_step"  v-for="(item, index) in tableData"  :title="item.step.title"  :key="index"  @click.native="stepClick(index)">
7
-            <svg-icon class='icon_wai'  slot="icon"  icon-class="NotStarted"  v-if="stepActive < index"/>
8
-            <svg-icon class='icon_wai'  slot="icon"  icon-class="current"  v-if="stepActive == index"/>
9
-            <svg-icon class='icon_wai'  slot="icon"  icon-class="finished"  v-if="stepActive > index"/>
36
+          <el-step
37
+            style="color: black"
38
+            icon="iconfont iconrun-line"
39
+            id="el_step"
40
+            v-for="(item, index) in tableData"
41
+            :title="item.step.title"
42
+            :key="index"
43
+            @click.native="stepClick(index)"
44
+          >
45
+            <svg-icon
46
+              class="icon_wai"
47
+              slot="icon"
48
+              icon-class="NotStarted"
49
+              v-if="stepActive < index"
50
+            />
51
+            <svg-icon
52
+              class="icon_wai"
53
+              slot="icon"
54
+              icon-class="current"
55
+              v-if="stepActive == index"
56
+            />
57
+            <svg-icon
58
+              class="icon_wai"
59
+              slot="icon"
60
+              icon-class="finished"
61
+              v-if="stepActive > index"
62
+            />
10 63
           </el-step>
11 64
         </el-steps>
12 65
         <!-- <el-steps :active="stepActive" align-center direction="horizontal">
@@ -42,10 +95,23 @@
42 95
               >
43 96
                 <div class="tf_title">
44 97
                   <i class="iconfont iconshu"></i>
45
-                   <span  v-if="scope.$index == 2&& value=='sbwx'">流程(设施维修审批)</span> 
46
-                     <span  v-if="scope.$index == 2&& value=='sbbf'">流程(设施报废审批)</span>
98
+                  <span v-if="scope.$index == 2 && value == 'sbwx'"
99
+                    >流程(设施维修审批)</span
100
+                  >
101
+                  <span v-if="scope.$index == 2 && value == 'sbbf'"
102
+                    >流程(设施报废审批)</span
103
+                  >
104
+                  <span v-if="scope.$index == 1 && value == 'sbgh'"
105
+                    >流程(设施领用审批)</span
106
+                  >
107
+                  <span v-if="scope.$index == 3 && value == 'sbgh'"
108
+                    >流程(设施报废审批)</span
109
+                  >
47 110
                 </div>
48
-                <el-steps direction="vertical" :active="scope.row.process.length">
111
+                <el-steps
112
+                  direction="vertical"
113
+                  :active="scope.row.process.length"
114
+                >
49 115
                   <el-step
50 116
                     v-for="(item, index) in scope.row.process"
51 117
                     :key="index"
@@ -169,8 +235,31 @@ export default {
169 235
       process: [],
170 236
       processNew: [],
171 237
       disabled: true,
172
-      processActive:0,
173
-      value:"",
238
+      processActive: 0,
239
+      value: "",
240
+      disabledSelect: true,
241
+      options: [
242
+        {
243
+          value: "sbwx",
244
+          label: "设备维修",
245
+        },
246
+        {
247
+          value: "sbdwgl",
248
+          label: "设备定位管理",
249
+        },
250
+        {
251
+          value: "sbgh",
252
+          label: "设备领用归还",
253
+        },
254
+        {
255
+          value: "sbbf",
256
+          label: "设备报废",
257
+        },
258
+        {
259
+          value: "sbtz",
260
+          label: "设备台账",
261
+        },
262
+      ],
174 263
     }
175 264
   },
176 265
   methods: {
@@ -188,22 +277,35 @@ export default {
188 277
               index++
189 278
             })
190 279
           })
191
-          console.log( this.totalData," this.totalData")
280
+          console.log(this.totalData, " this.totalData")
192 281
           if (res.data.process[0].audit[0].content == 0) {
193 282
             res.data.process[0].audit[0].content = this.userInfo.uid
194 283
           }
195
-          // if (res.data.process[1].audit[0].content == 0) {
196
-          //   res.data.process[1].audit[0].content = this.userInfo.uid
197
-          // }
198
-          
199
-          this.totalData.splice(2, 0, { details: "是,否" })
200
-          if(res.data.process[0].step.isAudit == 1){
201
-            this.$set(this.totalData[2], "process", res.data.process[0].audit)
202
-            console.log(";;;;;;;;")
203
-          }else{
204
-            this.$set(this.totalData[2], "process", res.data.process[0].audit.slice(0,3))
205
-          }
206 284
 
285
+          if (this.$route.query.value != "sbgh") {
286
+            this.totalData.splice(2, 0, { details: "是,否" })
287
+          } else {
288
+            if (res.data.process[1].audit[0].content == 0) {
289
+              res.data.process[1].audit[0].content = this.userInfo.uid
290
+            }
291
+            this.totalData.splice(1, 0, { details: "是,否" })
292
+            this.totalData.splice(3, 0, { details: "是,否" })
293
+          }
294
+          if (res.data.process[0].step.isAudit == 1) {
295
+            if (this.$route.query.value == "sbgh") {
296
+              this.$set(this.totalData[1], "process", res.data.process[0].audit)
297
+              this.$set(this.totalData[3], "process", res.data.process[1].audit)
298
+            } else {
299
+              this.$set(this.totalData[2], "process", res.data.process[0].audit)
300
+              console.log(";;;;;;;;")
301
+            }
302
+          } else {
303
+            this.$set(
304
+              this.totalData[2],
305
+              "process",
306
+              res.data.process[0].audit.slice(0, 3)
307
+            )
308
+          }
207 309
 
208 310
           // this.totalData.splice(4, 0, { details: "是,否" })
209 311
           // if(res.data.process[1].step.isAudit == 1){
@@ -217,14 +319,28 @@ export default {
217 319
     },
218 320
     //合并列或行
219 321
     arraySpanMethod({ row, column, rowIndex, columnIndex }) {
220
-   
221
-      if (rowIndex === 2) {
222
-        if (columnIndex === 0) {
223
-          return [1, 4]
322
+      if (this.$route.query.value != "sbgh") {
323
+        if (rowIndex === 2) {
324
+          if (columnIndex === 0) {
325
+            return [1, 4]
326
+          }
327
+        }
328
+      } else {
329
+        if (rowIndex === 1 || rowIndex === 3) {
330
+          if (columnIndex === 0) {
331
+            return [1, 4]
332
+          }
224 333
         }
225 334
       }
226
- 
227
-      
335
+
336
+      //  if (this.$route.query.value == "sbgh") {
337
+      //   if (rowIndex === 1 || rowIndex === 3) {
338
+      //     if (columnIndex === 0) {
339
+      //       return [1, 4]
340
+      //     }
341
+      //   }
342
+      // }
343
+
228 344
       // if (rowIndex === 4) {
229 345
       //   if (columnIndex === 0) {
230 346
       //     return [1, 4]
@@ -234,24 +350,22 @@ export default {
234 350
 
235 351
     //点击返回按钮
236 352
     goBack() {
237
-      this.$router.push(
238
-        {
239
-           path: "/facilitiesEquipment/equipmentManagement/deviceManagement/detailList" ,
240
-           query:{
241
-              equipmentId: this.$route.query.equipmentId,
242
-           equipmentName: this.$route.query.equipmentName,
353
+      this.$router.push({
354
+        path:
355
+          "/facilitiesEquipment/equipmentManagement/deviceManagement/detailList",
356
+        query: {
357
+          equipmentId: this.$route.query.equipmentId,
358
+          equipmentName: this.$route.query.equipmentName,
243 359
           assetNumber: this.$route.query.assetNumber,
244 360
           equipmentCategory: this.$route.query.equipmentCategory,
245 361
 
246 362
           equipmentNumber: this.$route.query.equipmentNumber,
247
-           }
248
-        }
249
-
250
-        )
363
+        },
364
+      })
251 365
     },
252 366
   },
253 367
   mounted() {
254
-    this.value=this.$route.query.value;
368
+    this.value = this.$route.query.value
255 369
     console.log(this.value)
256 370
     this.userInfo = JSON.parse(getUser())
257 371
     console.log(this.userInfo, "this.userInfo.....?????")
@@ -265,9 +379,9 @@ export default {
265 379
 }
266 380
 </script>
267 381
 <style lang="scss" scoped>
268
-.icon_wai{
269
-  width:3em;
270
-  height:3em;
382
+.icon_wai {
383
+  width: 3em;
384
+  height: 3em;
271 385
 }
272 386
 .global {
273 387
   height: calc(100vh - 70px - 83px);
@@ -276,6 +390,15 @@ export default {
276 390
   .mainContainer {
277 391
     background: #fff;
278 392
     padding: 10px;
393
+    .top {
394
+      padding: 0 20px;
395
+      height: 40px;
396
+      line-height: 40px;
397
+      font-size: 16px;
398
+      display: flex;
399
+      justify-content: space-between;
400
+      margin-bottom: 20px;
401
+    }
279 402
     .steps {
280 403
       height: 80px;
281 404
       margin: 10px 0;

+ 3 - 3
shanXiPlatform/src/views/facilitiesEquipment/equipmentManagement/deviceManagement/completedSbtz.vue

@@ -4,9 +4,9 @@
4 4
      
5 5
          <div class="top">
6 6
           <div class="top_left">
7
-            <span style="margin-right: 40px">设备类型:afsggh</span>
8
-            <span style="margin-right: 40px">设备名称::扦样机</span>
9
-            <span style="margin-right: 40px">设备编号:sbbh001</span>
7
+            <span style="margin-right: 40px">设备类型:{{this.$route.query.equipmentCategory}}</span>
8
+            <span style="margin-right: 40px">设备名称:{{this.$route.query.equipmentName}}</span>
9
+            <span style="margin-right: 40px">设备编号:{{ this.$route.query.equipmentNumber}}</span>
10 10
           </div>
11 11
           <div class="top_right">
12 12
             <span style="margin-right: 10px">设备管理类型:</span>

+ 4 - 2
shanXiPlatform/src/views/facilitiesEquipment/equipmentManagement/deviceManagement/detailList.vue

@@ -263,12 +263,13 @@ export default {
263 263
             type: type,
264 264
             processId: row.processId,
265 265
             ongoingStep: row.ongoingStep,
266
-          workName: row.workName,
266
+             workName: row.workName,
267
+             sbType:row.type,
267 268
           equipmentId: this.$route.query.equipmentId,
268 269
            equipmentName: this.$route.query.equipmentName,
269 270
           assetNumber: this.$route.query.assetNumber,
270 271
           equipmentCategory: this.$route.query.equipmentCategory,
271
-
272
+          
272 273
           equipmentNumber: this.$route.query.equipmentNumber,
273 274
        
274 275
           },
@@ -287,6 +288,7 @@ export default {
287 288
           ongoingStep: row.ongoingStep,
288 289
           auditState: row.auditState,
289 290
            workName: row.workName,
291
+             sbType:row.type,
290 292
           equipmentId: this.$route.query.equipmentId,
291 293
            equipmentName: this.$route.query.equipmentName,
292 294
           assetNumber: this.$route.query.assetNumber,

+ 21 - 1
shanXiPlatform/src/views/facilitiesEquipment/equipmentManagement/deviceManagement/index.vue

@@ -230,6 +230,7 @@ export default {
230 230
     getBarnAll().then((res) => {
231 231
       if (res.code == 200) {
232 232
         this.roleListo = res.data.parentMap[123]
233
+        console.log(this.roleListo,"this.roleListo")
233 234
       }
234 235
     })
235 236
     this.getDeviceList()
@@ -256,7 +257,26 @@ export default {
256 257
       getList(data)
257 258
         .then((res) => {
258 259
           if (res.code == 200) {
259
-            this.tableList = res.data.records
260
+            this.tableList = res.data.records;
261
+
262
+            // this.tableList.forEach(item=>{
263
+            //   this.roleListo.forEach(item1=>{
264
+            //     if(item.equipmentCategory==item1.enumId){
265
+            //       item.enumName=item1.enumName
266
+            //     }
267
+            //   })
268
+            // })
269
+            for (let i =0;  i< this.tableList.length;i++) {
270
+              const ele1 = this.tableList[i];
271
+                 for (let j =0;  j< this.roleListo.length;j++) {
272
+                  const ele2= this.roleListo[j];
273
+                  if(ele1.equipmentCategory==ele2.enumId){
274
+                    ele1.equipmentCategory=ele2.enumName;
275
+                  }
276
+            }
277
+            }
278
+          console.log( this.tableList," this.tableList.....")
279
+
260 280
             this.listQuery.limit = res.data.size
261 281
             this.total = res.data.total
262 282
            

+ 168 - 94
shanXiPlatform/src/views/facilitiesEquipment/equipmentManagement/deviceManagement/steps.vue

@@ -4,13 +4,23 @@
4 4
       <div class="div_parent">
5 5
         <div class="top">
6 6
           <div class="top_left">
7
-            <span style="margin-right: 40px">设备类型:afsggh</span>
8
-            <span style="margin-right: 40px">设备名称::扦样机</span>
9
-            <span style="margin-right: 40px">设备编号:sbbh001</span>
7
+            <span style="margin-right: 40px"
8
+              >设备类型:{{ this.$route.query.equipmentCategory }}</span
9
+            >
10
+            <span style="margin-right: 40px"
11
+              >设备名称:{{ this.$route.query.equipmentName }}</span
12
+            >
13
+            <span style="margin-right: 40px"
14
+              >设备编号:{{ this.$route.query.equipmentNumber }}</span
15
+            >
10 16
           </div>
11 17
           <div class="top_right">
12 18
             <span style="margin-right: 10px">设备管理类型:</span>
13
-            <el-select v-model="value" @change="valueChange($event)">
19
+            <el-select
20
+              v-model="value"
21
+              @change="valueChange($event)"
22
+              :disabled="disabledSelect"
23
+            >
14 24
               <el-option
15 25
                 v-for="item in options"
16 26
                 :key="item.value"
@@ -95,23 +105,33 @@
95 105
               tableDataAudit.length &&
96 106
               value != 'sbtz' &&
97 107
               value != 'sbdwgl' &&
98
-             ((step == 1&&value == 'sbwx') ||((step == 1&&value == 'sbbf'))) 
99
-             
108
+              ((step == 1 && value == 'sbwx') ||
109
+                (step == 1 && value == 'sbbf') ||
110
+                (step == 1 && value == 'sbly') ||
111
+                (step == 1 && value == 'sbgh') ||
112
+                (step == 2 && value == 'sbgh') ||
113
+                (step == 2 && value == 'sbly'))
100 114
             "
101 115
             style="height: 400px; margin-top: 10px"
102 116
           >
103 117
             <div class="tf_title">
104 118
               <i class="iconfont iconshu"></i>
105
-              <span v-if="(stepActive == 0 || step == 1)&&value=='sbwx'"
119
+              <span v-if="(stepActive == 0 || step == 1) && value == 'sbwx'"
106 120
                 >流程(设施维修审批)</span
107 121
               >
108
-              <span v-if="(stepActive == 0 || step == 1)&&value=='sbbf'"
122
+              <span v-if="(stepActive == 0 || step == 1) && value == 'sbbf'"
109 123
                 >流程(设施报废审批)</span
110 124
               >
111
-              <!-- <span v-if="stepActive == 1 || step == 2">流程(设施维修预算审批)</span>  -->
125
+              <span v-if="(stepActive == 0 || step == 1) && value == 'sbly'"
126
+                >流程(设施领用审批)</span
127
+              >
128
+
129
+              <span v-if="(stepActive == 1 || step == 2) && value == 'sbly'"
130
+                >流程(设施归还审批)</span
131
+              >
112 132
             </div>
113
-            <div class="tf_title_right" v-if="value=='sbwx'">
114
-              <span style="margin-right: 10px" >提交给总经理和分公司审批</span>
133
+            <div class="tf_title_right" v-if="value == 'sbwx'">
134
+              <span style="margin-right: 10px">提交给总经理和分公司审批</span>
115 135
               <el-switch
116 136
                 v-model="isAudit"
117 137
                 :disabled="disabled"
@@ -277,6 +297,7 @@ export default {
277 297
       isAudit: 1,
278 298
       tableDataAuditCopy: [],
279 299
       value: "sbwx",
300
+      disabledSelect: true,
280 301
       options: [
281 302
         {
282 303
           value: "sbwx",
@@ -300,7 +321,7 @@ export default {
300 321
         },
301 322
       ],
302 323
       // 操作类型
303
-      workName:"",
324
+      workName: "",
304 325
     }
305 326
   },
306 327
   methods: {
@@ -333,14 +354,19 @@ export default {
333 354
         type = this.value
334 355
       }
335 356
 
336
-      // else if(this.stepActive == 1){
337
-      //   type = "sswxys"
338
-      // }
357
+      if (this.stepActive == 0 && this.value == "sbly") {
358
+        type = "sbly"
359
+      } else if (
360
+        (this.stepActive == 1 && this.value == "sbgh") ||
361
+        (this.stepActive == 2 && this.value == "sbgh")
362
+      ) {
363
+        type = "sbgh"
364
+      }
365
+
339 366
       var userId = this.userInfo.uid
340 367
       var depotId = this.userInfo.depotId
341 368
       getProcessList(type, userId, depotId).then((res) => {
342 369
         if (res.code == 200) {
343
-         
344 370
           for (let i = 0; i < res.data.length; i++) {
345 371
             var ele = res.data[i]
346 372
             if (ele.auditState != null) {
@@ -348,7 +374,7 @@ export default {
348 374
             }
349 375
             this.process.push(ele)
350 376
           }
351
-         
377
+
352 378
           if (this.process[0].content == 0) {
353 379
             this.process[0].content = this.userInfo.uid
354 380
           }
@@ -370,9 +396,15 @@ export default {
370 396
       if (this.stepActive == 0) {
371 397
         type = this.value
372 398
       }
373
-      // else if(this.stepActive == 1){
374
-      //   type = "sswxys"
375
-      // }
399
+      console.log(this.value, "type....")
400
+      if (this.stepActive == 0 && this.value == "sbly") {
401
+        type = "sbly"
402
+      } else if (
403
+        (this.stepActive == 1 && this.value == "sbly") ||
404
+        (this.stepActive == 2 && this.value == "sbgh")
405
+      ) {
406
+        type = "sbgh"
407
+      }
376 408
       var userId = this.userInfo.uid
377 409
       var depotId = this.userInfo.depotId
378 410
       let process = []
@@ -385,7 +417,7 @@ export default {
385 417
             }
386 418
             process.push(ele)
387 419
           }
388
-           console.log(this.process,"this.process")
420
+          console.log(process, "this.process???")
389 421
           if (process[0].content == 0) {
390 422
             process[0].content = this.userInfo.uid
391 423
           }
@@ -438,22 +470,21 @@ export default {
438 470
       }
439 471
 
440 472
       if (finish) {
441
-        console.log("/////",this.stepActive)
442
-       
473
+        console.log("/////", this.stepActive)
474
+
443 475
         // if (this.stepActive == 0 || this.stepActive == 1) {
444
-        if (this.stepActive == 0) {
445
-          
446
-           this.button = "保存并提交"
476
+        if (
477
+          this.stepActive == 0 ||
478
+          (this.stepActive == 1 && this.value == "sbly")
479
+        ) {
480
+          this.button = "保存并提交"
447 481
         } else {
448 482
           this.button = "完成"
449 483
         }
450
-        if(this.value=="sbtz" ||this.value=="sbdwgl"){
451
-          this.button="保存";
452
-          this.auditState=4;
453
-
484
+        if (this.value == "sbtz" || this.value == "sbdwgl") {
485
+          this.button = "保存"
486
+          this.auditState = 4
454 487
         }
455
-
456
-
457 488
       } else {
458 489
         if (this.step == 1) {
459 490
           if (this.value == "sbtz" || this.value == "sbdwgl") {
@@ -469,6 +500,7 @@ export default {
469 500
     //点击每步时
470 501
     stepClick(index) {
471 502
       //this.step = index + 1
503
+      console.log(index, this.stepActive, "?????")
472 504
       console.log(this.step, this.stepActive + 1)
473 505
 
474 506
       if (index > this.stepActive) {
@@ -512,29 +544,35 @@ export default {
512 544
         console.log(this.totalData, "???????????")
513 545
         this.tableData = this.totalData[1].list
514 546
         console.log(this.tableData)
547
+        if (
548
+          this.$route.query.workName == "设备资产转移申请" ||
549
+          this.$route.query.workName == "设备领用申请"
550
+        ) {
551
+          this.tableDataAudit = JSON.parse(
552
+            JSON.stringify(this.totalData[1].audit)
553
+          )
515 554
 
516
-        // this.isAudit = this.totalData[1].step.isAudit
517
-        // if (!this.isAudit && this.isAudit != 0) {
518
-        //   this.isAudit = 1
519
-        // }
520
-        // if (this.isAudit == 1) {
521
-        //   this.tableDataAudit = JSON.parse(
522
-        //     JSON.stringify(this.totalData[1].audit)
523
-        //   )
524
-        // } else if (this.isAudit == 0) {
525
-        //   this.tableDataAudit = JSON.parse(
526
-        //     JSON.stringify(this.totalData[1].audit)
527
-        //   ).slice(0, 3)
528
-        // }
529
-        // for (let i = 0; i < this.tableDataAudit.length; i++) {
530
-        //   var ele = this.tableDataAudit[i]
531
-        //   if (ele.auditState == 0) {
532
-        //     this.processActive = i
533
-        //   } else {
534
-        //     this.processActive = this.tableDataAudit.length
535
-        //   }
536
-        // }
537
-        //this.button = "保存并提交"
555
+          console.log(this.tableDataAudit, "this.totalData[1].audit")
556
+
557
+          for (let i = 0; i < this.tableDataAudit.length; i++) {
558
+            var ele = this.tableDataAudit[i]
559
+            if (ele.auditState == 0) {
560
+              this.processActive = i
561
+            } else {
562
+              this.processActive = this.tableDataAudit.length
563
+            }
564
+          }
565
+          this.button = "保存并提交"
566
+
567
+          if (this.$route.query.sbType == "sbly") {
568
+            this.isShow = false
569
+            this.disabled = true
570
+          }
571
+        }
572
+        if (this.$route.query.type == 3) {
573
+          this.disabled = true
574
+          this.isShow = false
575
+        }
538 576
       } else if (this.step == 3) {
539 577
         // this.isShow = true
540 578
         this.tableData = this.totalData[2].list
@@ -616,9 +654,14 @@ export default {
616 654
         // type = "sbwx"
617 655
         type = this.value
618 656
       }
619
-      // else if(this.stepActive == 1){
620
-      //   type = "sswxys"
621
-      // }
657
+      if (this.stepActive == 0 && this.value == "sbly") {
658
+        type = "sbly"
659
+      } else if (
660
+        (this.stepActive == 1 && this.value == "sbly") ||
661
+        (this.stepActive == 2 && this.value == "sbgh")
662
+      ) {
663
+        type = "sbgh"
664
+      }
622 665
       var data = {
623 666
         //流程类型
624 667
         type: type,
@@ -696,7 +739,8 @@ export default {
696 739
           index++
697 740
         ) {
698 741
           const element = this.totalData[this.stepActive].list[index]
699
-          if (element.subData == 1 && this.step == 1) {
742
+            //  if (element.subData == 1 && this.step == 1) {
743
+           if (element.subData == 1 && (this.step == 1||this.step==2)) {
700 744
             this.$message("只有选择是才能发起申请")
701 745
 
702 746
             status = 1
@@ -776,6 +820,10 @@ export default {
776 820
               //  this.getUpdateList()
777 821
             } else {
778 822
               this.auditState = 4
823
+              if (this.workName == "设备资产转移申请") {
824
+                this.value = "sbgh"
825
+              }
826
+
779 827
               this.getUpdateList()
780 828
             }
781 829
             //this.getUpdateList()
@@ -788,17 +836,24 @@ export default {
788 836
     getCheckList() {
789 837
       var processId = this.processId
790 838
       checkList(processId).then((res) => {
791
-        console.log(res.data, "查看数据");
839
+        console.log(res.data, "查看数据")
792 840
         console.log(this.stepActive)
793 841
         if (res.code == 200) {
794
-          this.totalData = res.data.process
842
+          this.totalData = res.data.process;
843
+          if(this.$route.query.sbType=="sbly"&&this.$route.query.type==2){
844
+           let subData2=this.totalData[1].list[0].subData;
845
+           if(subData2==null){
846
+             this.disabled=false;
847
+             this.isShow=true
848
+           }
849
+          }
795 850
           let ongoingStep = this.stepActive
796
-          if(this.value=="sbtz"||this.value=="sbdwgl"){
797
-             this.tableData = res.data.process[0].list
798
-          }else{ 
851
+          if (this.value == "sbtz" || this.value == "sbdwgl") {
852
+            this.tableData = res.data.process[0].list
853
+          } else {
799 854
             this.tableData = res.data.process[ongoingStep].list
800
-            }
801
-         
855
+          }
856
+
802 857
           this.isAudit = res.data.process[ongoingStep].step.isAudit
803 858
           if (!this.isAudit && this.isAudit != 0) {
804 859
             this.isAudit = 1
@@ -816,7 +871,7 @@ export default {
816 871
               }
817 872
               this.process.push(ele)
818 873
             }
819
-            console.log(this.process,"process")
874
+            console.log(this.process, "process")
820 875
             if (this.process[0].content == 0) {
821 876
               this.process[0].content = this.userInfo.uid
822 877
             } else {
@@ -836,10 +891,7 @@ export default {
836 891
             this.detailProcessList()
837 892
             this.tableShow()
838 893
           }
839
-          // this.totalData[0].list.splice(1, 0, {
840
-          //   details: "是,否",
841
-          //   process: this.process,
842
-          // })
894
+         
843 895
         }
844 896
       })
845 897
     },
@@ -918,10 +970,10 @@ export default {
918 970
 
919 971
     //下拉框的值改变时
920 972
     valueChange(event) {
921
-        console.log(this.$route.query.equipmentNameCode,"equipmentNameCode")
973
+      console.log(this.$route.query.equipmentNameCode, "equipmentNameCode")
922 974
       this.step = this.stepActive + 1
923
-      this.value = event;
924
-      this.process=[];
975
+      this.value = event
976
+      this.process = []
925 977
       console.log(this.value)
926 978
       if (event == "sbtz" || event == "sbdwgl") {
927 979
         this.processFirst()
@@ -944,7 +996,7 @@ export default {
944 996
         auditState: this.auditState,
945 997
         processId: this.processId,
946 998
         equipmentId: this.$route.query.equipmentId,
947
-      equipmentNameCode: localStorage.getItem("equipmentNameCode"),
999
+        equipmentNameCode: localStorage.getItem("equipmentNameCode"),
948 1000
         subList: this.subList,
949 1001
       }
950 1002
       yjbgAdd(data).then((res) => {
@@ -968,49 +1020,71 @@ export default {
968 1020
   },
969 1021
 
970 1022
   mounted() {
971
-  this.workName=this.$route.query.workName;
972
-  if(this.workName=="设备维修"){
973
-    this.value="sbwx"
974
-  }else if(this.workName=="设备定位管理"){
975
-    this.value="sbdwgl"
976
-  }else if(this.workName=="设备领用归还"){
977
-     this.value="sblygh"
978
-  }else if(this.workName=="设备报废"){
979
-    this.value="sbbf"
980
-  }else if(this.workName=="设备台账"){
981
-    this.value="sbtz"
982
-  }
1023
+    this.workName = this.$route.query.workName
1024
+    if (this.workName == "设备维修") {
1025
+      this.value = "sbwx"
1026
+    } else if (this.workName == "设备定位管理") {
1027
+      this.value = "sbdwgl"
1028
+    } else if (
1029
+      this.workName == "设备领用申请" ||
1030
+      this.workName == "设备资产转移申请"
1031
+    ) {
1032
+      this.value = "sbly"
1033
+    } else if (this.workName == "设备报废") {
1034
+      this.value = "sbbf"
1035
+    } else if (this.workName == "设备台账") {
1036
+      this.value = "sbtz"
1037
+    }
983 1038
     //获取当前缓存的用户信息
984 1039
     this.userInfo = JSON.parse(getUser())
985 1040
     this.step = this.stepActive + 1
986 1041
     this.getUserList()
1042
+
1043
+    if (this.stepActive == 0) {
1044
+      this.button = "保存并提交"
1045
+    } else {
1046
+      this.button = "暂存"
1047
+    }
1048
+    if (this.stepActive == 1 && this.$route.query.sbType == "sbly") {
1049
+      this.button = "保存并提交"
1050
+    }
1051
+    //   if (this.stepActive == 2 && this.$route.query.sbType == "sbgh") {
1052
+    //   this.button = "暂存"
1053
+    // }
1054
+   
987 1055
     if (this.$route.query.type == 1) {
988 1056
       this.isShow = true
989 1057
       this.disabled = false
1058
+      this.disabledSelect = false
990 1059
       this.processFirst()
991 1060
       this.processList()
992 1061
     } else if (this.$route.query.type == 2) {
993
-      this.isShow = true
994
-      this.disabled = false
1062
+      //  this.value=this.$route.query.sbType
995 1063
       this.stepActive = parseInt(this.$route.query.ongoingStep)
996 1064
       this.processId = this.$route.query.processId
1065
+      if (this.stepActive == 1 && this.$route.query.sbType == "sbly") {
1066
+        this.isShow = false
1067
+        this.disabled = true
1068
+        this.disabledSelect = false
1069
+      } else {
1070
+        this.isShow = true
1071
+        this.disabled = false
1072
+        this.disabledSelect = false
1073
+      }
997 1074
       this.step = this.stepActive + 1
998 1075
       this.getCheckList()
999 1076
     } else if (this.$route.query.type == 3) {
1077
+      // this.value=this.$route.query.sbType
1078
+
1000 1079
       this.isShow = false
1001 1080
       this.disabled = true
1081
+      this.disabledSelect = true
1002 1082
       this.processId = this.$route.query.processId
1003 1083
       //高亮显示
1004 1084
       this.stepActive = parseInt(this.$route.query.ongoingStep)
1005 1085
       this.step = this.stepActive + 1
1006 1086
       this.getCheckList()
1007 1087
     }
1008
-
1009
-    if (this.stepActive == 0 || this.stepActive == 3) {
1010
-      this.button = "保存并提交"
1011
-    } else {
1012
-      this.button = "暂存"
1013
-    }
1014 1088
   },
1015 1089
 }
1016 1090
 </script>

+ 1 - 1
shanXiPlatform/src/views/home/daiBan/initiated/index.vue

@@ -174,7 +174,7 @@ export default {
174 174
       //  console.log(userInfo,"/////")
175 175
       //   let homeType = userInfo.homeType
176 176
       var homeType = this.userInfo.homeType
177
-      if(item.type == 'xzjh' || item.type == 'xzsq' || item.type == 'sswxjh' || item.type == 'sswxys' || item.type == 'sbcg'|| item.type == 'sbwx'||item.type == 'sbbf'){
177
+      if(item.type == 'xzjh' || item.type == 'xzsq' || item.type == 'sswxjh' || item.type == 'sswxys' || item.type == 'sbcg'|| item.type == 'sbwx'||item.type == 'sbbf'||item.type == 'sbly'||item.type == 'sbgh'){
178 178
         if (homeType == 1) {
179 179
           this.$router.push({
180 180
             path: "/dashboard/daiban/initiated/inixunzengDetails",

+ 5 - 1
shanXiPlatform/src/views/home/daiBan/initiated/xunzengDetails.vue

@@ -33,7 +33,7 @@
33 33
           <span v-if="this.subData == 1">否</span>
34 34
           <span v-if="this.subData == 0">是</span>
35 35
         </div>
36
-        <div style="margin-left: 20px" v-if="type == 'sswxjh' || type == 'sswxys' || type == 'sbcg'||type=='sbwx'||type=='sbbf'">
36
+        <div style="margin-left: 20px" v-if="type == 'sswxjh' || type == 'sswxys' || type == 'sbcg'||type=='sbwx'||type=='sbbf' ||type == 'sbly'||type == 'sbgh'">
37 37
           <div v-for="(item,index) in tableData.list" :key="index">
38 38
             <span>{{index+1}}.{{item.title}}:</span>
39 39
             <span v-if="item.subData == 1">否</span>
@@ -457,6 +457,10 @@ export default {
457 457
       this.ongoingStep = 0
458 458
     }else if(this.$route.query.type == 'sbwx'){
459 459
       this.ongoingStep = 0
460
+    }else if(this.$route.query.type == 'sbly'){
461
+      this.ongoingStep = 0
462
+    }else if(this.$route.query.type == 'sbgh'){
463
+      this.ongoingStep = 1
460 464
     }
461 465
     this.type = this.$route.query.type
462 466
 

+ 1 - 1
shanXiPlatform/src/views/home/daiBan/pending/index.vue

@@ -221,7 +221,7 @@ export default {
221 221
 
222 222
       var homeType = this.userInfo.homeType
223 223
       if (item.type.indexOf('code') == -1) {
224
-        if(item.type == 'xzjh' || item.type == 'xzsq' || item.type == 'sswxjh' || item.type == 'sswxys' || item.type == 'sbcg'||item.type == 'sbwx'||item.type == 'sbbf'){
224
+        if(item.type == 'xzjh' || item.type == 'xzsq' || item.type == 'sswxjh' || item.type == 'sswxys' || item.type == 'sbcg'||item.type == 'sbwx'||item.type == 'sbbf'||item.type == 'sbly'||item.type == 'sbgh'){
225 225
           if (homeType == 1) {
226 226
             this.$router.push({
227 227
               name: "XunzengDetails",

+ 1 - 1
shanXiPlatform/src/views/home/daiBan/pending/xunzengDetails.vue

@@ -33,7 +33,7 @@
33 33
           <span v-if="this.subData == 1">否</span>
34 34
           <span v-if="this.subData == 0">是</span>
35 35
         </div>
36
-        <div style="margin-left: 20px" v-if="type == 'sswxjh' || type == 'sswxys' || type == 'sbcg'||type == 'sbbf'||type == 'sbwx'">
36
+        <div style="margin-left: 20px" v-if="type == 'sswxjh' || type == 'sswxys' || type == 'sbcg'||type == 'sbbf'||type == 'sbwx'||type == 'sbly'||type == 'sbgh'">
37 37
           <div v-for="(item,index) in tableData.list" :key="index">
38 38
             <span>{{index+1}}.{{item.title}}:</span>
39 39
             <span v-if="item.subData == 1">否</span>

+ 1 - 1
shanXiPlatform/src/views/home/daiBan/processed/index.vue

@@ -227,7 +227,7 @@ export default {
227 227
       // let userInfo = JSON.parse(getUser())
228 228
       var homeType = this.userInfo.homeType
229 229
       if (item.type.indexOf('code') == -1) {
230
-        if(item.type == 'xzjh' || item.type == 'xzsq' || item.type == 'sswxjh' || item.type == 'sswxys' || item.type == 'sbcg'||item.type == 'sbwx' ||item.type == 'sbbf'){
230
+        if(item.type == 'xzjh' || item.type == 'xzsq' || item.type == 'sswxjh' || item.type == 'sswxys' || item.type == 'sbcg'||item.type == 'sbwx' ||item.type == 'sbbf'||item.type == 'sbly' ||item.type == 'sbgh'){
231 231
           if (homeType == 1) {
232 232
             this.$router.push({
233 233
               path: "/dashboard/daiban/processed/xunzengDetails",

+ 5 - 1
shanXiPlatform/src/views/home/daiBan/processed/xunzengDetails.vue

@@ -33,7 +33,7 @@
33 33
           <span v-if="this.subData == 1">否</span>
34 34
           <span v-if="this.subData == 0">是</span>
35 35
         </div>
36
-        <div style="margin-left: 20px" v-if="type == 'sswxjh' || type == 'sswxys' || type == 'sbcg' ||type == 'sbwx'||type=='sbbf'">
36
+        <div style="margin-left: 20px" v-if="type == 'sswxjh' || type == 'sswxys' || type == 'sbcg' ||type == 'sbwx'||type=='sbbf'||type=='sbly'||type=='sbgh'">
37 37
           <div v-for="(item,index) in tableData.list" :key="index">
38 38
             <span>{{index+1}}.{{item.title}}:</span>
39 39
             <span v-if="item.subData == 1">否</span>
@@ -461,6 +461,10 @@ export default {
461 461
       this.ongoingStep = 0
462 462
     }else if(this.$route.query.type == 'sbwx'){
463 463
       this.ongoingStep = 0
464
+    }else if(this.$route.query.type == 'sbly'){
465
+      this.ongoingStep = 0
466
+    }else if(this.$route.query.type == 'sbgh'){
467
+      this.ongoingStep = 1
464 468
     }
465 469
 
466 470
     this.getCheckList()

+ 2 - 1
shanXiPlatform/src/views/systemManagement/equipmentWarehouse/detail.vue

@@ -128,7 +128,8 @@ export default {
128 128
                 management: "",
129 129
                 enterpriseName: "",
130 130
                 egistrant: "",
131
-                depotId:''
131
+                depotId:'',
132
+                state:0
132 133
             }
133 134
         }
134 135
     },