apply-clients 4.1.63-weinan → 4.1.64-weinan

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 (31) hide show
  1. package/index.html +30 -30
  2. package/package.json +1 -1
  3. package/src/apply.js +81 -81
  4. package/src/applyAndroid.js +52 -52
  5. package/src/components/app_apply/AppChargeManagement.vue +753 -749
  6. package/src/components/app_apply/AppInstallationDetails.vue +529 -529
  7. package/src/components/app_apply/AppProcessSupervisory.vue +214 -214
  8. package/src/components/app_apply/AppSupervisoryCart.vue +68 -68
  9. package/src/components/app_apply/AppTakePic.vue +146 -146
  10. package/src/components/app_apply/AppdevicesDetails.vue +867 -867
  11. package/src/components/app_apply/ApplyInfo.vue +56 -56
  12. package/src/components/app_apply/ApplyToDoList.vue +292 -292
  13. package/src/components/app_apply/PlaceControler.vue +274 -274
  14. package/src/components/app_apply/ServiceControl.vue +440 -440
  15. package/src/components/app_apply/ServiceView.vue +394 -394
  16. package/src/components/app_apply/materialshoufei.vue +248 -248
  17. package/src/components/product/ApplyCharge/ApplyChargeList.vue +252 -252
  18. package/src/components/product/Process/ExplorationSelect.vue +377 -377
  19. package/src/components/product/Process/ExplorationUser.vue +134 -134
  20. package/src/components/product/Process/Processes/InstallationDetails.vue +515 -515
  21. package/src/components/product/Process/Processes/chargeManagement.vue +545 -545
  22. package/src/components/product/Process/Processes/devicesDetails.vue +843 -843
  23. package/src/components/product/Process/Processes/materialshoufei.vue +187 -187
  24. package/src/components/product/Process/Service/ServiceControl.vue +1490 -1490
  25. package/src/components/product/Stop/StopApply.vue +101 -101
  26. package/src/components/product/Stop/StopApplyList.vue +266 -266
  27. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +200 -200
  28. package/src/components/product/Supervisory/SupervisoryControl.vue +124 -124
  29. package/src/components/product/Supervisory/SupervisoryList.vue +221 -221
  30. package/src/components/product/VueUtils/ApplyUpload.vue +276 -276
  31. package/src/main.js +25 -25
