sale-client 3.6.507 → 3.6.508

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.507",
3
+ "version": "3.6.508",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -185,6 +185,17 @@
185
185
  condition="f_meter_brand = '{}'"
186
186
  ></v-select>
187
187
  </div>
188
+ <div class="col-sm-2 form-group">
189
+ <label class="font_normal_body">使用类型</label>
190
+ <v-select :value.sync="model.f_use_type"
191
+ v-model="model.f_use_type"
192
+ :options='usetypes'
193
+ placeholder='请选择'
194
+ v-model="model.f_use_type"
195
+ condition="f_usetype = '{}'"
196
+ >
197
+ </v-select>
198
+ </div>
188
199
  <res-select-group :show-component="['company','department','operator']" :initres="$parent.$parent.initres"
189
200
  @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
190
201
  <hl-downdata class="col-sm-1 form-group" :info="model"></hl-downdata>
@@ -275,6 +286,9 @@
275
286
  <th>
276
287
  <nobr>状态</nobr>
277
288
  </th>
289
+ <th>
290
+ <nobr>使用类型</nobr>
291
+ </th>
278
292
  <th>
279
293
  <nobr>操作</nobr>
280
294
  </th>
@@ -373,6 +387,7 @@
373
387
  </div>
374
388
  </td>
375
389
  <td style="text-align: center;">{{ row.f_meter_state }}</td>
390
+ <td style="text-align: center;">{{ row.f_usetype }}</td>
376
391
  <td style="text-align: center;">
377
392
 
378
393
  <!-- <button type="button" name="button" class="btn btn-link"-->
@@ -798,6 +813,9 @@ export default {
798
813
  usertypes () {
799
814
  return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
800
815
  },
816
+ usetypes (){
817
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('使用类型')]
818
+ },
801
819
  userlevels () {
802
820
  return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户等级')]
803
821
  },
@@ -197,6 +197,9 @@
197
197
  insuranceType: '燃气险',
198
198
  insurancestate: '有效'
199
199
  },
200
+ model: {
201
+ f_ins_start_date: ''
202
+ },
200
203
  paytype: [],
201
204
  insurancetype: this.$appdata.getParam('险种'),
202
205
  insurancestate: this.$appdata.getParam('保险状态'),
@@ -251,6 +254,7 @@
251
254
  }
252
255
  }
253
256
  this.model.f_buy_date = this.$login.toStandardTimeString()
257
+ this.$set('model.f_ins_start_date', Util.toStandardDateString())
254
258
  this.model.f_ins_start_date = Util.toStandardDateString()
255
259
  this.model.f_salecount = 1
256
260
  this.model.f_money = 0
@@ -318,7 +322,7 @@
318
322
  if(val&& this.model.f_userinfo_id){
319
323
  this.model.f_insurance_type = this.model.f_insurance_type == null ? this.config.insuranceType : this.model.f_insurance_type
320
324
  this.model.f_state = this.model.f_state == null ? this.config.insurancestate : this.model.f_state
321
- this.model.f_ins_start_date = Util.toStandardTimeString()
325
+ this.model.f_ins_start_date = Util.toStandardDateString()
322
326
  console.log('cs===================cs',this.model.f_userinfo_id,this.model.f_ins_start_date)
323
327
  }
324
328
  }
@@ -153,153 +153,155 @@
153
153
  </modal>
154
154
  </template>
155
155
  <script>
156
- /**
157
- *用户信息
158
- *安检信息
159
- */
156
+ /**
157
+ *用户信息
158
+ *安检信息
159
+ */
160
160
 
161
- import {HttpResetClass} from 'vue-client'
162
- import Vue from 'vue'
161
+ import {HttpResetClass} from 'vue-client'
162
+ import Vue from 'vue'
163
163
 
