safecheck-client 3.0.35-3 → 3.0.35-31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. package/package.json +1 -1
  2. package/src/components/NewDefectList/DefectListNew.vue +617 -617
  3. package/src/components/Util/SafecheckUpload.vue +4 -0
  4. package/src/components/android/CheckPlanDown.vue +1 -1
  5. package/src/components/android/CivilCurrentCreate.vue +56 -41
  6. package/src/components/android/NoCivilCurrentCreate.vue +10 -0
  7. package/src/components/android/PhoneUpUserinfo.vue +25 -6
  8. package/src/components/android/SafecheckOrderV.vue +2805 -2805
  9. package/src/components/pc/SecurityCheckLedger.vue +113 -0
  10. package/src/components/planmanage/PlanManage.vue +47 -2
  11. package/src/components/report/CheckPlanAreaList.vue +25 -5
  12. package/src/components/rongcheng/AddPlanItem.vue +1 -1
  13. package/src/components/rongcheng/AspiratedAreaPlan.vue +1 -0
  14. package/src/components/rongcheng/AspiratedPaperFeedbackm.vue +4 -0
  15. package/src/components/rongcheng/AspiratedUserInfo.vue +12 -4
  16. package/src/components/rongcheng/CheckSearchUser.vue +1 -1
  17. package/src/components/rongcheng/SafecheckOrderV.vue +1 -1
  18. package/src/components/rongcheng/SafecheckUserInfo.vue +12 -12
  19. package/src/filiale/bayan/android/AddPlanItem.vue +22 -2
  20. package/src/filiale/bayan/android/CheckPlanDown.vue +2 -2
  21. package/src/filiale/bayan/android/CurrentCreate.vue +10 -0
  22. package/src/filiale/bayan/android/PhoneUpUserinfo.vue +908 -905
  23. package/src/filiale/bayan/android/SafecheckOrderV.vue +76 -20
  24. package/src/filiale/bayan/android/SafecheckUserInfo.vue +4 -0
  25. package/src/filiale/bayan/pc/PlanManage.vue +2 -0
  26. package/src/filiale/bayan/pc/SelectCheckPlan.vue +6 -1
  27. package/src/filiale/huaran/android/CheckPlanDown.vue +212 -0
  28. package/src/filiale/huaran/android.js +1 -0
  29. package/src/filiale/huaran/pc/PlanManage.vue +53 -6
  30. package/src/filiale/huaran/pc/checkUserList.vue +55 -22
  31. package/src/filiale/huaran/pc.js +1 -0
  32. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -2807
  33. package/src/filiale/qianneng/android/SafecheckOrderV.vue +2785 -2785
  34. package/src/filiale/shanxian/android/AddPlanItem.vue +1 -1
  35. package/src/filiale/shanxian/android/SafecheckOrderV.vue +2979 -2979
  36. package/src/filiale/shanxian/pc/checkUserList.vue +1 -1
  37. package/src/filiale/siyang/pc/CheckSearchUser.vue +1035 -1035
  38. package/src/filiale/siyang/pc/checkUserList.vue +108 -133
  39. package/src/filiale/tongchuan/android/SafecheckOrderV.vue +3 -3
  40. package/src/filiale/tongchuan/pc/CheckSearchUser.vue +5 -13
  41. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1060 -1060
  42. package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +735 -735
  43. package/src/filiale/weinan/pc/CheckDetail.vue +278 -278
  44. package/src/filiale/weinan/pc/checkUserList.vue +712 -712
  45. package/src/filiale/xilan/android/CurrentCreate.vue +1053 -1067
  46. package/src/filiale/xilan/android.js +0 -1
  47. package/src/safecheck.js +3 -0
  48. package/src/filiale/xilan/android/AddPlanItem.vue +0 -461
@@ -162,7 +162,7 @@
162
162
  // "f_repair_approved":"未审核","f_no_checkplan":"有计划安检","f_plan_name":"关于","f_repair_approved_by":null,"f_room":"1","f_office":null,"f_comments":null,
163
163
  // "f_address":"兰山街道泰盛小区1栋1单元1层1室","id_back":null,"f_userinfoid":"2","f_subcompany":null,"f_addressid":null,"f_user_phone2":null,
