apply-clients 6.0.4 → 6.0.7

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/build/dev-server.js +2 -2
  2. package/package.json +1 -1
  3. package/src/components/apply/base/rightview/InstallCardList2.vue +3 -2
  4. package/src/components/apply/base/rightview/carddetail/BuildFeeDetail2.vue +1 -1
  5. package/src/components/apply/base/rightview/carddetail/ChangeFeeDetail2.vue +1 -1
  6. package/src/components/apply/base/rightview/carddetail/ReduceFeeDetail2.vue +2 -2
  7. package/src/components/apply/base/rightview/carddetail/StopApplyDetail2.vue +70 -70
  8. package/src/components/build/Install/InstallFee/AddContract.vue +257 -257
  9. package/src/components/build/Install/InstallFee/InstallFee.vue +929 -929
  10. package/src/components/build/Install/InstallFee/PreparationFee.vue +223 -223
  11. package/src/components/build/Install/InstallFee/PrestoreFee.vue +630 -630
  12. package/src/components/build/Install/Process/CustomerBuildingMessage.vue +251 -251
  13. package/src/components/build/Install/Process/CustomerEquipmentMessage.vue +172 -172
  14. package/src/components/build/Install/Process/CustomerFile.vue +423 -423
  15. package/src/components/build/Install/Process/CustomerMaterialMessage.vue +414 -414
  16. package/src/components/build/Install/Process/CustomerRecordMessage.vue +749 -749
  17. package/src/components/build/Install/Process/FeeNormeAndContratSigne.vue +376 -376
  18. package/src/components/build/Install/Process/MeterType.vue +379 -379
  19. package/src/components/build/Install/Process/PlaceControler.vue +304 -304
  20. package/src/components/build/Install/Process/zhongran/ZR_Construction.vue +388 -388
  21. package/src/components/build/Install/Process/zhongran/ZR_CustomerEssentialInfo.vue +416 -415
  22. package/src/components/build/Install/Process/zhongran/ZR_MaterialPlan.vue +259 -259
  23. package/src/components/build/Install/Process/zhongran/ZR_MaterialPlanExamine.vue +243 -243
  24. package/src/components/build/Install/Process/zhongran/ZR_PlaceControler.vue +426 -426
  25. package/src/components/build/Install/Process/zhongran/ZR_TestDesign.vue +441 -441
  26. package/src/components/build/Install/ProcessInfo/ApplyRecordCancel.vue +135 -135
  27. package/src/components/build/Install/bill/BillGZKMakeInfo.vue +58 -58
  28. package/src/components/build/Install/bill/BillQRKMakeInfo.vue +79 -79
  29. package/src/components/build/Install/bill/BillXSDMakeInfo.vue +206 -206
  30. package/src/main.js +25 -25