@@ -1,187 +1,187 @@
1
- <template>
2
- <div class="col-sm-12" style="margin: 20px 0px;">
3
- <data-grid :model="model" v-ref:grid class="list_area table_sy" style="padding: 0px">
4
- <template partial='head'>
5
- <tr>
6
- <th>序号</th>
7
- <th>材料名称</th>
8
- <th>单价(元)</th>
9
- <th>数量</th>
10
- <th>金额</th>
11
- <th>备注</th>
12
- <th v-if="$parent.$parent.mark === 0">
13
- <button type="button" class="btn btn-info head-but" @click="$parent.$parent.addshoufei()" >新增收费
14
- </button>
15
- </th>
16
- </tr>
17
- </template>
18
- <template partial='body'>
19
- <td style="text-align: center">{{ $index + 1}}</td>
20
- <td style="text-align: center">{{ row.f_material_name}}</td>
21
- <td style="text-align: center">{{ row.f_material_price}}</td>
22
- <td style="text-align: center">{{ row.f_material_number}}</td>
23
- <td style="text-align: center">{{ row.f_fee}}</td>
24
- <td style="text-align: center">{{ row.f_remarks}}</td>
25
- <td class="flex-around" v-if="$parent.$parent.mark === 0">
26
- <button type="button" name="button" class="btn btn-link"
27
- @click.stop="$parent.$parent.modifyParam(row)">修改
28
- </button>
29
- <button type="button" name="button" class="btn btn-link"
30
- @click.stop="$parent.$parent.deleteItem(row)">删除
31
- </button>
32
- </td>
33
- </template>
34
- </data-grid>
35
- <span>合计:{{ f_cost_sum }}元</span>
36
- </div>
37
-
38
- <modal :show.sync="showpay" v-ref:modal backdrop="false">
39
- <header slot="modal-header" class="modal-header">
40
- <button type="button" class="close" @click="close"><span>&times;</span></button>
41
- <h4 class="modal-title">新增材料收费</h4>
42
- </header>
43
- <article slot="modal-body" class="modal-body">
44
- <div class="from-group">
45
- <label>材料名称</label>
46
- <input type="text" class="form-control" v-model="addItem.f_material_name">
47
- </div>
48
- <div class="from-group">
49
- <label>单价(元)</label>
50
- <input type="number" class="form-control" v-model="addItem.f_material_price">
51
- </div>
52
- <div class="from-group">
53
- <label style="color: red">数量</label>
54
- <input type="number" class="form-control" v-model="addItem.f_material_number">
55
- </div>
56
- <div class="from-group">
57
- <label>金额</label>
58
- <input type="number" class="form-control" v-model="addItem.f_fee" :value="smalltoBIG()" readonly>
59
- </div>
60
- <div class="from-group">
61
- <label>备注</label>
62
- <textarea type="text" rows="2" class="form-control" v-model="addItem.f_remarks"></textarea>
63
- </div>
64
- </article>
65
- <footer slot="modal-footer" class="modal-footer">
66
- <button v-show="showpay" type="button" class="btn btn-default" @click='close'>取消</button>
67
- <button v-show="showpay" type="button" class="btn btn-success" @click='addpaydipetail'>确认</button>
68
- </footer>
69
- </modal>
70
- </template>
71
-
72
- <script>
73
- import {HttpResetClass} from 'vue-client'
74
- import $ from 'jquery'
75
-
76
- export default {
77
- title: '材料收费',
78
- data() {
79
- return {
80
- showpay: false, // 新增材料收费开关
81
- model: {
82
- rows: [] // 材料收费数据数组
83
- },
84
- addItem: {},
85
- f_cost_sum: 0,
86
- }
87
- },
88
- props: {
89
- selectdata: {
90
- type: Object
91
- },
92
- mark: {
93
- type: Number,
94
- default: 0
95
- }
96
- },
97
- ready() {
98
- this.load()
99
- },
100
- methods: {
101
- async load() {
102
- let http = new HttpResetClass()
103
- let data = {
104
- tablename: 't_material_charges',
105
- condition: `f_process_id = '${this.selectdata.f_process_id}'`
106
- }
107
- let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: '获取数据失败'})
108
- .then((res) => {
109
- this.model.rows = res.data
110
- this.f_cost_sum = 0
111
- for (var i = 0; i < this.model.rows.length; i++) {
112
- this.f_cost_sum += Number(this.model.rows[i].f_fee)
113
- }
114
- })
115
- },
116
- // 关闭模态框
117
- close() {
118
- this.showpay = false
119
- this.addItem = null
120
- },
121
- // 模态框确定按钮保存数据
122
- async addpaydipetail() {
123
- if( this.addItem.f_material_number==''|| Number(this.addItem.f_material_number)<0){
124
- //提示数量不能为空
125
- this.$showMessage('请输入数量必须大于0', 'warning')
126
- return
127
- }
128
- let http = new HttpResetClass()
129
- this.addItem.f_process_id = this.selectdata.f_process_id
130
- this.addItem.f_apply_num = this.selectdata.f_apply_num
131
- this.addItem.f_operator = this.$login.f.name
132
- this.addItem.f_department = this.$login.f.f_parentname
133
- this.addItem.f_filiale = this.$login.f.f_fengongsi
134
- await http.load('POST', 'rs/logic/addmaterialshoufei', this.addItem, {resolveMsg: '保存成功', rejectMsg: '保存失败'})
135
- .then((res) => {
136
- this.close()
137
- this.load()
138
- })
139
- },
140
- deleteItem(row) {
141
- let http = new HttpResetClass()
142
- http.load('POST', 'rs/logic/delectmaterialshoufei', {data: row}, {resolveMsg: null, rejectMsg: '删除失败'})
143
- .then((res) => {
144
- this.load()
145
- })
146
- },
147
- //新增收费 开启模态框
148
- addshoufei() {
149
- this.showpay = true
150
- },
151
- modifyParam(row) {
152
- this.addItem = row
153
- this.showpay = true
154
- },
155
- // 金额计算
156
- smalltoBIG() {
157
- let num = Number(this.addItem.f_material_price) * Number(this.addItem.f_material_number)
158
- return num
159
- }
160
- },
161
- watch: {}
162
- }
163
-
164
- </script>
165
-
166
-
167
- <style scoped>
168
- table {
169
- border-collapse: collapse;
170
- border-spacing: 0;
171
- width: 100%;
172
- }
173
-
174
- table, td, th {
175
- padding: 0;
176
- border: 1px solid black
177
- }
178
-
179
- tr {
180
- height: 34px;
181
- }
182
-
183
- #DynamicForm input {
184
- text-align: center;
185
- }
186
-
187
- </style>
1
+ <template>
2
+ <div class="col-sm-12" style="margin: 20px 0px;">
3
+ <data-grid :model="model" v-ref:grid class="list_area table_sy" style="padding: 0px">
4
+ <template partial='head'>
5
+ <tr>
6
+ <th>序号</th>
7
+ <th>材料名称</th>
8
+ <th>单价(元)</th>
9
+ <th>数量</th>
10
+ <th>金额</th>
11
+ <th>备注</th>
12
+ <th v-if="$parent.$parent.mark === 0">
13
+ <button type="button" class="btn btn-info head-but" @click="$parent.$parent.addshoufei()" >新增收费
14
+ </button>
15
+ </th>
16
+ </tr>
17
+ </template>
18
+ <template partial='body'>
19
+ <td style="text-align: center">{{ $index + 1}}</td>
20
+ <td style="text-align: center">{{ row.f_material_name}}</td>
21
+ <td style="text-align: center">{{ row.f_material_price}}</td>
22
+ <td style="text-align: center">{{ row.f_material_number}}</td>
23
+ <td style="text-align: center">{{ row.f_fee}}</td>
24
+ <td style="text-align: center">{{ row.f_remarks}}</td>
25
+ <td class="flex-around" v-if="$parent.$parent.mark === 0">
26
+ <button type="button" name="button" class="btn btn-link"
27
+ @click.stop="$parent.$parent.modifyParam(row)">修改
28
+ </button>
29
+ <button type="button" name="button" class="btn btn-link"
30
+ @click.stop="$parent.$parent.deleteItem(row)">删除
31
+ </button>
32
+ </td>
33
+ </template>
34
+ </data-grid>
35
+ <span>合计:{{ f_cost_sum }}元</span>
36
+ </div>
37
+
38
+ <modal :show.sync="showpay" v-ref:modal backdrop="false">
39
+ <header slot="modal-header" class="modal-header">
40
+ <button type="button" class="close" @click="close"><span>&times;</span></button>
41
+ <h4 class="modal-title">新增材料收费</h4>
42
+ </header>
43
+ <article slot="modal-body" class="modal-body">
44
+ <div class="from-group">
45
+ <label>材料名称</label>
46
+ <input type="text" class="form-control" v-model="addItem.f_material_name">
47
+ </div>
48
+ <div class="from-group">
49
+ <label>单价(元)</label>
50
+ <input type="number" class="form-control" v-model="addItem.f_material_price">
51
+ </div>
52
+ <div class="from-group">
53
+ <label style="color: red">数量</label>
54
+ <input type="number" class="form-control" v-model="addItem.f_material_number">
55
+ </div>
56
+ <div class="from-group">
57
+ <label>金额</label>
58
+ <input type="number" class="form-control" v-model="addItem.f_fee" :value="smalltoBIG()" readonly>
59
+ </div>
60
+ <div class="from-group">
61
+ <label>备注</label>
62
+ <textarea type="text" rows="2" class="form-control" v-model="addItem.f_remarks"></textarea>
63
+ </div>
64
+ </article>
65
+ <footer slot="modal-footer" class="modal-footer">
66
+ <button v-show="showpay" type="button" class="btn btn-default" @click='close'>取消</button>
67
+ <button v-show="showpay" type="button" class="btn btn-success" @click='addpaydipetail'>确认</button>
68
+ </footer>
69
+ </modal>
70
+ </template>
71
+
72
+ <script>
73
+ import {HttpResetClass} from 'vue-client'
74
+ import $ from 'jquery'
75
+
76
+ export default {
77
+ title: '材料收费',
78
+ data() {
79
+ return {
80
+ showpay: false, // 新增材料收费开关
81
+ model: {
82
+ rows: [] // 材料收费数据数组
83
+ },
84
+ addItem: {},
85
+ f_cost_sum: 0,
86
+ }
87
+ },
88
+ props: {
89
+ selectdata: {
90
+ type: Object
91
+ },
92
+ mark: {
93
+ type: Number,
94
+ default: 0
95
+ }
96
+ },
97
+ ready() {
98
+ this.load()
99
+ },
100
+ methods: {
101
+ async load() {
102
+ let http = new HttpResetClass()
103
+ let data = {
104
+ tablename: 't_material_charges',
105
+ condition: `f_process_id = '${this.selectdata.f_process_id}'`
106
+ }
107
+ let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: '获取数据失败'})
108
+ .then((res) => {
109
+ this.model.rows = res.data
110
+ this.f_cost_sum = 0
111
+ for (var i = 0; i < this.model.rows.length; i++) {
112
+ this.f_cost_sum += Number(this.model.rows[i].f_fee)
113
+ }
114
+ })
115
+ },
116
+ // 关闭模态框
117
+ close() {
118
+ this.showpay = false
119
+ this.addItem = null
120
+ },
121
+ // 模态框确定按钮保存数据
122
+ async addpaydipetail() {
123
+ if( this.addItem.f_material_number==''|| Number(this.addItem.f_material_number)<0){
124
+ //提示数量不能为空
125
+ this.$showMessage('请输入数量必须大于0', 'warning')
126
+ return
127
+ }
128
+ let http = new HttpResetClass()
129
+ this.addItem.f_process_id = this.selectdata.f_process_id
130
+ this.addItem.f_apply_num = this.selectdata.f_apply_num
131
+ this.addItem.f_operator = this.$login.f.name
132
+ this.addItem.f_department = this.$login.f.f_parentname
133
+ this.addItem.f_filiale = this.$login.f.f_fengongsi
134
+ await http.load('POST', 'rs/logic/addmaterialshoufei', this.addItem, {resolveMsg: '保存成功', rejectMsg: '保存失败'})
135
+ .then((res) => {
136
+ this.close()
137
+ this.load()
138
+ })
139
+ },
140
+ deleteItem(row) {
141
+ let http = new HttpResetClass()
142
+ http.load('POST', 'rs/logic/delectmaterialshoufei', {data: row}, {resolveMsg: null, rejectMsg: '删除失败'})
143
+ .then((res) => {
144
+ this.load()
145
+ })
146
+ },
147
+ //新增收费 开启模态框
148
+ addshoufei() {
149
+ this.showpay = true
150
+ },
151
+ modifyParam(row) {
152
+ this.addItem = row
153
+ this.showpay = true
154
+ },
155
+ // 金额计算
156
+ smalltoBIG() {
157
+ let num = Number(this.addItem.f_material_price) * Number(this.addItem.f_material_number)
158
+ return num
159
+ }
160
+ },
161
+ watch: {}
162
+ }
163
+
164
+ </script>
165
+
166
+
167
+ <style scoped>
168
+ table {
169
+ border-collapse: collapse;
170
+ border-spacing: 0;
171
+ width: 100%;
172
+ }
173
+
174
+ table, td, th {
175
+ padding: 0;
176
+ border: 1px solid black
177
+ }
178
+
179
+ tr {
180
+ height: 34px;
181
+ }
182
+
183
+ #DynamicForm input {
184
+ text-align: center;
185
+ }
186
+
187
+ </style>