164
164
  // "f_user_equipment_remarks":null,"f_plan_id":"0819ea6707ad4d9dad217c06a87f4227","f_user_name":"用户二",
165
- // "f_plan_meters":[{"f_weizhi":null,"f_flow_direction":"右表","f_metertitles":"","f_prior_reading":0,"f_meter_no":"2119035714","f_collection_type":"按金额","f_aliasname":"先锋系统结算物联网表","f_meter_type":"物联网表","version":3,"f_maker":null,"f_metergasnums":0,"f_total_fee":100,"f_diaphgram_size":"G2.5","f_total_gas":0,"id":18663},{"f_weizhi":null,"f_flow_direction":"右表","f_metertitles":"","f_prior_reading":0,"f_meter_no":"2118999901","f_collection_type":"按金额","f_aliasname":"先锋系统结算物联网表","f_meter_type":"物联网表","version":1,"f_maker":null,"f_metergasnums":0,"f_total_fee":0,"f_diaphgram_size":"G2.5","f_total_gas":0,"id":18663}]
165
+ // "f_plan_meters":[{"f_weizhi":null,"f_pregas":"右表","f_metertitles":"","f_prior_reading":0,"f_meter_no":"2119035714","f_collection_type":"按金额","f_aliasname":"先锋系统结算物联网表","f_meter_type":"物联网表","version":3,"f_maker":null,"f_metergasnums":0,"f_total_fee":100,"f_diaphgram_size":"G2.5","f_total_gas":0,"id":18663},{"f_weizhi":null,"f_pregas":"右表","f_metertitles":"","f_prior_reading":0,"f_meter_no":"2118999901","f_collection_type":"按金额","f_aliasname":"先锋系统结算物联网表","f_meter_type":"物联网表","version":1,"f_maker":null,"f_metergasnums":0,"f_total_fee":0,"f_diaphgram_size":"G2.5","f_total_gas":0,"id":18663}]
166
166
  // },
167
167
 
168
168
  data: {
@@ -255,19 +255,20 @@
255
255
  "基表编号":{"index":1,"type":"string","readonly":true},
256
256
  "气表型号":{"index":2,"type":"string","readonly":true},
257
257
  "气表品牌":{"index":3,"type":"string","readonly":true},
258
- "进气方向":{"index":4,"type":"string","readonly":true,isshow:false},
258
+ "进气方向":{"index":4,"type":"string","readonly":true},
259
259
  "初始表底":{"index":5,"type":"number","isshow":false,"readonly":true},
260
260
  "上期表读数":{"index":6,"type":"number","readonly":true,isshow:false},
261
- "累购气量":{"index":7,"type":"number","readonly":true},
261
+ "表累购气量":{"index":7,"type":"number","readonly":true},
262
262
  "累购金额":{"index":7,"type":"number","readonly":true},
263
- "已用气量":{"index":8,"type":"number","checkmust": false},//基表数
264
- "已用金额":{"index":8,"type":"number","checkmust": false},
265
- "剩余气量":{"index":9,"type":"number","checkmust": false},//累购-已用
266
- "剩余金额":{"index":9,"type":"number","checkmust": false},
267
- "气量异常差值":{"index":10,"type":"number","readonly": true},
268
- "金额异常差值":{"index":10,"type":"number","readonly": true},
269
- "表箱号":{"index":11,"type":"string","readonly": true},
270
- "燃气表照片":{"index":12,"type":"picture","checkmust": false}
263
+ "户累购气量":{"index":8,"type":"number","readonly":true},
264
+ "已用气量":{"index":9,"type":"number","checkmust": false},//基表数
265
+ "已用金额":{"index":9,"type":"number","checkmust": false},
266
+ "剩余气量":{"index":10,"type":"number","checkmust": false},//累购-已用
267
+ "剩余金额":{"index":10,"type":"number","checkmust": false},
268
+ "气量异常差值":{"index":11,"type":"number","readonly": true},
269
+ "金额异常差值":{"index":11,"type":"number","readonly": true},
270
+ "表箱号":{"index":12,"type":"string","readonly": true},
271
+ "燃气表照片":{"index":13,"type":"picture","checkmust": false}
271
272
  }
272
273
  },
