apply-clients 3.4.2 → 3.4.4

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 (130) hide show
  1. package/android.html +23 -23
  2. package/build/dev-server.js +119 -119
  3. package/build/webpack.base.conf.js +2 -1
  4. package/build/webpack.dev.conf.js +12 -0
  5. package/dingding.html +23 -0
  6. package/index.html +33 -33
  7. package/package.json +2 -1
  8. package/src/AndroidApp.vue +35 -35
  9. package/src/DingDingApp.vue +51 -0
  10. package/src/android.js +21 -21
  11. package/src/apply.js +38 -13
  12. package/src/applyAndroid.js +46 -32
  13. package/src/applyDingDing.js +12 -0
  14. package/src/components/android/AppOnetomany.vue +343 -301
  15. package/src/components/android/AppServiceView.vue +189 -10
  16. package/src/components/android/AppSign.vue +19 -7
  17. package/src/components/android/AppTakePic.vue +143 -143
  18. package/src/components/android/AreaSelect/AppQrcodeReader.vue +73 -0
  19. package/src/components/android/AreaSelect/AppResAreaMapGroup.vue +148 -0
  20. package/src/components/android/AreaSelect/AppResAreaSelect.vue +108 -0
  21. package/src/components/android/AreaSelect/AppResAreaSelectGroup.vue +142 -0
  22. package/src/components/android/Function/AppFunctionServiceControl.vue +344 -0
  23. package/src/components/android/Function/AppInstallFunction.vue +366 -0
  24. package/src/components/android/Process/AppExplorationUser.vue +500 -320
  25. package/src/components/android/Process/AppServiceControl.vue +999 -48
  26. package/src/components/android/Process/Processes/AppAddMaterialScience.vue +477 -0
  27. package/src/components/android/Process/Processes/AppBuildSign.vue +46 -0
  28. package/src/components/android/Process/Processes/AppChargeManagement.vue +637 -0
  29. package/src/components/android/Process/Processes/AppDevicesManagement.vue +519 -0
  30. package/src/components/android/Process/Processes/AppInstallationDetails.vue +116 -90
  31. package/src/components/android/Process/Processes/AppSupplementalAgreement.vue +298 -0
  32. package/src/components/android/Process/Processes/selectApply.vue +250 -0
  33. package/src/components/android/Process/Processes/selectUserinfo.vue +182 -0
  34. package/src/components/android/ProgressReport/ProgressReportDetail.vue +64 -64
  35. package/src/components/android/Supervisory/AppProcessSupervisory.vue +205 -71
  36. package/src/components/android/Supervisory/AppSupervisoryCart.vue +69 -34
  37. package/src/components/android/TaskGraph.vue +125 -125
  38. package/src/components/common/TabButton.vue +149 -0
  39. package/src/components/common/Tabs.vue +67 -0
  40. package/src/components/image/dwg.jpg +0 -0
  41. package/src/components/image/txt.jpg +0 -0
  42. package/src/components/image//345/221/250/345/217/243/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
  43. package/src/components/image//350/245/277/345/215/216/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
  44. package/src/components/image//351/203/270/345/237/216/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
  45. package/src/components/image//351/241/271/345/237/216/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
  46. package/src/components/image//351/271/277/351/202/221/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
  47. package/src/components/product/ApplyCharge/ApplyChargeList.vue +272 -53
  48. package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +3 -3
  49. package/src/components/product/AreaSelect/MyAreaSelect.vue +423 -0
  50. package/src/components/product/AreaSelect/ResAreaSelect.vue +106 -0
  51. package/src/components/product/AreaSelect/ResAreaSelectGroup.vue +150 -0
  52. package/src/components/product/AreaSelect/utils/EventListener.js +29 -0
  53. package/src/components/product/AreaSelect/utils/coerceBoolean.js +7 -0
  54. package/src/components/product/Business/BusinessApply.vue +269 -0
  55. package/src/components/product/Business/CivilApply.vue +269 -0
  56. package/src/components/product/Function/InstallFunction.vue +132 -125
  57. package/src/components/product/Function/InstallInfoSelect.vue +320 -292
  58. package/src/components/product/Function/Service/FunctionServiceControl.vue +445 -222
  59. package/src/components/product/GaoDeMapComponents/GaoDeMap.vue +231 -0
  60. package/src/components/product/GroupByApply/ApplyGroupByList.vue +253 -0
  61. package/src/components/product/GroupByApply/ApplyGroupByMain.vue +53 -0
  62. package/src/components/product/GroupByApply/ApplyGroupByPaper.vue +376 -0
  63. package/src/components/product/Install/InstallProject.vue +194 -0
  64. package/src/components/product/Material/MaterialDetailed.vue +262 -0
  65. package/src/components/product/OldApply/Handle/HandleApply.vue +337 -0
  66. package/src/components/product/OldApply/Monitor/MonitorApply.vue +360 -0
  67. package/src/components/product/OldApply/OldApply.vue +209 -0
  68. package/src/components/product/OldApply/OldApplyMessage.vue +420 -0
  69. package/src/components/product/Onetomany.vue +406 -377
  70. package/src/components/product/Print/BuildOrder/buildOrderList.vue +339 -0
  71. package/src/components/product/Print/BuildOrder/printBuildOrder.vue +157 -0
  72. package/src/components/product/Print/IgnitionBill/IgnitionBill.vue +259 -0
  73. package/src/components/product/Print/IgnitionBill/printIgnitionBill.vue +168 -0
  74. package/src/components/product/Process/ExplorationSelect.vue +495 -410
  75. package/src/components/product/Process/ExplorationUser.vue +189 -138
  76. package/src/components/product/Process/Processes/InstallationDetails.vue +25 -7
  77. package/src/components/product/Process/Processes/Print/printCharge.vue +41 -17
  78. package/src/components/product/Process/Processes/Print/printChargepc.vue +142 -0
  79. package/src/components/product/Process/Processes/Print/printRefund.vue +196 -0
  80. package/src/components/product/Process/Processes/addMaterialScience.vue +454 -0
  81. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +211 -207
  82. package/src/components/product/Process/Processes/chargeManagement.vue +20 -3
  83. package/src/components/product/Process/Processes/devicesManagement.vue +484 -478
  84. package/src/components/product/Process/Processes/selectApply.vue +2 -2
  85. package/src/components/product/Process/Service/ServiceControl.vue +638 -20
  86. package/src/components/product/Process/Service/ShowBackReason.vue +33 -33
  87. package/src/components/product/Process/ShowBackReason.vue +33 -0
  88. package/src/components/product/ServiceView.vue +357 -7
  89. package/src/components/product/Stop/StopApply.vue +101 -103
  90. package/src/components/product/Stop/StopApplyList.vue +271 -269
  91. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +884 -186
  92. package/src/components/product/Supervisory/SupervisoryControl.vue +137 -100
  93. package/src/components/product/Supervisory/SupervisoryList.vue +201 -30
  94. package/src/components/product/Supervisory/SupervisoryhCart.vue +130 -107
  95. package/src/components/product/VueUtils/ApplyUpload.vue +275 -273
  96. package/src/components/product/VueUtils/GaoPaiYi/HighMeter.vue +1090 -0
  97. package/src/components/product/VueUtils/HighMeter.vue +208 -208
  98. package/src/components/product/VueUtils/ToolsPage.vue +51 -0
  99. package/src/components/product/VueUtils/Tree.vue +330 -0
  100. package/src/dingding.js +19 -0
  101. package/src/expandcssAndroid.less +517 -1034
  102. package/src/filiale/yuchuan/android/Process/AppServiceControl.vue +735 -731
  103. package/src/filiale/yuchuan/android/Process/Processes/AppInstallationDetails.vue +824 -824
  104. package/src/filiale/yuchuan/android/Process/Processes/AppInstallationDetailsCivil.vue +650 -650
  105. package/src/filiale/yuchuan/android/Sign/AppSignTask.vue +182 -182
  106. package/src/filiale/yuchuan/android/Sign/BuildSign.vue +50 -50
  107. package/src/filiale/yuchuan/android/Sign/ConstructSign.vue +50 -50
  108. package/src/filiale/yuchuan/android/Sign/DesignSign.vue +50 -50
  109. package/src/filiale/yuchuan/android/Sign/SupervisorSign.vue +50 -50
  110. package/src/filiale/yuchuan/android/Task/Build/BuildTsak.vue +60 -60
  111. package/src/filiale/yuchuan/android/Task/Survey/SurveyTsak.vue +60 -60
  112. package/src/filiale/yuchuan/android.js +14 -14
  113. package/src/filiale/yuchuan/pc/Order/OrderApply.vue +528 -528
  114. package/src/filiale/yuchuan/pc/Order/OrderApplyList.vue +343 -343
  115. package/src/filiale/yuchuan/pc/Print/BuildOrder/buildOrderList.vue +264 -0
  116. package/src/filiale/yuchuan/pc/Print/BuildOrder/printBuildOrder.vue +152 -0
  117. package/src/filiale/yuchuan/pc/Process/ExplorationUser.vue +149 -149
  118. package/src/filiale/yuchuan/pc/Process/Processes/ApplyMapCom.vue +67 -67
  119. package/src/filiale/yuchuan/pc/Process/Processes/InstallationDetails.vue +809 -809
  120. package/src/filiale/yuchuan/pc/Process/Processes/InstallationDetailsCivil.vue +595 -595
  121. package/src/filiale/yuchuan/pc/Process/Processes/Print/printCharge.vue +125 -0
  122. package/src/filiale/yuchuan/pc/Process/Processes/chargeManagement.vue +621 -470
  123. package/src/filiale/yuchuan/pc/Process/Service/ServiceControl.vue +1108 -1074
  124. package/src/filiale/yuchuan/pc/Sign/SignRecord.vue +24 -0
  125. package/src/filiale/yuchuan/pc/Sign/SignRecordList.vue +174 -0
  126. package/src/filiale/yuchuan/pc.js +20 -12
  127. package/src/main.js +4 -1
  128. package/src/components/product/Function/StopApplyCrrdList.vue +0 -176
  129. package/src/components/product/Function/functions/ApplyRecordCancel.vue +0 -102
  130. package/src/components/product/Function/functions/StopInstall.vue +0 -106
