apply-clients 3.0.2 → 3.0.5-2

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 (66) hide show
  1. package/dist.zip +0 -0
  2. package/index.html +1 -1
  3. package/package.json +4 -3
  4. package/src/App.vue +126 -15
  5. package/src/apply.js +18 -0
  6. package/src/bootstrap/fonts/PingFangSC-Regular.ttf +0 -0
  7. package/src/bootstrap/less/bootstrap.less +1 -2
  8. package/src/bootstrap/less/standard.less +208 -0
  9. package/src/components/Util.js +4 -0
  10. package/src/components/app_apply/FieldExploration.vue +2 -2
  11. package/src/components/app_apply/Ventilation.vue +2 -2
  12. package/src/components/image/doc.jpg +0 -0
  13. package/src/components/image/excel.jpg +0 -0
  14. package/src/components/image/pdf.jpg +0 -0
  15. package/src/components/image//345/233/276/345/261/20212.png +0 -0
  16. package/src/components/image//345/233/276/345/261/20213.png +0 -0
  17. package/src/components/image//345/233/276/345/261/20216.png +0 -0
  18. package/src/components/image//345/244/232/350/276/271/345/275/2422.png +0 -0
  19. package/src/components/image//345/244/232/350/276/271/345/275/2422/346/213/267/350/264/235.png +0 -0
  20. package/src/components/image//346/244/255/345/234/2062.png +0 -0
  21. package/src/components/image//346/244/255/345/234/2065.png +0 -0
  22. package/src/components/image//346/244/255/345/234/2065/346/213/267/350/264/235.png +0 -0
  23. package/src/components/image//346/244/255/345/234/2065/346/213/267/350/264/2352.png +0 -0
  24. package/src/components/image//346/244/255/345/234/2065/346/213/267/350/264/2353.png +0 -0
  25. package/src/components/image//347/273/2044.png +0 -0
  26. package/src/components/image//347/273/2045.png +0 -0
  27. package/src/components/image//347/273/2046.png +0 -0
  28. package/src/components/image//350/257/235/345/212/241/347/273/237/350/256/241/346/225/260/346/215/256/345/261/225/347/244/272.png +0 -0
  29. package/src/components/product/Function/InstallFunction.vue +9 -8
  30. package/src/components/product/Function/InstallInfoSelect.vue +98 -69
  31. package/src/components/product/Function/Service/FunctionServiceControl.vue +81 -3
  32. package/src/components/product/Function/functions/AddContract.vue +161 -139
  33. package/src/components/product/Function/functions/BuyerMessage.vue +522 -0
  34. package/src/components/product/Function/functions/InstallFee.vue +1117 -891
  35. package/src/components/product/MaterialBatchList.vue +109 -0
  36. package/src/components/product/MaterialBatchManage.vue +34 -0
  37. package/src/components/product/Procedures/ProceduresDataGrid.vue +1022 -0
  38. package/src/components/product/Process/ExplorationSelect.vue +208 -73
  39. package/src/components/product/Process/ExplorationUser.vue +94 -42
  40. package/src/components/product/Process/MaterialUseList.vue +159 -0
  41. package/src/components/product/Process/ModifyUserFiles.vue +15 -5
  42. package/src/components/product/Process/ProcessInfo/history_control.vue +139 -110
  43. package/src/components/product/Process/Processes/ApplyUpload.vue +279 -0
  44. package/src/components/product/Process/Processes/CustomerMaterialMessage.vue +501 -212
  45. package/src/components/product/Process/Processes/CustomerRecordMessage.vue +949 -753
  46. package/src/components/product/Process/Processes/ProjectSettlement.vue +549 -35
  47. package/src/components/product/Process/Processes/ReceiveBatch.vue +314 -168
  48. package/src/components/product/Process/Processes/Service/ApplyChangeHistory.vue +105 -0
  49. package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +44 -16
  50. package/src/components/product/Process/Processes/Service/ServiceControl.vue +2495 -1008
  51. package/src/components/product/Process/Processes/Upload.vue +532 -0
  52. package/src/components/product/Process/ShowBackReason.vue +1 -1
  53. package/src/components/product/ServiceView.vue +364 -124
  54. package/src/components/product/Statistics/ApplyStatisticsROOT.vue +27 -0
  55. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +212 -23
  56. package/src/components/product/Supervisory/SupervisoryControl.vue +79 -29
  57. package/src/components/product/Supervisory/SupervisoryList.vue +182 -41
  58. package/src/components/product/Supervisory/SupervisoryhCart.vue +4 -2
  59. package/src/components/product/VueUtils/Tree.vue +330 -0
  60. package/src/components/product/VueUtils/rightview/InstallCardList2.vue +29 -38
  61. package/src/main.js +2 -0
  62. package/src/stores/ApplyLoadParams.js +1 -1
  63. package/src/stores/PagedListLogic.js +173 -0
  64. package/.npmignore +0 -12
  65. package/node_modules.7z +0 -0
  66. package/yarn.lock +0 -9008
