sale-client 3.5.148 → 3.5.150

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 (30) hide show
  1. package/package.json +1 -1
  2. package/src/components/FilesManage/MeterinfoTest.vue +22 -0
  3. package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/ChangeMeter.vue +1 -1
  4. package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/ResetMeter.vue +1 -1
  5. package/src/components/revenue/comprehen/StairPrice/GasPrice.vue +2 -2
  6. package/src/components/revenue/third/transferAudit.vue +55 -42
  7. package/src/components/revenue/third/transferAuditCenter.vue +102 -0
  8. package/src/components/revenue/third/transferAuditDisposeBasics.vue +209 -0
  9. package/src/filiale/dongguan/components/newchangemeter/ChangeMeter.vue +1 -1
  10. package/src/filiale/dongguan/components/newchangemeter/ResetMeter.vue +1 -1
  11. package/src/filiale/gehua/FileUserFiles.vue +0 -3
  12. package/src/filiale/guangxi/ChangeMeter.vue +1 -1
  13. package/src/filiale/guangxi/ResetMeter.vue +1 -1
  14. package/src/filiale/jinjiang/ChangeMeter.vue +1 -1
  15. package/src/filiale/liaoyuan/ChangeMeter.vue +1 -1
  16. package/src/filiale/macheng/ChangeMeter.vue +1 -1
  17. package/src/filiale/meihekou/ChangeMeter.vue +1 -1
  18. package/src/filiale/shanxian/UserDeviceInfoTest.vue +374 -0
  19. package/src/filiale/shanxian/sale.js +10 -0
  20. package/src/filiale/shaoguan/newchangemeter/ChangeMeter.vue +1 -1
  21. package/src/filiale/tongchuan/ChangeMeter.vue +1 -1
  22. package/src/filiale/wuhai/ChangeMeter.vue +1 -1
  23. package/src/filiale/yongzhongch/ChangeMeter.vue +1 -1
  24. package/src/filiale/zhongyi/ChangeMeter.vue +1 -1
  25. package/src/filiale/zhongyi/machineDown.vue +1112 -0
  26. package/src/filiale/zhongyi/machineHand.vue +2068 -0
  27. package/src/filiale/zhongyi/sale.js +6 -1
  28. package/src/plugins/CardService.js +2 -2
  29. package/src/plugins/FileManageService.js +1 -0
  30. package/src/sale.js +5 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.5.148",
3
+ "version": "3.5.150",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -113,6 +113,10 @@
113
113
  <v-select :value.sync="row.f_concentrator_id" :options='concentrators' value-single placeholder='集中器' close-on-select v-else
114
114
  search v-model='row.f_concentrator_id' :disabled="false"></v-select>
115
115
  </div>
116
+ <div class="col-sm-4 form-group" v-if="(row.gasbrand.length > 0 && ((row.gasbrand[0].f_meter_type == '物联网表' && row.gasbrand[0].f_hascard == '是') || (row.f_meter_classify.includes('卡表'))) && row.f_user_id )">
117
+ <label class="font_normal_body">&ensp;卡&emsp;&emsp;号</label>
118
+ <input type="number" class="input_search" style="width:60%" v-model="row.f_card_id" placeholder='卡号' @blur="checkCardId" :disabled="!jurisdiction.includes('卡号修改')">
119
+ </div>
116
120
  </div>
117
121
  <div>
118
122
  <a style="font-size: 16px;font-weight: 500;">气价信息</a>&nbsp;<a style="color: #999999;text-decoration: none"></a>
@@ -539,6 +543,8 @@
539
543
  show: false,
540
544
  field: '',
541
545
  ratioshow: false,
546
+ // 原本的卡号
547
+ orginCardId: '',
542
548
  userfileid: '',
543
549
  gasid: '',
544
550
  gastype: 'userfiles',
