apply-clients 3.0.4 → 3.0.5-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 (64) hide show
  1. package/index.html +1 -1
  2. package/package.json +4 -3
  3. package/src/App.vue +126 -15
  4. package/src/apply.js +152 -134
  5. package/src/bootstrap/fonts/PingFangSC-Regular.ttf +0 -0
  6. package/src/bootstrap/less/bootstrap.less +1 -2
  7. package/src/bootstrap/less/standard.less +208 -0
  8. package/src/components/Util.js +4 -0
  9. package/src/components/app_apply/FieldExploration.vue +2 -2
  10. package/src/components/app_apply/Ventilation.vue +2 -2
  11. package/src/components/image/doc.jpg +0 -0
  12. package/src/components/image/excel.jpg +0 -0
  13. package/src/components/image/pdf.jpg +0 -0
  14. package/src/components/image//345/233/276/345/261/20212.png +0 -0
  15. package/src/components/image//345/233/276/345/261/20213.png +0 -0
  16. package/src/components/image//345/233/276/345/261/20216.png +0 -0
  17. package/src/components/image//345/244/232/350/276/271/345/275/2422.png +0 -0
  18. package/src/components/image//345/244/232/350/276/271/345/275/2422/346/213/267/350/264/235.png +0 -0
  19. package/src/components/image//346/244/255/345/234/2062.png +0 -0
  20. package/src/components/image//346/244/255/345/234/2065.png +0 -0
  21. package/src/components/image//346/244/255/345/234/2065/346/213/267/350/264/235.png +0 -0
  22. package/src/components/image//346/244/255/345/234/2065/346/213/267/350/264/2352.png +0 -0
  23. package/src/components/image//346/244/255/345/234/2065/346/213/267/350/264/2353.png +0 -0
  24. package/src/components/image//347/273/2044.png +0 -0
  25. package/src/components/image//347/273/2045.png +0 -0
  26. package/src/components/image//347/273/2046.png +0 -0
  27. 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
  28. package/src/components/product/Function/InstallFunction.vue +9 -5
  29. package/src/components/product/Function/InstallInfoSelect.vue +98 -69
  30. package/src/components/product/Function/Service/FunctionServiceControl.vue +47 -4
  31. package/src/components/product/Function/functions/AddContract.vue +161 -139
  32. package/src/components/product/Function/functions/BuyerMessage.vue +285 -137
  33. package/src/components/product/Function/functions/InstallFee.vue +1117 -912
  34. package/src/components/product/MaterialBatchList.vue +109 -0
  35. package/src/components/product/MaterialBatchManage.vue +34 -0
  36. package/src/components/product/Procedures/ProceduresDataGrid.vue +1022 -0
  37. package/src/components/product/Process/ExplorationSelect.vue +213 -73
  38. package/src/components/product/Process/ExplorationUser.vue +94 -39
  39. package/src/components/product/Process/MaterialUseList.vue +159 -0
  40. package/src/components/product/Process/ModifyUserFiles.vue +15 -5
  41. package/src/components/product/Process/ProcessInfo/history_control.vue +35 -6
  42. package/src/components/product/Process/Processes/ApplyUpload.vue +287 -0
  43. package/src/components/product/Process/Processes/CustomerCostPlan.vue +214 -0
  44. package/src/components/product/Process/Processes/CustomerMaterialMessage.vue +499 -210
  45. package/src/components/product/Process/Processes/CustomerRecordMessage.vue +949 -753
  46. package/src/components/product/Process/Processes/ProjectSettlement.vue +535 -24
  47. package/src/components/product/Process/Processes/ReceiveBatch.vue +301 -121
  48. package/src/components/product/Process/Processes/Service/ApplyChangeHistory.vue +105 -0
  49. package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +27 -14
  50. package/src/components/product/Process/Processes/Service/ServiceControl.vue +2561 -1104
  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 +825 -583
  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 -26
  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/stores/ApplyLoadParams.js +1 -1
  62. package/src/stores/PagedListLogic.js +173 -0
  63. package/.npmignore +0 -12
  64. package/yarn.lock +0 -9008