@@ -1,243 +1,243 @@
1
- <template>
2
- <div class="auto select-overspread">
3
- <div class="panel panel-info">
4
- <div class="panel-heading">
5
- <h3 class="panel-title">材料审核</h3>
6
- </div>
7
- </div>
8
- <validator name="v">
9
- <form class="form-horizontal">
10
- <div class="col-sm-11 form-group">
11
- <div class="form-group col-sm-4">
12
- <div class="col-sm-3"></div>
13
- <div class="col-sm-6">
14
- <input type="checkbox" class="" id="checkbox" v-model="model.f_ismaterial_examine" :readonly="edit ? false : 'readonly'">
15
- <label for="checkbox" class="font-size">材料申请是否通过</label>
16
- </div>
17
- </div>
18
- </div>
19
- <div class="form-group col-sm-11">
20
- <label class="col-sm-2" for="f_material_remarks">材料申请备注:</label>
21
- <div class="col-sm-10" id="f_material_remarks">
22
- <textarea class="form-control" v-model="model.f_material_remarks" rows="3"
23
- readonly>
24
- </textarea>
25
- </div>
26
- </div>
27
- <div class="form-group col-sm-11">
28
- <label class="col-sm-2" for="f_material_remarks">申请不通过原因:</label>
29
- <div class="col-sm-10">
30
- <textarea class="form-control" v-model="model.f_back_reason" rows="3" >
31
- </textarea>
32
- </div>
33
- </div>
34
- </form>
35
- </validator>
36
- <div class="from-group col-sm-11" v-show="edit">
37
- <center>
38
- <button type="button" @click="commit()" class="btn btn-primary" style="width:80px; margin-left:40px;" v-if="showsub">
39
- {{buttonName}}
40
- </button>
41
- <button type="button" @click="back()" class="btn btn-warning" style="width:80px; margin-left:50px;" v-else>
42
- {{buttonName}}
43
- </button>
44
- <button type="button" @click="reset()" class="btn btn-warning" style="width:80px; margin-left:40px;">
45
- 取消
46
- </button>
47
- </center>
48
- </div>
49
- </div>
50
- </template>
51
- <script>
52
- import co from 'co'
53
- import {HttpResetClass} from 'vue-client'
54
- import * as Util from '../../../../Util'
55
- let gen = function* (self, val) {
56
- val.f_survey_name = self.employeetemplate
57
- val.f_temp_date = Util.toStandardTimeString()
58
- let data ={
59
- tablename:'t_apply',
60
- parameters:val
61
- }
62
- yield self.$resetpost('rs/logic/save', {data:data})
63
- data = {
64
- model: {
65
- f_processid: self.selectdata.f_process_id,
66
- },
67
- loginUser: {
68
- id: self.$login.f.id,
69
- name: self.$login.f.name,
70
- ename: self.$login.f.ename
71
- },
72
- employeetemplate: self.employeetemplate,// 指派勘察人员
73
- subdep: self.buttonName
74
- }
75
- console.log(">>>>>>>>>>>>11>>>>>>>>>>",data.model.f_processid)
76
- self.$resetpost(`rs/logic/grantnext`,
77
- {data: data})
78
- .then(() => {
79
- self.reset()
80
- })
81
- }
82
- export default {
83
- title: '材料审核',
84
- data() {
85
- return {
86
- employees: [], // 部门人员数组
87
- employeetemplate: '', // 选定部门人员
88
- model: {
89
- },
90
- buttonName:'',
91
- showsub:false
92
- }
93
- },
94
- props: ['selectdata','edit'],
95
- ready() {
96
- this.model = Object.assign({}, this.model, this.selectdata)
97
- },
98
- methods: {
99
- // 退回则默认值为已存储的人
100
- toemployees() {
101
- if (this.temploader == '技术组长' && this.model.f_survey_name) {
102
- this.employeetemplate = this.model.f_survey_name
103
- }
104
- },
105
- // 获取部门领导角色
106
- async loademployees() {
107
- let http = new HttpResetClass()
108
- if (this.selectdata.actdefid != '1') {
109
- await http.load('POST','rs/sql/applysingleTable', {
110
- data: {
111
- tablename: 't_actorperson',
112
- condition: " userseq='" + this.$login.f.id + "' order by id desc"
113
- }
114
- }, {resolveMsg: null, rejectMsg: "角色人员是(登陆人)信息查询失败"}, {silent: true})
115
- .then((res) => {
116
- console.log("取得部门领导的角色" + res.data[0].actorid)
117
- if (res.data[0].actorid.startsWith("R") && (res.data[0].actorid.includes("部门负责人") || res.data[0].actorid.includes("部经理")|| res.data[0].actorid.includes("部门领导") || res.data[0].actorid.includes("部负责人") || res.data[0].actorid.includes("部领导")||res.data[0].actorid.includes("组长"))) {
118
- let loaderstr = res.data[0].actorid.substring(2, res.data[0].actorid.length - 1)
119
- this.temploader = loaderstr
120
- // 如果是退回的就用已经保存的人员,保证下发的是同一个人
121
- this.toemployees()
122
- let loademployeestr = null
123
- if (loaderstr.includes("部门")) {
124
- loademployeestr = 'R(' + loaderstr.split("部门")[0] + '部门人员)'
125
- } else if (loaderstr.includes("部")) {
126
- loademployeestr = 'R(' + loaderstr.split("部")[0] + '部人员)'
127
- } else if (loaderstr.includes("组长")) {
128
- loademployeestr = 'R(' + loaderstr.split("组长")[0] + '人员)'
129
- }
130
- console.log(loademployeestr)
131
- let http2 = new HttpResetClass()
132
- http2.load('POST','rs/sql/applysingleTable', {
133
- data: {
134
- tablename: 't_role',
135
- condition: " name='" + loademployeestr.substring(2, loademployeestr.length - 1) + "'"
136
- // condition: " name='" + loaderstr.split("部")[0] + '部人员' + "'"
137
- }
138
- }, {resolveMsg: null, rejectMsg: "角色人员(部门人员)id信息查询失败"}, {silent: true}).then((res) => {
139
- console.log("取得角色人员(部门人员)id" + JSON.stringify(res.data[0].id))
140
- let strid = res.data[0].id
141
- let http3 = new HttpResetClass()
142
- http3.load('POST','rs/sql/applysingleTable', {
143
- data: {
144
- tablename: 't_user',
145
- condition: "roles like '%" + strid + "%'"
146
- }
147
- }, {resolveMsg: null, rejectMsg: "角色人员(部门人员)信息查询失败"}, {silent: true}).then((res) => {
148
- console.log("角色人员(部门人员)信息成功")
149
- for (var i = 0; i < res.data.length; i++) {
150
- this.employees.push({lable: res.data[i].name, value: res.data[i].name})
151
- }
152
- })
153
- })
154
- }
155
- })
156
- }
157
- },
158
- confirm() {
159
- //判断当前节点的状态(开始活动/完工)
160
- this.$resetpost('rs/sql/findProcessState', {data: {actid:this.selectdata.actid}}, {
161
- resolveMsg: null,
162
- rejectMsg: '提交错误!'
163
- }).then((res) => {
164
- console.log(">>>>>>>>>节点状态查询结果<<<<<<<<<<<", res)
165
- if (res.data[0].state != '开始活动') {
166
- this.$showMessage("该节点信息已在别处提交,请刷新!")
167
- this.reset()
168
- } else {
169
- let data ={
170
- tablename:'t_apply',
171
- parameters:this.model
172
- }
173
- this.$resetpost('rs/logic/save',{data:data} )
174
- .then(() => {
175
- this.reset()
176
- })
177
- }
178
- })
179
- },
180
- //退回上一个流程
181
- back() {
182
- this.model.f_sub_state = '申请打回'
183
- this.confirm()
184
- let data = {
185
- model: {
186
- f_processid: this.selectdata.f_process_id,
187
- },
188
- loginUser: {
189
- id: this.$login.f.id,
190
- name: this.$login.f.name,
191
- ename: this.$login.f.ename
192
- },
193
- subdep: '打回'
194
- }
195
- let http = new HttpResetClass()
196
- http.load('POST',`rs/logic/ignitionnext`,
197
- {data: data})
198
- .then(() => {
199
- this.reset()
200
- })
201
- },
202
- commit() {
203
- //判断当前节点的状态(开始活动/完工)
204
- this.$resetpost('rs/sql/findProcessState', {data: {actid:this.selectdata.actid}}, {
205
- resolveMsg: null,
206
- rejectMsg: '提交错误!'
207
- }).then((res) => {
208
- console.log(">>>>>>>>>节点状态查询结果<<<<<<<<<<<", res)
209
- if (res.data[0].state != '开始活动') {
210
- this.$showMessage("该节点信息已在别处提交,请刷新!")
211
- this.reset()
212
- } else {
213
- let getGen = gen(this, this.model)
214
- co(getGen)
215
- }
216
- })
217
- },
218
- reset() {
219
- this.$dispatch('close')
220
- this.$dispatch('selfsearch')
221
- },
222
- setselect() {
223
- this.selectdata.f_gas_type = this.selectdata.f_gas_type ? this.selectdata.f_gas_type : this.model.f_gas_type
224
- this.selectdata.f_survey_name = this.selectdata.f_survey_name ? this.selectdata.f_survey_name : this.model.f_survey_name
225
- this.model = Object.assign({}, this.model, this.selectdata)
226
- this.model.f_survey_date = this.$login.toStandardDateString()
227
- this.model.f_survey_department = this.$login.f.f_parentname
228
- this.model.f_survey_operator = this.$login.f.name
229
- }
230
- },
231
- watch: {
232
- 'model.f_ismaterial_examine'(val){
233
- if(val == true){
234
- this.buttonName = '提交'
235
- this.showsub = true
236
- }else{
237
- this.buttonName = '打回'
238
- this.showsub = false
239
- }
240
- }
241
- }
242
- }
243
- </script>
1
+ <template>
2
+ <div class="auto select-overspread">
3
+ <div class="panel panel-info">
4
+ <div class="panel-heading">
5
+ <h3 class="panel-title">材料审核</h3>
6
+ </div>
7
+ </div>
8
+ <validator name="v">
9
+ <form class="form-horizontal">
10
+ <div class="col-sm-11 form-group">
11
+ <div class="form-group col-sm-4">
12
+ <div class="col-sm-3"></div>
13
+ <div class="col-sm-6">
14
+ <input type="checkbox" class="" id="checkbox" v-model="model.f_ismaterial_examine" :readonly="edit ? false : 'readonly'">
15
+ <label for="checkbox" class="font-size">材料申请是否通过</label>
16
+ </div>
17
+ </div>
18
+ </div>
19
+ <div class="form-group col-sm-11">
20
+ <label class="col-sm-2" for="f_material_remarks">材料申请备注:</label>
21
+ <div class="col-sm-10" id="f_material_remarks">
22
+ <textarea class="form-control" v-model="model.f_material_remarks" rows="3"
23
+ readonly>
24
+ </textarea>
25
+ </div>
26
+ </div>
27
+ <div class="form-group col-sm-11">
28
+ <label class="col-sm-2" for="f_material_remarks">申请不通过原因:</label>
29
+ <div class="col-sm-10">
30
+ <textarea class="form-control" v-model="model.f_back_reason" rows="3" >
31
+ </textarea>
32
+ </div>
33
+ </div>
34
+ </form>
35
+ </validator>
36
+ <div class="from-group col-sm-11" v-show="edit">
37
+ <center>
38
+ <button type="button" @click="commit()" class="btn btn-primary" style="width:80px; margin-left:40px;" v-if="showsub">
39
+ {{buttonName}}
40
+ </button>
41
+ <button type="button" @click="back()" class="btn btn-warning" style="width:80px; margin-left:50px;" v-else>
42
+ {{buttonName}}
43
+ </button>
44
+ <button type="button" @click="reset()" class="btn btn-warning" style="width:80px; margin-left:40px;">
45
+ 取消
46
+ </button>
47
+ </center>
48
+ </div>
49
+ </div>
50
+ </template>
51
+ <script>
52
+ import co from 'co'
53
+ import {HttpResetClass} from 'vue-client'
54
+ import * as Util from '../../../../Util'
55
+ let gen = function* (self, val) {
56
+ val.f_survey_name = self.employeetemplate
57
+ val.f_temp_date = Util.toStandardTimeString()
58
+ let data ={
59
+ tablename:'t_apply',
60
+ parameters:val
61
+ }
62
+ yield self.$resetpost('rs/logic/save', {data:data})
63
+ data = {
64
+ model: {
65
+ f_processid: self.selectdata.f_process_id,
66
+ },
67
+ loginUser: {
68
+ id: self.$login.f.id,
69
+ name: self.$login.f.name,
70
+ ename: self.$login.f.ename
71
+ },
72
+ employeetemplate: self.employeetemplate,// 指派勘察人员
73
+ subdep: self.buttonName
74
+ }
75
+ console.log(">>>>>>>>>>>>11>>>>>>>>>>",data.model.f_processid)
76
+ self.$resetpost(`rs/logic/grantnext`,
77
+ {data: data})
78
+ .then(() => {
79
+ self.reset()
80
+ })
81
+ }
82
+ export default {
83
+ title: '材料审核',
84
+ data() {
85
+ return {
86
+ employees: [], // 部门人员数组
87
+ employeetemplate: '', // 选定部门人员
88
+ model: {
89
+ },
90
+ buttonName:'',
91
+ showsub:false
92
+ }
93
+ },
94
+ props: ['selectdata','edit'],
95
+ ready() {
96
+ this.model = Object.assign({}, this.model, this.selectdata)
97
+ },
98
+ methods: {
99
+ // 退回则默认值为已存储的人
100
+ toemployees() {
101
+ if (this.temploader == '技术组长' && this.model.f_survey_name) {
102
+ this.employeetemplate = this.model.f_survey_name
103
+ }
104
+ },
105
+ // 获取部门领导角色
106
+ async loademployees() {
107
+ let http = new HttpResetClass()
108
+ if (this.selectdata.actdefid != '1') {
109
+ await http.load('POST','rs/sql/singleTable', {
110
+ data: {
111
+ tablename: 't_actorperson',
112
+ condition: " userseq='" + this.$login.f.id + "' order by id desc"
113
+ }
114
+ }, {resolveMsg: null, rejectMsg: "角色人员是(登陆人)信息查询失败"}, {silent: true})
115
+ .then((res) => {
116
+ console.log("取得部门领导的角色" + res.data[0].actorid)
117
+ if (res.data[0].actorid.startsWith("R") && (res.data[0].actorid.includes("部门负责人") || res.data[0].actorid.includes("部经理")|| res.data[0].actorid.includes("部门领导") || res.data[0].actorid.includes("部负责人") || res.data[0].actorid.includes("部领导")||res.data[0].actorid.includes("组长"))) {
118
+ let loaderstr = res.data[0].actorid.substring(2, res.data[0].actorid.length - 1)
119
+ this.temploader = loaderstr
120
+ // 如果是退回的就用已经保存的人员,保证下发的是同一个人
121
+ this.toemployees()
122
+ let loademployeestr = null
123
+ if (loaderstr.includes("部门")) {
124
+ loademployeestr = 'R(' + loaderstr.split("部门")[0] + '部门人员)'
125
+ } else if (loaderstr.includes("部")) {
126
+ loademployeestr = 'R(' + loaderstr.split("部")[0] + '部人员)'
127
+ } else if (loaderstr.includes("组长")) {
128
+ loademployeestr = 'R(' + loaderstr.split("组长")[0] + '人员)'
129
+ }
130
+ console.log(loademployeestr)
131
+ let http2 = new HttpResetClass()
132
+ http2.load('POST','rs/sql/singleTable', {
133
+ data: {
134
+ tablename: 't_role',
135
+ condition: " name='" + loademployeestr.substring(2, loademployeestr.length - 1) + "'"
136
+ // condition: " name='" + loaderstr.split("部")[0] + '部人员' + "'"
137
+ }
138
+ }, {resolveMsg: null, rejectMsg: "角色人员(部门人员)id信息查询失败"}, {silent: true}).then((res) => {
139
+ console.log("取得角色人员(部门人员)id" + JSON.stringify(res.data[0].id))
140
+ let strid = res.data[0].id
141
+ let http3 = new HttpResetClass()
142
+ http3.load('POST','rs/sql/singleTable', {
143
+ data: {
144
+ tablename: 't_user',
145
+ condition: "roles like '%" + strid + "%'"
146
+ }
147
+ }, {resolveMsg: null, rejectMsg: "角色人员(部门人员)信息查询失败"}, {silent: true}).then((res) => {
148
+ console.log("角色人员(部门人员)信息成功")
149
+ for (var i = 0; i < res.data.length; i++) {
150
+ this.employees.push({lable: res.data[i].name, value: res.data[i].name})
151
+ }
152
+ })
153
+ })
154
+ }
155
+ })
156
+ }
157
+ },
158
+ confirm() {
159
+ //判断当前节点的状态(开始活动/完工)
160
+ this.$resetpost('rs/sql/findProcessState', {data: {actid:this.selectdata.actid}}, {
161
+ resolveMsg: null,
162
+ rejectMsg: '提交错误!'
163
+ }).then((res) => {
164
+ console.log(">>>>>>>>>节点状态查询结果<<<<<<<<<<<", res)
165
+ if (res.data[0].state != '开始活动') {
166
+ this.$showMessage("该节点信息已在别处提交,请刷新!")
167
+ this.reset()
168
+ } else {
169
+ let data ={
170
+ tablename:'t_apply',
171
+ parameters:this.model
172
+ }
173
+ this.$resetpost('rs/logic/save',{data:data} )
174
+ .then(() => {
175
+ this.reset()
176
+ })
177
+ }
178
+ })
179
+ },
180
+ //退回上一个流程
181
+ back() {
182
+ this.model.f_sub_state = '申请打回'
183
+ this.confirm()
184
+ let data = {
185
+ model: {
186
+ f_processid: this.selectdata.f_process_id,
187
+ },
188
+ loginUser: {
189
+ id: this.$login.f.id,
190
+ name: this.$login.f.name,
191
+ ename: this.$login.f.ename
192
+ },
193
+ subdep: '打回'
194
+ }
195
+ let http = new HttpResetClass()
196
+ http.load('POST',`rs/logic/ignitionnext`,
197
+ {data: data})
198
+ .then(() => {
199
+ this.reset()
200
+ })
201
+ },
202
+ commit() {
203
+ //判断当前节点的状态(开始活动/完工)
204
+ this.$resetpost('rs/sql/findProcessState', {data: {actid:this.selectdata.actid}}, {
205
+ resolveMsg: null,
206
+ rejectMsg: '提交错误!'
207
+ }).then((res) => {
208
+ console.log(">>>>>>>>>节点状态查询结果<<<<<<<<<<<", res)
209
+ if (res.data[0].state != '开始活动') {
210
+ this.$showMessage("该节点信息已在别处提交,请刷新!")
211
+ this.reset()
212
+ } else {
213
+ let getGen = gen(this, this.model)
214
+ co(getGen)
215
+ }
216
+ })
217
+ },
218
+ reset() {
219
+ this.$dispatch('close')
220
+ this.$dispatch('selfsearch')
221
+ },
222
+ setselect() {
223
+ this.selectdata.f_gas_type = this.selectdata.f_gas_type ? this.selectdata.f_gas_type : this.model.f_gas_type
224
+ this.selectdata.f_survey_name = this.selectdata.f_survey_name ? this.selectdata.f_survey_name : this.model.f_survey_name
225
+ this.model = Object.assign({}, this.model, this.selectdata)
226
+ this.model.f_survey_date = this.$login.toStandardDateString()
227
+ this.model.f_survey_department = this.$login.f.f_parentname
228
+ this.model.f_survey_operator = this.$login.f.name
229
+ }
230
+ },
231
+ watch: {
232
+ 'model.f_ismaterial_examine'(val){
233
+ if(val == true){
234
+ this.buttonName = '提交'
235
+ this.showsub = true
236
+ }else{
237
+ this.buttonName = '打回'
238
+ this.showsub = false
239
+ }
240
+ }
241
+ }
242
+ }
243
+ </script>