@@ -1,134 +1,131 @@
1
1
  <template>
2
- <div class="col-sm-12" style="height: auto">
3
- <div class="auto select-overspread">
4
- <div class="panel panel-info">
5
- <div class="panel-heading auto">
6
- <h3 class="panel-title">补充协议</h3>
2
+ <div class="col-sm-12" style="height: auto" v-if="refresh">
3
+ <div class="auto select-overspread">
4
+ <div class="panel panel-info">
5
+ <div class="panel-heading auto">
6
+ <h3 class="panel-title">补充协议</h3>
7
+ </div>
7
8
  </div>
8
9
  </div>
9
- </div>
10
- <div class="col-sm-12" style="height: auto">
11
- <span class="col-sm-1"></span>
12
- <span class="col-sm-3">总个数:{{contract_datas.length}}</span>
13
- <span class="col-sm-2"></span>
14
- <span class="col-sm-3" v-if="!$login.f.f_fengongsi.includes('彩虹')">总金额:{{sum}}元</span>
15
- <button class="col-sm-offset-2 btn btn-warning" type="button" @click="add()">补充协议</button>
16
- </div>
17
- <div class="col-sm-12" style="height: auto;border:1px solid #000;padding-top: 10px;" v-for="row in contract_datas">
18
- <div class="col-sm-12">
19
- <div class="form-group col-sm-3 form-input-group">
20
- <label class="control-label">合同编号:</label>
21
- <div class="col-sm-6">
22
- <input class="form-control" type="text" v-model="row.f_contract_number" readonly>
10
+ <div class="col-sm-12" style="height: auto">
11
+ <span class="col-sm-1"></span>
12
+ <span class="col-sm-3">总个数:{{contract_datas.length}}</span>
13
+ <span class="col-sm-2"></span>
14
+ <span class="col-sm-3" v-if="!$login.f.f_fengongsi.includes('彩虹')">总金额:{{sum}}元</span>
15
+ </div>
16
+
17
+ <table class="table table-bordered table-striped table-hover">
18
+ <tr style="background-color: #00A3F0">
19
+ <th style="border-color: #00A3F0"><font color="white">序号</font></th>
20
+ <th v-for="title in titles" style="text-align: center;border-color: #00A3F0">
21
+ <nobr><font color="white">{{title}}</font></nobr>
22
+ </th>
23
+ <th style="text-align: center;border-color: #00A3F0;padding: 0px" v-if="edit">
24
+ <button type="button" @click="add()" class="btn btn-warning">
25
+ +
26
+ </button>
27
+ </th>
28
+ </tr>
29
+ <tr v-for="(j,row) in contract_datas">
30
+ <td style="text-align: center">{{$index+1}}</td>
31
+ <td v-for="key in fields" style="text-align: center">
32
+ {{row[key]}}
33
+ </td>
34
+ <td style="text-align: center">
35
+ <!--<a href="#" @click="revise(i,j)">修改</a>-->
36
+ <!--|<a href="#" @click="deleted(i,j)">删除</a>-->
37
+ </td>
38
+ </tr>
39
+ </table>
40
+
41
+ <modal :show.sync="show" v-ref:modal backdrop="false">
42
+ <header slot="modal-header" class="modal-header">
43
+ <button type="button" class="close" @click="close"><span>&times;</span></button>
44
+ <h4 class="modal-title">新增合同</h4>
45
+ </header>
46
+ <article slot="modal-body" class="modal-body">
47
+ <div class="from-group">
48
+ <label>合同编号</label>
49
+ <input type="text" class="form-control" v-model="addcontract.f_contract_number" readonly>
23
50
  </div>
24
- </div>
25
- <div class="form-group col-sm-3 form-input-group">
26
- <label class="control-label">类型(合同/协议):</label>
27
- <div class="col-sm-6">
28
- <input class="form-control" type="text" v-model="row.f_contract_type" readonly>
51
+ <div class="from-group">
52
+ <label>签订日期</label>
53
+ <div>
54
+ <datepicker width="600.76px;"
55
+ :value.sync="addItem.f_contract_time"
56
+ :format="'yyyy-MM-dd'"
57
+ v-model="addItem.f_contract_time" readonly="readonly"
58
+ :show-reset-button="reset">
59
+ </datepicker>
60
+ </div>
29
61
  </div>
