sale-client 3.6.118 → 3.6.119

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.
Files changed (25) hide show
  1. package/package.json +1 -1
  2. package/src/components/common/userinfo_detail/ic_detail/AutomaticPurse.vue +1 -0
  3. package/src/components/common/userinfo_detail/ic_detail/CardHandRecord.vue +2 -1
  4. package/src/components/common/userinfo_detail/ic_detail/ChangeMeterQueryUser.vue +2 -1
  5. package/src/components/common/userinfo_detail/ic_detail/ChangeRecord.vue +2 -1
  6. package/src/components/common/userinfo_detail/ic_detail/ChargeQueryUser.vue +2 -1
  7. package/src/components/common/userinfo_detail/ic_detail/FillCardQueryUser.vue +2 -1
  8. package/src/components/common/userinfo_detail/ic_detail/FillGasQueryUser.vue +2 -1
  9. package/src/components/common/userinfo_detail/ic_detail/HandQueryUser.vue +11 -3
  10. package/src/components/common/userinfo_detail/ic_detail/MachineRecordQuery.vue +2 -1
  11. package/src/components/common/userinfo_detail/ic_detail/OtherChargeQueryUser.vue +2 -1
  12. package/src/components/common/userinfo_detail/ic_detail/RecordQueryUser.vue +2 -1
  13. package/src/components/common/userinfo_detail/ic_detail/Repurchase.vue +2 -1
  14. package/src/components/common/userinfo_detail/ic_detail/TransferQueryUser.vue +2 -1
  15. package/src/components/common/userinfo_detail/ic_detail/WebAutomaticPurse.vue +1 -0
  16. package/src/components/common/userinfo_detail/ic_detail/WebHandQueryUser.vue +4 -2
  17. package/src/components/revenue/comprehen/Maintenance/pictureManage/pictureListMaintain.vue +370 -0
  18. package/src/filiale/dongguan/components/common/userinfo_detail/ic_detail/HandQueryUser.vue +3 -2
  19. package/src/filiale/macheng/ic_detail/HandQueryUser.vue +10 -3
  20. package/src/filiale/macheng/ic_detail/WebHandQueryUser.vue +3 -2
  21. package/src/filiale/qianneng/revenue/common/ic_detail/HandQueryUser.vue +9 -2
  22. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/HandQueryUser.vue +3 -2
  23. package/src/filiale/xiangyun/machineChargeQuery.vue +2 -2
  24. package/src/filiale/xiangyun/machineChargeQuery1.vue +2 -2
  25. package/src/sale.js +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.118",
3
+ "version": "3.6.119",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -139,6 +139,7 @@ let reprintGen = function *(self, row) {
139
139
  }, ...this.$appdata.getParam('缴费状态')] : [],
140
140
  // 控制单选
141
141
  radio: [],
142
+ searchValue: this.$appdata.getSingleValue('综合条件查询') ? this.$appdata.getSingleValue('综合条件查询') : 'f_userfiles_id',
142
143
  // 选中的页
143
144
  all: [],
144
145
  // row数据
@@ -141,6 +141,7 @@
141
141
  all: [],
142
142
  // row数据
143
143
  rowsdata: [],
144
+ searchValue: this.$appdata.getSingleValue('综合条件查询') ? this.$appdata.getSingleValue('综合条件查询') : 'f_userfiles_id',
144
145
  fields: {'f_userinfo_code': '客户编号', 'f_user_name': '客户姓名', 'f_meternumber': '表号', 'f_last_tablebase': '上期底数', 'f_tablebase': '本期底数', 'f_real_amount': '用气量', 'f_real_amount': '补差气量', 'f_change_price': '补差单价', 'f_real_fee': '补差金额', 'f_hand_date': '录入日期', 'f_inputtor': '抄表员', 'f_meter_state': '抄表状态', 'f_operator': '操作人'},
145
146
  defaultfield: [
146
147
  'f_userinfo_code', 'f_user_name', 'f_meternumber', 'f_last_tablebase', 'f_tablebase', 'f_real_amount', 'f_real_amount', 'f_change_price', 'f_change_price', 'f_real_fee', 'f_hand_date', 'f_inputtor', 'f_meter_state', 'f_inputtor', 'f_operator'
@@ -156,7 +157,7 @@
156
157
  },
157
158
  methods: {
158
159
  async search () {
159
- this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}' and f_orgid = '${this.$login.f.orgid}'`
160
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}' and f_orgid = '${this.$login.f.orgid}'`
160
161
  this.model.search(this.condition, this.model)
161
162
  let http = new HttpResetClass()
162
163
  let res = await http.load('POST', 'rs/sql/sale_cardhandplanQuery', {
@@ -115,6 +115,7 @@
115
115
  }, ...this.$appdata.getParam('是否有效')] : [],
116
116
  // row数据
117
117
  rowsdata: [],
118
+ searchValue: this.$appdata.getSingleValue('综合条件查询') ? this.$appdata.getSingleValue('综合条件查询') : 'f_userfiles_id',
118
119
  fields: {'f_userinfo_code': '客户编号', 'f_user_name': '客户姓名', 'f_type': '换表类型', 'f_meter_base': '旧表底数', 'f_newmeter_base': '新表底数', 'f_changemeter_fee': '换表费', 'f_operator': '操作员', 'f_changemeter_date': '换表日期'},
119
120
  defaultfield: [
120
121
  'f_userinfo_code', 'f_user_name', 'f_type', 'f_meter_base', 'f_newmeter_base', 'f_changemeter_fee', 'f_operator', 'f_changemeter_date'
@@ -130,7 +131,7 @@
130
131
  },
