apply-clients 6.0.3 → 6.0.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 (28) hide show
  1. package/build/dev-server.js +72 -72
  2. package/package.json +1 -1
  3. package/src/components/apply/base/rightview/InstallCardList2.vue +267 -268
  4. package/src/components/apply/base/rightview/carddetail/BuildFeeDetail2.vue +77 -77
  5. package/src/components/apply/base/rightview/carddetail/ChangeFeeDetail2.vue +116 -116
  6. package/src/components/apply/base/rightview/carddetail/ReduceFeeDetail2.vue +1 -1
  7. package/src/components/build/Install/InstallFee/AddContract.vue +257 -257
  8. package/src/components/build/Install/InstallFee/InstallFee.vue +929 -929
  9. package/src/components/build/Install/InstallFee/PreparationFee.vue +223 -223
  10. package/src/components/build/Install/InstallFee/PrestoreFee.vue +630 -630
  11. package/src/components/build/Install/Process/CustomerBuildingMessage.vue +251 -251
  12. package/src/components/build/Install/Process/CustomerEquipmentMessage.vue +172 -172
  13. package/src/components/build/Install/Process/CustomerFile.vue +423 -423
  14. package/src/components/build/Install/Process/CustomerMaterialMessage.vue +414 -414
  15. package/src/components/build/Install/Process/CustomerRecordMessage.vue +749 -749
  16. package/src/components/build/Install/Process/FeeNormeAndContratSigne.vue +376 -376
  17. package/src/components/build/Install/Process/MeterType.vue +379 -379
  18. package/src/components/build/Install/Process/PlaceControler.vue +304 -304
  19. package/src/components/build/Install/Process/zhongran/ZR_Construction.vue +388 -388
  20. package/src/components/build/Install/Process/zhongran/ZR_MaterialPlan.vue +259 -259
  21. package/src/components/build/Install/Process/zhongran/ZR_MaterialPlanExamine.vue +243 -243
  22. package/src/components/build/Install/Process/zhongran/ZR_PlaceControler.vue +426 -426
  23. package/src/components/build/Install/Process/zhongran/ZR_TestDesign.vue +441 -441
  24. package/src/components/build/Install/ProcessInfo/ApplyRecordCancel.vue +135 -135
  25. package/src/components/build/Install/bill/BillGZKMakeInfo.vue +58 -58
  26. package/src/components/build/Install/bill/BillQRKMakeInfo.vue +79 -79
  27. package/src/components/build/Install/bill/BillXSDMakeInfo.vue +206 -206
  28. package/src/main.js +25 -25