30
- </div>
31
- <div class="form-group col-sm-3 form-input-group">
32
- <label class="control-label">签订日期:</label>
33
- <div class="col-sm-6">
34
- <input class="form-control" type="text" v-model="row.f_contract_time" readonly>
62
+ <div class="from-group">
63
+ <label>合同金额(元)</label>
64
+ <input type="text" class="form-control" v-model="addItem.f_contract_money">
35
65
  </div>
36
- </div>
37
- </div>
38
- <div class="col-sm-12">
39
- <div class="form-group col-sm-3 form-input-group">
40
- <label class="control-label">合同金额(元):</label>
41
- <div class="col-sm-6">
42
- <input class="form-control" type="text" v-model="row.f_contract_money" readonly>
66
+ <!--<div class="form-group">-->
67
+ <!--<label class="control-label">金额大写:</label>-->
68
+ <!--<input class="form-control" type="text" v-model="getCapital" readonly>-->
69
+ <!--</div>-->
70
+
71
+ <div class="from-group">
72
+ <label>付款方式</label>
73
+ <v-select :options="jiaofei"
74
+ v-model="addItem.f_pay_type" :value.sync="addItem.f_pay_type" close-on-select>
75
+ </v-select>
43
76
  </div>
44
- </div>
45
- <div class="form-group col-sm-3 form-input-group">
46
- <label class="control-label">金额大写:</label>
47
- <div class="col-sm-6">
48
- <input class="form-control" type="text" v-model="row.f_capital" readonly>
77
+ <div class="from-group">
78
+ <label>备注</label>
79
+ <textarea class="form-control" v-model="addItem.t_remarks" rows="3"></textarea>
49
80
  </div>
50
- </div>
51
- <div class="form-group col-sm-3 form-input-group">
52
- <label class="control-label">合同性质:</label>
53
- <div class="col-sm-6">
54
- <input class="form-control" type="text" v-model="row.f_contract_nature" readonly>
55
- </div>
56
- </div>
57
- </div>
58
- <div class="form-group col-sm-12 form-input-group">
59
- <label class="control-label">缴费类型:</label>
60
- <div class="col-sm-5">
61
- <textarea class="form-control" v-model="row.f_pay_type" rows="3" readonly></textarea>
62
- </div>
63
- </div>
64
- <div class="form-group col-sm-12 form-input-group">
65
- <label class="control-label">备注:</label>
66
- <div class="col-sm-5">
67
- <textarea class="form-control" v-model="row.t_remarks" rows="2" readonly></textarea>
68
- </div>
69
- </div>
81
+ </article>
82
+ <footer slot="modal-footer" class="modal-footer">
83
+ <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
84
+ <button v-show="show" type="button" class="btn btn-success" @click='confirm'>确认</button>
85
+ </footer>
86
+ </modal>
70
87
  </div>
71
- <modal :show.sync="show" v-ref:modal backdrop="false">
72
- <header slot="modal-header" class="modal-header">
73
- <button type="button" class="close" @click="close"><span>&times;</span></button>
74
- <h4 class="modal-title">新增合同</h4>
75
- </header>
76
- <article slot="modal-body" class="modal-body">
77
- <div class="from-group">
78
- <label>合同编号</label>
79
- <input type="text" class="form-control" v-model="addcontract.f_contract_number" readonly>
80
- </div>
81
- <div class="from-group">
82
- <label>签订日期</label>
83
- <div>
84
- <datepicker width="600.76px;"
85
- :value.sync="addItem.f_contract_time"
86
- :format="'yyyy-MM-dd'"
87
- v-model="addItem.f_contract_time" readonly="readonly"
88
- :show-reset-button="reset">
89
- </datepicker>
90
- </div>
91
- </div>
92
- <div class="from-group">
93
- <label>合同金额(元)</label>
94
- <input type="text" class="form-control" v-model="addItem.f_contract_money">
95
- </div>
96
- <div class="form-group">
97
- <label class="control-label">金额大写:</label>
98
- <input class="form-control" type="text" v-model="getCapital" readonly>
99
- </div>
100
-
101
- <div class="from-group">
102
- <label>缴费类型</label>
103
- <v-select :options="jiaofei"
104
- v-model="addItem.f_pay_type" :value.sync="addItem.f_pay_type" close-on-select>
105
- </v-select>
106
- </div>
107
- <div class="from-group">
108
- <label>备注</label>
109
- <textarea class="form-control" v-model="addItem.t_remarks" rows="3"></textarea>
110
- </div>
111
- </article>
112
- <footer slot="modal-footer" class="modal-footer">
113
- <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
114
- <button v-show="show" type="button" class="btn btn-success" @click='confirm'>确认</button>
115
- </footer>
116
- </modal>
117
- </div>
118
88
  </template>