273
274
  },
@@ -287,11 +288,12 @@
287
288
  "剩余金额":{"index":9,"type":"string","checkmust": false},
288
289
  "累购气量":{"index":10,"type":"string","readonly":true},
289
290
  "表累购气量":{"index":11,"type":"string","readonly":false},
290
- "已用气量":{"index":12,"type":"string","checkmust": false},
291
- "剩余气量":{"index":13,"type":"string","checkmust": false},
292
- "气量异常差值":{"index":14,"type":"number","readonly": true},
293
- "金额异常差值":{"index":15,"type":"number","readonly": true},
294
- "燃气表照片":{"index":16,"type":"picture","checkmust": false}
291
+ "户累购气量":{"index":12,"type":"number","readonly":true},
292
+ "已用气量":{"index":13,"type":"string","checkmust": false},
293
+ "剩余气量":{"index":14,"type":"string","checkmust": false},
294
+ "气量异常差值":{"index":15,"type":"number","readonly": true},
295
+ "金额异常差值":{"index":16,"type":"number","readonly": true},
296
+ "燃气表照片":{"index":17,"type":"picture","checkmust": false}
295
297
 
296
298
  }
297
299
  },
@@ -2069,6 +2071,24 @@
2069
2071
  f_path: "",
2070
2072
  type: "string"
2071
2073
  },
2074
+ {
2075
+ f_defect_level: null,
2076
+ f_device_id: "",
2077
+ f_is_defect: "",
2078
+ f_item_name: "户累购气量",
2079
+ f_item_value: this.item.f_plan_meters[i].f_pregas,
2080
+ f_path: "",
2081
+ type: "string"
2082
+ },
2083
+ {
2084
+ f_defect_level: null,
2085
+ f_device_id: "",
2086
+ f_is_defect: "",
2087
+ f_item_name: "进气方向",
2088
+ f_item_value: this.item.f_plan_meters[i].f_flow_direction,
2089
+ f_path: "",
2090
+ type: "string"
2091
+ },
2072
2092
  {
2073
2093
  f_defect_level: null,
2074
2094
  f_device_id: "",
@@ -2122,6 +2142,24 @@
2122
2142
  f_path: "",
2123
2143
  type: "string"
2124
2144
  },
