apply-clients 7.1.36-yuchuan-67 → 7.1.36-yuchuan-69
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.
- package/build/dev-server.js +3 -6
- package/package.json +1 -1
- package/src/components/android/AppServiceView.vue +603 -603
- package/src/components/android/Process/AppServiceControl.vue +1434 -1434
- package/src/components/android/Process/Processes/AppInstallationDetails.vue +1029 -1029
- package/src/components/android/Process/Processes/newAppInstallationDetails.vue +671 -671
- package/src/components/android/SealBind.vue +405 -405
- package/src/components/product/ApplyGaiXianCharge/ApplyGaiXianChargeList.vue +211 -211
- package/src/components/product/ApplyGuanXian/GuanXianExplorationSelect.vue +325 -325
- package/src/components/product/Function/Service/FunctionServiceControl.vue +581 -581
- package/src/components/product/Ignition/IgnitionListManage.vue +604 -604
- package/src/components/product/List/OldShowDevices.vue +272 -272
- package/src/components/product/List/ShowAllActivity.vue +540 -540
- package/src/components/product/Print/BuildOrder/buildOrderList.vue +446 -446
- package/src/components/product/Process/ExplorationSelect.vue +593 -593
- package/src/components/product/Process/NewExplorationSelect.vue +587 -587
- package/src/components/product/Process/Processes/InstallationDetails.vue +1166 -1166
- package/src/components/product/Process/Processes/Print/printCharge.vue +250 -250
- package/src/components/product/Process/Processes/Print/printGaiXianCharge.vue +244 -244
- package/src/components/product/Process/Processes/newInstallationDetails.vue +683 -683
- package/src/components/product/Process/Processes/supplementalAgreement.vue +298 -298
- package/src/components/product/Process/Service/ServiceControl.vue +2230 -2222
- package/src/components/product/ServiceView.vue +650 -650
- package/src/components/product/Supervisory/ExportExcel.vue +359 -359
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +592 -592
- package/src/components/product/Supervisory/SupervisoryList.vue +585 -585
- package/src/components/product/Supervisory/YiBanSupervisoryList.vue +543 -543
- package/src/components/product/VueUtils/ApplyUpload.vue +302 -302
- package/src/components/product/VueUtils/HighMeter.vue +208 -208
|
@@ -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>×</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>×</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.$showMessage('请先录入主合同金额!!!')
|
|
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/applySingleTable', {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>×</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>×</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.$showMessage('请先录入主合同金额!!!')
|
|
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/applySingleTable', {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>
|