131
132
  methods: {
132
133
  async search () {
133
- this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}' and f_orgid = '${this.$login.f.orgid}'`
134
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}' and f_orgid = '${this.$login.f.orgid}'`
134
135
  this.model.search(this.condition, this.model)
135
136
  let http = new HttpResetClass()
136
137
  let res = await http.load('POST', 'rs/sql/sale_ChangeMeterQuery', {
@@ -92,6 +92,7 @@
92
92
  radio: [],
93
93
  // 选中的页
94
94
  all: [],
95
+ searchValue: this.$appdata.getSingleValue('综合条件查询') ? this.$appdata.getSingleValue('综合条件查询') : 'f_userfiles_id',
95
96
  // row数据
96
97
  rowsdata: [],
97
98
  fields: {'f_userinfo_code': '用户编号',
@@ -126,7 +127,7 @@
126
127
  },
127
128
  methods: {
128
129
  async search () {
129
- this.condition = `i.f_user_id = '${this.row.f_user_id}' and u.f_orgid = '${this.$login.f.orgid}' and ${this.$refs.paged.$refs.criteria.condition}`
130
+ this.condition = `i.${this.searchValue} = '${this.row[this.searchValue]}' and u.f_orgid = '${this.$login.f.orgid}' and ${this.$refs.paged.$refs.criteria.condition}`
130
131
  this.model.search(this.condition, this.model)
131
132
  let http = new HttpResetClass()
132
133
  let res = await http.load('POST', 'rs/sql/getChangeRecord', {
@@ -250,6 +250,7 @@ export default {
250
250
  }, ...this.$appdata.getParam('收费类型')] : [],
251
251
  // 控制单选
252
252
  radio: [],
253
+ searchValue: this.$appdata.getSingleValue('综合条件查询') ? this.$appdata.getSingleValue('综合条件查询') : 'f_userfiles_id',
253
254
  // 选中的页
254
255
  all: [],
255
256
  other: [],
@@ -317,7 +318,7 @@ export default {
317
318
  },
318
319
  async search () {
319
320
  console.log('aaa:', this.$refs.paged.$refs.criteria.condition)
320
- this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}' and f_orgid = '${this.$login.f.orgid}'`
321
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}' and f_orgid = '${this.$login.f.orgid}'`
321
322
  this.model.search(this.condition, this.model)
322
323
  this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
323
324
  let http = new HttpResetClass()
@@ -79,6 +79,7 @@
79
79
  all: [],
80
80
  // row数据
81
81
  rowsdata: [],
82
+ searchValue: this.$appdata.getSingleValue('综合条件查询') ? this.$appdata.getSingleValue('综合条件查询') : 'f_userfiles_id',
82
83
  fields: {'f_userinfo_code': '客户编号', 'f_user_name': '客户姓名', 'f_card_id': '卡号', 'f_meter_brand': '气表品牌', 'f_reason': '补卡原因', 'f_cardfees': '卡费', 'f_operate_date': '补卡日期'},
83
84
  defaultfield: [
84
85
  'f_userinfo_code', 'f_user_name', 'f_card_id', 'f_meter_brand', 'f_reason', 'f_cardfees', 'f_operate_date'
@@ -95,7 +96,7 @@
95
96
  methods: {
96
97
  async search () {
97
98
  if (this.row.f_meter_type.includes('卡表')) {
98
- this.condition = `f_user_id = '${this.row.f_user_id}' and f_orgid = '${this.$login.f.orgid}'`
99
+ this.condition = `${this.searchValue} = '${this.row[this.searchValue]}' and f_orgid = '${this.$login.f.orgid}'`
99
100
  if (this.$refs.paged.$refs.criteria.condition) {
100
101
  this.condition += `and ${this.$refs.paged.$refs.criteria.condition}`
101
102
  }
@@ -103,6 +103,7 @@
103
103
  all: [],
104
104
  // row数据
105
105
  rowsdata: [],
106
+ searchValue: this.$appdata.getSingleValue('综合条件查询') ? this.$appdata.getSingleValue('综合条件查询') : 'f_userfiles_id',
106
107
  fields: {'f_userinfo_code': '客户编号', 'f_user_name': '客户姓名', 'f_pregas': '补气量', 'f_preamount': '补气金额', 'f_type ': '补气类型', 'f_operate_date': '补气日期'},
107
108
  defaultfield: [
108
109
  'f_userinfo_code', 'f_user_name', 'f_pregas', 'f_preamount', 'f_type ', 'f_operate_date'
@@ -118,7 +119,7 @@
118
119
  },
119
120
  methods: {
120
121
  async search () {
121
- this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}'`
122
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and f.${this.searchValue} = '${this.row[this.searchValue]}'`
122
123
  this.model.search(this.condition, this.model)
123
124
  let http = new HttpResetClass()
124
125
  let res = await http.load('POST', 'rs/sql/sale_FillGasQuery', {
@@ -57,7 +57,7 @@
57
57
  :starthead="$parent.$parent.starthead"
58
58
  titletable="预存气费打印明细"
59
59
  ></print-data>
60
- <export-excel :data="{condition:$parent.$parent.condition}"
60
+ <export-excel :data="$parent.$parent.getCondition"
61
61
  :field="$parent.$parent.fields"
62
62
  sqlurl="rs/logic/saleExport" sql-name="sale_HandplanQuery" template-name='抄表查询'
63
63
  v-ref:exports
@@ -207,6 +207,7 @@
207
207
  all: [],
208
208
  // row数据
209
209
  rowsdata: [],
210
+ searchValue: this.$appdata.getSingleValue('综合条件查询') ? this.$appdata.getSingleValue('综合条件查询') : 'f_userfiles_id',
210
211
  starthead: '',
211
212
  fields: {'f_userinfo_code': '用户编号',
212
213
  'f_user_name': '姓名',
@@ -252,12 +253,13 @@
252
253
  // this.model.search(this.condition, this.model)
253
254
  // },
254
255
  async search () {
255
- this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}' and f_orgid = '${this.$login.f.orgid}'`
256
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}' and f_orgid = '${this.$login.f.orgid}'`
256
257
  this.model.search(this.condition, this.model)
257
258
  let http = new HttpResetClass()
258
259
  let res = await http.load('POST', 'rs/sql/sale_HandplanQuery', {
259
260
  data: {
260
- condition: this.condition
261
+ condition: this.condition,
262
+ f_user_id: this.row.f_user_id
261
263
  }
262
264
  }, {resolveMsg: null, rejectMsg: null})
263
265
  this.printModel.rows = res.data
@@ -351,6 +353,12 @@
351
353
  }
352
354
  },
353
355
  computed: {
356
+ getCondition () {
357
+ return {
358
+ condition: this.condition,
359
+ f_user_id: this.row.f_user_id
360
+ }
361
+ },
354
362
  whetherpaies () {
355
363
  return [
356
364
  {label: '全部', value: ''},
@@ -131,6 +131,7 @@
131
131
  radio: [],
132
132
  // 选中的页
133
133
  all: [],
134
+ searchValue: this.$appdata.getSingleValue('综合条件查询') ? this.$appdata.getSingleValue('综合条件查询') : 'f_userfiles_id',
134
135
  // row数据
135
136
  rowsdata: [],
136
137
  fields: {'f_userinfo_code': '客户编号', 'f_user_name': '客户姓名', 'f_address': '地址', 'fee': '金额', 'gas': '气量', 'f_type': '类型', 'f_operator': '操作员', 'f_operate_date': '操作时间'},
@@ -149,7 +150,7 @@
149
150
  },
150
151
  methods: {
151
152
  async search () {
152
- this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}' and f_orgid = '${this.$login.f.orgid}'`
153
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}' and f_orgid = '${this.$login.f.orgid}'`
153
154
  this.model.search(this.condition, this.model)
154
155
  let http = new HttpResetClass()
155
156
  let res = await http.load('POST', 'rs/sql/machineRecordQuery', {
@@ -115,6 +115,7 @@ export default {
115
115
  }, ...this.$appdata.getParam('是否有效')] : [],
116
116
  // 控制单选
117
117
  radio: [],
118
+ searchValue: this.$appdata.getSingleValue('综合条件查询') ? this.$appdata.getSingleValue('综合条件查询') : 'f_userfiles_id',
118
119
  showdetail: false,
119
120
  otherchargeid: '',
120
121
  // 选中的页
@@ -139,7 +140,7 @@ export default {
139
140
  },
140
141
  methods: {
141
142
  async search () {
142
- this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}' and f_orgid = '${this.$login.f.orgid}'`
143
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}' and f_orgid = '${this.$login.f.orgid}'`
143
144
  this.model.search(this.condition, this.model)
144
145
  let http = new HttpResetClass()
145
146
  let res = await http.load('POST', 'rs/sql/sale_OtherChargeQuery', {
@@ -124,6 +124,7 @@
124
124
  }, ...this.$appdata.getParam('是否有效')] : [],
125
125
  // 控制单选
126
126
  radio: [],
127
+ searchValue: this.$appdata.getSingleValue('综合条件查询') ? this.$appdata.getSingleValue('综合条件查询') : 'f_userfiles_id',
127
128
  // 选中的页
128
129
  all: [],
129
130
  // row数据
@@ -144,7 +145,7 @@
144
145
  },
145
146
  methods: {
146
147
  async search () {
147
- this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}' and f_orgid = '${this.$login.f.orgid}'`
148
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}' and f_orgid = '${this.$login.f.orgid}'`
148
149
  this.model.search(this.condition, this.model)
149
150
  let http = new HttpResetClass()
150
151
  let res = await http.load('POST', 'rs/sql/sale_RecordQuery', {
@@ -106,6 +106,7 @@ export default {
106
106
  label: '全部',
107
107
  value: ''
108
108
  }, ...this.$appdata.getParam('缴费状态')] : [],
109
+ searchValue: this.$appdata.getSingleValue('综合条件查询') ? this.$appdata.getSingleValue('综合条件查询') : 'f_userfiles_id',
109
110
  fields: {'f_userinfo_code': '客户编号', 'f_user_name': '客户姓名', 'f_preamount': '购气金额', 'f_pregas': '购气量', 'f_operate_date,': '缴费时间', 'f_operator': '操作员', 'f_comments': '备注'},
110
111
  defaultfield: [
111
112
  'f_userinfo_code', 'f_user_name', 'f_preamount', 'f_pregas', 'f_operate_date', 'f_operator', 'f_comments'
@@ -120,7 +121,7 @@ export default {
120
121
  methods: {
121
122
  async search () {
122
123
  console.log('aaa:', this.$refs.paged.$refs.criteria.condition)
123
- this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_userfiles_id = '${this.row.f_userfiles_id}'`
124
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}'`
124
125
  this.model.search(this.condition, this.model)
125
126
  }
126
127
  },
@@ -99,6 +99,7 @@
99
99
  }, ...this.$appdata.getParam('是否有效')] : [],
100
100
  // row数据
101
101
  rowsdata: [],
102
+ searchValue: this.$appdata.getSingleValue('综合条件查询') ? this.$appdata.getSingleValue('综合条件查询') : 'f_userfiles_id',
102
103
  fields: {'f_userinfo_code': '客户编号', 'f_user_name': '原用户姓名', 'f_newuser_name': '新用户姓名', 'f_transfer_fees': '过户费', 'f_operate_date': '过户日期'},
103
104
  defaultfield: [
104
105
  'f_userinfo_code', 'f_user_name', 'f_newuser_name', 'f_transfer_fees', 'f_operate_date'
@@ -114,7 +115,7 @@
114
115
  },
115
116
  methods: {
116
117
  async search () {
117
- this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}' and f_orgid = '${this.$login.f.orgid}'`
118
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}' and f_orgid = '${this.$login.f.orgid}'`
118
119
  this.model.search(this.condition, this.model)
119
120
  let http = new HttpResetClass()
120
121
  let res = await http.load('POST', 'rs/sql/sale_TransferQuery', {
@@ -139,6 +139,7 @@ let reprintGen = function *(self, row) {
139
139
  }, ...this.$appdata.getParam('缴费状态')] : [],
140
140
  // 控制单选
141
141
  radio: [],
142
+ searchValue: this.$appdata.getSingleValue('综合条件查询') ? this.$appdata.getSingleValue('综合条件查询') : 'f_userfiles_id',
142
143
  // 选中的页
143
144
  all: [],
144
145
  // row数据
@@ -167,7 +167,7 @@
167
167
  data () {
168
168
  return {
169
169
  condition: '1=1',
170
- model: new PagedList(`${this.row.f_meter_type === '物联网表'?'rs/sql/sale_WebHandplanQuery':'rs/sql/sale_HandplanQuery'}`, 20, {}, {
170
+ model: new PagedList(`${this.row.f_meter_type === '物联网表'?'rs/sql/sale_WebHandplanQuery':'rs/sql/sale_HandplanQuery'}`, 20, {f_user_id: this.row.f_user_id}, {
171
171
  f_oughtfee: 0,
172
172
  f_oughtamount: 0,
173
173
  f_stairamount1: 0,
@@ -193,6 +193,7 @@
193
193
  all: [],
194
194
  // row数据
195
195
  rowsdata: [],
196
+ searchValue: this.$appdata.getSingleValue('综合条件查询') ? this.$appdata.getSingleValue('综合条件查询') : 'f_userfiles_id',
196
197
  starthead: '',
197
198
  fields: {'f_userinfo_code': '用户编号',
198
199
  'f_user_name': '姓名',
@@ -237,11 +238,12 @@
237
238
  // this.model.search(this.condition, this.model)
238
239
  // },
239
240
  async search () {
240
- this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}' and f_orgid = '${this.$login.f.orgid}'`
241
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}' and f_orgid = '${this.$login.f.orgid}'`
241
242
  this.model.search(this.condition, this.model)
242
243
  let http = new HttpResetClass()
243
244
  let res = await http.load('POST', `${this.row.f_meter_type === '物联网表'?'rs/sql/sale_WebHandplanQuery':'rs/sql/sale_HandplanQuery'}`, {
244
245
  data: {
246
+ f_user_id: this.row.f_user_id,
245
247
  condition: this.condition
246
248
  }
247
249
  }, {resolveMsg: null, rejectMsg: null})
@@ -0,0 +1,370 @@
1
+ <template>
2
+ <div>
3
+ <div class="flex" >
4
+ <div class="basic-main" style="height: 98%;">
5
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
6
+ <criteria partial='criteria' v-ref:criteria @condition-changed="$parent.selfSearch"
7
+ v-show="$parent.searchshow">
8
+ <div novalidate class="form-inline auto" partial>
9
+ <div class="col-sm-2 form-group">
10
+ <label class="font_normal_body">组织机构</label>
11
+ <res-select :initresid='$parent.$parent.curorgid'
12
+ @res-select="$parent.$parent.getorg"
13
+ class="select select_list"
14
+ restype='organization'
15
+ style="width: 60%">
16
+ </res-select>
17
+ </div>
18
+ <div class="col-sm-2 form-group">
19
+ <label class="font_normal_body">合同照片</label>
20
+ <v-select :disabled=false
21
+ :options='$parent.$parent.pj'
22
+ :value-single="true"
23
+ :value.sync="model.f_hetong"
24
+ close-on-select
25
+ placeholder='请选择'
26
+ v-model="model.f_hetong"
27
+ condition="f_hetong = '{}'"
28
+ search=fasle
29
+ >
30
+ </v-select>
31
+ </div>
32
+ <div class="col-sm-2 form-group">
33
+ <label class="font_normal_body">换表照片</label>
34
+ <v-select :disabled=false
35
+ :options='$parent.$parent.pj'
36
+ :value-single="true"
37
+ :value.sync="model.f_changemeter"
38
+ close-on-select
39
+ placeholder='请选择'
40
+ v-model="model.f_changemeter"
41
+ condition="f_changemeter = '{}'"
42
+ search=fasle
43
+ >
44
+ </v-select>
45
+ </div>
46
+ <div class="col-sm-2 form-group">
47
+ <label class="font_normal_body">安检照片</label>
48
+ <v-select :disabled=false
49
+ :options='$parent.$parent.pj'
50
+ :value-single="true"
51
+ :value.sync="model.f_security_check"
52
+ close-on-select
53
+ placeholder='请选择'
54
+ v-model="model.f_security_check"
55
+ condition="f_security_check = '{}'"
56
+ search=fasle
57
+ >
58
+ </v-select>
59
+ </div>
60
+ <div class="col-sm-2 form-group">
61
+ <label class="font_normal_body">身份证照片</label>
62
+ <v-select :disabled=false
63
+ :options='$parent.$parent.pj'
64
+ :value-single="true"
65
+ :value.sync="model.f_idcard"
66
+ close-on-select
67
+ placeholder='请选择'
68
+ v-model="model.f_idcard"
69
+ condition="f_idcard = '{}'"
70
+ search=fasle
71
+ >
72
+ </v-select>
73
+ </div>
74
+ <div class="col-sm-2 form-group">
75
+ <label class="font_normal_body">房产证照片</label>
76
+ <v-select :disabled=false
77
+ :options='$parent.$parent.pj'
78
+ :value-single="true"
79
+ :value.sync="model.f_house"
80
+ close-on-select
81
+ placeholder='请选择'
82
+ v-model="model.f_house"
83
+ condition="f_house = '{}'"
84
+ search=fasle
85
+ >
86
+ </v-select>
87
+ </div>
88
+ <div class="col-sm-2 form-group">
89
+ <label class="font_normal_body">承诺书照片</label>
90
+ <v-select :disabled=false
91
+ :options='$parent.$parent.pj'
92
+ :value-single="true"
93
+ :value.sync="model.f_responsibility_letter"
94
+ close-on-select
95
+ placeholder='请选择'
96
+ v-model="model.f_responsibility_letter"
97
+ condition="f_responsibility_letter = '{}'"
98
+ search=fasle
99
+ >
100
+ </v-select>
101
+ </div>
102
+ <div class="span" style="float:right;">
103
+ <button class="button_search" @click="search()">查 询</button>
104
+ </div>
105
+ </div>
106
+ </criteria>
107
+ <data-grid :model="model" v-ref:grid class="list_area table_sy" partial='list'>
108
+ <template partial='head'>
109
+ <tr>
110
+ <th>
111
+ <nobr>序号</nobr>
112
+ </th>
113
+ <th>
114
+ <nobr>客户编号</nobr>
115
+ </th>
116
+ <th>
117
+ <nobr>客户名称</nobr>
118
+ </th>
119
+ <th>
120
+ <nobr>客户电话</nobr>
121
+ </th>
122
+ <th>
123
+ <nobr>客户地址</nobr>
124
+ </th>
125
+ <th>
126
+ <nobr>组织机构</nobr>
127
+ </th>
128
+ <th>
129
+ <nobr>合同照片</nobr>
130
+ </th>
131
+ <th>
132
+ <nobr>换表照片</nobr>
133
+ </th>
134
+ <th>
135
+ <nobr>安检照片</nobr>
136
+ </th>
137
+ <th>
138
+ <nobr>身份证照片</nobr>
139
+ </th>
140
+ <th>
141
+ <nobr>房产证照片</nobr>
142
+ </th>
143
+ <th>
144
+ <nobr>承诺书照片</nobr>
145
+ </th>
146
+ </tr>
147
+ </template>
148
+ <template partial='body'>
149
+ <td style="text-align: center;"><nobr>{{$index + 1}}</nobr></td>
150
+ <td style="text-align: center;"><nobr>
151
+ {{row.f_userinfo_code}}
152
+ </nobr> </td>
153
+ <td style="text-align: center;">
154
+ <nobr>{{row.f_user_name}}</nobr>
155
+ </td>
156
+ <td style="text-align: center;">
157
+ <nobr>{{row.f_user_phone}}</nobr>
158
+ </td>
159
+ <td style="text-align: center;">
160
+ <nobr>{{row.f_address}}</nobr>
161
+ </td>
162
+ <td style="text-align: center;">
163
+ <nobr>{{row.f_orgname}}</nobr>
164
+ </td>
165
+ <td style="text-align: center;">
166
+ <button v-if="row.f_hetong=='有'" class="btn btn-link" @click.stop="$parent.$parent.$parent.showPicture(row,'合同照片')">查看</button>
167
+ <button v-if="row.f_hetong=='无'" class="btn btn-link" @click.stop="$parent.$parent.$parent.uploadPicture(row,'合同照片')">上传</button>
168
+ </td>
169
+ <td style="text-align: center;">
170
+ <button v-if="row.f_changemeter=='有'" class="btn btn-link" @click.stop="$parent.$parent.$parent.showPicture(row,'换表&清零')">查看</button>
171
+ </td>
172
+ <td style="text-align: center;">
173
+ <button v-if="row.f_security_check=='有'" class="btn btn-link" @click.stop="$parent.$parent.$parent.showPicture(row,'安检照片')">查看</button>
174
+ </td>
175
+ <td style="text-align: center;">
176
+ <button v-if="row.f_idcard=='有'" class="btn btn-link" @click.stop="$parent.$parent.$parent.showPicture(row,'身份证照片')">查看</button>
177
+ <button v-if="row.f_idcard=='无'" class="btn btn-link" @click.stop="$parent.$parent.$parent.uploadPicture(row,'身份证照片')">上传</button>
178
+ </td>
179
+ <td style="text-align: center;">
180
+ <button v-if="row.f_house=='有'" class="btn btn-link" @click.stop="$parent.$parent.$parent.showPicture(row,'房产证照片')">查看</button>
181
+ <button v-if="row.f_house=='无'" class="btn btn-link" @click.stop="$parent.$parent.$parent.uploadPicture(row,'房产证照片')">上传</button>
182
+ </td>
183
+ <td style="text-align: center;">
184
+ <button v-if="row.f_responsibility_letter=='有'" class="btn btn-link" @click.stop="$parent.$parent.$parent.showPicture(row,'承诺书照片')">查看</button>
185
+ <button v-if="row.f_responsibility_letter=='无'" class="btn btn-link" @click.stop="$parent.$parent.$parent.uploadPicture(row,'承诺书照片')">上传</button>
186
+ </td>
187
+
188
+ </template>
189
+ </data-grid>
190
+ </criteria-paged>
191
+ </div>
192
+ </div>
193
+ <!-- 展示图片 -->
194
+ <modal :show.sync="showPictures" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
195
+ <header slot="modal-header" class="modal-header">
196
+ <button type="button" class="close" @click="close"><span>&times;</span></button>
197
+ <h4 class="modal-title">图片展示</h4>
198
+ </header>
199
+ <article slot="modal-body">
200
+ <div style="padding:0px 0px 10px 0px;margin-left: 20px;overflow: auto;">
201
+ <timeline >
202
+ <timeline-item v-for="item in files"
203
+ :color="$index === files.length - 1 ? 'blue' : 'default'">
204
+ <div class="row" >
205
+
206
+
207
+ <p> {{item.days}}</p>
208
+
209
+ <!-- 派单 -->
210
+ <div v-for="file in item.arrays" class="col-sm-6">
211
+
212
+ <div style="height:180px;">
213
+ <img style="height:100%" :src="file.f_downloadURL"/>
214
+ </div>
215
+
216
+ <div >
217
+ <div class="showtext">上传时间:&nbsp;<span>{{file.f_uploaddate}}</span></div>
218
+ <div class="showtext">操作员:&nbsp;<span>{{file.f_username}}</span></div>
219
+ <div class="showtext">分类:&nbsp;<span>{{file.fusetype}}</span></div>
220
+ <div class="showtext">文件说明:&nbsp;{{file.fremarks}}</div>
221
+ <div class="flex-row showtext">
222
+ <a target="_blank" :href="file.f_downloadURL">预览</a>
223
+ </div>
224
+ </div>
225
+ </div>
226
+ </div>
227
+
228
+ </timeline-item>
229
+ </timeline>
230
+ </div>
231
+ </article>
232
+ <footer slot="modal-footer" class="modal-footer">
233
+ </footer>
234
+ </modal>
235
+ <!-- 上传图片 -->
236
+ <modal :show.sync="showUpload" width="80%" style="width:auto;" v-ref:modal1 middle backdrop="false">
237
+ <header slot="modal-header" class="modal-header">
238
+ <button type="button" class="close" @click="close"><span>&times;</span></button>
239
+ <h4 class="modal-title">上传图片</h4>
240
+ </header>
241
+ <article slot="modal-body" style="padding:0px 0px 10px 0px;margin-left: 20px;height: 900px;">
242
+ <upload :blodid="modelData.f_userinfo_id" v-ref:upload :fusetype="modelData.fusetype" isremark="true" style="width:auto" ></upload>
243
+ </article>
244
+ <footer slot="modal-footer" class="modal-footer">
245
+ </footer>
246
+ </modal>
247
+ </div>
248
+ </template>
249
+
250
+ <script>
251
+ import {PagedList, HttpResetClass} from 'vue-client'
252
+ const myMap = new Map()
253
+
254
+ export default {
255
+ title: '图片统计',
256
+ name: 'pictureManage',
257
+ data () {
258
+ return {
259
+ model: new PagedList('rs/sql/pictureStatisticsQuery', 20),
260
+ pj: [{label: '全部', value: ''}, {label: '有', value: '有'}, {label: '无', value: '无'}],
261
+ // 控制查询条件显示
262
+ searchshow: true,
263
+ curorgid: [this.$login.f.orgid],
264
+ showUpload: false,
265
+ showPictures: false,
266
+ modelData: {
267
+ f_userinfo_id: '',
268
+ fusetype: '',
269
+ businessid: ''
270
+ },
271
+ files: [],
272
+ f_orgid: '',
273
+ da: {
274
+ rows: []
275
+ },
276
+ f_meternumber: ''
277
+ }
278
+ },
279
+ ready () {
280
+ this.search()
281
+ },
282
+ methods: {
283
+ uploadPicture (row, val) {
284
+ this.modelData.fusetype = val
285
+ this.$refs.upload.headers.fusetype = val
286
+ this.modelData.f_userinfo_id = row.f_userinfo_id
287
+ this.showUpload = true
288
+ },
289
+ showPicture (row, val) {
290
+ this.fusetype = val
291
+ this.showPictures = true
292
+ this.files = []
293
+ let condition = `f_blobid = '${row.f_userinfo_id}' and fusetype='${val}'`
294
+ let http = new HttpResetClass()
295
+ if (row.f_userinfo_id) {
296
+ http.load('POST', 'rs/logic/getAllFiles', {
297
+ data: {
298
+ condition: condition
299
+ }
300
+ }, {resolveMsg: null, rejectMsg: '获取附件出错!!!'}).then((res) => {
301
+ for (var i = 0; i < res.data.days.length; i++) {
302
+ // 循环日期。将files组织成[{day:'',array:''},{day:'',array:''}...]格式
303
+ this.files.push({
304
+ days: null,
305
+ arrays: []
306
+ })
307
+ this.files[i].days = res.data.days[i].uploadday
308
+ for (var j = 0; j < res.data.array.length; j++) {
309
+ // 循环查出来的所有附件
310
+
311
+ if (res.data.array[j].uploadday == this.files[i].days) {
312
+ // 如果使用类型包含导入字样,则是execl文件导入的,不做显示
313
+ if (res.data.array[j].fusetype && res.data.array[j].f_filetype.includes('xls')) {
314
+ res.data.array[j].splice(i, 1)
315
+ i--
316
+ continue
317
+ }
318
+ let temp = res.data.array[j].f_downloadpath
319
+ let URL = temp.substring(temp.lastIndexOf(':\\') + 2)
320
+ res.data.array[j].f_downloadURL = 'http://' + location.host + '/' + URL
321
+ this.files[i].arrays.push(res.data.array[j])
322
+ }
323
+ }
324
+ }
325
+ })
326
+ }
327
+ },
328
+ close () {
329
+ this.showUpload = false
330
+ this.showPictures = false
331
+ },
332
+ getorg (val) {
333
+ this.f_orgid = this.$login.convertToIn(val)
334
+ this.f_filialeid = val[0]
335
+ },
336
+ search () {
337
+ this.$refs.paged.$refs.criteria.search()
338
+ },
339
+ selfSearch (args) {
340
+ if (!this.f_orgid) {
341
+ this.getorg([this.$login.f.orgid])
342
+ }
343
+ console.log('查询。。。', this.f_orgid)
344
+ if (this.f_orgid) {
345
+ args.condition = `${args.condition} and f_orgid in ${this.f_orgid}`
346
+ }
347
+ this.model.search(args.condition, args.model)
348
+ }
349
+ },
350
+ computed: {
351
+ ischecked () {
352
+ return function (index, i) {
353
+ // console.log("计算属性")
354
+ if (!this.radio[index]) {
355
+ return false
356
+ }
357
+ return this.radio[index][i]
358
+ }
359
+ }
360
+ }
361
+ }
362
+ </script>
363
+ <style>
364
+ .datapanel {
365
+ color: #333;
366
+ background-color: white;
367
+ padding: 10px 20px;
368
+ border-radius: 15px;
369
+ }
370
+ </style>
@@ -173,7 +173,7 @@
173
173
  data () {
174
174
  return {
175
175
  condition: '1=1',
176
- model: new PagedList('rs/sql/sale_HandplanQuery', 20, {}, {
176
+ model: new PagedList('rs/sql/sale_HandplanQuery', 20, {f_user_id: this.row.f_user_id}, {
177
177
  f_oughtfee: 0,
178
178
  f_oughtamount: 0,
179
179
  f_qianfei_fee: 0,
@@ -250,7 +250,8 @@
250
250
  let http = new HttpResetClass()
251
251
  let res = await http.load('POST', 'rs/sql/sale_HandplanQuery', {
252
252
  data: {
253
- condition: this.condition
253
+ condition: this.condition,
254
+ f_user_id: this.row.f_user_id
254
255
  }
255
256
  }, {resolveMsg: null, rejectMsg: null})
256
257
  this.printModel.rows = res.data
@@ -57,7 +57,7 @@
57
57
  :starthead="$parent.$parent.starthead"
58
58
  titletable="预存气费打印明细"
59
59
  ></print-data>
60
- <export-excel :data="{condition:$parent.$parent.condition}"
60
+ <export-excel :data="$parent.$parent.getCondition"
61
61
  :field="$parent.$parent.fields"
62
62
  sqlurl="rs/logic/saleExport" sql-name="sale_HandplanQuery" template-name='抄表查询'
63
63
  v-ref:exports
@@ -180,7 +180,7 @@
180
180
  data () {
181
181
  return {
182
182
  condition: '1=1',
183
- model: new PagedList('rs/sql/sale_HandplanQuery', 20, {}, {
183
+ model: new PagedList('rs/sql/sale_HandplanQuery', 20, {f_user_id: this.row.f_user_id}, {
184
184
  f_oughtfee: 0,
185
185
  f_oughtamount: 0,
186
186
  f_qianfei_fee: 0,
@@ -257,7 +257,8 @@
257
257
  let http = new HttpResetClass()
258
258
  let res = await http.load('POST', 'rs/sql/sale_HandplanQuery', {
259
259
  data: {
260
- condition: this.condition
260
+ condition: this.condition,
261
+ f_user_id: this.row.f_user_id
261
262
  }
262
263
  }, {resolveMsg: null, rejectMsg: null})
263
264
  this.printModel.rows = res.data
@@ -351,6 +352,12 @@
351
352
  }
352
353
  },
353
354
  computed: {
355
+ getCondition () {
356
+ return {
357
+ condition: this.condition,
358
+ f_user_id: this.row.f_user_id
359
+ }
360
+ },
354
361
  whetherpaies () {
355
362
  return [
356
363
  {label: '全部', value: ''},
@@ -167,7 +167,7 @@
167
167
  data () {
168
168
  return {
169
169
  condition: '1=1',
170
- model: new PagedList(`${this.row.f_meter_type === '物联网表'?'rs/sql/sale_WebHandplanQuery':'rs/sql/sale_HandplanQuery'}`, 20, {}, {
170
+ model: new PagedList(`${this.row.f_meter_type === '物联网表'?'rs/sql/sale_WebHandplanQuery':'rs/sql/sale_HandplanQuery'}`, 20, {f_user_id: this.row.f_user_id}, {
171
171
  f_oughtfee: 0,
172
172
  f_oughtamount: 0,
173
173
  f_stairamount1: 0,
@@ -242,7 +242,8 @@
242
242
  let http = new HttpResetClass()
243
243
  let res = await http.load('POST', `${this.row.f_meter_type === '物联网表'?'rs/sql/sale_WebHandplanQuery':'rs/sql/sale_HandplanQuery'}`, {
244
244
  data: {
245
- condition: this.condition
245
+ condition: this.condition,
246
+ f_user_id: this.row.f_user_id
246
247
  }
247
248
  }, {resolveMsg: null, rejectMsg: null})
248
249
  this.printModel.rows = res.data
@@ -167,7 +167,7 @@
167
167
  data () {
168
168
  return {
169
169
  condition: '1=1',
170
- model: new PagedList(`${this.row.f_meter_type === '物联网表'?'rs/sql/sale_WebHandplanQuery':'rs/sql/sale_HandplanQuery'}`, 20, {}, {
170
+ model: new PagedList(`${this.row.f_meter_type === '物联网表'?'rs/sql/sale_WebHandplanQuery':'rs/sql/sale_HandplanQuery'}`, 20, {f_user_id: this.row.f_user_id}, {
171
171
  f_oughtfee: 0,
172
172
  f_oughtamount: 0,
173
173
  f_stairamount1: 0,
@@ -242,7 +242,8 @@
242
242
  let http = new HttpResetClass()
243
243
  let res = await http.load('POST', `${this.row.f_meter_type === '物联网表'?'rs/sql/sale_WebHandplanQuery':'rs/sql/sale_HandplanQuery'}`, {
244
244
  data: {
245
- condition: this.condition
245
+ condition: this.condition,
246
+ f_user_id: this.row.f_user_id
246
247
  }
247
248
  }, {resolveMsg: null, rejectMsg: null})
248
249
  this.printModel.rows = res.data
@@ -336,6 +337,12 @@
336
337
  }
337
338
  },
338
339
  computed: {
340
+ getCondition () {
341
+ return {
342
+ condition: this.condition,
343
+ f_user_id: this.row.f_user_id
344
+ }
345
+ },
339
346
  whetherpaies () {
340
347
  return [
341
348
  {label: '全部', value: ''},
@@ -173,7 +173,7 @@
173
173
  data () {
174
174
  return {
175
175
  condition: '1=1',
176
- model: new PagedList('rs/sql/sale_HandplanQuery', 20, {}, {
176
+ model: new PagedList('rs/sql/sale_HandplanQuery', 20, {f_user_id: this.row.f_user_id}, {
177
177
  f_oughtfee: 0,
178
178
  f_oughtamount: 0,
179
179
  f_qianfei_fee: 0,
@@ -250,7 +250,8 @@
250
250
  let http = new HttpResetClass()
251
251
  let res = await http.load('POST', 'rs/sql/sale_HandplanQuery', {
252
252
  data: {
253
- condition: this.condition
253
+ condition: this.condition,
254
+ f_user_id: this.row.f_user_id
254
255
  }
255
256
  }, {resolveMsg: null, rejectMsg: null})
256
257
  this.printModel.rows = res.data
@@ -52,14 +52,14 @@
52
52
  <v-select :value.sync="model.f_user_type"
53
53
  @change="$parent.$parent.userTypeChange()"
54
54
  :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
55
- condition="uf.f_user_type = '{}'"
55
+ condition="hd.f_user_type = '{}'"
56
56
  close-on-select></v-select>
57
57
  </div>
58
58
  <div class="col-sm-2 form-group">
59
59
  <label class="font_normal_body">用气性质</label>
60
60
  <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
61
61
  :options='$parent.$parent.gasproperties' placeholder='请选择'
62
- condition="uf.f_gasproperties = '{}'"
62
+ condition="hd.f_gasproperties = '{}'"
63
63
  close-on-select></v-select>
64
64
  </div>
65
65
  <div class="form-group" :class="{'col-sm-2':!$parent.$parent.editList,'col-sm-4':$parent.$parent.editList}">
@@ -52,14 +52,14 @@
52
52
  <v-select :value.sync="model.f_user_type"
53
53
  @change="$parent.$parent.userTypeChange()"
54
54
  :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
55
- condition="uf.f_user_type = '{}'"
55
+ condition="hd.f_user_type = '{}'"
56
56
  close-on-select></v-select>
57
57
  </div>
58
58
  <div class="col-sm-2 form-group">
59
59
  <label class="font_normal_body">用气性质</label>
60
60
  <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
61
61
  :options='$parent.$parent.gasproperties' placeholder='请选择'
62
- condition="uf.f_gasproperties = '{}'"
62
+ condition="hd.f_gasproperties = '{}'"
63
63
  close-on-select></v-select>
64
64
  </div>
65
65
  <div
package/src/sale.js CHANGED
@@ -1175,4 +1175,6 @@ export default function () {
1175
1175
  Vue.component('transfer-audit', (resolve) => { require(['./components/revenue/third/rizhao/transferAudit'], resolve) })
1176
1176
  // 日照第三方过户预约审核数据展示页面
1177
1177
  Vue.component('transfer-audit-dispose-basics', (resolve) => { require(['./components/revenue/third/rizhao/transferAuditDisposeBasics'], resolve) })
1178
+ // 图片统计查询
1179
+ Vue.component('maintenance-picture', (resolve) => { require(['./components/revenue/comprehen/Maintenance/pictureManage/pictureListMaintain'], resolve) })
1178
1180
  }