164
- let asyncReady = async function (self) {
165
- // 获取配置信息
166
- try {
167
- let res = await Vue.resetget(`/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
168
- Vue.config = res.data
169
- } catch (error) {
170
- // 忽略704,文件找不到异常R
171
- if (error.status !== 704) {
172
- throw error
173
- }
164
+ let asyncReady = async function (self) {
165
+ // 获取配置信息
166
+ try {
167
+ let res = await Vue.resetget(`/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
168
+ Vue.config = res.data
169
+ } catch (error) {
170
+ // 忽略704,文件找不到异常R
171
+ if (error.status !== 704) {
172
+ throw error
174
173
  }
175
174
  }
176
- let getSafeCheckGen = async function (self) {
177
- // 获取安检信息
178
- try {
179
- let http = new HttpResetClass()
180
- let param = {
181
- f_userfiles_id: self.data.f_userfiles_id,
182
- f_userinfo_id: self.data.f_userinfo_id
183
- }
184
- if (self.data.f_olduserinfo_code) {
185
- param.f_olduserinfo_code = self.data.f_olduserinfo_code
186
- }
187
- let getSafeCheck = await http.load('POST', 'rs/logic/getSafecheck', param, {resolveMsg: null, rejectMsg: null})
188
- if (!(JSON.stringify(getSafeCheck.data) == '{}')) {
189
- self.model = {}
190
- self.model = Object.assign({}, self.model, getSafeCheck.data)
191
- self.hasCheck = 1
192
- } else {
193
- self.hasCheck = 0
194
- }
195
- } catch (error) {
196
- self.hasCheck = 0
175
+ }
176
+ let getSafeCheckGen = async function (self) {
177
+ // 获取安检信息
178
+ try {
179
+ let http = new HttpResetClass()
180
+ let param = {
181
+ f_userfiles_id: self.data.f_userfiles_id,
182
+ f_userinfo_id: self.data.f_userinfo_id
197
183
  }
198
-
199
- if (new Date(self.model.f_next_check_date) < new Date(self.nowdate)) {
200
- self.style = 'text-align: center;border: #E9E9E9 solid 1px;color:red'
184
+ if (self.data.f_olduserinfo_code) {
185
+ param.f_olduserinfo_code = self.data.f_olduserinfo_code
186
+ }
187
+ let getSafeCheck = await http.load('POST', 'rs/logic/getSafecheck', param, {resolveMsg: null, rejectMsg: null})
188
+ if (!(JSON.stringify(getSafeCheck.data) == '{}')) {
189
+ self.model = {}
190
+ self.model = Object.assign({}, self.model, getSafeCheck.data)
191
+ self.hasCheck = 1
201
192
  } else {
202
- self.style = 'text-align: center;border: #E9E9E9 solid 1px;'
193
+ self.hasCheck = 0
203
194
  }
195
+ } catch (error) {
196
+ self.hasCheck = 0
204
197
  }
205
198
 
206
- export default {
207
- title: '安检信息',
208
- data () {
209
- return {
210
- model: {},
211
- style: 'text-align: center;border: #E9E9E9 solid 1px;',
212
- nowdate: this.$login.toStandardTimeString(),
213
- hasCheck: -1,
214
- imgshow: false,
215
- imgshow2: false,
216
- showimg1: '',
217
- showimg2: '',
218
- showimg3: '',
219
- nextCheckDateShow: true,
220
- showimg4: ''
221
- }
222
- },
223
- props: ['data'],
224
- ready () {
225
- getSafeCheckGen(this)
226
- if (this.$appdata.getSingleValue('是否显示下次安检时间') == '否') {
227
- this.nextCheckDateShow = false
228
- }
229
- },
230
- methods: {
231
- change (row) {
232
- asyncReady(this).then(() => {
233
- console.log("1234658", row)
234
- row.f_upload_state = '已传'
235
- this.$goto('new-check-paper', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self')
236
- }).catch(
237
- (respanse) => {
238
- alert ('获取配置文件失败')
239
- })
240
- },
241
- showpicture2 () {
242
- this.imgshow2 = true
243
- }
199
+ if (new Date(self.model.f_next_check_date) < new Date(self.nowdate)) {
200
+ self.style = 'text-align: center;border: #E9E9E9 solid 1px;color:red'
201
+ } else {
202
+ self.style = 'text-align: center;border: #E9E9E9 solid 1px;'
203
+ }
204
+ }
205
+
206
+ export default {
207
+ title: '安检信息',
208
+ data () {
209
+ return {
210
+ model: {},
211
+ style: 'text-align: center;border: #E9E9E9 solid 1px;',
212
+ nowdate: this.$login.toStandardTimeString(),
213
+ hasCheck: -1,
214
+ imgshow: false,
215
+ imgshow2: false,
216
+ showimg1: '',
217
+ showimg2: '',
218
+ showimg3: '',
219
+ nextCheckDateShow: true,
220
+ showimg4: ''
221
+ }
222
+ },
223
+ props: ['data'],
224
+ ready () {
225
+ getSafeCheckGen(this)
226
+ if (this.$appdata.getSingleValue('是否显示下次安检时间') == '否') {
227
+ this.nextCheckDateShow = false
228
+ }
229
+ },
230
+ methods: {
231
+ change (row) {
232
+ asyncReady(this).then(() => {
233
+ console.log('1234658', row)
234
+ row.f_upload_state = '已传'
235
+ this.$goto('new-check-paper', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self')
236
+ }).catch(() => {
237
+ this.$showAlert('获取配置文件失败')
238
+ })
244
239
  },
245
- watch: {
246
- 'data' () {
247
- if (this.data == null) {
240
+ showpicture2 () {
241
+ this.imgshow2 = true
242
+ }
243
+ },
244
+ watch: {
245
+ 'data': {
246
+ handler (newVal, oldVal) {
247
+ if (newVal == null) {
248
248
  this.hasCheck = 0
249
249
  this.model = {}
250
250
  } else {
251
251
  getSafeCheckGen(this)
252
252
  }
253
- }
253
+ },
254
+ deep: true
254
255
  }
255
256
  }
257
+ }
256
258
  </script>
257
259
  <style scoped>
258
- .img {
259
- border: 1px solid #9773ed;
260
- width: auto;
261
- height: auto;
262
- float: left;
263
- text-align: center;
264
- margin: 6px;
265
- }
260
+ .img {
261
+ border: 1px solid #9773ed;
262
+ width: auto;
263
+ height: auto;
264
+ float: left;
265
+ text-align: center;
266
+ margin: 6px;
267
+ }
266
268
 
267
- img {
268
- margin: 6px;
269
- }
269
+ img {
270
+ margin: 6px;
271
+ }
270
272
 
271
273
 
272
- .container{
273
- margin: 10px auto;
274
- width: 80%;
275
- height: auto;
276
- }
277
- div::-webkit-scrollbar {
278
- width: 0 !important;
279
- height: 0 !important;
280
- }
274
+ .container{
275
+ margin: 10px auto;
276
+ width: 80%;
277
+ height: auto;
278
+ }
279
+ div::-webkit-scrollbar {
280
+ width: 0 !important;
281
+ height: 0 !important;
282
+ }
281
283
 
282
- div{
283
- -ms-overflow-style: none;
284
- overflow: -moz-scrollbars-none;
285
- }
286
- .divmask {
287
- pointer-events: none;
288
- }
289
- .app-header {
290
- border-radius: 50%;
291
- background: rgba(73, 158, 223, 0.4);
292
- color: #FFF;
293
- padding: 20px;
294
- text-align: center;
295
- font-size: 1.2em;
296
- z-index: 10;
297
- opacity:0.5;
298
- bottom: 50px;
299
- margin-top: -20px;
300
- position: absolute;
301
- top: 10%;
302
- right: 2%;
303
- height: 8%;
304
- }
284
+ div{
285
+ -ms-overflow-style: none;
286
+ overflow: -moz-scrollbars-none;
287
+ }
288
+ .divmask {
289
+ pointer-events: none;
290
+ }
291
+ .app-header {
292
+ border-radius: 50%;
293
+ background: rgba(73, 158, 223, 0.4);
294
+ color: #FFF;
295
+ padding: 20px;
296
+ text-align: center;
297
+ font-size: 1.2em;
298
+ z-index: 10;
299
+ opacity:0.5;
300
+ bottom: 50px;
301
+ margin-top: -20px;
302
+ position: absolute;
303
+ top: 10%;
304
+ right: 2%;
305
+ height: 8%;
306
+ }
305
307
  </style>