@@ -1,135 +1,135 @@
1
- <template>
2
- <div class="auto">
3
- <validator name='v'>
4
- <p class="bg-info text-center" style="padding: 8px;">{{data.type}}撤销</p>
5
- <div class="row" style="margin-top:10px;">
6
- <div class="form-group">
7
- <label for="f_cancel_reason" class=" col-sm-2 control-label">撤销原因:</label>
8
- <div class="col-sm-8">
9
- <textarea class="form-control" v-model="model.f_cancel_reason" rows="3" placeholder="请填写原因"></textarea>
10
- </div>
11
- </div>
12
- </div>
13
- <div style="text-align:right;height:auto;margin-top:30px;margin-right:50px;">
14
- <button class="btn btn-success" @click="confirm()" >确&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;认</button>
15
- <button class="btn btn-default" @click="clean()" style="width:80px;margin-left:20px;">取&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;消</button>
16
- </div>
17
- </validator>
18
- </div>
19
- </template>
20
-
21
- <script>
22
-
23
- let postGen = async function (self, name) {
24
- let url = 'rs/logic/' + name
25
- // 获取冲正后的记录
26
- let getRecord = await self.$CancelService.cancel(url, self.model, self.data)
27
- console.log('冲正后的记录。。', getRecord)
28
- // 判断需不需要打印电子票
29
- if (self.isNeedEticket(getRecord.data, self.data.type)) {
30
- console.log('冲正打票,', getRecord.data.id, self.data.type)
31
- let getEticket = await
32
- self.$resetpost('rs/sql/singleTable', {
33
- data: {
34
- tablename: 't_eticket',
35
- condition: `f_sell_id = '${getRecord.data.id}' and f_charge_type = '${self.data.type}'`
36
- }
37
- }, {resolveMsg: null, rejectMsg: '获取电子票明细失败!!'})
38
- console.log('获取电子票信息', getEticket)
39
- if (getEticket.data.length > 0) {
40
- await self.$CommonService.correctEticket(getRecord.data.id, self.data.type)
41
- }
42
- }
43
- self.$dispatch('success')
44
- }
45
-
46
- export default {
47
- props: ['data'],
48
- title: '操作撤销',
49
- data () {
50
- return {
51
- model: {
52
- f_cancel_reason: '',
53
- f_cancel_name: this.$login.f.name,
54
- f_filiale:this.$login.f.f_fengongsi,
55
- f_outlets:this.$login.f.f_parentname,
56
- f_orgstr:this.$login.f.orgpathstr,
57
- f_filialeids:this.$login.f.f_orgids,
58
- record_id: ''
59
- }
60
- }
61
- },
62
- methods: {
63
- confirm () {
64
- // 整理数据
65
- let name = this.sortdata()
66
- console.log('撤销请求业务逻辑名', name)
67
- // 撤销操作请求
68
- console.log(name)
69
- this.post(name)
70
- this.$dispatch('searchcard')
71
- this.$dispatch('hiddenbtn')
72
- },
73
- clean () {
74
- this.$dispatch('clean', this.model)
75
- this.$dispatch('searchcard')
76
- this.$dispatch('hiddenbtn')
77
- },
78
- // 判断type类型 整理数据
79
- sortdata () {
80
- this.model.record_id = this.data.id
81
- let type = this.data.type
82
- let name
83
- // 根据type数据 选择调用的Logic
84
- if (type === '过户') {
85
- name = 'transferCancel'
86
- } else if (type === '换表') {
87
- name = 'changemeterCancel'
88
- } else if (type === '机表收费') {
89
- name = 'machineChargeCancelPay'
90
- } else if (type === '物联网收费') {
91
- name = 'iotMeterChargeCancel'
92
- } else if (type === '卡表超用') {
93
- name = 'cardOverCancel'
94
- } else if (type === '超用收费') {
95
- name = 'overuseCancel'
96
- } else if (type === '其他收费') {
97
- name = 'otherFeeRollback'
98
- } else if (type === '补卡') {
99
- name = 'replaceCardCancel'
100
- } else if (type === '终止报建'){
101
- name = 'CancelStopApply'
102
- }else{
103
- return
104
- }
105
- return name
106
- },
107
- // 发送请求 及 请求后处理页面
108
- post (name) {
109
- postGen(this, name)
110
- },
111
- isNeedEticket (record, type) {
112
- // TODO 需要其他类型再继续加
113
- if (type === '补卡') {
114
- // 判断卡费是否大于零
115
- if (record.f_cardfees > 0) {
116
- return true
117
- }
118
- } else if (type === '其他收费') {
119
- if (record.f_collection > 0) {
120
- return true
121
- }
122
- } else if (type === '超用收费') {
123
- if (record.f_collection > 0) {
124
- return true
125
- }
126
- } else if (type === '物联网表收费') {
127
- if (record.f_collection > 0) {
128
- return true
129
- }
130
- }
131
- return false
132
- }
133
- }
134
- }
135
- </script>
1
+ <template>
2
+ <div class="auto">
3
+ <validator name='v'>
4
+ <p class="bg-info text-center" style="padding: 8px;">{{data.type}}撤销</p>
5
+ <div class="row" style="margin-top:10px;">
6
+ <div class="form-group">
7
+ <label for="f_cancel_reason" class=" col-sm-2 control-label">撤销原因:</label>
8
+ <div class="col-sm-8">
9
+ <textarea class="form-control" v-model="model.f_cancel_reason" rows="3" placeholder="请填写原因"></textarea>
10
+ </div>
11
+ </div>
12
+ </div>
13
+ <div style="text-align:right;height:auto;margin-top:30px;margin-right:50px;">
14
+ <button class="btn btn-success" @click="confirm()" >确&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;认</button>
15
+ <button class="btn btn-default" @click="clean()" style="width:80px;margin-left:20px;">取&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;消</button>
16
+ </div>
17
+ </validator>
18
+ </div>
19
+ </template>
20
+
21
+ <script>
22
+
23
+ let postGen = async function (self, name) {
24
+ let url = 'rs/logic/' + name
25
+ // 获取冲正后的记录
26
+ let getRecord = await self.$CancelService.cancel(url, self.model, self.data)
27
+ console.log('冲正后的记录。。', getRecord)
28
+ // 判断需不需要打印电子票
29
+ if (self.isNeedEticket(getRecord.data, self.data.type)) {
30
+ console.log('冲正打票,', getRecord.data.id, self.data.type)
31
+ let getEticket = await
32
+ self.$resetpost('rs/sql/applysingleTable', {
33
+ data: {
34
+ tablename: 't_eticket',
35
+ condition: `f_sell_id = '${getRecord.data.id}' and f_charge_type = '${self.data.type}'`
36
+ }
37
+ }, {resolveMsg: null, rejectMsg: '获取电子票明细失败!!'})
38
+ console.log('获取电子票信息', getEticket)
39
+ if (getEticket.data.length > 0) {
40
+ await self.$CommonService.correctEticket(getRecord.data.id, self.data.type)
41
+ }
42
+ }
43
+ self.$dispatch('success')
44
+ }
45
+
46
+ export default {
47
+ props: ['data'],
48
+ title: '操作撤销',
49
+ data () {
50
+ return {
51
+ model: {
52
+ f_cancel_reason: '',
53
+ f_cancel_name: this.$login.f.name,
54
+ f_filiale:this.$login.f.f_fengongsi,
55
+ f_outlets:this.$login.f.f_parentname,
56
+ f_orgstr:this.$login.f.orgpathstr,
57
+ f_filialeids:this.$login.f.f_orgids,
58
+ record_id: ''
59
+ }
60
+ }
61
+ },
62
+ methods: {
63
+ confirm () {
64
+ // 整理数据
65
+ let name = this.sortdata()
66
+ console.log('撤销请求业务逻辑名', name)
67
+ // 撤销操作请求
68
+ console.log(name)
69
+ this.post(name)
70
+ this.$dispatch('searchcard')
71
+ this.$dispatch('hiddenbtn')
72
+ },
73
+ clean () {
74
+ this.$dispatch('clean', this.model)
75
+ this.$dispatch('searchcard')
76
+ this.$dispatch('hiddenbtn')
77
+ },
78
+ // 判断type类型 整理数据
79
+ sortdata () {
80
+ this.model.record_id = this.data.id
81
+ let type = this.data.type
82
+ let name
83
+ // 根据type数据 选择调用的Logic
84
+ if (type === '过户') {
85
+ name = 'transferCancel'
86
+ } else if (type === '换表') {
87
+ name = 'changemeterCancel'
88
+ } else if (type === '机表收费') {
89
+ name = 'machineChargeCancelPay'
90
+ } else if (type === '物联网收费') {
91
+ name = 'iotMeterChargeCancel'
92
+ } else if (type === '卡表超用') {
93
+ name = 'cardOverCancel'
94
+ } else if (type === '超用收费') {
95
+ name = 'overuseCancel'
96
+ } else if (type === '其他收费') {
97
+ name = 'otherFeeRollback'
98
+ } else if (type === '补卡') {
99
+ name = 'replaceCardCancel'
100
+ } else if (type === '终止报建'){
101
+ name = 'CancelStopApply'
102
+ }else{
103
+ return
104
+ }
105
+ return name
106
+ },
107
+ // 发送请求 及 请求后处理页面
108
+ post (name) {
109
+ postGen(this, name)
110
+ },
111
+ isNeedEticket (record, type) {
112
+ // TODO 需要其他类型再继续加
113
+ if (type === '补卡') {
114
+ // 判断卡费是否大于零
115
+ if (record.f_cardfees > 0) {
116
+ return true
117
+ }
118
+ } else if (type === '其他收费') {
119
+ if (record.f_collection > 0) {
120
+ return true
121
+ }
122
+ } else if (type === '超用收费') {
123
+ if (record.f_collection > 0) {
124
+ return true
125
+ }
126
+ } else if (type === '物联网表收费') {
127
+ if (record.f_collection > 0) {
128
+ return true
129
+ }
130
+ }
131
+ return false
132
+ }
133
+ }
134
+ }
135
+ </script>
@@ -1,58 +1,58 @@
1
- <template>
2
- <billgzk v-ref:billqrk :billselect="billselect" :billinfo="billinfo"></billgzk>
3
- </template>
4
-
5
- <script>
6
- import {HttpResetClass} from 'vue-client'
7
- export default {
8
- title: "确认卡信息",
9
- props:['billselect','selectone'],
10
- data(){
11
- return{
12
- billinfo: {f_billnumber:null},
13
- number: null
14
- }
15
- },
16
- async ready(){
17
- let http = new HttpResetClass()
18
- let data = {
19
- tablename: 't_singlevalue',
20
- condition: `name = '改装卡编号'`
21
- }
22
- let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
23
- resolveMsg: null,
24
- rejectMsg: "获取单据编号失败"
25
- }, {silent: true})
26
- this.number = res.data[0]
27
- this.handle()
28
- this.billinfo.f_billnumber = this.number.value
29
- },
30
- methods: {
31
- // 处理数字,例如: 1 转换成 001
32
- handle() {
33
- while (this.number.value.length < 8) {
34
- this.number.value = '0' + this.number.value
35
- }
36
- },
37
- // 更新 确认卡编号
38
- async updateNumber() {
39
- let http = new HttpResetClass()
40
- this.number.value = Number(this.number.value) + 1
41
- http.load('POST', 'rs/logic/updatesinglevalue', {data: this.number}, {resolveMsg: null, rejectMsg: "改装卡编号保存失败"})
42
- http = new HttpResetClass()
43
- let billinfo = Object.assign({}, this.billselect, this.billinfo)
44
- delete billinfo.id
45
- // 票据类型
46
- billinfo.f_bill_type = '改装卡'
47
- let data = {
48
- billinfo: billinfo
49
- }
50
- await http.load('POST', 'rs/logic/makebillrecord', {data: data}, {resolveMsg: null, rejectMsg: "改装卡编号存储失败"})
51
- }
52
- }
53
- }
54
- </script>
55
-
56
- <style scoped>
57
-
58
- </style>
1
+ <template>
2
+ <billgzk v-ref:billqrk :billselect="billselect" :billinfo="billinfo"></billgzk>
3
+ </template>
4
+
5
+ <script>
6
+ import {HttpResetClass} from 'vue-client'
7
+ export default {
8
+ title: "确认卡信息",
9
+ props:['billselect','selectone'],
10
+ data(){
11
+ return{
12
+ billinfo: {f_billnumber:null},
13
+ number: null
14
+ }
15
+ },
16
+ async ready(){
17
+ let http = new HttpResetClass()
18
+ let data = {
19
+ tablename: 't_singlevalue',
20
+ condition: `name = '改装卡编号'`
21
+ }
22
+ let res = await http.load('POST', 'rs/sql/applysingleTable', {data: data}, {
23
+ resolveMsg: null,
24
+ rejectMsg: "获取单据编号失败"
25
+ }, {silent: true})
26
+ this.number = res.data[0]
27
+ this.handle()
28
+ this.billinfo.f_billnumber = this.number.value
29
+ },
30
+ methods: {
31
+ // 处理数字,例如: 1 转换成 001
32
+ handle() {
33
+ while (this.number.value.length < 8) {
34
+ this.number.value = '0' + this.number.value
35
+ }
36
+ },
37
+ // 更新 确认卡编号
38
+ async updateNumber() {
39
+ let http = new HttpResetClass()
40
+ this.number.value = Number(this.number.value) + 1
41
+ http.load('POST', 'rs/logic/updatesinglevalue', {data: this.number}, {resolveMsg: null, rejectMsg: "改装卡编号保存失败"})
42
+ http = new HttpResetClass()
43
+ let billinfo = Object.assign({}, this.billselect, this.billinfo)
44
+ delete billinfo.id
45
+ // 票据类型
46
+ billinfo.f_bill_type = '改装卡'
47
+ let data = {
48
+ billinfo: billinfo
49
+ }
50
+ await http.load('POST', 'rs/logic/makebillrecord', {data: data}, {resolveMsg: null, rejectMsg: "改装卡编号存储失败"})
51
+ }
52
+ }
53
+ }
54
+ </script>
55
+
56
+ <style scoped>
57
+
58
+ </style>
@@ -1,79 +1,79 @@
1
- <template>
2
- <p v-if="!show"><font color="red">还未交开户费</font></p>
3
- <billqrk v-if="billinfo.f_billnumber&&show" v-ref:billqrk :billselect="billselect" :billinfo="billinfo"></billqrk>
4
- </template>
5
-
6
- <script>
7
- import {HttpResetClass} from 'vue-client'
8
- export default {
9
- title: "确认卡信息",
10
- props:['billselect','selectone'],
11
- data(){
12
- return{
13
- show: false,
14
- billinfo: {f_billnumber:null},
15
- number: null
16
- }
17
- },
18
- async ready(){
19
- //如果没有缴开户费,不能打印户内安装确认卡
20
- this.isShow()
21
-
22
- let http = new HttpResetClass()
23
- let data = {
24
- tablename: 't_singlevalue',
25
- condition: `name = '确认卡编号'`
26
- }
27
- let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
28
- resolveMsg: null,
29
- rejectMsg: "获取单据编号失败"
30
- }, {silent: true})
31
- this.number = res.data[0]
32
- this.handle()
33
- this.billinfo.f_billnumber = this.number.value
34
- },
35
- methods: {
36
- async isShow(){
37
- let http = new HttpResetClass()
38
- let data = {
39
- tablename: 't_paydetail',
40
- condition: `processid = '${this.billselect.f_process_id}'`
41
- }
42
- let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
43
- resolveMsg: null,
44
- rejectMsg: "获取开户费信息失败"
45
- }, {silent: true})
46
- for(let i=0;i<res.data.length;i++){
47
- if(res.data[i].f_charging_item.includes('开户费')){
48
- this.show = true
49
- }
50
- }
51
- },
52
- // 处理数字,例如: 1 转换成 001
53
- handle() {
54
- while (this.number.value.length < 8) {
55
- this.number.value = '0' + this.number.value
56
- }
57
- },
58
- // 更新 确认卡编号
59
- async updateNumber() {
60
- let http = new HttpResetClass()
61
- this.number.value = Number(this.number.value) + 1
62
- http.load('POST', 'rs/logic/updatesinglevalue', {data: this.number}, {resolveMsg: null, rejectMsg: "改装卡编号保存失败"})
63
- http = new HttpResetClass()
64
- let billinfo = Object.assign({}, this.billselect, this.billinfo)
65
- delete billinfo.id
66
- // 票据类型
67
- billinfo.f_bill_type = this.selectone
68
- let data = {
69
- billinfo: billinfo
70
- }
71
- await http.load('POST', 'rs/logic/makebillrecord', {data: data}, {resolveMsg: null, rejectMsg: "改装卡编号存储失败"})
72
- }
73
- }
74
- }
75
- </script>
76
-
77
- <style scoped>
78
-
79
- </style>
1
+ <template>
2
+ <p v-if="!show"><font color="red">还未交开户费</font></p>
3
+ <billqrk v-if="billinfo.f_billnumber&&show" v-ref:billqrk :billselect="billselect" :billinfo="billinfo"></billqrk>
4
+ </template>
5
+
6
+ <script>
7
+ import {HttpResetClass} from 'vue-client'
8
+ export default {
9
+ title: "确认卡信息",
10
+ props:['billselect','selectone'],
11
+ data(){
12
+ return{
13
+ show: false,
14
+ billinfo: {f_billnumber:null},
15
+ number: null
16
+ }
17
+ },
18
+ async ready(){
19
+ //如果没有缴开户费,不能打印户内安装确认卡
20
+ this.isShow()
21
+
22
+ let http = new HttpResetClass()
23
+ let data = {
24
+ tablename: 't_singlevalue',
25
+ condition: `name = '确认卡编号'`
26
+ }
27
+ let res = await http.load('POST', 'rs/sql/applysingleTable', {data: data}, {
28
+ resolveMsg: null,
29
+ rejectMsg: "获取单据编号失败"
30
+ }, {silent: true})
31
+ this.number = res.data[0]
32
+ this.handle()
33
+ this.billinfo.f_billnumber = this.number.value
34
+ },
35
+ methods: {
36
+ async isShow(){
37
+ let http = new HttpResetClass()
38
+ let data = {
39
+ tablename: 't_paydetail',
40
+ condition: `processid = '${this.billselect.f_process_id}'`
41
+ }
42
+ let res = await http.load('POST', 'rs/sql/applysingleTable', {data: data}, {
43
+ resolveMsg: null,
44
+ rejectMsg: "获取开户费信息失败"
45
+ }, {silent: true})
46
+ for(let i=0;i<res.data.length;i++){
47
+ if(res.data[i].f_charging_item.includes('开户费')){
48
+ this.show = true
49
+ }
50
+ }
51
+ },
52
+ // 处理数字,例如: 1 转换成 001
53
+ handle() {
54
+ while (this.number.value.length < 8) {
55
+ this.number.value = '0' + this.number.value
56
+ }
57
+ },
58
+ // 更新 确认卡编号
59
+ async updateNumber() {
60
+ let http = new HttpResetClass()
61
+ this.number.value = Number(this.number.value) + 1
62
+ http.load('POST', 'rs/logic/updatesinglevalue', {data: this.number}, {resolveMsg: null, rejectMsg: "改装卡编号保存失败"})
63
+ http = new HttpResetClass()
64
+ let billinfo = Object.assign({}, this.billselect, this.billinfo)
65
+ delete billinfo.id
66
+ // 票据类型
67
+ billinfo.f_bill_type = this.selectone
68
+ let data = {
69
+ billinfo: billinfo
70
+ }
71
+ await http.load('POST', 'rs/logic/makebillrecord', {data: data}, {resolveMsg: null, rejectMsg: "改装卡编号存储失败"})
72
+ }
73
+ }
74
+ }
75
+ </script>
76
+
77
+ <style scoped>
78
+
79
+ </style>