@@ -0,0 +1,214 @@
1
+ <template>
2
+ <div style="text-align: center;" v-if="refresh">
3
+ <div class="span" style="margin-top: 10px;height: auto;min-height: 200px;width: 92%">
4
+ <partial-view v-ref:single-load>
5
+ <data-grid :model="model" v-ref:grid>
6
+ <template partial='head'>
7
+ <tr>
8
+ <th>序号</th>
9
+ <th>名称</th>
10
+ <th>金额(元)</th>
11
+ <th>备注</th>
12
+ <th v-if="$parent.$parent.$parent.mark === 0">
13
+ <button type="button" name="button" class="btn btn-info" @click="$parent.$parent.$parent.add()">新增收费</button>
14
+ </th>
15
+ </tr>
16
+ </template>
17
+ <template partial='body'>
18
+ <td style="text-align: center">{{ $index + 1 }}</td>
19
+ <td style="text-align: center">{{ row.f_costplan_name }}</td>
20
+ <td style="text-align: center">{{ row.f_fee }}</td>
21
+ <td style="text-align: center">{{ row.f_remarks }}</td>
22
+ <td class="flex-around" v-if="$parent.$parent.$parent.mark === 0">
23
+ <button type="button" name="button" class="btn btn-link"
24
+ @click.stop="$parent.$parent.$parent.modifyParam(row)">修改
25
+ </button>
26
+ <button type="button" name="button" class="btn btn-link"
27
+ @click.stop="$parent.$parent.$parent.deleteItem(row)">删除
28
+ </button>
29
+ </td>
30
+ </template>
31
+ </data-grid>
32
+ </partial-view>
33
+ <span>合计:{{f_cost_sum}}元</span>
34
+ </div>
35
+ </div>
36
+ <modal :show.sync="showpay" v-ref:modal backdrop="false">
37
+ <header slot="modal-header" class="modal-header">
38
+ <button type="button" class="close" @click="close"><span>&times;</span></button>
39
+ <h4 class="modal-title">新增成本计划</h4>
40
+ </header>
41
+ <article slot="modal-body" class="modal-body">
42
+ <div class="from-group">
43
+ <label>名称</label>
44
+ <input type="text" class="form-control" v-model="addItem.f_costplan_name">
45
+ </div>
46
+ <div class="from-group">
47
+ <label>金额(元)</label>
48
+ <input type="number" class="form-control" v-model="addItem.f_fee" >
49
+ </div>
50
+ <div class="from-group">
51
+ <label>备注</label>
52
+ <textarea type="text" rows="2" class="form-control" v-model="addItem.f_remarks"></textarea>
53
+ </div>
54
+ </article>
55
+ <footer slot="modal-footer" class="modal-footer">
56
+ <button v-show="showpay" type="button" class="btn btn-default" @click='close'>取消</button>
57
+ <button v-show="showpay" type="button" class="btn btn-success" @click='addpaydipetail'>确认</button>
58
+ </footer>
59
+ </modal>
60
+ </template>
61
+
62
+ <script>
63
+ import {HttpResetClass} from 'vue-client'
64
+ import $ from 'jquery'
65
+
66
+ export default {
67
+ title: '合同签订',
68
+ data () {
69
+ return {
70
+ refresh: true,
71
+ showpay: false, // 新增成本计划开关
72
+ model: {
73
+ rows: [] // 材料成本数据数组
74
+ },
75
+ addItem:{},
76
+ f_cost_sum:0,
77
+ // costplan:['施工成本','材料成本','设计费','监理费','管理费','税金']
78
+ }
79
+ },
80
+ props: {
81
+ selectdata: {
82
+ type: Object
83
+ },
84
+ mark: {
85
+ type: Number,
86
+ default: 0
87
+ }
88
+ },
89
+ ready () {
90
+ this.load()
91
+ },
92
+ methods: {
93
+ async load () {
94
+ let http = new HttpResetClass()
95
+ let data = {
96
+ tablename: 't_cost_plan',
97
+ condition: `f_process_id = '${this.selectdata.f_process_id}'`
98
+ }
99
+ let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: '获取数据失败'})
100
+ .then((res) => {
101
+ this.model.rows = res.data
102
+ this.f_cost_sum=0
103
+ for (var i=0;i<this.model.rows.length;i++){
104
+ this.f_cost_sum += Number(this.model.rows[i].f_fee)
105
+ }
106
+ })
107
+ },
108
+ /*// 初始化成本计划
109
+ async fcostplan(){
110
+ let http = new HttpResetClass()
111
+ let data = {
112
+ tablename: 't_cost_plan',
113
+ condition: `f_process_id = '${this.selectdata.f_process_id}'`
114
+ }
115
+ let number = await http.load("post",'rs/sql/checkcostplan', {data: data},{resolveMsg: null, rejectMsg: '获取数据失败'})
116
+ if (number.data[0].num =='0'){
117
+ for (let i=0;i<this.costplan.length;i++){
118
+ this.addItem.f_costplan_name = this.costplan[i]
119
+ if (this.costplan[i]=='材料成本'){
120
+ let data1 = {
121
+ applyNum: `mb.f_apply_num='${this.selectdata.f_apply_num}'`
122
+ }
123
+ await http.load('POST', 'rs/logic/material_cost', {data: data1}, {
124
+ resolveMsg: null,
125
+ rejectMsg: 'material_cost失败'
126
+ }).then((res) => {
127
+ if (res.data[0]['']=='null'||res.data[0]['']==null){
128
+ this.addItem.f_fee = 0
129
+ }else {
130
+ this.addItem.f_fee = res.data[0]['']
131
+ }
132
+ })
133
+ }else {
134
+ this.addItem.f_fee = 0
135
+ }
136
+ this.addItem.f_process_id = this.selectdata.f_process_id
137
+ this.addItem.f_apply_num = this.selectdata.f_apply_num
138
+ this.addItem.f_operator = this.$login.f.name
139
+ this.addItem.f_department = this.$login.f.f_parentname
140
+ this.addItem.f_filiale = this.$login.f.f_fengongsi
141
+ await http.load('POST', 'rs/logic/addcostplan', this.addItem, {resolveMsg:null, rejectMsg: '保存失败'})
142
+ }
143
+ this.load()
144
+ }
145
+ },*/
146
+ // 关闭模态框
147
+ close () {
148
+ this.showpay = false
149
+ this.addItem = null
150
+ },
151
+ // 模态框确定按钮保存数据
152
+ async addpaydipetail () {
153
+ let http = new HttpResetClass()
154
+ this.addItem.f_process_id = this.selectdata.f_process_id
155
+ this.addItem.f_apply_num = this.selectdata.f_apply_num
156
+ this.addItem.f_operator = this.$login.f.name
157
+ this.addItem.f_department = this.$login.f.f_parentname
158
+ this.addItem.f_filiale = this.$login.f.f_fengongsi
159
+ await http.load('POST', 'rs/logic/addcostplan', this.addItem, {resolveMsg: '保存成功', rejectMsg: '保存失败'})
160
+ .then((res) => {
161
+ this.close()
162
+ this.load()
163
+ })
164
+ },
165
+ deleteItem (row) {
166
+ let http = new HttpResetClass()
167
+ http.load('POST','rs/logic/delectcostplan', {data: row}, {resolveMsg: null, rejectMsg: '删除失败'})
168
+ .then((res) => {
169
+ this.load()
170
+ })
171
+ },
172
+ //新增收费 开启模态框
173
+ add () {
174
+ this.showpay = true
175
+ },
176
+ modifyParam(row){
177
+ this.addItem=row
178
+ this.showpay = true
179
+ },
180
+ /*async updateapply(){
181
+ let data={
182
+ id:this.selectdata.id,
183
+ f_cost_sum:this.f_cost_sum
184
+ }
185
+ this.$resetpost('rs/entity/t_apply', data,{resolveMsg: null, rejectMsg: '提交失败'})
186
+ }*/
187
+ },
188
+ watch: {}
189
+ }
190
+
191
+ </script>
192
+
193
+
194
+ <style scoped>
195
+ table {
196
+ border-collapse: collapse;
197
+ border-spacing: 0;
198
+ width: 100%;
199
+ }
200
+
201
+ table, td, th {
202
+ padding: 0;
203
+ border: 1px solid black
204
+ }
205
+
206
+ tr {
207
+ height: 34px;
208
+ }
209
+
210
+ #DynamicForm input {
211
+ text-align: center;
212
+ }
213
+
214
+ </style>