@@ -571,6 +577,7 @@
571
577
  async ready () {
572
578
  console.log('看看meter里面的数据', this.meter, this.row)
573
579
  this.row = Object.assign(this.row, this.meter, {f_use_limit : this.$appdata.getSingleValue('报废年限')})
580
+ this.orginCardId = this.row.f_card_id
574
581
  if(this.row.f_meter_classify){
575
582
  if(this.row.f_meter_classify==='物联网表'){
576
583
  this.isiot=true
@@ -588,6 +595,21 @@
588
595
  co(meterBookGen(this))
589
596
  },
590
597
  methods: {
598
+ checkCardId() {
599
+ this.$resetpost('rs/logic/checkCardId', {
600
+ data: {
601
+ f_userfiles_id: this.row.f_userfiles_id,
602
+ gasbrandId: this.row.f_gasbrand_id,
603
+ cardId: this.row.f_card_id,
604
+ f_orgid: this.row.f_orgid
605
+ }
606
+ }, {resolveMsg: null, rejectMsg: '获取表号出错'}).then(res => {
607
+ if(res.data.code !== '200') {
608
+ this.row.f_card_id = this.orginCardId
609
+ this.$showAlert(res.data.msg,'warning',1500)
610
+ }
611
+ })
612
+ },
591
613
  gasDateChange () {
592
614
  if (!this.row.f_scrap_date && this.row.f_gas_date) {
593
615
  if (this.row.f_use_limit) {
@@ -652,7 +652,7 @@ export default {
652
652
  f_depid: this.$login.f.depids,
653
653
  f_depname: this.$login.f.deps,
654
654
  f_perform_date: this.newinfo.f_perform_date,
655
- f_change_reason: ''
655
+ f_change_reason: '换表调价'
656
656
  }
657
657
 
658
658
  await this.$resetpost('rs/logic/user_pricechange', {data: param}, {resolveMsg: '更新气价成功', rejectMsg: '更新气价失败'})
@@ -656,7 +656,7 @@ export default {
656
656
  f_depid: this.$login.f.depids,
657
657
  f_depname: this.$login.f.deps,
658
658
  f_perform_date: this.newinfo.f_perform_date,
659
- f_change_reason: ''
659
+ f_change_reason: '换表调价'
660
660
  }
661
661
 
662
662
  await this.$resetpost('rs/logic/user_pricechange', {data: param}, {resolveMsg: '更新气价成功', rejectMsg: '更新气价失败'})
@@ -57,8 +57,8 @@
57
57
  <div :class="[$v.f_stairmonths.required || $v.f_stairmonths.dctest ? 'has-error' : 'has-success']" class="col-sm-6 form-group">
58
58
  <label class="font_normal_body" for="f_stairmonths">阶段月数</label>
59
59
  <input :disabled='isEdit' class="input_search" style="width:60%" type="number"
60
- v-model="model.f_stairmonths" v-validate:f_stairmonths='{required: true, dctest: [ 12, "<=" ] }'>
61
- <span class="help-block" v-if="$v.f_stairmonths.dctest">阶段月数不能大于12</span>
60
+ v-model="model.f_stairmonths" v-validate:f_stairmonths='{required: true}'>
61
+ <!-- <span class="help-block" v-if="$v.f_stairmonths.dctest">阶段月数不能大于36</span>-->
62
62
  </div>
63
63
  <div :class="[$v.f_stair_start_date.required ? 'has-error' : 'has-success']" class="col-sm-6 form-group" v-if="stairStartShow">
64
64
  <input class="input_search" style="width:60%" type="text" v-model="model.f_stair_start_date" v-show="false"
@@ -3,7 +3,7 @@
3
3
  <criteria partial='criteria' v-ref:criteria @condition-changed='$parent.selfSearch'>
4
4
  <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
5
5
  <div class="row">
6
- <div class="col-sm-2 form-group">
6
+ <div class="col-sm-3 form-group">
7
7
  <label class="font_normal_body">用户编号</label>
8
8
  <input type="text" class="input_search"
9
9
  style="width:60%"
@@ -11,8 +11,8 @@
11
11
  condition="f_userinfo_code = '{}'"
12
12
  placeholder="用户编号"/>
13
13
  </div>
14
- <div class="col-sm-2 form-group">
15
- <label class="font_normal_body">用户姓名</label>
14
+ <div class="col-sm-3 form-group">
15
+ <label class="font_normal_body">旧用户姓名</label>
16
16
  <input type="text" class="input_search"
17
17
  style="width:60%"
18
18
  v-model="model.f_user_name"
@@ -21,15 +21,15 @@
21
21
  </div>
22
22
  <div class="col-sm-2 form-group">
23
23
  <label class="font_normal_body">处理状态</label>
24
- <v-select v-model="model.f_orderstate" style="width:60%"
24
+ <v-select v-model="model.f_order_state" style="width:60%"
25
25
  placeholder='处理状态'
26
- :value.sync="model.f_orderstate"
26
+ :value.sync="model.f_order_state"
27
27
  :options='$parent.$parent.getState'
28
28
  :value-single="true"
29
29
  close-on-select value-single>
30
30
  </v-select>
31
31
  </div>
32
- <div class="span col-sm-2 form-group button-range" style="float: right">
32
+ <div class="span col-sm-3 form-group button-range" style="float: right">
33
33
  <button class="button_search button_spacing" @click="search()" v-el:cx>查询</button>
34
34
  <button class="button_clear button_spacing" @click="clear">清空</button>
35
35
  <div style="float: right" class="button_spacing"
@@ -37,35 +37,34 @@
37
37
  @click="criteriaShow = !criteriaShow"></div>
38
38
  </div>
39
39
  <div class="row" v-show="criteriaShow">
40
- <div class="col-sm-2 form-group">
41
- <label class="font_normal_body">联系电话</label>
40
+ <div class="col-sm-3 form-group">
41
+ <label class="font_normal_body">旧联系电话</label>
42
42
  <input type="text" class="input_search"
43
43
  style="width:60%"
44
- v-model="model.f_phone"
45
- condition="f_phone = '{}'"
44
+ v-model="model.f_user_phone"
45
+ condition="f_user_phone = '{}'"
46
46
  placeholder="联系电话"/>
47
47
  </div>
48
- <div class="col-sm-2 form-group">
48
+ <div class="col-sm-4 form-group">
49
49
  <label class="font_normal_body">起始时间</label>
50
- <datepicker placeholder='预约时间' style="width:60%"
50
+ <datepicker placeholder='预约时间'
51
51
  v-model="model.f_orderdate_start"
52
52
  :value.sync="model.f_orderdate_start"
53
- :format="'yyyy-MM-dd'"
53
+ :format="'yyyy-MM-dd 00:00:00'"
54
54
  :show-reset-button="true"
55
- condition="f_orderdate >= '{} 00:00:00'">
55
+ condition="f_order_date >= '{}'">
56
56
  </datepicker>
57
57
  </div>
58
- <div class="col-sm-2 form-group">
58
+ <div class="col-sm-4 form-group">
59
59
  <label class="font_normal_body">结束时间</label>
60
- <datepicker placeholder='结束时间' style="width:60%"
60
+ <datepicker placeholder='预约时间'
61
61
  v-model="model.f_orderdate_end"
62
62
  :value.sync="model.f_orderdate_end"
63
- :format="'yyyy-MM-dd'"
63
+ :format="'yyyy-MM-dd 00:00:00'"
64
64
  :show-reset-button="true"
65
- condition="f_orderdate <= '{} 00:00:00'">
65
+ condition="f_order_date <= '{}'">
66
66
  </datepicker>
67
67
  </div>
68
- s
69
68
  </div>
70
69
  </div>
71
70
  </div>
@@ -77,13 +76,22 @@
77
76
  <nobr>用户编号</nobr>
78
77
  </th>
79
78
  <th>
80
- <nobr>用户姓名</nobr>
79
+ <nobr>旧用户姓名</nobr>
80
+ </th>
81
+ <th>
82
+ <nobr>旧联系电话</nobr>
83
+ </th>
84
+ <th>
85
+ <nobr>旧身份证号</nobr>
86
+ </th>
87
+ <th>
88
+ <nobr>新用户姓名</nobr>
81
89
  </th>
82
90
  <th>
83
- <nobr>联系电话</nobr>
91
+ <nobr>新联系电话</nobr>
84
92
  </th>
85
93
  <th>
86
- <nobr>详细地址</nobr>
94
+ <nobr>新身份证号</nobr>
87
95
  </th>
88
96
  <th>
89
97
  <nobr>备注信息</nobr>
@@ -109,13 +117,18 @@
109
117
  <tr>
110
118
  <td style="text-align:center">{{ row.f_userinfo_code }}</td>
111
119
  <td style="text-align:center">{{ row.f_user_name }}</td>
112
- <td style="text-align:center">{{ row.f_phone ? row.f_phone : f_user_phone }}</td>
113
- <td style="text-align:center">{{ row.f_address }}</td>
114
- <td style="text-align:center">{{ row.f_orderremark }}</td>
115
- <td style="text-align:center">{{ row.f_ordertype }}</td>
116
- <td style="text-align:center">{{ row.f_orderdate }}</td>
117
- <td style="text-align:center">{{ row.f_orderstate ? row.f_orderstate : '待处理' }}</td>
118
- <td style="text-align:center">{{ row.f_disposedate }}</td>
120
+ <td style="text-align:center">{{ row.f_user_phone}}</td>
121
+ <td style="text-align:center">{{ row.f_idnumber }}</td>
122
+
123
+ <td style="text-align:center">{{ row.f_newuser_name }}</td>
124
+ <td style="text-align:center">{{ row.f_newuser_phone}}</td>
125
+ <td style="text-align:center">{{ row.f_newidnumber }}</td>
126
+
127
+ <td style="text-align:center">{{ row.f_comments }}</td>
128
+ <td style="text-align:center">{{ row.f_operate_type }}</td>
129
+ <td style="text-align:center">{{ row.f_order_date }}</td>
130
+ <td style="text-align:center">{{ row.f_order_state ? row.f_order_state : '待处理' }}</td>
131
+ <td style="text-align:center">{{ row.f_operate_date }}</td>
119
132
  <td style="text-align:center">{{ row.f_dispose_operator }}</td>
120
133
  </tr>
121
134
  </template>
@@ -132,11 +145,11 @@ import {PagedList} from 'vue-client'
132
145
  export default {
133
146
  data () {
134
147
  return {
135
- model: new PagedList('/rs/sql/getorderRepair', 20,
148
+ model: new PagedList('rs/sql/singleTable_OrderBy', 20,
136
149
  {
137
- tablename: '`t_order_transfer`',
138
- items: '`f_userChange_name,f_userChange_idnumber,f_userChange_phone,f_imgList,f_newImgList`',
139
- orderitem: '`f_orderdate`'
150
+ tablename: '"t_transfer_midorder"',
151
+ items: '"*"',
152
+ orderitem: '"f_order_date desc"'
140
153
  }),
141
154
  criteriaShow: false
142
155
  }
@@ -155,24 +168,24 @@ export default {
155
168
  this.$refs.paged.$refs.criteria.search()
156
169
  },
157
170
  selfSearch (args) {
158
- if (this.$refs.paged.$refs.criteria.model.f_orderstate) {
159
- if (this.$refs.paged.$refs.criteria.model.f_orderstate === '待处理') {
160
- args.condition += ' and f_orderstate is null '
171
+ if (this.$refs.paged.$refs.criteria.model.f_order_state) {
172
+ if (this.$refs.paged.$refs.criteria.model.f_order_state === '待处理') {
173
+ args.condition += ` and f_order_state = '待处理 '`
161
174
  }
162
- if (this.$refs.paged.$refs.criteria.model.f_orderstate === '预约成功') {
163
- args.condition += ` and f_orderstate = '预约成功' `
175
+ if (this.$refs.paged.$refs.criteria.model.f_order_state === '预约成功') {
176
+ args.condition += ` and f_order_state = '预约成功' `
164
177
  }
165
- if (this.$refs.paged.$refs.criteria.model.f_orderstate === '预约失败') {
166
- args.condition += ` and f_orderstate = '预约失败' `
178
+ if (this.$refs.paged.$refs.criteria.model.f_order_state === '预约失败') {
179
+ args.condition += ` and f_order_state = '预约失败' `
167
180
  }
168
181
  }
169
- args.condition = `${args.condition} and f_ordertype='预约过户' and f_orgstr in ${this.f_orgid}`
182
+ args.condition = `${args.condition} and f_operate_type='预约过户' and f_state = '有效' and f_orgid in ('${this.$login.f.orgid}')`
170
183
  this.model.search(args.condition, args.model)
171
184
  }
172
185
  },
173
186
  computed: {
174
187
  getState () {
175
- return [{label: '全部', value: ''}, {label: '待处理', value: '待处理'}, {
188
+ return [{label: '全部', value: ''}, {label: '待处理', value: ''}, {
176
189
  label: '预约成功',
177
190
  value: '预约成功'
178
191
  }, {label: '预约失败', value: '预约失败'}]
@@ -0,0 +1,102 @@
1
+ <template>
2
+ <div id="unit" class="flex-row" style="width: 100%">
3
+ <div class="flex binary-left" style="flex: 1; width:60%">
4
+ <transfer-audit v-ref:list @select-changed="selected"></transfer-audit>
5
+ </div>
6
+ <div class="flex binary-left" style="width:40%">
7
+ <transfer-audit-dispose-basics
8
+ :row="row"
9
+ :img-info="imgInfo"
10
+ :user-info="userInfo"
11
+ :title="title">
12
+ </transfer-audit-dispose-basics>
13
+ </div>
14
+ </div>
15
+ </template>
16
+
17
+ <script>
18
+ export default {
19
+ title: '第三方过户预约审核',
20
+ data () {
21
+ return {
22
+ row: {},
23
+ title: '',
24
+ imgInfo: [],
25
+ userInfo: []
26
+ }
27
+ },
28
+ ready () {
29
+ },
30
+ methods: {
31
+ async selected(data) {
32
+ console.log("data?", data)
33
+ this.userInfo = []
34
+ this.imgInfo = []
35
+ this.title = data.val.f_operate_type + '处理'
36
+ this.row = data.val
37
+ // 普通预约信息字段
38
+ this.userInfo.push({
39
+ key: data.val.f_describe,
40
+ value: data.val
41
+ })
42
+ let ywh = data.val.f_serial_number
43
+ //todo 根据业务号获取影像资料列表
44
+ let res = await this.$resetget(`datums/contentPageList?ywh=${ywh}`, {resolveMsg: null, rejectMsg: '获取数据错误!'})
45
+ let now = new Date().getTime()+""
46
+ let param = {ywh: ywh, ids: [], timestamp: now}
47
+ let imgList = []
48
+ let img = {}
49
+ console.log("res.data",res.data.data)
50
+ if (res.data.data.length) {
51
+ for (let item of res.data.data) {
52
+ img = item
53
+ console.log("图片名",img.name)
54
+ if (img.name.indexOf("买方身份证(买方提供)") !== -1 || img.name.indexOf("网签备案合同") !== -1){
55
+ imgList.push(
56
+ {
57
+ name:img.name,
58
+ id:img.uid,
59
+ fileType:img.fileType
60
+ }
61
+ )
62
+ param.ids.push(img.uid)
63
+ }
64
+ }
65
+ }
66
+ console.log("param.ids",param.ids)
67
+ if (param.ids.length) {
68
+ await this.$resetpost('rs/content/getContent', param, {resolveMsg: null, rejectMsg: '获取数据错误'}).then((res) => {
69
+ if (res.data.data.length) {
70
+ // 分别出图片字段和普通预约信息字段
71
+ for (let item of res.data.data) {
72
+ console.log("item",item)
73
+ for (let img of imgList){
74
+ if (item.id===img.id){
75
+ this.imgInfo.push({
76
+ key: img.name + img.id,
77
+ value: 'data:image/'+`${img.fileType}`+';base64,'+item.pageContent
78
+ })
79
+ }
80
+ }
81
+ }
82
+ }
83
+ })
84
+ }
85
+ },
86
+ init () {
87
+ this.row = {},
88
+ this.title = '',
89
+ this.imgInfo= [],
90
+ this.userInfo= []
91
+ }
92
+ },
93
+ events: {
94
+ 'refresh' () {
95
+ this.$refs.list.$refs.paged.$refs.criteria.search()
96
+ this.init()
97
+ }
98
+ }
99
+ }
100
+ </script>
101
+ <style>
102
+ </style>
@@ -0,0 +1,209 @@
1
+ <template>
2
+ <div class="auto" id="orderApplyDispose">
3
+ <validator name='v'>
4
+ <form novalidate class="form-horizontal select-overspread">
5
+ <ul class="nav nav-tabs">
6
+ <li class="active"><a style="font-size: 16px" href="#">{{title}}</a></li>
7
+ </ul>
8
+ <div class="outbox">
9
+ <!--图片信息-->
10
+ <div class="auto" v-if="imgInfo.length">
11
+ <div class="form-group" v-for="row in imgInfo">
12
+ <label class="col-sm-3 control-label">{{row.key}}</label>
13
+ <div class="col-sm-9">
14
+ <img :src="row.value" v-if="row.value" width="70%"/>
15
+ </div>
16
+ </div>
17
+ </div>
18
+ <!--展示信息-->
19
+ <div class="auto" v-if="userInfo.length">
20
+ <div class="form-group" v-for="row in userInfo">
21
+ <ul class="nav nav-tabs">
22
+ <li class="active a-tabs"><a href="#">{{row.key}}</a></li>
23
+ </ul>
24
+ <div>
25
+ <div class="row">
26
+ <div class="col-sm-6 form-group">
27
+ <label for="f_userinfo_code" class="font_normal_body">用户编号</label>
28
+ <input class="input_search" style="width:60%" type="text"
29
+ v-model="row.value.f_userinfo_code" readonly
30
+ placeholder="用户编号">
31
+ </div>
32
+ <div class="col-sm-6 form-group" >
33
+ <label for="f_user_name" class="font_normal_body">旧用户名</label>
34
+ <input class="input_search" style="width:60%" type="text"
35
+ v-model="row.value.f_user_name" readonly
36
+ placeholder="旧用户名">
37
+ </div>
38
+ <div class="col-sm-5 form-group">
39
+ <label for="f_user_phone" class=" font_normal_body">旧联系方式</label>
40
+ <input class="input_search" style="width:60%" type="text"
41
+ v-model="row.value.f_user_phone" readonly
42
+ placeholder="旧联系方式">
43
+ </div>
44
+ <div class="col-sm-7 form-group">
45
+ <label for="f_idnumber" class=" font_normal_body">旧身份账号</label>
46
+ <input class="input_search" style="width:60%" type="text"
47
+ v-model="row.value.f_idnumber" readonly
48
+ placeholder="旧身份账号">
49
+ </div>
50
+ <div class="col-sm-6 form-group">
51
+ <label for="f_newuser_name" class="font_normal_body">新用户名</label>
52
+ <input class="input_search" style="width:60%" type="text"
53
+ v-model="row.value.f_newuser_name" readonly
54
+ placeholder="新用户名">
55
+ </div>
56
+ <div class="col-sm-5 form-group">
57
+ <label for="f_newuser_phone" class="font_normal_body">新联系方式</label>
58
+ <input class="input_search" style="width:60%" type="text"
59
+ v-model="row.value.f_newuser_phone" readonly
60
+ placeholder="新联系方式">
61
+ </div>
62
+ <div class="col-sm-5 form-group">
63
+ <label for="f_newrent_phone" class="font_normal_body">新备用联系方式</label>
64
+ <input class="input_search" style="width:60%" type="text"
65
+ v-model="row.value.f_newrent_phone" readonly
66
+ placeholder="新备用联系方式">
67
+ </div>
68
+ <div class="col-sm-7 form-group">
69
+ <label for="f_newidnumber" class=" font_normal_body">新身份证号</label>
70
+ <input class="input_search" style="width:60%" type="text"
71
+ v-model="row.value.f_newidnumber" readonly
72
+ placeholder="新身份证号">
73
+ </div>
74
+ </div>
75
+ <div class="row">
76
+ <div class="col-sm-12 form-group">
77
+ <label for="f_describe" class="font_normal_body">描&emsp;述</label>
78
+ <input class="input_search" type="text" style="width:87%" v-model="row.value.f_describe"
79
+ readonly
80
+ placeholder="描述">
81
+ </div>
82
+ <div class="col-sm-12 form-group">
83
+ <label for="f_comments" class=" font_normal_body">备&emsp;注</label>
84
+ <input class="input_search" type="text" style="width:87%" v-model="row.value.f_comments"
85
+ readonly
86
+ placeholder="备注">
87
+ </div>
88
+ </div>
89
+ </div>
90
+ </div>
91
+ </div>
92
+ </div>
93
+
94
+ <div style="text-align:right;height:auto;margin-top:10px;margin-right:30px;">
95
+ <span style="color: red" v-if="row.f_order_state !== '待处理'&&row.f_order_state!==''&&row.f_order_state!==null">该条预约已处理</span>
96
+ <br>
97
+ <button type="button" :disabled="row.f_order_state!=='待处理'&&row.f_order_state!==''&&row.f_order_state!==null" class="btn btn-warning" @click="confirm(row)" style="width:80px;margin-left:20px;">预约失败</button>
98
+ <button type="button" :disabled="row.f_order_state!=='待处理'&&row.f_order_state!==''&&row.f_order_state!==null" class="btn btn-primary" @click="confirm1(row)" style="width:80px;margin-left:20px;">预约成功</button>
99
+ </div>
100
+ </form>
101
+ </validator>
102
+
103
+ </div>
104
+ </template>
105
+ <script>
106
+ export default {
107
+ data () {
108
+ return {
109
+ show: false,
110
+ f_operator: this.$login.f.name,
111
+ placeholder: ''
112
+ }
113
+ },
114
+ props: {
115
+ row: {
116
+ type: Object
117
+ },
118
+ title: {
119
+ type: String
120
+ },
121
+ userInfo: {
122
+ type: Array
123
+ },
124
+ imgInfo: {
125
+ type: Array
126
+ }
127
+ },
128
+ methods: {
129
+ close () {
130
+ this.show = false
131
+ },
132
+ async confirm(row) {
133
+ // 预约失败处理
134
+ let orderParam = {
135
+ f_order_state: '预约失败',
136
+ f_dispose_operator: this.f_operator,
137
+ f_operate_date: this.$login.toStandardTimeString(),
138
+ id: row.id
139
+ }
140
+ let transferParam = row
141
+ let data = {
142
+ orderParam: orderParam,
143
+ transferParam: transferParam
144
+ }
145
+ await this.$resetpost('rs/logic/transferOrderHandle', data, {
146
+ resolveMsg: '审核成功',
147
+ rejectMsg: '审核失败!!'
148
+ }).then((res) => {
149
+ if (res.data.code === 200) {
150
+ this.$showAlert('预约失败审核成功!!', 'success', 2000)
151
+ } else {
152
+ this.$showAlert('预约失败审核失败!!', 'danger', 2000)
153
+ }
154
+ })
155
+ this.$dispatch('refresh')
156
+ },
157
+ async confirm1(row) {
158
+ // 预约成功处理
159
+ let orderParam = {
160
+ f_order_state: '预约成功',
161
+ f_dispose_operator: this.f_operator,
162
+ f_operate_date: this.$login.toStandardTimeString(),
163
+ id: row.id
164
+ }
165
+ let transferParam = row
166
+
167
+ let data = {
168
+ orderParam: orderParam,
169
+ transferParam: transferParam
170
+ }
171
+ await this.$resetpost('rs/logic/transferOrderHandle', data, {
172
+ resolveMsg: '审核成功',
173
+ rejectMsg: '审核失败!!'
174
+ }).then((res) => {
175
+ if (res.data.code === 200) {
176
+ this.$showAlert('预约成功审核成功!!', 'success', 2000)
177
+ } else {
178
+ this.$showAlert('预约成功审核失败!!', 'danger', 2000)
179
+ }
180
+ })
181
+ this.$dispatch('refresh')
182
+
183
+ }
184
+ }
185
+ }
186
+ </script>
187
+ <style lang="less">
188
+ #orderApplyDispose{
189
+ .modal-header {
190
+ border: none;
191
+ .close {
192
+ position: absolute;
193
+ top: 7px;
194
+ right: 10px;
195
+ }
196
+ }
197
+ .modal-body {
198
+ padding-bottom: 0px;
199
+ }
200
+ .modal-footer {
201
+ padding: 10px 15px;
202
+ border: none;
203
+ }
204
+ .outbox {
205
+ height: 500px;
206
+ overflow-y: auto;
207
+ }
208
+ }
209
+ </style>
@@ -660,7 +660,7 @@ export default {
660
660
  f_depid: this.$login.f.depids,
661
661
  f_depname: this.$login.f.deps,
662
662
  f_perform_date: this.newinfo.f_perform_date,
663
- f_change_reason: ''
663
+ f_change_reason: '换表调价'
664
664
  }
665
665
 
666
666
  await this.$resetpost('rs/logic/user_pricechange', {data: param}, {resolveMsg: '更新气价成功', rejectMsg: '更新气价失败'})
@@ -665,7 +665,7 @@ export default {
665
665
  f_depid: this.$login.f.depids,
666
666
  f_depname: this.$login.f.deps,
667
667
  f_perform_date: this.newinfo.f_perform_date,
668
- f_change_reason: ''
668
+ f_change_reason: '换表调价'
669
669
  }
670
670
 
671
671
  await this.$resetpost('rs/logic/user_pricechange', {data: param}, {resolveMsg: '更新气价成功', rejectMsg: '更新气价失败'})
@@ -799,9 +799,6 @@ let loadParamGem = async function (self) {
799
799
  args.condition = `${args.condition} ` + this.orgcondition
800
800
  this.criteriaShow = false
801
801
  this.$refs.paged.$refs.grid.$el.scrollTop = 0
802
- if(args.condition.indexOf("f_user_state") === -1){
803
- args.condition = args.condition + ` and f_user_state = '正常'`
804
- }
805
802
  this.model.search(args.condition, args.model)
806
803
  let http = new HttpResetClass()
807
804
 
@@ -652,7 +652,7 @@ export default {
652
652
  f_depid: this.$login.f.depids,
653
653
  f_depname: this.$login.f.deps,
654
654
  f_perform_date: this.newinfo.f_perform_date,
655
- f_change_reason: ''
655
+ f_change_reason: '换表调价'
656
656
  }
657
657
 
658
658
  await this.$resetpost('rs/logic/user_pricechange', {data: param}, {resolveMsg: '更新气价成功', rejectMsg: '更新气价失败'})
@@ -656,7 +656,7 @@ export default {
656
656
  f_depid: this.$login.f.depids,
657
657
  f_depname: this.$login.f.deps,
658
658
  f_perform_date: this.newinfo.f_perform_date,
659
- f_change_reason: ''
659
+ f_change_reason: '换表调价'
660
660
  }
661
661
 
662
662
  await this.$resetpost('rs/logic/user_pricechange', {data: param}, {resolveMsg: '更新气价成功', rejectMsg: '更新气价失败'})
@@ -473,7 +473,7 @@ export default {
473
473
  f_depid: this.$login.f.depids,
474
474
  f_depname: this.$login.f.deps,
475
475
  f_perform_date: this.newinfo.f_perform_date,
476
- f_change_reason: ''
476
+ f_change_reason: '换表调价'
477
477
  }
478
478
 
479
479
  await this.$resetpost('rs/logic/user_pricechange', {data: param}, {resolveMsg: '更新气价成功', rejectMsg: '更新气价失败'})