@@ -1,138 +1,189 @@
1
- <template>
2
- <div class="flex-row">
3
- <div class="basic-main">
4
- <div :class="showData ? 'top' : 'auto'" v-show="showQuery">
5
- <exploration-select v-ref:query :show-data="showData"></exploration-select>
6
- </div>
7
- <div v-if="showtotal" style="height: 89%">
8
- <tabset v-ref:tabs :close="false">
9
- <tab :header='selectdata.defname'>
10
- <service-control v-ref:service :selectdata="selectdata"></service-control>
11
- </tab>
12
- <tab header='附件'>
13
- <apply-upload :blodid="selectdata.f_process_id"
14
- :isupload = "true"
15
- :isdelete="true"
16
- :isusetype="true"
17
- :isremark = "true"
18
- :takeimg="true"
19
- :issearch="true"
20
- :defname="selectdata.defname">
21
- </apply-upload>
22
- </tab>
23
- </tabset>
24
- </div>
25
- </div>
26
- </div>
27
- </template>
28
- <script>
29
- import Vue from 'vue'
30
- import {HttpResetClass} from 'vue-client'
31
- export default {
32
- title: '报建流程',
33
- data () {
34
- return {
35
- showQuery: true, // 控制查询页
36
- showData: true, // 控制列表数据
37
- showtotal: false, // 详情显示
38
- selectdata: {},
39
- xmlname: '' // 配置文件名
40
- }
41
- },
42
- ready () {
43
- },
44
- methods: {
45
- // 获取页面配置json文件
46
- async loadName () {
47
-
48
- let data = {
49
- workname: this.selectdata.processname
50
- }
51
- let http = new HttpResetClass()
52
- let res = await http.load(
53
- 'POST',
54
- 'rs/logic/ApplyGetConfigs',
55
- {data: data},
56
- {resolveMsg: null, rejectMsg: '配置数据获取失败!!!'}
57
- )
58
-
59
- Vue.prototype.$workflow_vue = res.data
60
- }
61
- },
62
- events: {
63
- 'onMessage' (data) {
64
- console.log('接收消息')
65
- console.log(data)
66
- if (data.type === 'apply-task') {
67
- this.$refs.query.$refs.cp.$refs.cri.search()
68
- }
69
- },
70
- // 刷新控制层
71
- async 'breakControl' (servicedata) {
72
-
73
- if (servicedata.id) {
74
- let data = {
75
- condition: `u.id = ${servicedata.id}`,
76
- data: {
77
- userid: this.$login.f.id,
78
- orgid: this.$login.f.orgid
79
- }
80
- }
81
- let res = await this.$resetpost(
82
- 'rs/sql/checkuser',
83
- {data: data},
84
- {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
85
- )
86
-
87
- this.selectdata = res.data[0]
88
- } else {
89
- this.selectdata = servicedata
90
- }
91
-
92
- this.showtotal = false
93
- this.$nextTick(() => {
94
- this.showtotal = true
95
- })
96
-
97
- },
98
- // 初始化
99
- async 'apply' (val) {
100
- this.showtotal = false
101
- this.selectdata = val
102
-
103
- // 次方法必须同步执行,否则后续会出问题
104
- // 获取页面json配置文件
105
- await this.loadName()
106
-
107
- // 显示详细
108
- this.showtotal = true
109
- // 关闭列表数据
110
- this.showData = false
111
- // 关闭分页
112
- this.$refs.query.$refs.cp.pager = false
113
- },
114
- 'search' () {
115
- // 关闭详细
116
- this.showtotal = false
117
- // 显示列表数据
118
- this.showData = true
119
- // 显示分页
120
- this.$refs.query.$refs.cp.pager = true
121
- // 调用查询
122
- this.$refs.query.$refs.cp.$refs.cri.search()
123
- },
124
- 'loadPage' () {
125
- // 关闭详细
126
- this.showtotal = false
127
- // 显示列表数据
128
- this.showData = true
129
- // 显示分页
130
- this.$refs.query.$refs.cp.pager = true
131
- // 调用查询
132
- this.$refs.query.$refs.cp.loadPage(this.$refs.query.model.pageIndex)
133
- }
134
- },
135
- watch: {
136
- }
137
- }
138
- </script>
1
+ <template>
2
+ <div class="flex-row">
3
+ <div class="basic-main">
4
+ <div :class="showData ? 'top' : 'auto'" v-show="showQuery">
5
+ <exploration-select v-ref:query :show-data="showData"></exploration-select>
6
+ </div>
7
+ <div v-if="showtotal" style="height: 89%">
8
+ <tabset v-ref:tabs :close="false">
9
+ <tab :header='selectdata.defname'>
10
+ <service-control v-ref:service :selectdata="selectdata"></service-control>
11
+ </tab>
12
+ <tab header='附件'>
13
+ <apply-upload :blodid="selectdata.f_process_id"
14
+ :isupload = "true"
15
+ :isdelete="true"
16
+ :isusetype="true"
17
+ :isremark = "true"
18
+ :takeimg="true"
19
+ :issearch="true"
20
+ :defname="selectdata.defname">
21
+ </apply-upload>
22
+ </tab>
23
+ </tabset>
24
+ </div>
25
+
26
+ <validator name="v">
27
+ <modal v-if="showLater" :show.sync="showLater" v-ref:modal :large="true" :backdrop="false" title="稍后处理">
28
+ <header slot="modal-header" class="modal-header">
29
+ <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
30
+ <h4 class="modal-title">稍后处理</h4>
31
+ </header>
32
+
33
+ <article slot="modal-body" class="modal-body clearfix">
34
+ <div class="form-group col-sm-12">
35
+ <label class="col-sm-2 control-label">稍后处理备注:</label>
36
+ <div class="col-sm-10">
37
+ <input type="textarea"
38
+ class="form-control input_view"
39
+ style="width: 100%"
40
+ v-model="laterapply.f_later_remarks" />
41
+ </div>
42
+ </div>
43
+ </article>
44
+
45
+ <footer slot="modal-footer" class="modal-footer">
46
+ <button type="button" class="btn btn-primary" :disabled='!$v.valid' @click="later()">稍后处理</button>
47
+ </footer>
48
+ </modal>
49
+ </validator>
50
+ </div>
51
+ </div>
52
+ </template>
53
+ <script>
54
+ import Vue from 'vue'
55
+ import {HttpResetClass} from 'vue-client'
56
+ export default {
57
+ title: '报建流程',
58
+ data () {
59
+ return {
60
+ showQuery: true, // 控制查询页
61
+ showData: true, // 控制列表数据
62
+ showtotal: false, // 详情显示
63
+ selectdata: {},
64
+ xmlname: '', // 配置文件名
65
+ showLater: false,
66
+ laterapply: {}
67
+ }
68
+ },
69
+ ready () {
70
+ },
71
+ methods: {
72
+ // 获取页面配置json文件
73
+ async loadName () {
74
+
75
+ let data = {
76
+ workname: this.selectdata.processname
77
+ }
78
+ let http = new HttpResetClass()
79
+ let res = await http.load(
80
+ 'POST',
81
+ 'rs/logic/ApplyGetConfigs',
82
+ {data: data},
83
+ {resolveMsg: null, rejectMsg: '配置数据获取失败!!!'}
84
+ )
85
+
86
+ Vue.prototype.$workflow_vue = res.data
87
+ },
88
+ async later () {
89
+ let http = new HttpResetClass()
90
+ let data = {
91
+ laterapply: this.laterapply,
92
+ selectdata: this.selectdata,
93
+ user: this.$login.f
94
+ }
95
+ let res = await http.load('POST', 'rs/logic/laterprocessing', {data:data}, {
96
+ resolveMsg: null,
97
+ rejectMsg: '稍后处理记录保存失败!!!'
98
+ })
99
+ this.closeModal()
100
+ },
101
+ closeModal () {
102
+ this.selectdata = null
103
+ this.showLater = false
104
+ this.laterapply = {}
105
+
106
+ this.$refs.query.loadPage()
107
+ }
108
+ },
109
+ events: {
110
+ 'onMessage' (data) {
111
+ console.log('接收消息')
112
+ console.log(data)
113
+ if (data.type === 'apply-task') {
114
+ this.$refs.query.$refs.cp.$refs.cri.search()
115
+ }
116
+ },
117
+ // 刷新控制层
118
+ async 'breakControl' (servicedata) {
119
+
120
+ if (servicedata.id) {
121
+ let data = {
122
+ condition: `u.id = ${servicedata.id}`,
123
+ data: {
124
+ id: this.$login.f.id,
125
+ orgid: this.$login.f.orgid
126
+ }
127
+ }
128
+ let res = await this.$resetpost(
129
+ 'rs/sql/checkuser',
130
+ {data: data},
131
+ {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
132
+ )
133
+
134
+ this.selectdata = res.data[0]
135
+ } else {
136
+ this.selectdata = servicedata
137
+ }
138
+
139
+ this.showtotal = false
140
+ this.$nextTick(() => {
141
+ this.showtotal = true
142
+ })
143
+
144
+ },
145
+ async openLater (row) {
146
+ this.selectdata = row
147
+ this.showLater = true
148
+ },
149
+ // 初始化
150
+ async 'apply' (val) {
151
+ this.showtotal = false
152
+ this.selectdata = val
153
+
154
+ // 次方法必须同步执行,否则后续会出问题
155
+ // 获取页面json配置文件
156
+ await this.loadName()
157
+
158
+ // 显示详细
159
+ this.showtotal = true
160
+ // 关闭列表数据
161
+ this.showData = false
162
+ // 关闭分页
163
+ this.$refs.query.$refs.cp.pager = false
164
+ },
165
+ 'search' () {
166
+ // 关闭详细
167
+ this.showtotal = false
168
+ // 显示列表数据
169
+ this.showData = true
170
+ // 显示分页
171
+ this.$refs.query.$refs.cp.pager = true
172
+ // 调用查询
173
+ this.$refs.query.$refs.cp.$refs.cri.search()
174
+ },
175
+ 'loadPage' () {
176
+ // 关闭详细
177
+ this.showtotal = false
178
+ // 显示列表数据
179
+ this.showData = true
180
+ // 显示分页
181
+ this.$refs.query.$refs.cp.pager = true
182
+ // 调用查询
183
+ this.$refs.query.$refs.cp.loadPage(this.$refs.query.model.pageIndex)
184
+ }
185
+ },
186
+ watch: {
187
+ }
188
+ }
189
+ </script>
@@ -15,6 +15,7 @@
15
15
  <th>客户名称</th>
16
16
  <th>客户电话</th>
17
17
  <th>地址信息</th>
18
+ <th v-if="$parent.$parent.$parent.selectdata.f_apply_type === '团购报建'">备注</th>
18
19
  <th>表具数量</th>
19
20
  <th>
20
21
  <template v-if="$parent.$parent.$parent.selectdata.f_apply_type === '团购报建'">
@@ -50,6 +51,9 @@
50
51
  <td style="text-align: center;">
51
52
  <nobr>{{row.f_address}}</nobr>
52
53
  </td>
54
+ <th v-if="$parent.$parent.$parent.selectdata.f_apply_type === '团购报建'">
55
+ <nobr>{{row.f_userinfo_comments}}</nobr>
56
+ </th>
53
57
  <td style="text-align: center;">
54
58
  <nobr>{{row.f_userfiles_num === null ? 0 : row.f_userfiles_num}}</nobr>
55
59
  </td>
@@ -137,6 +141,8 @@
137
141
  <div class="col-sm-8">
138
142
  <input class="form-control input_view" style=""
139
143
  placeholder="表号"
144
+ type="number"
145
+ οnkeyup="this.value=this.value.replace(/\s+/g,'')"
140
146
  v-model="item.f_meternumber"
141
147
  :value="item.f_meternumber"
142
148
  @change="meternumberValidate(i)"
@@ -298,7 +304,15 @@ export default {
298
304
  'f_meter_base': '表读数',
299
305
  'f_initial_base': '初始底数',
300
306
  'f_aroundmeter': '表向',
301
- 'f_position': '安装位置'
307
+ 'f_user_phone': '电话',
308
+ 'f_userinfo_comments': '备注',
309
+ 'f_position': '安装位置',
310
+ 'f_userinfo_code': '用户编号',
311
+ 'f_material_name': '材料名称',
312
+ 'f_material_style': '材料型号',
313
+ 'f_material_price': '材料价格',
314
+ 'f_material_unit': '材料单位',
315
+ 'f_material_number': '材料数量'
302
316
  },
303
317
  showWork: false
304
318
  }
@@ -443,7 +457,7 @@ export default {
443
457
  async notInstalled () {
444
458
  let http = new HttpResetClass()
445
459
  let data = {
446
- condition: `ui.f_process_id = '${this.selectdata.f_process_id}' and uf.f_table_state = '待开通'`
460
+ condition: `ui.f_process_id = '${this.selectdata.f_process_id}' and uf.f_table_state != '待开通'`
447
461
  }
448
462
  let res = await http.load(
449
463
  'POST',
@@ -464,14 +478,18 @@ export default {
464
478
  }
465
479
  },
466
480
  searchCondition (args) {
467
-
468
- if (this.selectdata.f_apply_type === '团购转散户' || this.selectdata.f_apply_type === '改管报建' || this.selectdata.f_apply_type === '增容报建') {
481
+ var tablestate=''
482
+ if(this.selectdata.f_sub_state==='完工'){
483
+ tablestate='正常'
484
+ }else{
485
+ tablestate='待开通'
486
+ }
487
+ if (this.selectdata.f_apply_type === '团购转散户' || this.selectdata.f_apply_type === '改管报建' || this.selectdata.f_apply_type === '增容报建' || this.selectdata.f_apply_type === '报警器报建' || this.selectdata.f_apply_type === '工商业报警器报建') {
469
488
  args.condition = args.condition + `and ui.f_userinfo_id = '${this.selectdata.f_userinfo_id}'`
470
489
  } else {
471
490
  args.condition = args.condition + `and ua.f_process_id = '${this.selectdata.f_process_id}'`
472
491
  }
473
-
474
- this.model.search(args.condition, args.model)
492
+ this.model.search(args.condition, args.model,tablestate)
475
493
  },
476
494
  // 查询
477
495
  async search () {
@@ -520,7 +538,7 @@ export default {
520
538
  return this.selectdata.f_apply_type === '团购报建'
521
539
  },
522
540
  getCondition () {
523
- let condition = `ua.f_process_id = '${this.selectdata.f_process_id}' and nvl(uf.quantity, 0) < 1`
541
+ let condition = `ua.f_process_id = '${this.selectdata.f_process_id}'`
524
542
 
525
543
  return {
526
544
  condition: condition
@@ -43,21 +43,25 @@
43
43
  </h4>
44
44
  <table border="1" width="100%">
45
45
  <tr>
46
- <td colspan="2" style="border: none">
47
- 开票日期:{{ new Date().Format('yyyy年MM月dd日') }}
48
- </td>
49
- <td colspan="2" style="border: none">
50
- 收据编码:{{ charge.f_charge_number }}
51
- </td>
52
- <td colspan="2" style="border: none">
53
- 状态:{{ charge.f_charge_status }}
54
- </td>
46
+
47
+ <td style="width: 17%">开票日期</td>
48
+ <td colspan="4" style="width: 33%">{{ new Date().Format('yyyy年MM月dd日') }}</td>
49
+ </tr>
50
+ <tr>
51
+ <td style="width: 17%">收据编码</td>
52
+ <td colspan="4" style="width: 33%">{{ charge.f_charge_number }}</td>
53
+ </tr>
54
+ <tr>
55
+ <td style="width: 17%">状态</td>
56
+ <td colspan="4" style="width: 33%">{{ charge.f_charge_status }}</td>
55
57
  </tr>
56
58
  <tr>
57
59
  <td style="width: 17%">用户姓名</td>
58
- <td colspan="2" style="width: 33%">{{ selectdata.f_user_name }}</td>
60
+ <td colspan="4" style="width: 33%">{{ selectdata.f_user_name }}</td>
61
+ </tr>
62
+ <tr>
59
63
  <td style="width: 17%">用户编号</td>
60
- <td colspan="2" style="width: 33%">{{ selectdata.f_userinfo_code }}</td>
64
+ <td colspan="4" style="width: 33%">{{ selectdata.f_userinfo_code }}</td>
61
65
  </tr>
62
66
  <tr>
63
67
  <td>用户地址</td>
@@ -65,21 +69,41 @@
65
69
  </tr>
66
70
  <tr>
67
71
  <td>收款项目</td>
68
- <td colspan="2">{{ charge.f_payment_term }}</td>
72
+ <td colspan="4">{{ charge.f_payment_term }}</td>
73
+ </tr>
74
+ <tr>
69
75
  <td>收款方式</td>
70
76
  <td colspan="2">{{ charge.f_payment_method }}</td>
71
77
  </tr>
72
78
  <tr>
73
79
  <td>金额</td>
74
- <td colspan="2">{{ charge.f_charge_money }}</td>
80
+ <td colspan="4">{{ charge.f_charge_money }}</td>
81
+ </tr>
82
+ <tr>
75
83
  <td>金额大写</td>
76
- <td colspan="2">{{ charge.f_amount_words }}</td>
84
+ <td colspan="4">{{ charge.f_amount_words }}</td>
77
85
  </tr>
78
86
  <tr>
79
87
  <td>收款人</td>
80
- <td colspan="2">{{ charge.f_charge_collectors }}</td>
88
+ <td colspan="4">{{ charge.f_charge_collectors }}</td>
89
+ </tr>
90
+ <tr>
81
91
  <td>销售方(章)</td>
82
- <td colspan="2"></td>
92
+ <td colspan="4" v-if="charge.f_orgname==='郸城县天然气有限公司'">
93
+ <img src="../../../../image/郸城收款专用章.png" style="overflow: hidden;width: 200px;height: 200px">
94
+ </td>
95
+ <td colspan="4" v-if="charge.f_orgname==='周口市天然气有限公司'">
96
+ <img src="../../../../image/周口收款专用章.png" style="overflow: hidden;width: 200px;height: 200px">
97
+ </td>
98
+ <td colspan="4" v-if="charge.f_orgname==='项城市天然气有限公司'">
99
+ <img src="../../../../image/项城收款专用章.png" style="overflow: hidden;width: 200px;height: 200px">
100
+ </td>
101
+ <td colspan="4" v-if="charge.f_orgname==='西华县天然气有限公司'">
102
+ <img src="../../../../image/西华收款专用章.png" style="overflow: hidden;width: 200px;height: 200px">
103
+ </td>
104
+ <td colspan="4" v-if="charge.f_orgname==='鹿邑县天然气有限公司'">
105
+ <img src="../../../../image/鹿邑收款专用章.png" style="overflow: hidden;width: 200px;height: 200px">
106
+ </td>
83
107
  </tr>
84
108
  <tr>
85
109
  <td>备&emsp;&emsp;注</td>
@@ -91,7 +115,7 @@
91
115
  </td>
92
116
  </tr>
93
117
  </table>
94
- <img class="seal" border="0" :src="src" alt="">
118
+ <!-- <img class="seal" border="0" :src="src" alt="">-->
95
119
  </div>
96
120
 
97
121
  <print-element v-show="false" v-ref:print id='printCharge' styleid='printChargeStyle'
@@ -0,0 +1,142 @@
1
+ <template>
2
+ <style id="printChargeStyle">
3
+ td{
4
+ height: 30px;
5
+ text-align: center;
6
+ }
7
+ table{
8
+ margin: auto;
9
+ /*width: 100%;*/
10
+ border-collapse:collapse;
11
+ border: 1px solid black;
12
+ }
13
+ h1,h2,h3,h4,h5,h6 {
14
+ text-align: center;
15
+ }
16
+ .orgs {
17
+ border-bottom: 2px solid;
18
+ padding: 5px;
19
+ }
20
+ .date {
21
+ float: left;
22
+ padding-left: 10px;
23
+ }
24
+ .status {
25
+ float: right;
26
+ padding-right: 10px;
27
+ }
28
+ .seal {
29
+ position: absolute;
30
+ right: 100px;
31
+ top: 120px;
32
+ width: 150px;
33
+ height: 150px;
34
+ /*opacity: 0.5;*/
35
+ z-index: -1;
36
+ }
37
+ </style>
38
+ <div id="printCharge">
39
+ <h4>
40
+ <span class="orgs">
41
+ {{orgs}}统一收据
42
+ </span>
43
+ </h4>
44
+ <table border="1" width="100%">
45
+ <tr>
46
+ <td colspan="2" style="border: none">
47
+ 开票日期:{{ new Date().Format('yyyy年MM月dd日') }}
48
+ </td>
49
+ <td colspan="2" style="border: none">
50
+ 收据编码:{{ charge.f_charge_number }}
51
+ </td>
52
+ <td colspan="2" style="border: none">
53
+ 状态:{{ charge.f_charge_status }}
54
+ </td>
55
+ </tr>
56
+ <tr>
57
+ <td style="width: 17%">用户姓名</td>
58
+ <td colspan="2" style="width: 33%">{{ selectdata.f_user_name }}</td>
59
+ <td style="width: 17%">用户编号</td>
60
+ <td colspan="2" style="width: 33%">{{ selectdata.f_userinfo_code }}</td>
61
+ </tr>
62
+ <tr>
63
+ <td>用户地址</td>
64
+ <td colspan="5">{{ selectdata.f_address }}</td>
65
+ </tr>
66
+ <tr>
67
+ <td>收款项目</td>
68
+ <td colspan="2">{{ charge.f_payment_term }}</td>
69
+ <td>收款方式</td>
70
+ <td colspan="2">{{ charge.f_payment_method }}</td>
71
+ </tr>
72
+ <tr>
73
+ <td>金额</td>
74
+ <td colspan="2">{{ charge.f_charge_money }}</td>
75
+ <td>金额大写</td>
76
+ <td colspan="2">{{ charge.f_amount_words }}</td>
77
+ </tr>
78
+ <tr>
79
+ <td>收款人</td>
80
+ <td colspan="2">{{ charge.f_charge_collectors }}</td>
81
+ <td>销售方(章)</td>
82
+ <td colspan="2"></td>
83
+ </tr>
84
+ <tr>
85
+ <td>备&emsp;&emsp;注</td>
86
+ <td colspan="5">{{ charge.f_charge_remarks }}</td>
87
+ </tr>
88
+ <tr>
89
+ <td colspan="6">
90
+ 请持此收据到{{orgs}}营业厅换取发票
91
+ </td>
92
+ </tr>
93
+ </table>
94
+ <img class="seal" border="0" :src="src" alt="">
95
+ </div>
96
+
97
+ <print-element v-show="false" v-ref:print id='printCharge' styleid='printChargeStyle'
98
+ top='20' left='30' width='100%' height='100%'>
99
+ </print-element>
100
+ </template>
101
+
102
+ <script>
103
+ import { isEmpty } from '../../../../Util'
104
+ Date.prototype.Format = function (fmt) {
105
+ var o = {
106
+ "M+": this.getMonth() + 1, //月份
107
+ "d+": this.getDate(), //日
108
+ "H+": this.getHours(), //小时
109
+ "m+": this.getMinutes(), //分
110
+ "s+": this.getSeconds(), //秒
111
+ "q+": Math.floor((this.getMonth() + 3) / 3), //季度
112
+ "S": this.getMilliseconds() //毫秒
113
+ };
114
+ if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
115
+ for (var k in o)
116
+ if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
117
+ return fmt;
118
+ }
119
+ export default {
120
+ title: '打印收费票据',
121
+ props: ['selectdata', 'charge'],
122
+ data () {
123
+ return {}
124
+ },
125
+ ready () {
126
+ },
127
+ methods: {
128
+ },
129
+ computed: {
130
+ orgs () {
131
+ return this.$login.f.orgs
132
+ },
133
+ src () {
134
+ return require(`./img/${this.$login.f.number}.png`)
135
+ }
136
+ }
137
+ }
138
+ </script>
139
+
140
+ <style scoped>
141
+
142
+ </style>