safecheck-client 3.0.35-56 → 3.0.35-58

Sign up to get free protection for your applications and to get access to all the features.
@@ -307,7 +307,7 @@
307
307
  </div>
308
308
  <div class="form-group col-sm-4" >
309
309
  <label class="font_normal_body">计划年份:</label>
310
- <v-select
310
+ <v-select
311
311
  class="select select_list"
312
312
  :value.sync="upCheckPlan.f_plan_year"
313
313
  v-model="upCheckPlan.f_plan_year"
@@ -317,18 +317,7 @@
317
317
 
318
318
  close-on-select
319
319
  value-single>
320
-
321
-
322
320
  </v-select>
323
- <!-- <datepicker
324
- placeholder='请选择'
325
- style="width:60%"
326
- :disabled-days-of-week="[]"
327
- :format="'yyyy'"
328
- :show-rest-button="reset"
329
- :value.sync="upCheckPlan.f_plan_year"
330
- v-model="upCheckPlan.f_plan_year">
331
- </datepicker>-->
332
321
  </div>
333
322
  <div class="form-group col-sm-4" >
334
323
  <label class="font_normal_body">计划月份:</label>
@@ -356,6 +345,18 @@
356
345
  >
357
346
  </v-select>
358
347
  </div>
348
+ <div class="form-group col-sm-4" v-show="upCheckPlan.isShare=='是'">
349
+ <label class="font_normal_body">安&ensp;检&ensp;员:</label>
350
+ <v-select
351
+ class="select select_list"
352
+ :value.sync="upCheckPlan.checkers"
353
+ v-model="upCheckPlan.checkers"
354
+ :options='checker'
355
+ placeholder='请选择'
356
+ :multiple="true"
357
+ >
358
+ </v-select>
359
+ </div>
359
360
  <div class="form-group col-sm-4" v-show="upCheckPlan.isShare=='否'">
360
361
  <label class="font_normal_body">安&ensp;检&ensp;员:</label>
361
362
  <v-select
@@ -654,10 +655,10 @@
654
655
  this.showUpPlan=true
655
656
  },
656
657
  async upPlan(){
657
- if(this.upCheckPlan.f_issued=='已下发'){
658
- this.$showMessage("该计划已下发,无法进行修改!")
659
- return
660
- }
658
+ // if(this.upCheckPlan.f_issued=='已下发'){
659
+ // this.$showMessage("该计划已下发,无法进行修改!")
660
+ // return
661
+ // }
661
662
  if(!this.upCheckPlan.f_plan_name){
662
663
  Vue.showMessage("请输入安检计划名称!")
663
664
  return false
@@ -673,6 +674,12 @@
673
674
  console.log(this.upCheckPlan)
674
675
 
675
676
  if(this.upCheckPlan.isShare=="是"){
677
+ if(this.upCheckPlan.checkers.length > 0){
678
+ this.upCheckPlan.checkers.forEach((value) => {
679
+ this.upCheckPlan.f_checkerstr += `${value.name},`
680
+ })
681
+ this.upCheckPlan.f_checkerstr = this.upCheckPlan.f_checkerstr.slice(0, -1)
682
+ }
676
683
  this.upCheckPlan.f_checker_id=null
677
684
  this.upCheckPlan.f_checker=null
678
685
  }else{
@@ -682,7 +689,10 @@
682
689
  this.isSend=true
683
690
  let res=await new HttpResetClass().load("POST", "/rs/logic/updateCheckPlan", {
684
691
  data:{
692
+ issued:'true',
693
+ checkers:this.upCheckPlan.checkers,
685
694
  f_checker:this.upCheckPlan.f_checker,
695
+ f_checkerstr:this.upCheckPlan.f_checkerstr,
686
696
  f_safecheck_type:this.upCheckPlan.f_safecheck_type,
687
697
  f_checker_id:this.upCheckPlan.f_checker_id,
688
698
  f_plan_name:this.upCheckPlan.f_plan_name,
package/src/safecheck.js CHANGED
@@ -300,6 +300,9 @@ export default function (filiale) {
300
300
  Vue.component('security-check-ledger2', (resolve) => {
301
301
  require(['./components/pc/SecurityCheckList'], resolve)
302
302
  })
303
+ Vue.component('security-check-ledger3', (resolve) => {
304
+ require(['./components/pc/SecurityCheckUser'], resolve)
305
+ })
303
306
  Vue.component('security-check-ledger1', (resolve) => {
304
307
  require(['./components/pc/SecurityCheckLedger'], resolve)
305
308
  })