apply-clients 5.0.35-22 → 5.0.35-26

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.
@@ -1,328 +1,364 @@
1
- <template>
2
- <div>
3
- <service-view :data="data" v-if="showview"></service-view>
4
- <installfee :infee="selectdata" v-if="showinfee"></installfee>
5
- <!--预存款-->
6
- <preparationfee :selectdata="selectdata" v-if="showpreparation"></preparationfee>
7
- <!--预存报建收费-->
8
- <prestorefee :infee="selectdata" v-if="showprestorefee" v-ref:prestorefee></prestorefee>
9
- <!-- 费用变更 -->
10
- <!--<updatefee :upfee="selectdata" v-if="showupfee"></updatefee>-->
11
- <!-- 费用减免 -->
12
- <!--<reducefee :redufee="selectdata" v-if="showreducefee"></reducefee>-->
13
- <!-- 购货方信息 -->
14
- <buyer-message v-ref:buyermessagev :selectdata="selectdata" :state="1" v-if="showbuyer" ></buyer-message>
15
- <!-- 领取材料 -->
16
- <receive-batch :selectdata="selectdata" :state="1" v-if="showreceivebatch" ></receive-batch>
17
- <!-- 添加合同 -->
18
- <addcontract :addcontract="selectdata" v-if="showcontract"></addcontract>
19
- <!-- 终止报建 -->
20
- <stop-install :stopapply="selectdata" v-if="showstop"></stop-install>
21
- <!-- 领料记录 -->
22
- <material_recording :infee="selectdata" v-if="show_material"></material_recording>
23
- </div>
24
- </template>
25
- <script>
26
- import {HttpResetClass} from 'vue-client'
27
- export default {
28
- title: '报建功能业务控制层',
29
- props: ['selectdata','funcdata'],
30
- data () {
31
- return {
32
- data:null,
33
- model:null,
34
- json_datas:null,
35
- showview:false,
36
-
37
- showbuyer: false, // 显示购货方信息
38
- showreceivebatch:false,
39
- showcontract: false, // 补充协议
40
- showinfee: false, // 报建收费
41
- showprestorefee: false, // 开发商预存报建收费
42
- showstop: false, // 终止报建
43
- showbill: false, // 打印票据
44
- showpreparation: false, // 预付款
45
- show_material:false//报建材料
46
- }
47
- },
48
- methods: {
49
- // 购货方信息
50
- buyerMessage(){
51
- this.$parent.$refs.installselect.clifun(this.selectdata)
52
- // this.selectdata = row
53
- this.$parent.clishow= true
54
- this.$parent.show = false
55
-
56
- this.showbuyer = true
57
- this.showreceivebatch = false
58
- this.show_material = false
59
- this.showview = false
60
- this.showinfee = false
61
- this.showprestorefee = false
62
- this.showupfee = false
63
- this.showreducefee = false
64
- this.showstop = false
65
- this.showcontract = false
66
- this.showbill = false
67
- this.showpreparation = false
68
- },
69
- // 派工单
70
- receiveBatch(){
71
- this.$parent.$refs.installselect.clifun(this.selectdata)
72
- // this.selectdata = row
73
- this.$parent.clishow= true
74
- this.$parent.show = false
75
-
76
- this.showreceivebatch = true
77
- this.showbuyer = false
78
- this.show_material = false
79
- this.showview = false
80
- this.showinfee = false
81
- this.showprestorefee = false
82
- this.showupfee = false
83
- this.showreducefee = false
84
- this.showstop = false
85
- this.showcontract = false
86
- this.showbill = false
87
- this.showpreparation = false
88
- },
89
- // 领料记录
90
- materialRecord(){
91
- this.$parent.$refs.installselect.clifun(this.selectdata)
92
- // this.selectdata = row
93
- this.$parent.clishow= true
94
- this.$parent.show = false
95
-
96
- this.show_material = true
97
- this.showbuyer = false
98
- this.showreceivebatch = false
99
- this.showview = false
100
- this.showinfee = false
101
- this.showprestorefee = false
102
- this.showupfee = false
103
- this.showreducefee = false
104
- this.showstop = false
105
- this.showcontract = false
106
- this.showbill = false
107
- this.showpreparation = false
108
- },
109
- // 预付款
110
- preparation(){
111
- this.$parent.$refs.installselect.clifun(this.selectdata)
112
- // this.selectdata = row
113
- this.$parent.clishow= true
114
- this.$parent.show = false
115
-
116
- this.showreceivebatch = false
117
- this.showbuyer = false
118
- this.show_material = false
119
- this.showview = false
120
- this.showinfee = false
121
- this.showprestorefee = false
122
- this.showupfee = false
123
- this.showreducefee = false
124
- this.showstop = false
125
- this.showcontract = false
126
- this.showbill = false
127
- this.showpreparation = true
128
- },
129
- // 票据打印
130
- bill(){
131
- this.$parent.$refs.installselect.clifun(this.selectdata)
132
- // this.selectdata = row
133
- this.$parent.clishow= true
134
- this.$parent.show = false
135
-
136
- this.showreceivebatch = false
137
- this.showbuyer = false
138
- this.showview = false
139
- this.showinfee = false
140
- this.showprestorefee = false
141
- this.showupfee = false
142
- this.showreducefee = false
143
- this.showstop = false
144
- this.showcontract = false
145
- this.showpreparation = false
146
- this.showbill = true
147
- this.show_material = false
148
- },
149
- // 补充合同
150
- contract() {
151
- this.$parent.$refs.installselect.clifun(this.selectdata)
152
- // this.selectdata = row
153
- this.$parent.clishow= true
154
- this.$parent.show = false
155
-
156
- this.showreceivebatch = false
157
- this.showbuyer = false
158
- this.showview = false
159
- this.showinfee = false
160
- this.showprestorefee = false
161
- this.showupfee = false
162
- this.showreducefee = false
163
- this.showstop = false
164
- this.showbill = false
165
- this.showpreparation = false
166
- this.showcontract = true
167
- this.show_material = false
168
- },
169
- // 收费
170
- instalfee(str) {
171
- this.$parent.$refs.installselect.clifun(this.selectdata)
172
- // this.selectdata = row
173
- this.$parent.clishow= true
174
- this.$parent.show = false
175
-
176
- this.showreceivebatch = false
177
- this.showbuyer = false
178
- this.showview = false
179
- this.showupfee = false
180
- this.showreducefee = false
181
- this.showstop = false
182
- this.showcontract = false
183
- this.showbill = false
184
- this.showpreparation = false
185
- this.showprestorefee = false
186
- this.showinfee = false
187
- this.show_material = false
188
- // 采用开发商预付款方式收费
189
- if(str==='预付扣款'){
190
- this.showprestorefee = true
191
- }else {
192
- this.showinfee = true
193
- }
194
- },
195
- // 终止报建
196
- stopInstall() {
197
- this.$parent.$refs.installselect.clifun(this.selectdata)
198
- // this.selectdata = row
199
- this.$parent.clishow= true
200
- this.$parent.show = false
201
-
202
- this.showreceivebatch = false
203
- this.showbuyer = false
204
- this.showview = false
205
- this.showbill = false
206
- this.showinfee = false
207
- this.showprestorefee = false
208
- this.showupfee = false
209
- this.showreducefee = false
210
- this.showcontract = false
211
- this.showpreparation = false
212
- this.showstop = true
213
- this.show_material = false
214
- },
215
-
216
-
217
-
218
- // json配置数据处理 比如下拉框的options
219
- initializtion() {
220
- // selectdata 填充 data
221
- this.data=Object.assign({},this.data,this.selectdata)
222
- for(let i=0;i<this.data.fields.length;i++){
223
- if(this.selectdata[this.data.fields[i].field]){
224
- this.data.fields[i].value = this.selectdata[this.data.fields[i].field]
225
- }
226
- // 如果配置类型为select,获取options
227
- if(this.data.fields[i].type==='select'){
228
- this.data.fields[i].options=this.$appdata.getParam(this.data.fields[i].label)
229
- if(this.data.fields[i].label==''){
230
-
231
- }
232
- }
233
- }
234
- },
235
- hasChange(){
236
- if(this.funcdata.fields){
237
- this.data = this.funcdata
238
- // 初始化要展示的数据结构
239
- this.initializtion()
240
- this.$parent.clishow= true
241
- this.$parent.show = false
242
-
243
- this.showview = true
244
- this.showbill = false
245
- this.showinfee = false
246
- this.showprestorefee = false
247
- this.showcontract = false
248
- this.showpreparation = false
249
- this.showstop = false
250
- this.showreceivebatch = false
251
- this.showbuyer = false
252
- this.show_material = false
253
- }else{
254
- if(this.funcdata.title==='终止报建'){
255
- this.stopInstall()
256
- }
257
- if(this.funcdata.title==='预付扣款'){
258
- this.instalfee('预付扣款')
259
- }
260
- if(this.funcdata.title==='报建收费'){
261
- this.instalfee()
262
- }
263
- if(this.funcdata.title==='打印票据'){
264
- this.bill()
265
- }
266
- // if(this.funcdata.title==='补充协议'){
267
- // this.contract()
268
- // }
269
- if(this.funcdata.title==='预付款'){
270
- this.preparation()
271
- }
272
- if(this.funcdata.title==='领料记录'){
273
- this.materialRecord()
274
- }
275
- if(this.funcdata.title==='购买方信息'){
276
- this.buyerMessage()
277
- }
278
- if(this.funcdata.title==='派工单'){
279
- this.receiveBatch()
280
- }
281
- }
282
- }
283
- },
284
- events: {
285
- // 任意select选中时触发事件
286
- 'select_cascade'(index){
287
- // 级联操作示例:
288
- /*
289
- if(this.data.activitys.ields[index].label==='报建类型'){
290
- for(let i=0;i<this.data.activitys.fields.length;i++){
291
- // 控制设置级联
292
- // 源select所选的值 this.data.activitys.fields[index].value
293
- if(this.data.activitys.fields[i].label==='级联测试2'){
294
- this.data.activitys.fields[i].options=[
295
- {label:'级联选项1',value:'级联选项1'},{label:'级联选项2',value:'级联选项2'},{label:'级联选项3',value:'级联选项3'}
296
- ]
297
- }
298
- }
299
- }
300
- */
301
- },
302
- // 获取view层button事件
303
- async 'button'(model){
304
- console.log("button事件接收参数:",model)
305
- model=Object.assign({},this.selectdata,model)
306
- // 下发,提交,保存,退回都在后台处理
307
- let http = new HttpResetClass();
308
- let res = await http.load('POST','rs/logic/ApplyProductFunctionService',{data:{tables:this.funcdata.tables,model:model,loginUser:this.$login.f}}, {resolveMsg: null, rejectMsg: '数据保存失败'})
309
- console.log("service处理完成返回数据:",JSON.stringify(res.data))
310
- if(res.code=200){
311
- this.$dispatch('hiddenbtn')
312
- this.showview= false
313
- }else{
314
- throw res.data.msg
315
- }
316
- }
317
- },
318
- watch:{
319
- 'funcdata'() {
320
- this.hasChange()
321
- },
322
- 'selectdata'() {
323
- this.hasChange()
324
- },
325
- deep:true
326
- }
327
- }
328
- </script>
1
+ <template>
2
+ <div>
3
+ <service-view :data="data" v-if="showview"></service-view>
4
+ <installfee :infee="selectdata" v-if="showinfee"></installfee>
5
+ <!--预存款-->
6
+ <preparationfee :selectdata="selectdata" v-if="showpreparation"></preparationfee>
7
+ <!--预存报建收费-->
8
+ <prestorefee :infee="selectdata" v-if="showprestorefee" v-ref:prestorefee></prestorefee>
9
+ <!-- 费用变更 -->
10
+ <!--<updatefee :upfee="selectdata" v-if="showupfee"></updatefee>-->
11
+ <!-- 费用减免 -->
12
+ <!--<reducefee :redufee="selectdata" v-if="showreducefee"></reducefee>-->
13
+ <!-- 购货方信息 -->
14
+ <buyer-message v-ref:buyermessagev :selectdata="selectdata" :state="1" v-if="showbuyer" ></buyer-message>
15
+ <!-- 领取材料 -->
16
+ <receive-batch :selectdata="selectdata" :state="1" v-if="showreceivebatch" ></receive-batch>
17
+ <!-- 添加合同 -->
18
+ <addcontract :addcontract="selectdata" v-if="showcontract"></addcontract>
19
+ <!-- 终止报建 -->
20
+ <stop-install :stopapply="selectdata" v-if="showstop"></stop-install>
21
+ <!-- 领料记录 -->
22
+ <material_recording :infee="selectdata" v-if="show_material"></material_recording>
23
+ <!-- APP附件 -->
24
+ <apply-upload :appupload="selectdata" v-if="show_upload"></apply-upload>
25
+ </div>
26
+ </template>
27
+ <script>
28
+ import {HttpResetClass} from 'vue-client'
29
+ export default {
30
+ title: '报建功能业务控制层',
31
+ props: ['selectdata','funcdata'],
32
+ data () {
33
+ return {
34
+ data:null,
35
+ model:null,
36
+ json_datas:null,
37
+ showview:false,
38
+
39
+ showbuyer: false, // 显示购货方信息
40
+ showreceivebatch:false,
41
+ showcontract: false, // 补充协议
42
+ showinfee: false, // 报建收费
43
+ showprestorefee: false, // 开发商预存报建收费
44
+ showstop: false, // 终止报建
45
+ showbill: false, // 打印票据
46
+ showpreparation: false, // 预付款
47
+ show_material:false,//报建材料
48
+ show_upload: false //APP附件
49
+ }
50
+ },
51
+ methods: {
52
+ // 购货方信息
53
+ buyerMessage(){
54
+ this.$parent.$refs.installselect.clifun(this.selectdata)
55
+ // this.selectdata = row
56
+ this.$parent.clishow= true
57
+ this.$parent.show = false
58
+
59
+ this.showbuyer = true
60
+ this.showreceivebatch = false
61
+ this.show_material = false
62
+ this.showview = false
63
+ this.showinfee = false
64
+ this.showprestorefee = false
65
+ this.showupfee = false
66
+ this.showreducefee = false
67
+ this.showstop = false
68
+ this.showcontract = false
69
+ this.showbill = false
70
+ this.showpreparation = false
71
+ this.show_upload = false
72
+ },
73
+ // 派工单
74
+ receiveBatch(){
75
+ this.$parent.$refs.installselect.clifun(this.selectdata)
76
+ // this.selectdata = row
77
+ this.$parent.clishow= true
78
+ this.$parent.show = false
79
+
80
+ this.showreceivebatch = true
81
+ this.showbuyer = false
82
+ this.show_material = false
83
+ this.showview = false
84
+ this.showinfee = false
85
+ this.showprestorefee = false
86
+ this.showupfee = false
87
+ this.showreducefee = false
88
+ this.showstop = false
89
+ this.showcontract = false
90
+ this.showbill = false
91
+ this.showpreparation = false
92
+ this.show_upload = false
93
+ },
94
+ // 领料记录
95
+ materialRecord(){
96
+ this.$parent.$refs.installselect.clifun(this.selectdata)
97
+ // this.selectdata = row
98
+ this.$parent.clishow= true
99
+ this.$parent.show = false
100
+
101
+ this.show_material = true
102
+ this.showbuyer = false
103
+ this.showreceivebatch = false
104
+ this.showview = false
105
+ this.showinfee = false
106
+ this.showprestorefee = false
107
+ this.showupfee = false
108
+ this.showreducefee = false
109
+ this.showstop = false
110
+ this.showcontract = false
111
+ this.showbill = false
112
+ this.showpreparation = false
113
+ this.show_upload = false
114
+ },
115
+ // 预付款
116
+ preparation(){
117
+ this.$parent.$refs.installselect.clifun(this.selectdata)
118
+ // this.selectdata = row
119
+ this.$parent.clishow= true
120
+ this.$parent.show = false
121
+
122
+ this.showreceivebatch = false
123
+ this.showbuyer = false
124
+ this.show_material = false
125
+ this.showview = false
126
+ this.showinfee = false
127
+ this.showprestorefee = false
128
+ this.showupfee = false
129
+ this.showreducefee = false
130
+ this.showstop = false
131
+ this.showcontract = false
132
+ this.showbill = false
133
+ this.showpreparation = true
134
+ this.show_upload = false
135
+ },
136
+ // 票据打印
137
+ bill(){
138
+ this.$parent.$refs.installselect.clifun(this.selectdata)
139
+ // this.selectdata = row
140
+ this.$parent.clishow= true
141
+ this.$parent.show = false
142
+
143
+ this.showreceivebatch = false
144
+ this.showbuyer = false
145
+ this.showview = false
146
+ this.showinfee = false
147
+ this.showprestorefee = false
148
+ this.showupfee = false
149
+ this.showreducefee = false
150
+ this.showstop = false
151
+ this.showcontract = false
152
+ this.showpreparation = false
153
+ this.showbill = true
154
+ this.show_material = false
155
+ this.show_upload = false
156
+ },
157
+ // 补充合同
158
+ contract() {
159
+ this.$parent.$refs.installselect.clifun(this.selectdata)
160
+ // this.selectdata = row
161
+ this.$parent.clishow= true
162
+ this.$parent.show = false
163
+
164
+ this.showreceivebatch = false
165
+ this.showbuyer = false
166
+ this.showview = false
167
+ this.showinfee = false
168
+ this.showprestorefee = false
169
+ this.showupfee = false
170
+ this.showreducefee = false
171
+ this.showstop = false
172
+ this.showbill = false
173
+ this.showpreparation = false
174
+ this.showcontract = true
175
+ this.show_material = false
176
+ this.show_upload = false
177
+ },
178
+ // 收费
179
+ instalfee(str) {
180
+ this.$parent.$refs.installselect.clifun(this.selectdata)
181
+ // this.selectdata = row
182
+ this.$parent.clishow= true
183
+ this.$parent.show = false
184
+
185
+ this.showreceivebatch = false
186
+ this.showbuyer = false
187
+ this.showview = false
188
+ this.showupfee = false
189
+ this.showreducefee = false
190
+ this.showstop = false
191
+ this.showcontract = false
192
+ this.showbill = false
193
+ this.showpreparation = false
194
+ this.showprestorefee = false
195
+ this.showinfee = false
196
+ this.show_material = false
197
+ this.show_upload = false
198
+ // 采用开发商预付款方式收费
199
+ if(str==='预付扣款'){
200
+ this.showprestorefee = true
201
+ }else {
202
+ this.showinfee = true
203
+ }
204
+ },
205
+ // 终止报建
206
+ stopInstall() {
207
+ this.$parent.$refs.installselect.clifun(this.selectdata)
208
+ // this.selectdata = row
209
+ this.$parent.clishow= true
210
+ this.$parent.show = false
211
+
212
+ this.showreceivebatch = false
213
+ this.showbuyer = false
214
+ this.showview = false
215
+ this.showbill = false
216
+ this.showinfee = false
217
+ this.showprestorefee = false
218
+ this.showupfee = false
219
+ this.showreducefee = false
220
+ this.showcontract = false
221
+ this.showpreparation = false
222
+ this.showstop = true
223
+ this.show_material = false
224
+ this.show_upload = false
225
+ },
226
+ // APP附件
227
+ appUpload() {
228
+ this.$parent.$refs.installselect.clifun(this.selectdata)
229
+ // this.selectdata = row
230
+ this.$parent.clishow= true
231
+ this.$parent.show = false
232
+
233
+ this.showreceivebatch = false
234
+ this.showbuyer = false
235
+ this.showview = false
236
+ this.showbill = false
237
+ this.showinfee = false
238
+ this.showprestorefee = false
239
+ this.showupfee = false
240
+ this.showreducefee = false
241
+ this.showcontract = false
242
+ this.showpreparation = false
243
+ this.showstop = false
244
+ this.show_material = false
245
+ this.show_upload = true
246
+ },
247
+
248
+
249
+
250
+ // json配置数据处理 比如下拉框的options
251
+ initializtion() {
252
+ // selectdata 填充 data
253
+ this.data=Object.assign({},this.data,this.selectdata)
254
+ for(let i=0;i<this.data.fields.length;i++){
255
+ if(this.selectdata[this.data.fields[i].field]){
256
+ this.data.fields[i].value = this.selectdata[this.data.fields[i].field]
257
+ }
258
+ // 如果配置类型为select,获取options
259
+ if(this.data.fields[i].type==='select'){
260
+ this.data.fields[i].options=this.$appdata.getParam(this.data.fields[i].label)
261
+ if(this.data.fields[i].label==''){
262
+
263
+ }
264
+ }
265
+ }
266
+ },
267
+ hasChange(){
268
+ if(this.funcdata.fields){
269
+ this.data = this.funcdata
270
+ // 初始化要展示的数据结构
271
+ this.initializtion()
272
+ this.$parent.clishow= true
273
+ this.$parent.show = false
274
+
275
+ this.showview = true
276
+ this.showbill = false
277
+ this.showinfee = false
278
+ this.showprestorefee = false
279
+ this.showcontract = false
280
+ this.showpreparation = false
281
+ this.showstop = false
282
+ this.showreceivebatch = false
283
+ this.showbuyer = false
284
+ this.show_material = false
285
+ this.show_upload = false
286
+ }else{
287
+ if(this.funcdata.title==='终止报建'){
288
+ this.stopInstall()
289
+ }
290
+ if(this.funcdata.title==='预付扣款'){
291
+ this.instalfee('预付扣款')
292
+ }
293
+ if(this.funcdata.title==='报建收费'){
294
+ this.instalfee()
295
+ }
296
+ if(this.funcdata.title==='打印票据'){
297
+ this.bill()
298
+ }
299
+ // if(this.funcdata.title==='补充协议'){
300
+ // this.contract()
301
+ // }
302
+ if(this.funcdata.title==='预付款'){
303
+ this.preparation()
304
+ }
305
+ if(this.funcdata.title==='领料记录'){
306
+ this.materialRecord()
307
+ }
308
+ if(this.funcdata.title==='购买方信息'){
309
+ this.buyerMessage()
310
+ }
311
+ if(this.funcdata.title==='派工单'){
312
+ this.receiveBatch()
313
+ }
314
+ if(this.funcdata.title==='APP附件'){
315
+ this.appUpload()
316
+ }
317
+ }
318
+ }
319
+ },
320
+ events: {
321
+ // 任意select选中时触发事件
322
+ 'select_cascade'(index){
323
+ // 级联操作示例:
324
+ /*
325
+ if(this.data.activitys.ields[index].label==='报建类型'){
326
+ for(let i=0;i<this.data.activitys.fields.length;i++){
327
+ // 控制设置级联
328
+ // 源select所选的值 this.data.activitys.fields[index].value
329
+ if(this.data.activitys.fields[i].label==='级联测试2'){
330
+ this.data.activitys.fields[i].options=[
331
+ {label:'级联选项1',value:'级联选项1'},{label:'级联选项2',value:'级联选项2'},{label:'级联选项3',value:'级联选项3'}
332
+ ]
333
+ }
334
+ }
335
+ }
336
+ */
337
+ },
338
+ // 获取view层button事件
339
+ async 'button'(model){
340
+ console.log("button事件接收参数:",model)
341
+ model=Object.assign({},this.selectdata,model)
342
+ // 下发,提交,保存,退回都在后台处理
343
+ let http = new HttpResetClass();
344
+ let res = await http.load('POST','rs/logic/ApplyProductFunctionService',{data:{tables:this.funcdata.tables,model:model,loginUser:this.$login.f}}, {resolveMsg: null, rejectMsg: '数据保存失败'})
345
+ console.log("service处理完成返回数据:",JSON.stringify(res.data))
346
+ if(res.code=200){
347
+ this.$dispatch('hiddenbtn')
348
+ this.showview= false
349
+ }else{
350
+ throw res.data.msg
351
+ }
352
+ }
353
+ },
354
+ watch:{
355
+ 'funcdata'() {
356
+ this.hasChange()
357
+ },
358
+ 'selectdata'() {
359
+ this.hasChange()
360
+ },
361
+ deep:true
362
+ }
363
+ }
364
+ </script>