2145
+ {
2146
+ f_defect_level: null,
2147
+ f_device_id: "",
2148
+ f_is_defect: "",
2149
+ f_item_name: "户累购气量",
2150
+ f_item_value: this.item.f_plan_meters[i].f_pregas,
2151
+ f_path: "",
2152
+ type: "string"
2153
+ },
2154
+ {
2155
+ f_defect_level: null,
2156
+ f_device_id: "",
2157
+ f_is_defect: "",
2158
+ f_item_name: "进气方向",
2159
+ f_item_value: this.item.f_plan_meters[i].f_flow_direction,
2160
+ f_path: "",
2161
+ type: "string"
2162
+ },
2125
2163
  {
2126
2164
  f_defect_level: null,
2127
2165
  f_device_id: "",
@@ -2148,7 +2186,7 @@
2148
2186
  //tag)
2149
2187
  //tag)
2150
2188
  /*
2151
- "累购气量":{"index":8,"type":"number","readonly":true},
2189
+ "表累购气量":{"index":8,"type":"number","readonly":true},
2152
2190
  "累购金额":{"index":8,"type":"number","readonly":true},
2153
2191
  "字轮读数":{"index":9,"type":"number","checkmust": true},
2154
2192
  "已用金额":{"index":9,"type":"number","checkmust": true},
@@ -2160,7 +2198,7 @@
2160
2198
  if (this.item.f_plan_meters[i].f_collection_type == '按金额') {
2161
2199
  if (!this.data.f_collection_type) {
2162
2200
  this.data.f_collection_type = this.item.f_plan_meters[i].f_collection_type
2163
- delete this.config['燃气表']['items']['累购气量']
2201
+ delete this.config['燃气表']['items']['表累购气量']
2164
2202
  delete this.config['燃气表']['items']['已用气量']
2165
2203
  delete this.config['燃气表']['items']['剩余气量']
2166
2204
  delete this.config['燃气表']['items']['气量异常差值']
@@ -2237,7 +2275,7 @@
2237
2275
  f_defect_level: null,
2238
2276
  f_device_id: "",
2239
2277
  f_is_defect: "",
2240
- f_item_name: "累购气量",
2278
+ f_item_name: "表累购气量",
2241
2279
  f_item_value: this.item.f_plan_meters[i].f_total_gas,
2242
2280
  f_path: "",
2243
2281
  type: "number"
@@ -2300,7 +2338,7 @@
2300
2338
  f_defect_level: null,
2301
2339
  f_device_id: "",
2302
2340
  f_is_defect: "",
2303
- f_item_name: "累购气量",
2341
+ f_item_name: "表累购气量",
2304
2342
  f_item_value: this.item.f_plan_meters[i].f_total_gas,
2305
2343
  f_path: "",
2306
2344
  type: "number"
@@ -2381,6 +2419,24 @@
2381
2419
  f_path: "",
2382
2420
  type: "string"
2383
2421
  },
2422
+ {
2423
+ f_defect_level: null,
2424
+ f_device_id: "",
2425
+ f_is_defect: "",
2426
+ f_item_name: "户累购气量",
2427
+ f_item_value: this.item.f_plan_meters[i].f_pregas,
2428
+ f_path: "",
2429
+ type: "string"
2430
+ },
2431
+ {
2432
+ f_defect_level: null,
2433
+ f_device_id: "",
2434
+ f_is_defect: "",
2435
+ f_item_name: "进气方向",
2436
+ f_item_value: this.item.f_plan_meters[i].f_flow_direction,
2437
+ f_path: "",
2438
+ type: "string"
2439
+ },
2384
2440
  {
2385
2441
  f_defect_level: null,
2386
2442
  f_device_id: "",
@@ -142,6 +142,10 @@
142
142
  </div>
143
143
 
144
144
  </div>
145
+ <div class="col-xs-12 row" style="padding: 2px 0">
146
+ <p class="panel-title col-xs-4 text-left font">临时联系电话</p>
147
+ <p class="panel-title col-xs-8 text-left input-font">{{ f_rent_phone }}</p>
148
+ </div>
145
149
  <div class="form-group col-sm-12 col-xs-12" :class="style__" v-show="f_entry_status=='到访不遇'">
146
150
  <label class="text-left font">到访不遇照片:</label>
147
151
  <div class="auto">
@@ -488,6 +488,7 @@
488
488
  isSend:false,
489
489
  createPlan:{
490
490
  f_outlets:'',
491
+ f_class:'',
491
492
  f_end_time:'',
492
493
  f_start_time:'',
493
494
  f_plan_name:'',
@@ -638,6 +639,7 @@
638
639
  f_plan_name:'',
639
640
  f_plan_year:'',
640
641
  f_plan_month:'',
642
+ f_class:'',
641
643
  f_outlets:'',
642
644
  isShare:'否',
643
645
  f_issued:'否',
@@ -59,13 +59,18 @@
59
59
  </div>
60
60
  <div :class="{'form-group col-sm-3':$parent.$parent.$parent.isdetail,'form-group col-sm-2':!$parent.$parent.$parent.isdetail}">
61
61
  <label class="font_normal_body">用户类型</label>
62
- <v-select :value.sync="model.f_check_type" v-model='model.f_check_type'
62
+ <v-select :value.sync="model.f_check_type" v-model='model.f_check_typef_check_type'
63
63
  :value-single="true" style="width: 60%"
64
64
  class="select_list select"
65
65
  :options='$parent.$parent.checktype' placeholder='客户类型'
66
66
  close-on-select
67
67
  condition="f_check_type = '{}'"></v-select>
68
68
  </div>
69
+ <div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
70
+ <label class="font_normal_body" >小&emsp;&emsp;区</label>
71
+ <input type="text" class="input_search" v-model="model.f_residential_area"
72
+ style="width: 60%" placeholder="小区" condition="f_residential_area like '%{}%'">
73
+ </div>
69
74
  <div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
70
75
  <label class="font_normal_body" >区&emsp;&emsp;域</label>
71
76
  <v-select :value.sync="model.f_quyu" :value-single="true" v-model="model.f_quyu"
@@ -0,0 +1,212 @@
1
+ <template>
2
+ <div class="auto">
3
+
4
+ <div class="auto">
5
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' @condition-changed='search' v-ref:cri>
7
+ <div partial>
8
+ <div class="row app-row">
9
+ <div class="col-xs-4">
10
+ <img src="../../../assets/档案信息.png" style="width: 20px;margin-bottom: 5px" alt="">
11
+ <label for="f_plan_name" class="font text-left">计划名称:</label>
12
+ </div>
13
+ <div class="col-xs-8" >
14
+ <input id="f_plan_name" class="search_input input-font"
15
+ v-model="model.f_plan_name" condition="f_plan_name like '%{}%'" />
16
+ </div>
17
+ </div>
18
+ <div class="row text-center" style="margin-top: 20px;">
19
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="search">查询</button>
20
+ </div>
21
+ <!--<div class="row app-btn">-->
22
+ <!--<button class="btn btn-primary col-xs-6" type="button" @click="search"><span class="glyphicon glyphicon-search" style="margin-right: 20px;">查询</span></button>-->
23
+ <!--</div>-->
24
+ <div style="height:30px;"></div>
25
+ </div>
26
+ </criteria>
27
+ <list :model="model" partial='list'>
28
+ <div partial>
29
+ <div class="auto app-text" style="margin-top: 5px;">
30
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
31
+ <div class="panel-body panel-self">
32
+ <div class="row">
33
+ <p class="panel-title col-xs-4 text-left font">计划名称</p>
34
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_plan_name }}</p>
35
+ </div>
36
+ <div class="row">
37
+ <p class="panel-title col-xs-4 text-left font">计划时间</p>
38
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_plan_year }}/{{row.f_plan_month}}</p>
39
+ </div>
40
+ <!--<div class="row">-->
41
+ <!--<p class="panel-title col-xs-4 text-left font">生成人员</p>-->
42
+ <!--<p class="panel-title col-xs-8 text-left input-font">{{ row.f_create_operator }}/{{row.f_plan_month}}</p>-->
43
+ <!--</div>-->
44
+ <!--<div class="row">-->
45
+ <!--<p class="panel-title col-xs-4 text-left font">下发人员</p>-->
46
+ <!--<p class="panel-title col-xs-8 text-left input-font">{{ row.f_send_operator }}/{{row.f_plan_month}}</p>-->
47
+ <!--</div>-->
48
+ <div class="row text-right" >
49
+ <button type="button" class="btn yybtn-color" v-on:click.stop.prevent='$parent.$parent.$parent.downloadHand(row)' v-if="$parent.$parent.$parent.isDown(row)">下载</button>&nbsp;
50
+ </div>
51
+ </div>
52
+ </div>
53
+
54
+ </div>
55
+ </div>
56
+ </list>
57
+ </criteria-paged>
58
+ </div>
59
+ <!--<div class="row text-center" style="margin-top: 20px;">-->
60
+ <!--<button type="' 正在进行共享计划下载,请确认!' btn-lg btn-font btn-color" style="width: 45%;" @click="downHand()">共享计划下载</button>-->
61
+ <!--&lt;!&ndash;<button type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="database()">数据库导出</button>&ndash;&gt;-->
62
+ <!--</div>-->
63
+ <!-- <div class="auto" style="padding-top: 20px;" v-if='show'>
64
+ <p class="text-warning" style="padding: 0 10px">正在下载抄表单...</p>
65
+ </div> -->
66
+ <!-- <hand-info v-if="show" :data="handinfo"></hand-info> -->
67
+ <!-- <div class="auto" v-if="!show">
68
+ <p class="text-warning" style="padding: 0 10px">
69
+ 暂无可操作的抄表信息
70
+ </p>
71
+ </div> -->
72
+ </div>
73
+ <!-- <back-page :need-back='true' @flag="$back()"></back-page>-->
74
+ </template>
75
+ <script>
76
+ import { PagedList } from 'vue-client'
77
+ import co from 'co'
78
+ import Vue from 'vue'
79
+ // const downloadHand = function * (self, row) {
80
+ //
81
+ // }
82
+
83
+ export default {
84
+ title: '共享计划下载',
85
+ data () {
86
+ return {
87
+ model: new PagedList( `${this.$androidUtil.getProxyUrl()}/rs/sql/getShareCheckPlan`,5,{f_fengongsi:`'${Vue.user.orgid}'`,f_fengongsi_name:`'${Vue.user.orgs.split('.').pop()}'`}),
88
+ checkPlanInfo: [],
89
+ localcheckPlanInfo:[]
90
+ }
91
+ },
92
+ ready () {
93
+
94
+ this.getlocalCheckPlan()
95
+ },
96
+ methods: {
97
+ reload() {
98
+ //tag
99
+ this.$refs.paged.loadPage(this.$refs.paged.model.pageIndex)
100
+ },
101
+ getlocalCheckPlan() {
102
+ let value = this.$androidUtil.path({alias: 'getLocalCheckPlan', data: {}})
103
+ //tag
104
+ this.localcheckPlanInfo = value.data
105
+ // this.$androidUtil.path({alias: 'getLocalCheckPlan', data:{}}).then((value)=>{
106
+ // //tag
107
+ // this.localcheckPlanInfo = value.data
108
+ // })
109
+ },
110
+ downloadHand(row) {
111
+ HostApp.__this__ =this
112
+ this.$showMessage('正在进行共享计划下载,请确认!', ['confirm', 'cancel']).then((res) => {
113
+ if (res === 'confirm') {
114
+ HostApp.logicWithHint({
115
+ 'logic': 'DownCheckPlanInfo',
116
+ 'callback': 'javascript: HostApp.__this__.downloadHandCallback()',
117
+ 'data': {id: row.id},
118
+ 'backresult': 1
119
+ })
120
+ }
121
+ })
122
+ },
123
+ downloadHandCallback(jo) {
124
+ // 安卓端
125
+ //tag
126
+ if (jo.state == 'ok') {
127
+ let result = JSON.parse(jo.result)
128
+ if (result.state == 0) {
129
+ if (result.data.length > 0) {
130
+ this.getlocalCheckPlan()
131
+ this.$showMessage('下载成功,您可前往计划导航进行查看!')
132
+ } else {
133
+ this.$showMessage('无可下载的共享计划!')
134
+ }
135
+ } else {
136
+ this.$showMessage('下载失败!')
137
+ }
138
+ } else {
139
+ this.$showMessage('下载失败,请重试!')
140
+ }
141
+ }
142
+ },
143
+ computed: {
144
+ isDown () {
145
+ return function (row) {
146
+ for (let info of this.localcheckPlanInfo) {
147
+ if (info.id == row.id) {
148
+ return false
149
+ }
150
+ }
151
+ return true
152
+ }
153
+ }
154
+ }
155
+ }
156
+ </script>
157
+ <style>
158
+ .bg {
159
+ background-color: blue;
160
+ height: 1px;
161
+ border: 0;
162
+ }
163
+ .app-row {
164
+ background-color: white;
165
+ padding: 10px 10px 0 10px;
166
+ border-bottom: 1px solid rgba(235, 235, 235, 0.5);
167
+ }
168
+ .search_input {
169
+ border: 0;
170
+ outline: none;
171
+ }
172
+ .font{
173
+ font: 15px PingFang-SC-Medium;
174
+ color: #666666;
175
+ }
176
+ .input-font{
177
+ font: 15px PingFang-SC-Medium;
178
+ color: #333333;
179
+ }
180
+ .btn-font{
181
+ font:600 16px PingFang-SC-Bold;
182
+ color: #499EDF;
183
+ }
184
+ .btn-color{
185
+ background-color: #FFFFFF;
186
+ border-radius: 10px ;
187
+ border: 1px solid #499EDF;
188
+ }
189
+ .app-text {
190
+ font-size: 12px;
191
+ }
192
+ .panel-self{
193
+ border-radius: 10px;
194
+ border:1px solid #499EDF;
195
+ background-color: #F8F8F8;
196
+ }
197
+ .yybtn-color{
198
+ background-color:#499edf;
199
+ border-radius: 4px ;
200
+ border: 1px solid #499EDF;
201
+ color: #FFFFFF;
202
+ font: 14px PingFang-SC-Bold;
203
+ }
204
+ .qxbtn-color{
205
+ background-color: #FFFFFF;
206
+ border-radius: 4px ;
207
+ color: #499edf;
208
+ font: 14px PingFang-SC-Bold;
209
+ border: 1px solid #499EDF;
210
+ }
211
+
212
+ </style>
@@ -4,6 +4,7 @@ import Vue from "vue";
4
4
  //手机特殊目录注册到该文件中
5
5
  let specialComp = {
6
6
  'safecheck-order-v': (resolve) => { require(['./android/SafecheckOrderV'], resolve) },
7
+ 'check-plan-down': (resolve) => { require(['./android/CheckPlanDown'], resolve) }
7
8
  }
8
9
  exports.specialComp = specialComp
9
10
 
@@ -20,7 +20,7 @@
20
20
  v-for="row in checkplan.list.data" @click="selectPlanChange(row)">
21
21
  <table style="width:100%;table-layout:fixed">
22
22
  <tr class="safe-planfont">
23
- <td rowspan="6"><input type="checkbox" style="pointer-events:auto"
23
+ <td rowspan="8"><input type="checkbox" style="pointer-events:auto"
24
24
  v-show="row.plan_count == 0 || row.f_issued == '未下发'"
25
25
  onClick="event.cancelBubble = true"
26
26
  :checked="checkplan.check.isChecked(row.f_check_item_id)"
@@ -58,6 +58,18 @@
58
58
  :title="row.f_safecheck_type">{{ row.f_safecheck_type }}
59
59
  </td>
60
60
  </tr>
61
+ <tr class="safe-bodyfont" v-if="row.f_share_type">
62
+ <td colspan="3">共享公司 :</td>
63
+ <td colspan="5" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"
64
+ :title="row.f_share_type">{{ row.f_share_type }}
65
+ </td>
66
+ </tr>
67
+ <tr class="safe-bodyfont" v-if="row.f_share_company_name">
68
+ <td colspan="3">分公司名称 :</td>
69
+ <td colspan="5" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"
70
+ :title="row.f_share_company_name">{{ row.f_share_company_name }}
71
+ </td>
72
+ </tr>
61
73
  </table>
62
74
  </div>
63
75
  </div>
@@ -210,6 +222,13 @@
210
222
  value-single>
211
223
  </v-select>
212
224
  </div>
225
+ <div class="form-group col-sm-4">
226
+ <label class="font_normal_body">任务性质:</label>
227
+ <v-select class="select select_list" :search="false" :value.sync="createPlan.f_schedule_type"
228
+ v-model="createPlan.f_schedule_type" :options='schedule_types' placeholder='请选择' close-on-select
229
+ value-single>
230
+ </v-select>
231
+ </div>
213
232
  <div class="form-group col-sm-4" v-show="createPlan.isShare == '否'">
214
233
  <label class="font_normal_body">部&ensp;&ensp;&ensp;&ensp;门:</label>
215
234
  <v-select class="select select_list" :search="false" :value.sync="createPlan.f_department_id"
@@ -233,7 +252,7 @@
233
252
  value-single>
234
253
  </v-select>
235
254
  </div>
236
- <div class="form-group col-sm-4">
255
+ <div class="form-group col-sm-4" v-if="isSeePlanShare">
237
256
  <label class="font_normal_body">共享公司:</label>
238
257
  <v-select class="select select_list" :value.sync="createPlan.f_share_type" v-model="createPlan.f_share_type"
239
258
  :search="false" :options='isAndNot' placeholder='请选择' close-on-select value-single>
@@ -298,6 +317,20 @@
298
317
  v-model="upCheckPlan.f_safecheck_type" :options='ntoway' close-on-select value-single>
299
318
  </v-select>
300
319
  </div>
320
+ <div class="form-group col-sm-4" v-if="isSeePlanShare">
321
+ <label class="font_normal_body">共享公司:</label>
322
+ <v-select class="select select_list" :value.sync="upCheckPlan.f_share_type" v-model="upCheckPlan.f_share_type"
323
+ :search="false" :options='isAndNot' placeholder='请选择' close-on-select value-single>
324
+ </v-select>
325
+ </div>
326
+ <div class="form-group col-sm-6" v-if="upCheckPlan.f_share_type == '是'">
327
+ <label class="font_normal_body">分公司名称:</label>
328
+ <v-select class="select select_list" :value.sync="upCheckPlan.f_share_company_name"
329
+ v-model="upCheckPlan.f_share_company_name" :search="false" :options='companyNameList'
330
+ placeholder='请选择'
331
+ close-on-select value-single>
332
+ </v-select>
333
+ </div>
301
334
  </div>
302
335
  </div>
303
336
  <div slot="modal-footer" class="modal-footer" style="text-align: center">
@@ -322,7 +355,10 @@ export default {
322
355
  totalTaskList: [],
323
356
  departments: [],
324
357
  companyNameList: [],
358
+ // isSeePlanShare: this.$login.r ? this.$login.r.includes("安检任务共享公司") : true,
359
+ isSeePlanShare: true,
325
360
  opt: [{label: "按时间降序", value: "按时间降序"}, {label: "按时间升序", value: "按时间升序"}],
361
+ schedule_types: [{label: "民用", value: "民用"}, {label: "非民用", value: "非民用"}],
326
362
  currentorder: '按时间降序',
327
363
  isdelete: this.$login.r ? this.$login.r.includes("安检任务删除") : false,
328
364
  checkplan: new SearchList(true),
@@ -342,6 +378,7 @@ export default {
342
378
  f_plan_name: '',
343
379
  f_total_task_id:'',
344
380
  f_plan_year: '',
381
+ f_schedule_type:'民用',
345
382
  f_department_id: '',
346
383
  f_plan_month: '',
347
384
  isShare: '否',
@@ -576,6 +613,7 @@ export default {
576
613
  f_plan_name: '',
577
614
  f_plan_year: '',
578
615
  f_plan_month: '',
616
+ f_schedule_type:'民用',
579
617
  isShare: '否',
580
618
  f_issued: '否',
581
619
  f_checker_id: null,
@@ -601,6 +639,10 @@ export default {
601
639
  Vue.showMessage("请选择安检月份!")
602
640
  return false
603
641
  }
642
+ if (!this.createPlan.f_schedule_type) {
643
+ Vue.showMessage("请选择任务性质!")
644
+ return false
645
+ }
604
646
  if (this.createPlan.isShare == "否") {
605
647
  if (JSON.stringify(this.createPlan.checker) == '{}') {
606
648
  Vue.showMessage("请选择安检人员!")
@@ -691,14 +733,16 @@ export default {
691
733
  this.upCheckPlan.f_checker = row.f_checker ? row.f_checker : null
692
734
  this.upCheckPlan.isShare = row.f_checker_id ? '否' : '是'
693
735
  this.upCheckPlan.f_issued = row.f_issued
736
+ this.upCheckPlan.f_share_type = row.f_share_type
737
+ this.upCheckPlan.f_share_company_name = row.f_share_company_name
694
738
  this.upCheckPlan.checker = {id: row.f_checker_id, name: row.f_checker}
695
739
  this.showUpPlan = true
696
740
  },
697
741
  async upPlan() {
698
- if (this.upCheckPlan.f_issued == '已下发') {
699
- this.$showMessage("该任务已下发,无法进行修改!")
700
- return
701
- }
742
+ // if (this.upCheckPlan.f_issued == '已下发') {
743
+ // this.$showMessage("该任务已下发,无法进行修改!")
744
+ // return
745
+ // }
702
746
  if (!this.upCheckPlan.f_plan_name) {
703
747
  Vue.showMessage("请输入安检任务名称!")
704
748
  return false
@@ -729,6 +773,9 @@ export default {
729
773
  f_plan_name: this.upCheckPlan.f_plan_name,
730
774
  f_plan_year: this.upCheckPlan.f_plan_year,
731
775
  f_plan_month: this.upCheckPlan.f_plan_month,
776
+ f_share_type: this.upCheckPlan.f_share_type,
777
+ f_share_company_name: this.upCheckPlan.f_share_type == '否' ? '' : this.upCheckPlan.f_share_company_name,
778
+ issued:"是",
732
779
  f_plan_id: this.upCheckPlan.id
733
780
  }
734
781
  }, {resolveMsg: null, rejectMsg: null})