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,259 +1,259 @@
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_complete" :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="edit ? false : 'readonly'">
24
- </textarea>
25
- </div>
26
- </div>
27
- <div class="form-group col-sm-11" v-if="showreason">
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" readonly>
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="confirm()" class="btn btn-primary" style="width:80px; margin-left:40px;">
39
- 保存
40
- </button>
41
- <button type="button" @click="commit()" class="btn btn-primary" style="width:80px; margin-left:40px;">
42
- {{buttonName}}
43
- </button>
44
- <button type="button" @click="reset()" class="btn btn-warning" style="width:80px; margin-left:40px;">
45
- 取消
46
- </button>
47
- <button type="button" @click="back()" class="btn btn-warning" style="width:80px; margin-left:50px;">
48
- 退回
49
- </button>
50
- </center>
51
- </div>
52
- </div>
53
- </template>
54
- <script>
55
- import co from 'co'
56
- import {HttpResetClass} from 'vue-client'
57
- import * as Util from '../../../../Util'
58
- let gen = function* (self, val) {
59
- val.f_survey_name = self.employeetemplate
60
- val.f_temp_date = Util.toStandardTimeString()
61
- val.f_sub_state = '正常'
62
- /*val.f_gas_type = val.f_gas_type[0] ? val.f_gas_type[0] : ''
63
- val.f_gas_type = val.f_survey_name[0] ? val.f_survey_name[0] : ''*/
64
- let data ={
65
- tablename:'t_apply',
66
- parameters:val
67
- }
68
- yield self.$resetpost('rs/logic/save', {data:data})
69
- data = {
70
- model: {
71
- f_processid: self.selectdata.f_process_id,
72
- },
73
- loginUser: {
74
- id: self.$login.f.id,
75
- name: self.$login.f.name,
76
- ename: self.$login.f.ename
77
- },
78
- employeetemplate: self.employeetemplate,// 指派勘察人员
79
- subdep: self.buttonName
80
- }
81
- console.log(">>>>>>>>>>>>11>>>>>>>>>>",data.model.f_processid)
82
- self.$resetpost(`rs/logic/grantnext`,
83
- {data: data})
84
- .then(() => {
85
- self.reset()
86
- })
87
- }
88
- export default {
89
- title: '材料计划',
90
- data() {
91
- return {
92
- employees: [], // 部门人员数组
93
- employeetemplate: '', // 选定部门人员
94
- model: {
95
- },
96
- buttonName:'',
97
- showsub:false,
98
- showreason:false
99
- }
100
- },
101
- props: ['selectdata','edit'],
102
- ready() {
103
-
104
- this.model = Object.assign({}, this.model, this.selectdata)
105
- if( this.selectdata.f_sub_state == '申请打回'){
106
- this.showreason = true
107
- }
108
- },
109
- methods: {
110
- // 退回则默认值为已存储的人
111
- toemployees() {
112
- if (this.temploader == '技术组长' && this.model.f_survey_name) {
113
- this.employeetemplate = this.model.f_survey_name
114
- }
115
- },
116
- // 获取部门领导角色
117
- async loademployees() {
118
- let http = new HttpResetClass()
119
- if (this.selectdata.actdefid != '1') {
120
- await http.load('POST','rs/sql/applysingleTable', {
121
- data: {
122
- tablename: 't_actorperson',
123
- condition: " userseq='" + this.$login.f.id + "' order by id desc"
124
- }
125
- }, {resolveMsg: null, rejectMsg: "角色人员是(登陆人)信息查询失败"}, {silent: true})
126
- .then((res) => {
127
- console.log("取得部门领导的角色" + res.data[0].actorid)
128
- 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("组长"))) {
129
- let loaderstr = res.data[0].actorid.substring(2, res.data[0].actorid.length - 1)
130
- this.temploader = loaderstr
131
- // 如果是退回的就用已经保存的人员,保证下发的是同一个人
132
- this.toemployees()
133
- let loademployeestr = null
134
- if (loaderstr.includes("部门")) {
135
- loademployeestr = 'R(' + loaderstr.split("部门")[0] + '部门人员)'
136
- } else if (loaderstr.includes("部")) {
137
- loademployeestr = 'R(' + loaderstr.split("部")[0] + '部人员)'
138
- } else if (loaderstr.includes("组长")) {
139
- loademployeestr = 'R(' + loaderstr.split("组长")[0] + '人员)'
140
- }
141
- console.log(loademployeestr)
142
- let http2 = new HttpResetClass()
143
- http2.load('POST','rs/sql/applysingleTable', {
144
- data: {
145
- tablename: 't_role',
146
- condition: " name='" + loademployeestr.substring(2, loademployeestr.length - 1) + "'"
147
- // condition: " name='" + loaderstr.split("部")[0] + '部人员' + "'"
148
- }
149
- }, {resolveMsg: null, rejectMsg: "角色人员(部门人员)id信息查询失败"}, {silent: true}).then((res) => {
150
- console.log("取得角色人员(部门人员)id" + JSON.stringify(res.data[0].id))
151
- let strid = res.data[0].id
152
- let http3 = new HttpResetClass()
153
- http3.load('POST','rs/sql/applysingleTable', {
154
- data: {
155
- tablename: 't_user',
156
- condition: "roles like '%" + strid + "%'"
157
- }
158
- }, {resolveMsg: null, rejectMsg: "角色人员(部门人员)信息查询失败"}, {silent: true}).then((res) => {
159
- console.log("角色人员(部门人员)信息成功")
160
- for (var i = 0; i < res.data.length; i++) {
161
- this.employees.push({lable: res.data[i].name, value: res.data[i].name})
162
- }
163
- })
164
- })
165
- }
166
- })
167
- }
168
- },
169
- confirm() {
170
- //判断当前节点的状态(开始活动/完工)
171
- this.$resetpost('rs/sql/findProcessState', {data: {actid:this.selectdata.actid}}, {
172
- resolveMsg: null,
173
- rejectMsg: '提交错误!'
174
- }).then((res) => {
175
- console.log(">>>>>>>>>节点状态查询结果<<<<<<<<<<<", res)
176
- if (res.data[0].state != '开始活动') {
177
- this.$showMessage("该节点信息已在别处提交,请刷新!")
178
- this.reset()
179
- } else {
180
- let data ={
181
- tablename:'t_apply',
182
- parameters:this.model
183
- }
184
- this.$resetpost('rs/logic/save',{data:data} )
185
- .then(() => {
186
- this.reset()
187
- })
188
- }
189
- })
190
-
191
- },
192
- commit() {
193
- //判断当前节点的状态(开始活动/完工)
194
- this.$resetpost('rs/sql/findProcessState', {data: {actid:this.selectdata.actid}}, {
195
- resolveMsg: null,
196
- rejectMsg: '提交错误!'
197
- }).then((res) => {
198
- console.log(">>>>>>>>>节点状态查询结果<<<<<<<<<<<", res)
199
- if (res.data[0].state != '开始活动') {
200
- this.$showMessage("该节点信息已在别处提交,请刷新!")
201
- this.reset()
202
- } else {
203
- let getGen = gen(this, this.model)
204
- co(getGen)
205
- }
206
- })
207
- },
208
- //退回上一个流程
209
- back() {
210
- // this.model.f_sub_state = '退回'
211
- this.confirm()
212
- let data = {
213
- model: {
214
- f_processid: this.selectdata.f_process_id,
215
- },
216
- loginUser: {
217
- id: this.$login.f.id,
218
- name: this.$login.f.name,
219
- ename: this.$login.f.ename
220
- },
221
- subdep: '退回'
222
- }
223
- let http = new HttpResetClass()
224
- http.load('POST',`rs/logic/ignitionnext`,
225
- {data: data})
226
- .then(() => {
227
- this.reset()
228
- })
229
- },
230
-
231
- //数据校验
232
- verification() {
233
-
234
- },
235
- reset() {
236
- this.$dispatch('close')
237
- this.$dispatch('selfsearch')
238
- },
239
- setselect() {
240
- this.selectdata.f_gas_type = this.selectdata.f_gas_type ? this.selectdata.f_gas_type : this.model.f_gas_type
241
- this.selectdata.f_survey_name = this.selectdata.f_survey_name ? this.selectdata.f_survey_name : this.model.f_survey_name
242
- this.model = Object.assign({}, this.model, this.selectdata)
243
- this.model.f_survey_date = this.$login.toStandardDateString()
244
- this.model.f_survey_department = this.$login.f.f_parentname
245
- this.model.f_survey_operator = this.$login.f.name
246
- }
247
- },
248
- watch: {
249
- 'model.f_ismaterial_complete'(val){
250
-
251
- if(val === true){
252
- this.buttonName = '提交'
253
- }else{
254
- this.buttonName = '申请材料'
255
- }
256
- }
257
- }
258
- }
259
- </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_complete" :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="edit ? false : 'readonly'">
24
+ </textarea>
25
+ </div>
26
+ </div>
27
+ <div class="form-group col-sm-11" v-if="showreason">
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" readonly>
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="confirm()" class="btn btn-primary" style="width:80px; margin-left:40px;">
39
+ 保存
40
+ </button>
41
+ <button type="button" @click="commit()" class="btn btn-primary" style="width:80px; margin-left:40px;">
42
+ {{buttonName}}
43
+ </button>
44
+ <button type="button" @click="reset()" class="btn btn-warning" style="width:80px; margin-left:40px;">
45
+ 取消
46
+ </button>
47
+ <button type="button" @click="back()" class="btn btn-warning" style="width:80px; margin-left:50px;">
48
+ 退回
49
+ </button>
50
+ </center>
51
+ </div>
52
+ </div>
53
+ </template>
54
+ <script>
55
+ import co from 'co'
56
+ import {HttpResetClass} from 'vue-client'
57
+ import * as Util from '../../../../Util'
58
+ let gen = function* (self, val) {
59
+ val.f_survey_name = self.employeetemplate
60
+ val.f_temp_date = Util.toStandardTimeString()
61
+ val.f_sub_state = '正常'
62
+ /*val.f_gas_type = val.f_gas_type[0] ? val.f_gas_type[0] : ''
63
+ val.f_gas_type = val.f_survey_name[0] ? val.f_survey_name[0] : ''*/
64
+ let data ={
65
+ tablename:'t_apply',
66
+ parameters:val
67
+ }
68
+ yield self.$resetpost('rs/logic/save', {data:data})
69
+ data = {
70
+ model: {
71
+ f_processid: self.selectdata.f_process_id,
72
+ },
73
+ loginUser: {
74
+ id: self.$login.f.id,
75
+ name: self.$login.f.name,
76
+ ename: self.$login.f.ename
77
+ },
78
+ employeetemplate: self.employeetemplate,// 指派勘察人员
79
+ subdep: self.buttonName
80
+ }
81
+ console.log(">>>>>>>>>>>>11>>>>>>>>>>",data.model.f_processid)
82
+ self.$resetpost(`rs/logic/grantnext`,
83
+ {data: data})
84
+ .then(() => {
85
+ self.reset()
86
+ })
87
+ }
88
+ export default {
89
+ title: '材料计划',
90
+ data() {
91
+ return {
92
+ employees: [], // 部门人员数组
93
+ employeetemplate: '', // 选定部门人员
94
+ model: {
95
+ },
96
+ buttonName:'',
97
+ showsub:false,
98
+ showreason:false
99
+ }
100
+ },
101
+ props: ['selectdata','edit'],
102
+ ready() {
103
+
104
+ this.model = Object.assign({}, this.model, this.selectdata)
105
+ if( this.selectdata.f_sub_state == '申请打回'){
106
+ this.showreason = true
107
+ }
108
+ },
109
+ methods: {
110
+ // 退回则默认值为已存储的人
111
+ toemployees() {
112
+ if (this.temploader == '技术组长' && this.model.f_survey_name) {
113
+ this.employeetemplate = this.model.f_survey_name
114
+ }
115
+ },
116
+ // 获取部门领导角色
117
+ async loademployees() {
118
+ let http = new HttpResetClass()
119
+ if (this.selectdata.actdefid != '1') {
120
+ await http.load('POST','rs/sql/singleTable', {
121
+ data: {
122
+ tablename: 't_actorperson',
123
+ condition: " userseq='" + this.$login.f.id + "' order by id desc"
124
+ }
125
+ }, {resolveMsg: null, rejectMsg: "角色人员是(登陆人)信息查询失败"}, {silent: true})
126
+ .then((res) => {
127
+ console.log("取得部门领导的角色" + res.data[0].actorid)
128
+ 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("组长"))) {
129
+ let loaderstr = res.data[0].actorid.substring(2, res.data[0].actorid.length - 1)
130
+ this.temploader = loaderstr
131
+ // 如果是退回的就用已经保存的人员,保证下发的是同一个人
132
+ this.toemployees()
133
+ let loademployeestr = null
134
+ if (loaderstr.includes("部门")) {
135
+ loademployeestr = 'R(' + loaderstr.split("部门")[0] + '部门人员)'
136
+ } else if (loaderstr.includes("部")) {
137
+ loademployeestr = 'R(' + loaderstr.split("部")[0] + '部人员)'
138
+ } else if (loaderstr.includes("组长")) {
139
+ loademployeestr = 'R(' + loaderstr.split("组长")[0] + '人员)'
140
+ }
141
+ console.log(loademployeestr)
142
+ let http2 = new HttpResetClass()
143
+ http2.load('POST','rs/sql/singleTable', {
144
+ data: {
145
+ tablename: 't_role',
146
+ condition: " name='" + loademployeestr.substring(2, loademployeestr.length - 1) + "'"
147
+ // condition: " name='" + loaderstr.split("部")[0] + '部人员' + "'"
148
+ }
149
+ }, {resolveMsg: null, rejectMsg: "角色人员(部门人员)id信息查询失败"}, {silent: true}).then((res) => {
150
+ console.log("取得角色人员(部门人员)id" + JSON.stringify(res.data[0].id))
151
+ let strid = res.data[0].id
152
+ let http3 = new HttpResetClass()
153
+ http3.load('POST','rs/sql/singleTable', {
154
+ data: {
155
+ tablename: 't_user',
156
+ condition: "roles like '%" + strid + "%'"
157
+ }
158
+ }, {resolveMsg: null, rejectMsg: "角色人员(部门人员)信息查询失败"}, {silent: true}).then((res) => {
159
+ console.log("角色人员(部门人员)信息成功")
160
+ for (var i = 0; i < res.data.length; i++) {
161
+ this.employees.push({lable: res.data[i].name, value: res.data[i].name})
162
+ }
163
+ })
164
+ })
165
+ }
166
+ })
167
+ }
168
+ },
169
+ confirm() {
170
+ //判断当前节点的状态(开始活动/完工)
171
+ this.$resetpost('rs/sql/findProcessState', {data: {actid:this.selectdata.actid}}, {
172
+ resolveMsg: null,
173
+ rejectMsg: '提交错误!'
174
+ }).then((res) => {
175
+ console.log(">>>>>>>>>节点状态查询结果<<<<<<<<<<<", res)
176
+ if (res.data[0].state != '开始活动') {
177
+ this.$showMessage("该节点信息已在别处提交,请刷新!")
178
+ this.reset()
179
+ } else {
180
+ let data ={
181
+ tablename:'t_apply',
182
+ parameters:this.model
183
+ }
184
+ this.$resetpost('rs/logic/save',{data:data} )
185
+ .then(() => {
186
+ this.reset()
187
+ })
188
+ }
189
+ })
190
+
191
+ },
192
+ commit() {
193
+ //判断当前节点的状态(开始活动/完工)
194
+ this.$resetpost('rs/sql/findProcessState', {data: {actid:this.selectdata.actid}}, {
195
+ resolveMsg: null,
196
+ rejectMsg: '提交错误!'
197
+ }).then((res) => {
198
+ console.log(">>>>>>>>>节点状态查询结果<<<<<<<<<<<", res)
199
+ if (res.data[0].state != '开始活动') {
200
+ this.$showMessage("该节点信息已在别处提交,请刷新!")
201
+ this.reset()
202
+ } else {
203
+ let getGen = gen(this, this.model)
204
+ co(getGen)
205
+ }
206
+ })
207
+ },
208
+ //退回上一个流程
209
+ back() {
210
+ // this.model.f_sub_state = '退回'
211
+ this.confirm()
212
+ let data = {
213
+ model: {
214
+ f_processid: this.selectdata.f_process_id,
215
+ },
216
+ loginUser: {
217
+ id: this.$login.f.id,
218
+ name: this.$login.f.name,
219
+ ename: this.$login.f.ename
220
+ },
221
+ subdep: '退回'
222
+ }
223
+ let http = new HttpResetClass()
224
+ http.load('POST',`rs/logic/ignitionnext`,
225
+ {data: data})
226
+ .then(() => {
227
+ this.reset()
228
+ })
229
+ },
230
+
231
+ //数据校验
232
+ verification() {
233
+
234
+ },
235
+ reset() {
236
+ this.$dispatch('close')
237
+ this.$dispatch('selfsearch')
238
+ },
239
+ setselect() {
240
+ this.selectdata.f_gas_type = this.selectdata.f_gas_type ? this.selectdata.f_gas_type : this.model.f_gas_type
241
+ this.selectdata.f_survey_name = this.selectdata.f_survey_name ? this.selectdata.f_survey_name : this.model.f_survey_name
242
+ this.model = Object.assign({}, this.model, this.selectdata)
243
+ this.model.f_survey_date = this.$login.toStandardDateString()
244
+ this.model.f_survey_department = this.$login.f.f_parentname
245
+ this.model.f_survey_operator = this.$login.f.name
246
+ }
247
+ },
248
+ watch: {
249
+ 'model.f_ismaterial_complete'(val){
250
+
251
+ if(val === true){
252
+ this.buttonName = '提交'
253
+ }else{
254
+ this.buttonName = '申请材料'
255
+ }
256
+ }
257
+ }
258
+ }
259
+ </script>