safecheck-client 3.0.35-52 → 3.0.35-54

Sign up to get free protection for your applications and to get access to all the features.
@@ -747,7 +747,9 @@ export default {
747
747
  let hasError = this.verifyState()
748
748
  if (hasError)
749
749
  return hasError
750
-
750
+ if(this.data.f_entry_status == '到访不遇' && !this.data.f_daofang_status ){
751
+ return '请选择到访不遇状态!'
752
+ }
751
753
  if (this.data.f_entry_status != '入户' || this.data.f_usegas == '封堵')
752
754
  return null
753
755
  // hasError = this.verifyUser()
@@ -2153,6 +2155,7 @@ export default {
2153
2155
  // 安检状态
2154
2156
  this.$set('data.f_entry_status', '入户')
2155
2157
  this.$set('data.f_usegas', '已使用')
2158
+ this.$set('data.f_daofang_status', '')
2156
2159
  this.$set('data.f_state', this.item.f_state)
2157
2160
  this.$set('data.f_istoubao', this.item.f_plan_meters[0].f_istoubao)
2158
2161
  this.$set('data.f_toubao_enddate', this.item.f_plan_meters[0].f_toubao_enddate)
@@ -120,6 +120,19 @@
120
120
  <input type="radio" name="enterstatus" v-model="f_entry_status" id="rejectchecck" style="transform: scale(1.5);" value="拒检">&ensp;拒绝安检
121
121
  <input type="radio" name="enterstatus" v-model="f_entry_status" id="enterhouse" style="transform: scale(1.5);" value="入户">&ensp;正常入户
122
122
  </div>
123
+ <div class="form-group col-sm-12 col-xs-12" :class="style__" v-show="f_entry_status=='到访不遇'" style="margin-top: 6px">
124
+ <span class="text-left col-md-3 col-sm-4 col-xs-4"> <img src="../../../assets/enterstatus.png" style="width: 20px;margin-bottom: 5px;text-align: left" alt="">到访状态:</span>
125
+ <div v-if="userinfo.f_check_type=='民用'" :class="style__" class="col-md-9 col-sm-8 col-xs-8 text-center">
126
+ <input type="radio" name="daofang_status" v-model="f_daofang_status" id="f_daofang_status" style="transform: scale(1.5);" value="长期无人">&ensp;长期无人&ensp;
127
+ <input type="radio" name="daofang_status" v-model="f_daofang_status" id="f_daofang_status" style="transform: scale(1.5);" value="尚未装修">&ensp;尚未装修&ensp;
128
+ <input type="radio" name="daofang_status" v-model="f_daofang_status" id="f_daofang_status" style="transform: scale(1.5);" value="无法联系">&ensp;无法联系&ensp;
129
+ <input type="radio" name="daofang_status" v-model="f_daofang_status" id="f_daofang_status" style="transform: scale(1.5);" value="首访不遇">&ensp;首访不遇
130
+ </div>
131
+ <div v-show="userinfo.f_check_type=='非民用'" :class="style__" class="col-md-9 col-sm-8 col-xs-8 text-center">
132
+ <input type="radio" name="daofang_status" v-model="f_daofang_status" id="f_daofang_status" style="transform: scale(1.5);" value="首访不遇">&ensp;首访不遇&ensp;
133
+ <input type="radio" name="daofang_status" v-model="f_daofang_status" id="f_daofang_status" style="transform: scale(1.5);" value="暂停营业">&ensp;暂停营业
134
+ </div>
135
+ </div>
123
136
  <div class="form-group col-sm-12 col-xs-12" :class="style__" v-show="f_entry_status=='到访不遇'">
124
137
  <label class="text-left font">到访不遇照片:</label>
125
138
  <div class="auto">
@@ -210,6 +210,17 @@
210
210
  :search="false"
211
211
  close-on-select clear-button></v-select>
212
212
  </div>
213
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && model.f_entry == '到访不遇'">
214
+ <label class="font_normal_body">到访状态</label>
215
+ <v-select
216
+ class="select select_list"
217
+ :value.sync="model.f_daofang_status"
218
+ v-model="model.f_daofang_status"
219
+ :options='$parent.$parent.daofang_status'
220
+ placeholder='请选择'
221
+ condition="f_daofang_status = '{}'"
222
+ close-on-select clear-button></v-select>
223
+ </div>
213
224
  </div>
214
225
  <modal :show.sync="$parent.$parent.showModal" v-ref:modal backdrop="false">
215
226
  <div slot="modal-header" class="modal-header">
@@ -391,11 +402,13 @@
391
402
  'f_entry_status': '安检状态',
392
403
  'f_offsite_time': '安检时间',
393
404
  'f_no_checkplan': '有无计划',
394
- 'f_checker_name': '安检员'
405
+ 'f_checker_name': '安检员',
406
+ 'f_daofang_status': '到访不遇状态'
395
407
  },
396
408
  fun: this.$login.f,
397
409
  pcds:[],
398
410
  checkersid: [],
411
+ daofang_status:this.$appdata.getParam('到访不遇状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('到访不遇状态')]:[{label: '全部', value: ''}],
399
412
  safetype: this.$appdata.getParam('安检类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检类型')]:[{label: '全部', value: ''}],
400
413
  criteriaShow: false,
401
414
  showModal: false,
package/src/main.js CHANGED
@@ -1,33 +1,33 @@
1
- import Vue from 'vue'
2
- import App from './App'
3
- import { all } from 'vue-client'
4
- import { system } from 'system-clients'
5
- import safecheck from './safecheck'
6
- import echarts from 'echarts'
7
- // import safecheck from './rongcheng'
8
-
9
- all()
10
- // 验证码开关赋值
11
- var Verificationfalg = false
12
- system(Verificationfalg)
13
- // system()
14
- safecheck('bayan')
15
- // safecheck('rizhao')
16
- require('./bootstrap/less/bootstrap.less')
17
- require('./expandcss.less')
18
-
19
- Vue.prototype.$echarts = echarts
20
- Vue.android = false
21
-
22
- Vue.url = '/SafeCheck/rs/'
23
- if(Vue.android)
24
- Vue.url = Vue.staticUrl
25
- Vue.interval = 1*60*1000
26
- Vue.nopic = 'file:///android_asset/nopic.png'
27
- Vue.mapSetup = false
28
-
29
- /* eslint-disable no-new */
30
- new Vue({
31
- el: 'body',
32
- components: { App }
33
- })
1
+ import Vue from 'vue'
2
+ import App from './App'
3
+ import { all } from 'vue-client'
4
+ import { system } from 'system-clients'
5
+ import safecheck from './safecheck'
6
+ import echarts from 'echarts'
7
+ // import safecheck from './rongcheng'
8
+
9
+ all()
10
+ // 验证码开关赋值
11
+ var Verificationfalg = false
12
+ system(Verificationfalg)
13
+ // system()
14
+ safecheck('siyang')
15
+ // safecheck('rizhao')
16
+ require('./bootstrap/less/bootstrap.less')
17
+ require('./expandcss.less')
18
+
19
+ Vue.prototype.$echarts = echarts
20
+ Vue.android = false
21
+
22
+ Vue.url = '/SafeCheck/rs/'
23
+ if(Vue.android)
24
+ Vue.url = Vue.staticUrl
25
+ Vue.interval = 1*60*1000
26
+ Vue.nopic = 'file:///android_asset/nopic.png'
27
+ Vue.mapSetup = false
28
+
29
+ /* eslint-disable no-new */
30
+ new Vue({
31
+ el: 'body',
32
+ components: { App }
33
+ })
@@ -1,149 +0,0 @@
1
- <template>
2
- <div class="flex-row">
3
- <div class="basic-main">
4
- <criteria-paged :model="model" v-ref:paged @sort="sort">
5
- <criteria partial='criteria' class="search_area" @condition-changed='$parent.selfSearch' v-ref:criteria>
6
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
- <div class="row">
8
- <div class="form-group col-sm-2" >
9
- <label class="font_normal_body">客户编号</label>
10
- <input type="text" class="input_search" v-model="model.f_userinfo_code"
11
- style="width: 60%" placeholder="客户编号" condition="tcp.f_userinfo_code='{}'">
12
- </div>
13
- <div class="form-group col-sm-2" >
14
- <label class="font_normal_body">客户名称</label>
15
- <input type="text" class="input_search" v-model="model.f_user_name"
16
- style="width: 60%" placeholder="客户名称" condition="tcp.f_user_name like '%{}%'">
17
- </div>
18
- <div class="form-group col-sm-2" >
19
- <label class="font_normal_body">客户电话</label>
20
- <input type="text" class="input_search" v-model="model.f_user_phone"
21
- style="width: 60%" placeholder="客户电话" condition="tcp.f_user_phone like '%{}%'">
22
- </div>
23
- <div class="form-group col-sm-2" >
24
- <label class="font_normal_body">客户表号</label>
25
- <input type="text" class="input_search" v-model="model.f_meternumber"
26
- style="width: 60%" placeholder="客户表号" condition="tcp.f_meternumber like '%{}%'">
27
- </div>
28
- <div class="form-group col-sm-2" >
29
- <label class="font_normal_body">小&emsp;&emsp;区</label>
30
- <input type="text" class="input_search" v-model="model.f_residential_area"
31
- style="width: 60%" placeholder="小区" condition="tcp.f_residential_area like '%{}%'">
32
- </div>
33
- <div class="form-group col-sm-2" >
34
- <label class="font_normal_body">详细地址</label>
35
- <input type="text" class="input_search" v-model="model.f_address"
36
- style="width: 60%" placeholder="详细地址" condition="tcp.f_address like '%{}%'">
37
- </div>
38
- <div class="form-group col-sm-2" style="width: auto;margin-top:8px;float: right">
39
- <export-excel-safe :data="$parent.$parent.searchData"
40
- :field="$parent.$parent.excelHeaders"
41
- :choose-col="true"
42
- sqlurl="rs/logic/SafeExportExcel"
43
- sql-name="detailhistory"
44
- template-name='用户安检气量'></export-excel-safe>
45
- <button class="button_spacing button_search" @click="search()">查询</button>
46
- </div>
47
- </div>
48
- </div>
49
- </criteria>
50
- <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
51
- <template partial='head'>
52
- <tr>
53
- <th>
54
- <nobr>序号</nobr>
55
- </th>
56
- <th>
57
- <nobr>分公司</nobr>
58
- </th>
59
- <th>
60
- <nobr>客户编号</nobr>
61
- </th>
62
- <th>
63
- <nobr>客户名称</nobr>
64
- </th>
65
- <th>
66
- <nobr>上月安检累计</nobr>
67
- </th>
68
- <th>
69
- <nobr>本月安检累计</nobr>
70
- </th>
71
- <th>
72
- <nobr>实际使用量</nobr>
73
- </th>
74
- <th>
75
- <nobr>剩余量</nobr>
76
- </th>
77
- <th>
78
- <nobr>剩余金额</nobr>
79
- </th>
80
- <th>
81
- <nobr>气量是否正常</nobr>
82
- </th>
83
- </tr>
84
- </template>
85
- <template partial='body'>
86
- <td style="text-align: center">{{$index+1}}</td>
87
- <td style="text-align: center">{{row.f_orgname}}</td>
88
- <td style="text-align: center">{{row.f_userinfo_code}}</td>
89
- <td style="text-align: center">{{row.f_user_name}}</td>
90
- <td style="text-align: center">{{row.shangcileigouqilaing}}</td>
91
- <td style="text-align: center">{{row.leigouqiliang}}</td>
92
- <td style="text-align: center">{{row.yiyongqilaing}}</td>
93
- <td style="text-align: center">{{ row.shengyuqiliang }}</td>
94
- <td style="text-align: center">{{ row.shengyujine }}</td>
95
- <td style="text-align: center"></td>
96
- </template>
97
- </data-grid>
98
- </criteria-paged>
99
- </div>
100
- </div>
101
- </template>
102
-
103
- <script>
104
- import {PagedList} from 'vue-client'
105
- import Vue from 'vue'
106
- import co from 'co'
107
- import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
108
-
109
-
110
- export default {
111
- title: '用户气量历史记录',
112
- data() {
113
- let model = new PagedList('rs/sql/detailhistory', 20, {})
114
- return {
115
- model: model,
116
- searchData: {
117
- condition: "1=1",
118
- },
119
- excelHeaders: {
120
- 'f_orgname':'分公司',
121
- 'f_userinfo_code': '客户编号',
122
- 'f_user_name': '客户姓名',
123
- 'shangcileigouqilaing': '上月安检累计',
124
- 'leigouqiliang': '本月安检累计',
125
- 'yiyongqilaing': '实际使用量',
126
- 'shengyuqiliang': '剩余量',
127
- 'shengyujine': '剩余金额',
128
- ' ': '气量是否正常',
129
- }
130
- }
131
- },
132
- methods: {
133
- search() {
134
- this.$refs.paged.$refs.criteria.search()
135
- },
136
- selfSearch(args) {
137
- this.searchData.condition = args.condition
138
- this.model.search(args.condition, args.model, args.condValue)
139
- },
140
-
141
- },
142
-
143
- ready() {
144
- },
145
- watch: {
146
- }
147
-
148
- }
149
- </script>
@@ -1,149 +0,0 @@
1
- <template>
2
- <div class="flex-row">
3
- <div class="basic-main">
4
- <criteria-paged :model="model" v-ref:paged @sort="sort">
5
- <criteria partial='criteria' class="search_area" @condition-changed='$parent.selfSearch' v-ref:criteria>
6
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
- <div class="row">
8
- <div class="form-group col-sm-2" >
9
- <label class="font_normal_body">客户名称</label>
10
- <input type="text" class="input_search" v-model="model.f_user_name"
11
- style="width: 60%" placeholder="客户名称" condition="tcp.f_user_name like '%{}%'">
12
- </div>
13
- <div class="form-group col-sm-2" style="width: auto;margin-top:8px;float: right">
14
- <export-excel-safe :data="$parent.$parent.searchData"
15
- :field="$parent.$parent.excelHeaders"
16
- :choose-col="true"
17
- sqlurl="rs/logic/SafeExportExcel"
18
- sql-name="detailhistorynian"
19
- template-name='用户安检年气量'></export-excel-safe>
20
- <button class="button_spacing button_search" @click="search()">查询</button>
21
- </div>
22
- </div>
23
- </div>
24
- </criteria>
25
- <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
26
- <template partial='head'>
27
- <tr>
28
- <th>
29
- <nobr>序号</nobr>
30
- </th>
31
- <th>
32
- <nobr>客户名称</nobr>
33
- </th>
34
- <th>
35
- <nobr>一月实供</nobr>
36
- </th>
37
- <th>
38
- <nobr>二月实供</nobr>
39
- </th>
40
- <th>
41
- <nobr>三月实供</nobr>
42
- </th>
43
- <th>
44
- <nobr>四月实供</nobr>
45
- </th>
46
- <th>
47
- <nobr>五月实供</nobr>
48
- </th>
49
- <th>
50
- <nobr>六月实供</nobr>
51
- </th>
52
- <th>
53
- <nobr>七月实供</nobr>
54
- </th>
55
- <th>
56
- <nobr>八月实供</nobr>
57
- </th>
58
- <th>
59
- <nobr>九月实供</nobr>
60
- </th>
61
- <th>
62
- <nobr>十月实供</nobr>
63
- </th>
64
- <th>
65
- <nobr>十一月实供</nobr>
66
- </th>
67
- <th>
68
- <nobr>十二月实供</nobr>
69
- </th>
70
- <th>
71
- <nobr>年用气量</nobr>
72
- </th>
73
- </tr>
74
- </template>
75
- <template partial='body'>
76
- <td style="text-align: center">{{$index+1}}</td>
77
- <td style="text-align: center">{{row.f_user_name}}</td>
78
- <td style="text-align: center">{{row.yi}}</td>
79
- <td style="text-align: center">{{row.er}}</td>
80
- <td style="text-align: center">{{row.san}}</td>
81
- <td style="text-align: center">{{row.si}}</td>
82
- <td style="text-align: center">{{row.wu}}</td>
83
- <td style="text-align: center">{{row.liu}}</td>
84
- <td style="text-align: center">{{row.qi}}</td>
85
- <td style="text-align: center">{{row.ba}}</td>
86
- <td style="text-align: center">{{row.jiu}}</td>
87
- <td style="text-align: center">{{row.shi}}</td>
88
- <td style="text-align: center">{{row.shi1}}</td>
89
- <td style="text-align: center">{{row.shi2}}</td>
90
- <td style="text-align: center">{{row.nian}}</td>
91
- </template>
92
- </data-grid>
93
- </criteria-paged>
94
- </div>
95
- </div>
96
- </template>
97
-
98
- <script>
99
- import {PagedList} from 'vue-client'
100
- import Vue from 'vue'
101
- import co from 'co'
102
- import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
103
-
104
-
105
- export default {
106
- title: '用户年气量历史记录',
107
- data() {
108
- let model = new PagedList('rs/sql/detailhistorynian', 20, {})
109
- return {
110
- model: model,
111
- searchData: {
112
- condition: "1=1",
113
- },
114
- excelHeaders: {
115
- 'f_user_name': '客户姓名',
116
- 'yi': '一月实供',
117
- 'er': '二月实供',
118
- 'san': '三月实供',
119
- 'si': '四月实供',
120
- 'wu': '五月实供',
121
- 'liu': '六月实供',
122
- 'qi': '七月实供',
123
- 'ba': '八月实供',
124
- 'jiu': '九月实供',
125
- 'shi': '十月实供',
126
- 'shi1': '十一月实供',
127
- 'shi2': '十二月实供',
128
- 'nian': '年用气量'
129
- }
130
- }
131
- },
132
- methods: {
133
- search() {
134
- this.$refs.paged.$refs.criteria.search()
135
- },
136
- selfSearch(args) {
137
- this.searchData.condition = args.condition
138
- this.model.search(args.condition, args.model, args.condValue)
139
- },
140
-
141
- },
142
-
143
- ready() {
144
- },
145
- watch: {
146
- }
147
-
148
- }
149
- </script>