119
89
 
120
90
  <script>
121
91
  import {HttpResetClass} from 'vue-client'
122
92
 
93
+ // Date格式化
94
+ Date.prototype.Format = function (fmt) {
95
+ var o = {
96
+ "M+": this.getMonth() + 1, //月份
97
+ "d+": this.getDate(), //日
98
+ "H+": this.getHours(), //小时
99
+ "m+": this.getMinutes(), //分
100
+ "s+": this.getSeconds(), //秒
101
+ "q+": Math.floor((this.getMonth() + 3) / 3), //季度
102
+ "S": this.getMilliseconds() //毫秒
103
+ };
104
+ if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
105
+ for (var k in o)
106
+ if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
107
+ return fmt;
108
+ }
123
109
  export default {
124
110
 
125
111
  title: "追加合同",
126
- props: ['addcontract'],
112
+ props: {
113
+ addcontract:{},
114
+ edit:{
115
+ default:true
116
+ }
117
+ },
127
118
  data() {
128
119
  return {
120
+ model:{
121
+ rows:[]
122
+ },
123
+ titles:['合同编号','签订日期','合同金额','付款方式','合同价格类型','合同类型','提交人','备注'],
124
+ fields:['f_contract_number','f_contract_time','f_contract_money','f_pay_type','f_contract_nature','f_contract_type','f_operator','f_remarks'],
129
125
  contract_datas: [], // 合同信息数组
126
+ refresh: true,
130
127
  show: false, // 新增合同模态框控制
131
- addItem: null, // 模态框零时对象
128
+ addItem: {}, // 模态框零时对象
132
129
  }
133
130
  },
134
131
  ready() {
@@ -140,9 +137,19 @@
140
137
  // t_remarks: 5
141
138
  // }, //测试数据
142
139
  // {f_contract_number: 1, f_contract_money: 9, f_contract_time: 2, f_pay_type: 3, t_remarks: 5}
140
+ this.addItem.f_contract_time = new Date().Format('yyyy-MM-dd')
143
141
  this.load();
144
142
  },
145
143
  methods: {
144
+ // 新增按钮触发事件
145
+ add() {
146
+ if (this.contract_datas) {
147
+ this.addItem.f_contract_time = new Date().Format('yyyy-MM-dd')
148
+ this.show = true
149
+ } else {
150
+ this.$showMessage("请先在主流程中签订合同")
151
+ }
152
+ },
146
153
  // 小写转换大写
147
154
  smalltoBIG(n) {
148
155
  let fraction = ['角', '分'];
@@ -168,6 +175,9 @@
168
175
  s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s;
169
176
  }
170
177
  return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
178
+ },
179
+ events:{
180
+
171
181
  },
172
182
  // 获取数据库数据
173
183
  async load() {
@@ -178,31 +188,32 @@
178
188
  }
179
189
  let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: '获取合同表失败'})
180
190
  this.contract_datas = []
