apply-clients 3.4.64 → 3.4.66

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 (105) hide show
  1. package/build/dev-server.js +2 -2
  2. package/dist-android/static/18.js +2 -2
  3. package/dist-android/static/18.js.map +1 -1
  4. package/dist-android/static/19.js +2 -2
  5. package/dist-android/static/19.js.map +1 -1
  6. package/dist-android/static/24.js +2 -2
  7. package/dist-android/static/24.js.map +1 -1
  8. package/dist-android/static/25.js +2 -2
  9. package/dist-android/static/25.js.map +1 -1
  10. package/dist-android/static/26.js +2 -2
  11. package/dist-android/static/26.js.map +1 -1
  12. package/dist-android/static/28.js +2 -2
  13. package/dist-android/static/28.js.map +1 -1
  14. package/dist-android/static/30.js +2 -2
  15. package/dist-android/static/30.js.map +1 -1
  16. package/dist-android/static/34.js +2 -2
  17. package/dist-android/static/34.js.map +1 -1
  18. package/dist-android/static/43.js +2 -2
  19. package/dist-android/static/43.js.map +1 -1
  20. package/dist-android/static/47.js +2 -2
  21. package/dist-android/static/47.js.map +1 -1
  22. package/dist-android/static/50.js +2 -2
  23. package/dist-android/static/50.js.map +1 -1
  24. package/dist-android/static/52.js +2 -2
  25. package/dist-android/static/52.js.map +1 -1
  26. package/dist-android/static/53.js +2 -2
  27. package/dist-android/static/53.js.map +1 -1
  28. package/dist-android/static/54.js +2 -2
  29. package/dist-android/static/54.js.map +1 -1
  30. package/dist-android/static/60.js +2 -2
  31. package/dist-android/static/60.js.map +1 -1
  32. package/dist-android/static/63.js +2 -2
  33. package/dist-android/static/63.js.map +1 -1
  34. package/dist-android/static/64.js +2 -2
  35. package/dist-android/static/64.js.map +1 -1
  36. package/dist-android/static/78.js +2 -2
  37. package/dist-android/static/78.js.map +1 -1
  38. package/dist-android/static/83.js +2 -2
  39. package/dist-android/static/83.js.map +1 -1
  40. package/dist-android/static/84.js +2 -2
  41. package/dist-android/static/84.js.map +1 -1
  42. package/dist-android/static/86.js +2 -2
  43. package/dist-android/static/86.js.map +1 -1
  44. package/dist-android/static/87.js +2 -2
  45. package/dist-android/static/87.js.map +1 -1
  46. package/dist-android/static/89.js +2 -2
  47. package/dist-android/static/89.js.map +1 -1
  48. package/dist-android/static/97.js +2 -2
  49. package/dist-android/static/97.js.map +1 -1
  50. package/dist-android/static/app.js +80 -80
  51. package/dist-android/static/app.js.map +1 -1
  52. package/package.json +4 -3
  53. package/src/apply.js +5 -0
  54. package/src/applyAndroid.js +2 -0
  55. package/src/components/android/AppSign.vue +154 -154
  56. package/src/components/android/AppTakePic.vue +143 -143
  57. package/src/components/android/Function/AppFunctionServiceControl.vue +344 -344
  58. package/src/components/android/Ignition/VentilationIgnition.vue +408 -0
  59. package/src/components/android/Ignition/VentilationIgnitionHandle.vue +455 -0
  60. package/src/components/android/Process/AppServiceControl.vue +1708 -1708
  61. package/src/components/android/Process/Processes/AppAddMaterialScience.vue +477 -477
  62. package/src/components/android/Process/Processes/AppDevicesManagement.vue +519 -519
  63. package/src/components/android/Process/Processes/AppSupplementalAgreement.vue +298 -298
  64. package/src/components/android/Supervisory/AppSupervisoryCart.vue +156 -156
  65. package/src/components/build/Install/Process/zhongran/ZR_Design.vue +537 -537
  66. package/src/components/product/ApplyCharge/ApplyChargeList.vue +470 -470
  67. package/src/components/product/Function/Service/FunctionServiceControl.vue +445 -445
  68. package/src/components/product/Ignition/IgnitionDispatch.vue +92 -0
  69. package/src/components/product/Ignition/IgnitionList.vue +236 -0
  70. package/src/components/product/Ignition/IgnitionListManage.vue +413 -0
  71. package/src/components/product/Ignition/IgnitionRecord.vue +357 -0
  72. package/src/components/product/Process/ExplorationSelect.vue +0 -13
  73. package/src/components/product/Process/Processes/addMaterialScience.vue +454 -454
  74. package/src/components/product/Process/Processes/chargeManagement.vue +656 -656
  75. package/src/components/product/Process/Processes/devicesManagement.vue +484 -484
  76. package/src/components/product/Process/Processes/supplementalAgreement.vue +298 -298
  77. package/src/components/product/Process/Service/ServiceControl.vue +56 -1
  78. package/src/components/product/Process/Service/ShowBackReason.vue +33 -33
  79. package/src/components/product/Process/ShowBackReason.vue +33 -33
  80. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +882 -882
  81. package/src/components/product/VueUtils/ApplyUpload.vue +287 -287
  82. package/src/filiale/gehua/pc/ServiceControl.vue +1938 -1938
  83. package/src/filiale/gehua/pc/SupervisoryServiceControl.vue +890 -890
  84. package/src/filiale/guangxi/android/Process/Processes/AppAddMaterialScience.vue +520 -520
  85. package/src/filiale/guangxi/android/Process/Processes/AppDevicesManagement.vue +519 -519
  86. package/src/filiale/guangxi/android/Process/Processes/AppServiceControl.vue +1708 -1708
  87. package/src/filiale/guangxi/android/Process/Processes/AppSupplementalAgreement.vue +298 -298
  88. package/src/filiale/guangxi/pc/ApplyCharge/ApplyChargeList.vue +470 -470
  89. package/src/filiale/guangxi/pc/ApplyCharge/chargeManagement.vue +724 -724
  90. package/src/filiale/guangxi/pc/Process/Service/ServiceControl.vue +1922 -1922
  91. package/src/filiale/guangxi/pc/Process/Service/ShowBackReason.vue +33 -33
  92. package/src/filiale/guangxi/pc/Process/Service/SupervisoryServiceControl.vue +891 -891
  93. package/src/filiale/guangxi/pc/Process/Service/addMaterialScience.vue +517 -517
  94. package/src/filiale/guangxi/pc/Process/ShowBackReason.vue +33 -33
  95. package/src/filiale/shexian/pc/ExplorationSelect.vue +474 -0
  96. package/src/filiale/shexian/pc.js +6 -0
  97. package/src/filiale/yuchuan/android/Process/AppServiceControl.vue +735 -735
  98. package/src/filiale/yuchuan/android/Process/Processes/AppInstallationDetails.vue +824 -824
  99. package/src/filiale/yuchuan/android/Process/Processes/AppInstallationDetailsCivil.vue +650 -650
  100. package/src/filiale/yuchuan/pc/Order/OrderApply.vue +528 -528
  101. package/src/filiale/yuchuan/pc/Process/Processes/InstallationDetails.vue +809 -809
  102. package/src/filiale/yuchuan/pc/Process/Processes/InstallationDetailsCivil.vue +595 -595
  103. package/src/filiale/yuchuan/pc/Process/Processes/chargeManagement.vue +621 -621
  104. package/src/filiale/yuchuan/pc/Process/Service/ServiceControl.vue +1108 -1108
  105. package/dist.7z +0 -0