181
- res.data.forEach((item,index)=>{
182
- if(item.f_contract_nature.includes("\"")){
191
+ res.data.forEach((item, index) => {
192
+ if (item.f_contract_nature&&typeof item.f_contract_nature =='string' &&item.f_contract_nature.includes("\"")) {
183
193
  item.f_contract_nature = item.f_contract_nature.split("\"")[1]
184
194
  }
185
- if(item.f_pay_type.includes("\"")){
195
+ if (item.f_pay_type&& typeof item.f_pay_type == 'string' &&item.f_pay_type.includes("\"")) {
186
196
  item.f_pay_type = item.f_pay_type.split("\"")[1]
187
197
  }
188
198
  })
189
199
  this.contract_datas = res.data
190
200
  },
191
201
  // 新增按钮触发事件
192
- add() {
193
- if(this.contract_datas){
194
- this.show = true
195
- }else{
196
- this.$showMessage("请先在主流程中签订合同")
197
- }
198
- },
202
+ // add() {
203
+ // if (this.contract_datas) {
204
+ // this.addItem.f_contract_time = new Date().Format('yyyy-MM-dd')
205
+ // this.show = true
206
+ // } else {
207
+ // this.$showMessage("请先在主流程中签订合同")
208
+ // }
209
+ // },
199
210
  // 模态框确定按钮触发
200
211
  async confirm() {
201
- if(this.addItem.f_contract_money){
212
+ if (this.addItem.f_contract_money) {
202
213
  let http = new HttpResetClass();
203
214
  this.addItem.f_contract_nature = this.addcontract.f_contract_nature
204
215
  this.addItem.f_contract_number = this.addcontract.f_contract_number
205
- this.addItem.processid = this.addcontract.f_process_id
216
+ this.addItem.f_process_id = this.addcontract.f_process_id
206
217
  this.addItem.f_contract_type = '补充协议'
207
218
  this.addItem.applyid = this.addcontract.f_apply_num
208
219
  this.addItem.f_operator = this.$login.f.name
@@ -211,20 +222,30 @@
211
222
  this.contract_datas.push(this.addItem)
212
223
 
213
224
  this.applyparam = {
214
- id:this.addcontract.id,
215
- f_contract_money : Number(this.addcontract.f_contract_money)+Number(this.addItem.f_contract_money),
216
- f_budget_money : Number(this.addcontract.f_budget_money)+Number(this.addItem.f_contract_money),
217
- f_unaccounts_money : Number(this.addcontract.f_unaccounts_money)+Number(this.addItem.f_contract_money),
218
- f_residual_invoicing : Number(this.addcontract.f_residual_invoicing)+Number(this.addItem.f_contract_money),
219
- f_additional_payment: Number(this.addcontract.f_additional_payment)+Number(this.addItem.f_contract_money)
225
+ id: this.addcontract.id,
226
+ f_contract_money: Number(this.addcontract.f_contract_money) + Number(this.addItem.f_contract_money),
227
+ f_budget_money: Number(this.addcontract.f_budget_money) + Number(this.addItem.f_contract_money),
228
+ f_unaccounts_money: Number(this.addcontract.f_unaccounts_money) + Number(this.addItem.f_contract_money),
229
+ f_residual_invoicing: Number(this.addcontract.f_residual_invoicing) + Number(this.addItem.f_contract_money),
230
+ f_additional_payment: Number(this.addcontract.f_additional_payment) + Number(this.addItem.f_contract_money)
220
231
  }
221
- await http.load('POST', 'rs/logic/saveentity', {data:{tablename:'t_contract',parameters:this.addItem}}, {resolveMsg: null, rejectMsg: "添加失败"})
232
+ await http.load('POST', 'rs/logic/saveentity', {
233
+ data: {
234
+ tablename: 't_contract',
235
+ parameters: this.addItem
236
+ }
237
+ }, {resolveMsg: null, rejectMsg: "添加失败"})
222
238
  .then((res) => {
223
- this.$resetpost('rs/logic/saveentity',{data:{tablename:'t_apply',parameters:this.applyparam}}).then((res) => {
224
- this.close()
239
+ this.$resetpost('rs/logic/saveentity', {
240
+ data: {
241
+ tablename: 't_apply',
242
+ parameters: this.applyparam
243
+ }
244
+ }).then((res) => {
245
+ this.close()
225
246
  })
226
247
  })
227
- }{
248
+ }else{
228
249
  this.$showMessage("请输入金额")
229
250
  }
230
251
 
@@ -233,19 +254,20 @@
233
254
  // 模态框关闭按钮触发
234
255
  close() {
235
256
  this.show = false
236
- this.addItem = null
257
+ this.addItem = {}
258
+ this.addItem.f_contract_time = new Date().Format('yyyy-MM-dd')
237
259
  }
238
260
 
239
261
  },
240
262
  watch: {
241
- 'selectdata.f_process_id'() {
242
- this.load()
243
- }
263
+ 'addcontract.f_process_id'() {
264
+ this.load()
265
+ }
244
266
  },
245
267
  computed: {
246
268
  // 计算大写
247
269
  getCapital() {
248
- if (this.addItem.f_contract_money) {
270
+ if (this.addItem.f_contract_money) {合同价格类型
249
271
  this.addItem.f_capital = this.smalltoBIG(Number(this.addItem.f_contract_money))
250
272
  }
251
273
  return this.addItem.f_capital
@@ -259,8 +281,8 @@
259
281
  return num
260
282
  },
261
283
  jiaofei() {
262
- return this.$appdata.getParam('缴费类型')
263
- // return [{label: '全部', value: ''}, ...AppData.getParam('缴费类型')]
284
+ return this.$appdata.getParam('付款方式')
285
+ // return [{label: '全部', value: ''}, ...AppData.getParam('付款方式')]
264
286
  }
265
287
  }
266
288
  }