@@ -1,298 +1,298 @@
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 class="textNoLineBreak">序号</th>
7
- <th class="textNoLineBreak">合同类型</th>
8
- <th class="textNoLineBreak">合同金额</th>
9
- <th class="textNoLineBreak">签订日期</th>
10
- <th class="textNoLineBreak">提交人</th>
11
- <th class="textNoLineBreak">备注</th>
12
- <th class="textNoLineBreak">状态</th>
13
- <th class="textNoLineBreak">作废人员</th>
14
- <th class="textNoLineBreak">作废时间</th>
15
- <th class="textNoLineBreak">作废原因</th>
16
- <th class="textNoLineBreak">
17
- <button
18
- type="button"
19
- class="btn btn-info head-but"
20
- :disabled="$parent.$parent.mark === 1"
21
- @click="$parent.$parent.showSupplement = !$parent.$parent.showSupplement"
22
- >补充协议</button>
23
- </th>
24
- </tr>
25
- </template>
26
- <template partial='body'>
27
- <tr>
28
- <td style="text-align: center;">
29
- <nobr>{{$index+1}}</nobr>
30
- </td>
31
- <td style="text-align: center;">
32
- <nobr>{{row.f_contract_type}}</nobr>
33
- </td>
34
- <td style="text-align: center;">
35
- <nobr>{{row.f_contract_money}}</nobr>
36
- </td>
37
- <td style="text-align: center;">
38
- <nobr>{{row.f_contract_time}}</nobr>
39
- </td>
40
- <td style="text-align: center;">
41
- <nobr>{{row.f_operator}}</nobr>
42
- </td>
43
- <td style="text-align: center;">
44
- <nobr>{{row.f_remarks}}</nobr>
45
- </td>
46
- <td style="text-align: center;">
47
- <nobr>{{row.f_contract_status}}</nobr>
48
- </td>
49
- <td style="text-align: center;">
50
- <nobr>{{row.f_void_staff}}</nobr>
51
- </td>
52
- <td style="text-align: center;">
53
- <nobr>{{row.f_void_date}}</nobr>
54
- </td>
55
- <td style="text-align: center;">
56
- <nobr>{{row.f_void_remarks}}</nobr>
57
- </td>
58
- <td style="text-align: center;">
59
- <nobr>
60
- <button
61
- type="button"
62
- name="button"
63
- class="btn btn-link"
64
- :disabled="$parent.$parent.mark === 1 || row.f_contract_status === '作废'"
65
- @click="$parent.$parent.showInvalidModal(row)"
66
- >作废</button>
67
- </nobr>
68
- </td>
69
- </tr>
70
- </template>
71
- </data-grid>
72
-
73
- <validator name="v">
74
- <modal v-if="showSupplement" :show.sync="showSupplement" v-ref:modal :large="true" :backdrop="false">
75
- <header slot="modal-header" class="modal-header">
76
- <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
77
- <h4 class="modal-title">协议明细</h4>
78
- </header>
79
- <article slot="modal-body" class="modal-body clearfix">
80
- <div class="form-group col-sm-12">
81
- <label class="col-sm-2 control-label">合同编号:</label>
82
- <div class="col-sm-10">
83
- <input type="text"
84
- class="form-control input_view"
85
- style="width: 100%"
86
- readonly
87
- :value="selectdata.f_contract_number"
88
- v-model="contract.f_contract_number" />
89
- </div>
90
- </div>
91
- <div class="form-group col-sm-12" :class="[$v.f_contract_type.required ? 'has-error' : '']">
92
- <label class="col-sm-2 control-label">合同类型:</label>
93
- <div class="col-sm-10">
94
- <input type="text" v-show="false"
95
- class="form-control input_view"
96
- v-validate:f_contract_type = "['required']"
97
- v-model="contract.f_contract_type" />
98
- <input-select
99
- class="select select_list"
100
- :value.sync="contract.f_contract_type"
101
- v-model="contract.f_contract_type"
102
- :options="contractType"
103
- :valueSingle="true"></input-select>
104
- </div>
105
- </div>
106
- <div class="form-group col-sm-12" :class="[$v.f_contract_money.required ? 'has-error' : '']">
107
- <label class="col-sm-2 control-label">合同金额:</label>
108
- <div class="col-sm-10">
109
- <input type="number" style="width: 100%"
110
- class="form-control input_view"
111
- v-validate:f_contract_money = "['required']"
112
- v-model="contract.f_contract_money" />
113
- </div>
114
- </div>
115
- <div class="form-group col-sm-12">
116
- <label class="col-sm-2 control-label">备注:</label>
117
- <div class="col-sm-10">
118
- <input type="text"
119
- class="form-control input_view"
120
- style="width: 100%"
121
- v-model="contract.f_remarks" />
122
- </div>
123
- </div>
124
- </article>
125
- <footer slot="modal-footer" class="modal-footer">
126
- <button type="button" class="btn btn-primary" :disabled='!$v.valid' @click="saveContract()">新增协议</button>
127
- </footer>
128
- </modal>
129
-
130
- <modal v-if="showInvalid" :show.sync="showInvalid" v-ref:modal :large="true" :backdrop="false" title="作废协议">
131
- <header slot="modal-header" class="modal-header">
132
- <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
133
- <h4 class="modal-title">作废协议</h4>
134
- </header>
135
- <article slot="modal-body" class="modal-body clearfix">
136
- <div class="form-group col-sm-12">
137
- <label class="col-sm-2 control-label">合同编号:</label>
138
- <div class="col-sm-10">
139
- <input type="text"
140
- class="form-control input_view"
141
- style="width: 100%"
142
- readonly
143
- v-model="contract.f_contract_number" />
144
- </div>
145
- </div>
146
- <div class="form-group col-sm-12">
147
- <label class="col-sm-2 control-label">合同类型:</label>
148
- <div class="col-sm-10">
149
- <input type="text"
150
- class="form-control input_view"
151
- style="width: 100%"
152
- readonly
153
- v-model="contract.f_contract_type" />
154
- </div>
155
- </div>
156
- <div class="form-group col-sm-12">
157
- <label class="col-sm-2 control-label">合同金额:</label>
158
- <div class="col-sm-10">
159
- <input type="text"
160
- class="form-control input_view"
161
- style="width: 100%"
162
- readonly
163
- v-model="contract.f_contract_money" />
164
- </div>
165
- </div>
166
- <div class="form-group col-sm-12">
167
- <label class="col-sm-2 control-label">提交人员:</label>
168
- <div class="col-sm-10">
169
- <input type="text"
170
- class="form-control input_view"
171
- style="width: 100%"
172
- readonly
173
- v-model="contract.f_operator" />
174
- </div>
175
- </div>
176
- <div class="form-group col-sm-12" :class="[$v.f_void_remarks.required ? 'has-error' : '']">
177
- <label class="col-sm-2 control-label">作废原因:</label>
178
- <div class="col-sm-10">
179
- <input type="text" style="width: 100%"
180
- class="form-control input_view"
181
- v-validate:f_void_remarks = "['required']"
182
- v-model="contract.f_void_remarks" />
183
- </div>
184
- </div>
185
- </article>
186
- <footer slot="modal-footer" class="modal-footer">
187
- <button type="button" class="btn btn-primary" :disabled='!$v.valid' @click="invalidContract()">确认作废</button>
188
- </footer>
189
- </modal>
190
- </validator>
191
- </div>
192
- </template>
193
- <script>
194
- import {getNowDate,isEmpty} from '../../../Util'
195
- import {PagedList} from 'vue-client'
196
- import {HttpResetClass} from 'vue-client'
197
- export default {
198
- title: '补充协议',
199
- props: {
200
- selectdata: {
201
- type: Object
202
- },
203
- mark: {
204
- type: Number,
205
- default: 0
206
- }
207
- },
208
- data () {
209
- return {
210
- showSupplement: false,
211
- showInvalid: false,
212
- model: {
213
- data: null
214
- },
215
- contract: {}
216
- }
217
- },
218
- ready () {
219
- this.search()
220
- },
221
- methods: {
222
- async invalidContract() {
223
- let http = new HttpResetClass()
224
- let data = {
225
- selectdata: this.selectdata,
226
- user: this.$login.f,
227
- contract: this.contract
228
- }
229
- let res = await http.load('POST', 'rs/logic/deleteApplyContract', {data: data}, {
230
- resolveMsg: null,
231
- rejectMsg: '作废失败'
232
- })
233
- this.$dispatch('breakControl', this.selectdata)
234
- },
235
- showInvalidModal(row) {
236
- this.contract = row
237
- this.showInvalid = true
238
- },
239
- async saveContract() {
240
- if (isEmpty(this.selectdata.f_contract_money)) {
241
- this.$showAlert('请先录入主合同金额!!!', 'warning', 3000)
242
- return
243
- }
244
- let http = new HttpResetClass()
245
- let data = {
246
- contract: this.contract,
247
- user: this.$login.f,
248
- selectdata: this.selectdata
249
- }
250
- let res = await http.load('POST', 'rs/logic/addApplyContract', {data: data}, {
251
- resolveMsg: null,
252
- rejectMsg: '添加失败'
253
- })
254
- this.$dispatch('breakControl', this.selectdata)
255
- },
256
- async search () {
257
- let http = new HttpResetClass()
258
- let data = {
259
- tablename: 't_contract',
260
- condition: `f_process_id = '${this.selectdata.f_process_id}'`
261
- }
262
- let res = await http.load('POST', 'rs/sql/apply_singleTable', {data: data}, {
263
- resolveMsg: null,
264
- rejectMsg: '补充协议查询失败'
265
- })
266
- this.model.data = res.data
267
- },
268
- closeModal() {
269
- this.showSupplement = false
270
- this.showInvalid = false
271
- this.contract = {}
272
- this.search()
273
- }
274
- },
275
- events: {
276
- },
277
- computed: {
278
- contractType () {
279
- return this.$appdata.getParam('合同类型')
280
- }
281
- },
282
- watch: {
283
- }
284
- }
285
- </script>
286
- <style scoped>
287
- .textNoLineBreak {
288
- white-space: nowrap;
289
- }
290
- .head-but{
291
- margin-left: 5px;
292
- height: 34px;
293
- /*background-color: #6aa6e2;*/
294
- border-radius: 4px;
295
- font-family: PingFang;
296
- color: #ffffff;
297
- }
298
- </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 class="textNoLineBreak">序号</th>
7
+ <th class="textNoLineBreak">合同类型</th>
8
+ <th class="textNoLineBreak">合同金额</th>
9
+ <th class="textNoLineBreak">签订日期</th>
10
+ <th class="textNoLineBreak">提交人</th>
11
+ <th class="textNoLineBreak">备注</th>
12
+ <th class="textNoLineBreak">状态</th>
13
+ <th class="textNoLineBreak">作废人员</th>
14
+ <th class="textNoLineBreak">作废时间</th>
15
+ <th class="textNoLineBreak">作废原因</th>
16
+ <th class="textNoLineBreak">
17
+ <button
18
+ type="button"
19
+ class="btn btn-info head-but"
20
+ :disabled="$parent.$parent.mark === 1"
21
+ @click="$parent.$parent.showSupplement = !$parent.$parent.showSupplement"
22
+ >补充协议</button>
23
+ </th>
24
+ </tr>
25
+ </template>
26
+ <template partial='body'>
27
+ <tr>
28
+ <td style="text-align: center;">
29
+ <nobr>{{$index+1}}</nobr>
30
+ </td>
31
+ <td style="text-align: center;">
32
+ <nobr>{{row.f_contract_type}}</nobr>
33
+ </td>
34
+ <td style="text-align: center;">
35
+ <nobr>{{row.f_contract_money}}</nobr>
36
+ </td>
37
+ <td style="text-align: center;">
38
+ <nobr>{{row.f_contract_time}}</nobr>
39
+ </td>
40
+ <td style="text-align: center;">
41
+ <nobr>{{row.f_operator}}</nobr>
42
+ </td>
43
+ <td style="text-align: center;">
44
+ <nobr>{{row.f_remarks}}</nobr>
45
+ </td>
46
+ <td style="text-align: center;">
47
+ <nobr>{{row.f_contract_status}}</nobr>
48
+ </td>
49
+ <td style="text-align: center;">
50
+ <nobr>{{row.f_void_staff}}</nobr>
51
+ </td>
52
+ <td style="text-align: center;">
53
+ <nobr>{{row.f_void_date}}</nobr>
54
+ </td>
55
+ <td style="text-align: center;">
56
+ <nobr>{{row.f_void_remarks}}</nobr>
57
+ </td>
58
+ <td style="text-align: center;">
59
+ <nobr>
60
+ <button
61
+ type="button"
62
+ name="button"
63
+ class="btn btn-link"
64
+ :disabled="$parent.$parent.mark === 1 || row.f_contract_status === '作废'"
65
+ @click="$parent.$parent.showInvalidModal(row)"
66
+ >作废</button>
67
+ </nobr>
68
+ </td>
69
+ </tr>
70
+ </template>
71
+ </data-grid>
72
+
73
+ <validator name="v">
74
+ <modal v-if="showSupplement" :show.sync="showSupplement" v-ref:modal :large="true" :backdrop="false">
75
+ <header slot="modal-header" class="modal-header">
76
+ <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
77
+ <h4 class="modal-title">协议明细</h4>
78
+ </header>
79
+ <article slot="modal-body" class="modal-body clearfix">
80
+ <div class="form-group col-sm-12">
81
+ <label class="col-sm-2 control-label">合同编号:</label>
82
+ <div class="col-sm-10">
83
+ <input type="text"
84
+ class="form-control input_view"
85
+ style="width: 100%"
86
+ readonly
87
+ :value="selectdata.f_contract_number"
88
+ v-model="contract.f_contract_number" />
89
+ </div>
90
+ </div>
91
+ <div class="form-group col-sm-12" :class="[$v.f_contract_type.required ? 'has-error' : '']">
92
+ <label class="col-sm-2 control-label">合同类型:</label>
93
+ <div class="col-sm-10">
94
+ <input type="text" v-show="false"
95
+ class="form-control input_view"
96
+ v-validate:f_contract_type = "['required']"
97
+ v-model="contract.f_contract_type" />
98
+ <input-select
99
+ class="select select_list"
100
+ :value.sync="contract.f_contract_type"
101
+ v-model="contract.f_contract_type"
102
+ :options="contractType"
103
+ :valueSingle="true"></input-select>
104
+ </div>
105
+ </div>
106
+ <div class="form-group col-sm-12" :class="[$v.f_contract_money.required ? 'has-error' : '']">
107
+ <label class="col-sm-2 control-label">合同金额:</label>
108
+ <div class="col-sm-10">
109
+ <input type="number" style="width: 100%"
110
+ class="form-control input_view"
111
+ v-validate:f_contract_money = "['required']"
112
+ v-model="contract.f_contract_money" />
113
+ </div>
114
+ </div>
115
+ <div class="form-group col-sm-12">
116
+ <label class="col-sm-2 control-label">备注:</label>
117
+ <div class="col-sm-10">
118
+ <input type="text"
119
+ class="form-control input_view"
120
+ style="width: 100%"
121
+ v-model="contract.f_remarks" />
122
+ </div>
123
+ </div>
124
+ </article>
125
+ <footer slot="modal-footer" class="modal-footer">
126
+ <button type="button" class="btn btn-primary" :disabled='!$v.valid' @click="saveContract()">新增协议</button>
127
+ </footer>
128
+ </modal>
129
+
130
+ <modal v-if="showInvalid" :show.sync="showInvalid" v-ref:modal :large="true" :backdrop="false" title="作废协议">
131
+ <header slot="modal-header" class="modal-header">
132
+ <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
133
+ <h4 class="modal-title">作废协议</h4>
134
+ </header>
135
+ <article slot="modal-body" class="modal-body clearfix">
136
+ <div class="form-group col-sm-12">
137
+ <label class="col-sm-2 control-label">合同编号:</label>
138
+ <div class="col-sm-10">
139
+ <input type="text"
140
+ class="form-control input_view"
141
+ style="width: 100%"
142
+ readonly
143
+ v-model="contract.f_contract_number" />
144
+ </div>
145
+ </div>
146
+ <div class="form-group col-sm-12">
147
+ <label class="col-sm-2 control-label">合同类型:</label>
148
+ <div class="col-sm-10">
149
+ <input type="text"
150
+ class="form-control input_view"
151
+ style="width: 100%"
152
+ readonly
153
+ v-model="contract.f_contract_type" />
154
+ </div>
155
+ </div>
156
+ <div class="form-group col-sm-12">
157
+ <label class="col-sm-2 control-label">合同金额:</label>
158
+ <div class="col-sm-10">
159
+ <input type="text"
160
+ class="form-control input_view"
161
+ style="width: 100%"
162
+ readonly
163
+ v-model="contract.f_contract_money" />
164
+ </div>
165
+ </div>
166
+ <div class="form-group col-sm-12">
167
+ <label class="col-sm-2 control-label">提交人员:</label>
168
+ <div class="col-sm-10">
169
+ <input type="text"
170
+ class="form-control input_view"
171
+ style="width: 100%"
172
+ readonly
173
+ v-model="contract.f_operator" />
174
+ </div>
175
+ </div>
176
+ <div class="form-group col-sm-12" :class="[$v.f_void_remarks.required ? 'has-error' : '']">
177
+ <label class="col-sm-2 control-label">作废原因:</label>
178
+ <div class="col-sm-10">
179
+ <input type="text" style="width: 100%"
180
+ class="form-control input_view"
181
+ v-validate:f_void_remarks = "['required']"
182
+ v-model="contract.f_void_remarks" />
183
+ </div>
184
+ </div>
185
+ </article>
186
+ <footer slot="modal-footer" class="modal-footer">
187
+ <button type="button" class="btn btn-primary" :disabled='!$v.valid' @click="invalidContract()">确认作废</button>
188
+ </footer>
189
+ </modal>
190
+ </validator>
191
+ </div>
192
+ </template>
193
+ <script>
194
+ import {getNowDate,isEmpty} from '../../../Util'
195
+ import {PagedList} from 'vue-client'
196
+ import {HttpResetClass} from 'vue-client'
197
+ export default {
198
+ title: '补充协议',
199
+ props: {
200
+ selectdata: {
201
+ type: Object
202
+ },
203
+ mark: {
204
+ type: Number,
205
+ default: 0
206
+ }
207
+ },
208
+ data () {
209
+ return {
210
+ showSupplement: false,
211
+ showInvalid: false,
212
+ model: {
213
+ data: null
214
+ },
215
+ contract: {}
216
+ }
217
+ },
218
+ ready () {
219
+ this.search()
220
+ },
221
+ methods: {
222
+ async invalidContract() {
223
+ let http = new HttpResetClass()
224
+ let data = {
225
+ selectdata: this.selectdata,
226
+ user: this.$login.f,
227
+ contract: this.contract
228
+ }
229
+ let res = await http.load('POST', 'rs/logic/deleteApplyContract', {data: data}, {
230
+ resolveMsg: null,
231
+ rejectMsg: '作废失败'
232
+ })
233
+ this.$dispatch('breakControl', this.selectdata)
234
+ },
235
+ showInvalidModal(row) {
236
+ this.contract = row
237
+ this.showInvalid = true
238
+ },
239
+ async saveContract() {
240
+ if (isEmpty(this.selectdata.f_contract_money)) {
241
+ this.$showAlert('请先录入主合同金额!!!', 'warning', 3000)
242
+ return
243
+ }
244
+ let http = new HttpResetClass()
245
+ let data = {
246
+ contract: this.contract,
247
+ user: this.$login.f,
248
+ selectdata: this.selectdata
249
+ }
250
+ let res = await http.load('POST', 'rs/logic/addApplyContract', {data: data}, {
251
+ resolveMsg: null,
252
+ rejectMsg: '添加失败'
253
+ })
254
+ this.$dispatch('breakControl', this.selectdata)
255
+ },
256
+ async search () {
257
+ let http = new HttpResetClass()
258
+ let data = {
259
+ tablename: 't_contract',
260
+ condition: `f_process_id = '${this.selectdata.f_process_id}'`
261
+ }
262
+ let res = await http.load('POST', 'rs/sql/apply_singleTable', {data: data}, {
263
+ resolveMsg: null,
264
+ rejectMsg: '补充协议查询失败'
265
+ })
266
+ this.model.data = res.data
267
+ },
268
+ closeModal() {
269
+ this.showSupplement = false
270
+ this.showInvalid = false
271
+ this.contract = {}
272
+ this.search()
273
+ }
274
+ },
275
+ events: {
276
+ },
277
+ computed: {
278
+ contractType () {
279
+ return this.$appdata.getParam('合同类型')
280
+ }
281
+ },
282
+ watch: {
283
+ }
284
+ }
285
+ </script>
286
+ <style scoped>
287
+ .textNoLineBreak {
288
+ white-space: nowrap;
289
+ }
290
+ .head-but{
291
+ margin-left: 5px;
292
+ height: 34px;
293
+ /*background-color: #6aa6e2;*/
294
+ border-radius: 4px;
295
+ font-family: PingFang;
296
+ color: #ffffff;
297
+ }
298
+ </style>