apply-clients 3.2.42 → 3.2.48
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/package.json +1 -1
- package/src/App.vue +20 -20
- package/src/apply.js +185 -179
- package/src/components/app_apply/Process/AppExplorationUser.vue +1 -1
- package/src/components/app_apply/ProgressReport/ProgressReportList.vue +209 -209
- package/src/components/app_apply/Supervisory/AppProcessSupervisory.vue +183 -183
- package/src/components/image/tubiao.png +0 -0
- package/src/components/product/Ledger/ContractManagement/OtherContract/OtherContractInformation.vue +429 -429
- package/src/components/product/Ledger/ContractManagement/OtherContract/OtherContractList.vue +267 -267
- package/src/components/product/Ledger/ContractManagement/PurchaseContract/PurchaseContractInformation.vue +715 -682
- package/src/components/product/Ledger/ContractManagement/PurchaseContract/PurchaseContractList.vue +304 -304
- package/src/components/product/Ledger/ContractManagement/RepairContract/RepairContractInformation.vue +286 -286
- package/src/components/product/Ledger/ContractManagement/RepairContract/RepairContractList.vue +258 -258
- package/src/components/product/Ledger/FacilityManagement/FacilityInventory/FacilityInventory.vue +31 -0
- package/src/components/product/Ledger/FacilityManagement/FacilityInventory/FacilityInventoryList.vue +5 -0
- package/src/components/product/Ledger/FacilityManagement/FacilityInventory/addoldFacilityInformation.vue +326 -0
- package/src/components/product/Ledger/FileDownload/FileDownload.vue +42 -65
- package/src/components/product/Ledger/Function/InstallInfoSelect.vue +4 -1
- package/src/components/product/Ledger/ImportApply/ImportApply.vue +68 -0
- package/src/components/product/Ledger/MaterialManagement/DeliveryRecord/DeliveryRecordList.vue +39 -3
- package/src/components/product/Ledger/MaterialManagement/InventoryInformation/InventoryInformationList.vue +32 -2
- package/src/components/product/Ledger/MaterialManagement/InventoryInformation/MaterialInformation.vue +1 -1
- package/src/components/product/Ledger/MaterialManagement/InventoryInformation/MaterialOutStock.vue +438 -430
- package/src/components/product/Ledger/MaterialManagement/InventoryInformation/MaterialOutboundOrder.vue +457 -449
- package/src/components/product/Ledger/MaterialManagement/InventoryInformation/PurchaseMaterial.vue +10 -2
- package/src/components/product/Ledger/MaterialManagement/InventoryInformation/PurchaseOrder.vue +10 -2
- package/src/components/product/Ledger/MaterialManagement/InventoryInformation/ReturnMaterial.vue +10 -2
- package/src/components/product/Ledger/MaterialManagement/OutboundOrder/OutboundOrderInformation.vue +3 -1
- package/src/components/product/Ledger/MaterialManagement/OutboundOrder/OutboundOrderList.vue +31 -2
- package/src/components/product/Ledger/MaterialManagement/OutboundOrder/PrintMaterialBill.vue +2 -2
- package/src/components/product/Ledger/MaterialManagement/PurchaseRecords/PrintPurchaseOrder.vue +5 -4
- package/src/components/product/Ledger/MaterialManagement/PurchaseRecords/PurchaseRecordsInformation.vue +268 -266
- package/src/components/product/Ledger/MaterialManagement/PurchaseRecords/PurchaseRecordsList.vue +33 -7
- package/src/components/product/Ledger/MaterialManagement/WarehousingRecord/WarehousingRecordList.vue +45 -3
- package/src/components/product/Ledger/Process/ProcessSelect.vue +3 -5
- package/src/components/product/Ledger/Process/Service/ServiceControl.vue +42 -5
- package/src/components/product/Ledger/QinhuaMaterial/PickingRecord/PickingInformation.vue +316 -316
- package/src/components/product/Ledger/QinhuaMaterial/SeasoningRecord/SeasoningRecordList.vue +14 -2
- package/src/components/product/Ledger/Supervisory/Service/RenWuDan.vue +78 -0
- package/src/components/product/Ledger/Supervisory/Service/SupervisoryServiceControl.vue +38 -2
- package/src/components/product/Ledger/Supervisory/SupervisoryList.vue +182 -7
- package/src/components/product/ServiceView.vue +761 -850
- package/static/images/lefticon//346/226/207/344/273/266/346/250/241/345/235/227.png +0 -0
package/src/components/product/Ledger/ContractManagement/OtherContract/OtherContractList.vue
CHANGED
|
@@ -1,267 +1,267 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<criteria-paged :model="model" v-ref:cp>
|
|
3
|
-
<criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
|
|
4
|
-
<div class="form-horizontal select-overspread container-fluid auto" partial>
|
|
5
|
-
<div class="row">
|
|
6
|
-
<div class="form-group col-sm-3">
|
|
7
|
-
<label class="font_normal_body">合同编号:</label>
|
|
8
|
-
<input type="text" class="input_search" style="width: 60%" v-model="model.f_contract_number"
|
|
9
|
-
v-on:keyup.enter="$parent.$parent.search()" condition="f_contract_number like '%{}%'" placeholder='合同编号'>
|
|
10
|
-
</div>
|
|
11
|
-
<div class="form-group col-sm-3">
|
|
12
|
-
<label class="font_normal_body">对方名称:</label>
|
|
13
|
-
<input type="text" class="input_search" style="width: 60%" v-model="model.f_supplier"
|
|
14
|
-
v-on:keyup.enter="$parent.$parent.search()" condition="f_supplier like '%{}%'" placeholder='对方名称'>
|
|
15
|
-
</div>
|
|
16
|
-
<div class="form-group col-sm-3">
|
|
17
|
-
<label class="font_normal_body">合同状态:</label>
|
|
18
|
-
<v-select
|
|
19
|
-
v-model="model.f_contract_status"
|
|
20
|
-
placeholder='请选择'
|
|
21
|
-
:value.sync="model.f_contract_status"
|
|
22
|
-
:options='$parent.$parent.contractStatus'
|
|
23
|
-
class="select select_list"
|
|
24
|
-
:value-single="true"
|
|
25
|
-
close-on-select ></v-select>
|
|
26
|
-
</div>
|
|
27
|
-
<div class="form-group col-sm-3 button-range">
|
|
28
|
-
<button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
|
|
29
|
-
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
30
|
-
<button class="button_new button_spacing" @click="$parent.$parent.openAddContract()">添加合同</button>
|
|
31
|
-
<div
|
|
32
|
-
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
33
|
-
@click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
|
|
34
|
-
class="button_spacing"
|
|
35
|
-
style="float: right">
|
|
36
|
-
</div>
|
|
37
|
-
</div>
|
|
38
|
-
</div>
|
|
39
|
-
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
40
|
-
<div class="form-group col-sm-3">
|
|
41
|
-
<label class="font_normal_body">联 系 人:</label>
|
|
42
|
-
<input type="text" style="width: 60%" class="input_search" placeholder='联系人' v-model="model.f_contact_person"
|
|
43
|
-
v-on:keyup.enter="$parent.$parent.search()"
|
|
44
|
-
condition="f_contact_person like '%{}%'">
|
|
45
|
-
</div>
|
|
46
|
-
<div class="form-group col-sm-3">
|
|
47
|
-
<label class="font_normal_body">联系电话:</label>
|
|
48
|
-
<input type="text" style="width: 60%" class="input_search" placeholder='联系电话' v-model="model.f_tel"
|
|
49
|
-
v-on:keyup.enter="$parent.$parent.search()"
|
|
50
|
-
condition="f_tel like '%{}%'">
|
|
51
|
-
</div>
|
|
52
|
-
<div class="form-group col-sm-3">
|
|
53
|
-
<label class="font_normal_body">合同性质:</label>
|
|
54
|
-
<v-select
|
|
55
|
-
v-model="model.f_contract_nature"
|
|
56
|
-
placeholder='请选择'
|
|
57
|
-
condition="f_contract_nature = '{}'"
|
|
58
|
-
:value.sync="model.f_contract_nature"
|
|
59
|
-
:options='$parent.$parent.contractNature'
|
|
60
|
-
class="select select_list"
|
|
61
|
-
:value-single="true"
|
|
62
|
-
close-on-select ></v-select>
|
|
63
|
-
</div>
|
|
64
|
-
<div class="form-group col-sm-3">
|
|
65
|
-
<label class="font_normal_body">合同来源:</label>
|
|
66
|
-
<v-select
|
|
67
|
-
v-model="model.f_contract_source"
|
|
68
|
-
placeholder='请选择'
|
|
69
|
-
condition="f_contract_source = '{}'"
|
|
70
|
-
:value.sync="model.f_contract_source"
|
|
71
|
-
:options='$parent.$parent.contractSource'
|
|
72
|
-
class="select select_list"
|
|
73
|
-
:value-single="true"
|
|
74
|
-
close-on-select ></v-select>
|
|
75
|
-
</div>
|
|
76
|
-
</div>
|
|
77
|
-
</div>
|
|
78
|
-
</criteria>
|
|
79
|
-
<data-grid v-if="$parent.showData" :model="model" partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
|
|
80
|
-
<template partial='head'>
|
|
81
|
-
<tr>
|
|
82
|
-
<th style="white-space: nowrap;">序号</th>
|
|
83
|
-
<th style="white-space: nowrap;">合同编号</th>
|
|
84
|
-
<th style="white-space: nowrap;">对方名称</th>
|
|
85
|
-
<th style="white-space: nowrap;">联系人</th>
|
|
86
|
-
<th style="white-space: nowrap;">电话</th>
|
|
87
|
-
<th style="white-space: nowrap;">合同性质</th>
|
|
88
|
-
<th style="white-space: nowrap;">合同来源</th>
|
|
89
|
-
<th style="white-space: nowrap;">合同份数</th>
|
|
90
|
-
<th style="white-space: nowrap;">合同金额</th>
|
|
91
|
-
<th style="white-space: nowrap;">签订时间</th>
|
|
92
|
-
<th style="white-space: nowrap;">到期时间</th>
|
|
93
|
-
<th style="white-space: nowrap;">合同状态</th>
|
|
94
|
-
<th style="white-space: nowrap;">操作</th>
|
|
95
|
-
</tr>
|
|
96
|
-
</template>
|
|
97
|
-
<template partial='body'>
|
|
98
|
-
<tr >
|
|
99
|
-
<td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;" @click="$parent.$parent.$parent.openViewContract(row)">
|
|
100
|
-
<nobr><font>{{$index+1}}</font></nobr>
|
|
101
|
-
</td>
|
|
102
|
-
<td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;" @click="$parent.$parent.$parent.openViewContract(row)">
|
|
103
|
-
<nobr><font>{{row.f_contract_number}}</font></nobr>
|
|
104
|
-
</td>
|
|
105
|
-
<td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;" @click="$parent.$parent.$parent.openViewContract(row)">
|
|
106
|
-
<nobr><font>{{row.f_supplier}}</font></nobr>
|
|
107
|
-
</td>
|
|
108
|
-
<td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;" @click="$parent.$parent.$parent.openViewContract(row)">
|
|
109
|
-
<nobr><font>{{row.f_contact_person}}</font></nobr>
|
|
110
|
-
</td>
|
|
111
|
-
<td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;" @click="$parent.$parent.$parent.openViewContract(row)">
|
|
112
|
-
<nobr><font>{{row.f_tel}}</font></nobr>
|
|
113
|
-
</td>
|
|
114
|
-
<td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;" @click="$parent.$parent.$parent.openViewContract(row)">
|
|
115
|
-
<nobr><font>{{row.f_contract_nature}}</font></nobr>
|
|
116
|
-
</td>
|
|
117
|
-
<td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;" @click="$parent.$parent.$parent.openViewContract(row)">
|
|
118
|
-
<nobr><font>{{row.f_contract_source}}</font></nobr>
|
|
119
|
-
</td>
|
|
120
|
-
<td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;" @click="$parent.$parent.$parent.openViewContract(row)">
|
|
121
|
-
<nobr><font>{{row.f_amount}}</font></nobr>
|
|
122
|
-
</td>
|
|
123
|
-
<td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;" @click="$parent.$parent.$parent.openViewContract(row)">
|
|
124
|
-
<nobr><font>{{row.f_contract_money}}</font></nobr>
|
|
125
|
-
</td>
|
|
126
|
-
<td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;" @click="$parent.$parent.$parent.openViewContract(row)">
|
|
127
|
-
<nobr><font>{{new Date(row.f_contract_time).Format('yyyy-MM-dd')}}</font></nobr>
|
|
128
|
-
</td>
|
|
129
|
-
<td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;" @click="$parent.$parent.$parent.openViewContract(row)">
|
|
130
|
-
<nobr><font>{{new Date(row.f_contract_expiration_date).Format('yyyy-MM-dd')}}</font></nobr>
|
|
131
|
-
</td>
|
|
132
|
-
<td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;" @click="$parent.$parent.$parent.openViewContract(row)">
|
|
133
|
-
<nobr><font>{{new Date() > new Date(row.f_contract_expiration_date) ? '无效': '有效'}}</font></nobr>
|
|
134
|
-
</td>
|
|
135
|
-
<td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;">
|
|
136
|
-
<dropdown>
|
|
137
|
-
<button type="button" data-toggle="dropdown" style="border: 0px;background: none;">
|
|
138
|
-
<span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>
|
|
139
|
-
</button>
|
|
140
|
-
<ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">
|
|
141
|
-
<li>
|
|
142
|
-
<a href="#" @click="$parent.$parent.$parent.openAddMatter(row)">添加事项</a>
|
|
143
|
-
</li>
|
|
144
|
-
<li>
|
|
145
|
-
<a href="#" @click="$parent.$parent.$parent.openRenew(row)">续签</a>
|
|
146
|
-
</li>
|
|
147
|
-
</ul>
|
|
148
|
-
</dropdown>
|
|
149
|
-
</td>
|
|
150
|
-
</tr>
|
|
151
|
-
</template>
|
|
152
|
-
</data-grid>
|
|
153
|
-
</criteria-paged>
|
|
154
|
-
</template>
|
|
155
|
-
|
|
156
|
-
<script>
|
|
157
|
-
import {PagedList} from 'vue-client'
|
|
158
|
-
import {isEmpty} from '../../../../Util'
|
|
159
|
-
// Date格式化
|
|
160
|
-
Date.prototype.Format = function (fmt) {
|
|
161
|
-
var o = {
|
|
162
|
-
'M+': this.getMonth() + 1, // 月份
|
|
163
|
-
'd+': this.getDate(), // 日
|
|
164
|
-
'H+': this.getHours(), // 小时
|
|
165
|
-
'm+': this.getMinutes(), // 分
|
|
166
|
-
's+': this.getSeconds(), // 秒
|
|
167
|
-
'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
|
|
168
|
-
'S': this.getMilliseconds() // 毫秒
|
|
169
|
-
}
|
|
170
|
-
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
|
|
171
|
-
for (var k in o) {
|
|
172
|
-
if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
|
|
173
|
-
}
|
|
174
|
-
return fmt
|
|
175
|
-
}
|
|
176
|
-
export default {
|
|
177
|
-
title: '其他合同列表',
|
|
178
|
-
props: ['showData'],
|
|
179
|
-
data () {
|
|
180
|
-
return {
|
|
181
|
-
model: new PagedList('rs/sql/getContract', 30, {
|
|
182
|
-
data: {
|
|
183
|
-
f_contract_type: '其他合同',
|
|
184
|
-
orgid: this.$login.f.orgid,
|
|
185
|
-
date: new Date().Format('yyyy-MM-dd')
|
|
186
|
-
}
|
|
187
|
-
}),
|
|
188
|
-
criteriaShow: false,
|
|
189
|
-
contractStatus: [
|
|
190
|
-
{
|
|
191
|
-
'label': '全部',
|
|
192
|
-
'value': ''
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
'label': '有效',
|
|
196
|
-
'value': `f_contract_expiration_date >= '${new Date().Format('yyyy-MM-dd')}'`
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
'label': '预警',
|
|
200
|
-
'value': `f_contract_early_warning_date < '${new Date().Format('yyyy-MM-dd')}' and f_contract_expiration_date >= '${new Date().Format('yyyy-MM-dd')}'`
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
'label': '无效',
|
|
204
|
-
'value': `f_contract_expiration_date < '${new Date().Format('yyyy-MM-dd')}'`
|
|
205
|
-
}
|
|
206
|
-
],
|
|
207
|
-
contractNature:[{label: '全部', value: ''}, ...this.$appdata.getParam('合同性质')],
|
|
208
|
-
contractSource: [{label: '全部', value: ''}, ...this.$appdata.getParam('合同来源')]
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
|
-
ready () {
|
|
212
|
-
// 调用查询
|
|
213
|
-
this.search()
|
|
214
|
-
},
|
|
215
|
-
methods: {
|
|
216
|
-
openAddMatter (row) {
|
|
217
|
-
this.$dispatch('openAddMatter', row)
|
|
218
|
-
},
|
|
219
|
-
searchCondition (args) {
|
|
220
|
-
if (!isEmpty(args.model.f_contract_status)) {
|
|
221
|
-
args.condition += ` and ${args.model.f_contract_status}`
|
|
222
|
-
}
|
|
223
|
-
this.model.search(args.condition, args.model)
|
|
224
|
-
},
|
|
225
|
-
openRenew (row) {
|
|
226
|
-
this.$dispatch('openRenew', row)
|
|
227
|
-
},
|
|
228
|
-
openViewContract (row) {
|
|
229
|
-
this.$dispatch('openViewContract', row)
|
|
230
|
-
},
|
|
231
|
-
openAddContract () {
|
|
232
|
-
this.$dispatch('openAddContract')
|
|
233
|
-
},
|
|
234
|
-
clear () {
|
|
235
|
-
Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
|
|
236
|
-
this.$refs.cp.$refs.cri.model[key] = null
|
|
237
|
-
})
|
|
238
|
-
},
|
|
239
|
-
// 查询
|
|
240
|
-
search () {
|
|
241
|
-
this.$dispatch('search')
|
|
242
|
-
}
|
|
243
|
-
},
|
|
244
|
-
computed: {
|
|
245
|
-
rowclass () {
|
|
246
|
-
return function (contract) {
|
|
247
|
-
if (new Date() > new Date(contract.f_contract_expiration_date)) {
|
|
248
|
-
return 'danger'
|
|
249
|
-
}
|
|
250
|
-
if (new Date() > new Date(contract.f_contract_early_warning_date)) {
|
|
251
|
-
return 'warning'
|
|
252
|
-
}
|
|
253
|
-
return ''
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
</script>
|
|
259
|
-
|
|
260
|
-
<style scoped>
|
|
261
|
-
.warning {
|
|
262
|
-
background-color: #f0ad4e;
|
|
263
|
-
}
|
|
264
|
-
.danger {
|
|
265
|
-
background-color: #d9534f;
|
|
266
|
-
}
|
|
267
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<criteria-paged :model="model" v-ref:cp>
|
|
3
|
+
<criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
|
|
4
|
+
<div class="form-horizontal select-overspread container-fluid auto" partial>
|
|
5
|
+
<div class="row">
|
|
6
|
+
<div class="form-group col-sm-3">
|
|
7
|
+
<label class="font_normal_body">合同编号:</label>
|
|
8
|
+
<input type="text" class="input_search" style="width: 60%" v-model="model.f_contract_number"
|
|
9
|
+
v-on:keyup.enter="$parent.$parent.search()" condition="f_contract_number like '%{}%'" placeholder='合同编号'>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="form-group col-sm-3">
|
|
12
|
+
<label class="font_normal_body">对方名称:</label>
|
|
13
|
+
<input type="text" class="input_search" style="width: 60%" v-model="model.f_supplier"
|
|
14
|
+
v-on:keyup.enter="$parent.$parent.search()" condition="f_supplier like '%{}%'" placeholder='对方名称'>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="form-group col-sm-3">
|
|
17
|
+
<label class="font_normal_body">合同状态:</label>
|
|
18
|
+
<v-select
|
|
19
|
+
v-model="model.f_contract_status"
|
|
20
|
+
placeholder='请选择'
|
|
21
|
+
:value.sync="model.f_contract_status"
|
|
22
|
+
:options='$parent.$parent.contractStatus'
|
|
23
|
+
class="select select_list"
|
|
24
|
+
:value-single="true"
|
|
25
|
+
close-on-select ></v-select>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="form-group col-sm-3 button-range">
|
|
28
|
+
<button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
|
|
29
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
30
|
+
<button class="button_new button_spacing" @click="$parent.$parent.openAddContract()">添加合同</button>
|
|
31
|
+
<div
|
|
32
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
33
|
+
@click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
|
|
34
|
+
class="button_spacing"
|
|
35
|
+
style="float: right">
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
40
|
+
<div class="form-group col-sm-3">
|
|
41
|
+
<label class="font_normal_body">联 系 人:</label>
|
|
42
|
+
<input type="text" style="width: 60%" class="input_search" placeholder='联系人' v-model="model.f_contact_person"
|
|
43
|
+
v-on:keyup.enter="$parent.$parent.search()"
|
|
44
|
+
condition="f_contact_person like '%{}%'">
|
|
45
|
+
</div>
|
|
46
|
+
<div class="form-group col-sm-3">
|
|
47
|
+
<label class="font_normal_body">联系电话:</label>
|
|
48
|
+
<input type="text" style="width: 60%" class="input_search" placeholder='联系电话' v-model="model.f_tel"
|
|
49
|
+
v-on:keyup.enter="$parent.$parent.search()"
|
|
50
|
+
condition="f_tel like '%{}%'">
|
|
51
|
+
</div>
|
|
52
|
+
<div class="form-group col-sm-3">
|
|
53
|
+
<label class="font_normal_body">合同性质:</label>
|
|
54
|
+
<v-select
|
|
55
|
+
v-model="model.f_contract_nature"
|
|
56
|
+
placeholder='请选择'
|
|
57
|
+
condition="f_contract_nature = '{}'"
|
|
58
|
+
:value.sync="model.f_contract_nature"
|
|
59
|
+
:options='$parent.$parent.contractNature'
|
|
60
|
+
class="select select_list"
|
|
61
|
+
:value-single="true"
|
|
62
|
+
close-on-select ></v-select>
|
|
63
|
+
</div>
|
|
64
|
+
<div class="form-group col-sm-3">
|
|
65
|
+
<label class="font_normal_body">合同来源:</label>
|
|
66
|
+
<v-select
|
|
67
|
+
v-model="model.f_contract_source"
|
|
68
|
+
placeholder='请选择'
|
|
69
|
+
condition="f_contract_source = '{}'"
|
|
70
|
+
:value.sync="model.f_contract_source"
|
|
71
|
+
:options='$parent.$parent.contractSource'
|
|
72
|
+
class="select select_list"
|
|
73
|
+
:value-single="true"
|
|
74
|
+
close-on-select ></v-select>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
</criteria>
|
|
79
|
+
<data-grid v-if="$parent.showData" :model="model" partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
|
|
80
|
+
<template partial='head'>
|
|
81
|
+
<tr>
|
|
82
|
+
<th style="white-space: nowrap;">序号</th>
|
|
83
|
+
<th style="white-space: nowrap;">合同编号</th>
|
|
84
|
+
<th style="white-space: nowrap;">对方名称</th>
|
|
85
|
+
<th style="white-space: nowrap;">联系人</th>
|
|
86
|
+
<th style="white-space: nowrap;">电话</th>
|
|
87
|
+
<th style="white-space: nowrap;">合同性质</th>
|
|
88
|
+
<th style="white-space: nowrap;">合同来源</th>
|
|
89
|
+
<th style="white-space: nowrap;">合同份数</th>
|
|
90
|
+
<th style="white-space: nowrap;">合同金额</th>
|
|
91
|
+
<th style="white-space: nowrap;">签订时间</th>
|
|
92
|
+
<th style="white-space: nowrap;">到期时间</th>
|
|
93
|
+
<th style="white-space: nowrap;">合同状态</th>
|
|
94
|
+
<th style="white-space: nowrap;">操作</th>
|
|
95
|
+
</tr>
|
|
96
|
+
</template>
|
|
97
|
+
<template partial='body'>
|
|
98
|
+
<tr >
|
|
99
|
+
<td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;" @click="$parent.$parent.$parent.openViewContract(row)">
|
|
100
|
+
<nobr><font>{{$index+1}}</font></nobr>
|
|
101
|
+
</td>
|
|
102
|
+
<td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;" @click="$parent.$parent.$parent.openViewContract(row)">
|
|
103
|
+
<nobr><font>{{row.f_contract_number}}</font></nobr>
|
|
104
|
+
</td>
|
|
105
|
+
<td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;" @click="$parent.$parent.$parent.openViewContract(row)">
|
|
106
|
+
<nobr><font>{{row.f_supplier}}</font></nobr>
|
|
107
|
+
</td>
|
|
108
|
+
<td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;" @click="$parent.$parent.$parent.openViewContract(row)">
|
|
109
|
+
<nobr><font>{{row.f_contact_person}}</font></nobr>
|
|
110
|
+
</td>
|
|
111
|
+
<td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;" @click="$parent.$parent.$parent.openViewContract(row)">
|
|
112
|
+
<nobr><font>{{row.f_tel}}</font></nobr>
|
|
113
|
+
</td>
|
|
114
|
+
<td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;" @click="$parent.$parent.$parent.openViewContract(row)">
|
|
115
|
+
<nobr><font>{{row.f_contract_nature}}</font></nobr>
|
|
116
|
+
</td>
|
|
117
|
+
<td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;" @click="$parent.$parent.$parent.openViewContract(row)">
|
|
118
|
+
<nobr><font>{{row.f_contract_source}}</font></nobr>
|
|
119
|
+
</td>
|
|
120
|
+
<td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;" @click="$parent.$parent.$parent.openViewContract(row)">
|
|
121
|
+
<nobr><font>{{row.f_amount}}</font></nobr>
|
|
122
|
+
</td>
|
|
123
|
+
<td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;" @click="$parent.$parent.$parent.openViewContract(row)">
|
|
124
|
+
<nobr><font>{{row.f_contract_money}}</font></nobr>
|
|
125
|
+
</td>
|
|
126
|
+
<td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;" @click="$parent.$parent.$parent.openViewContract(row)">
|
|
127
|
+
<nobr><font>{{new Date(row.f_contract_time).Format('yyyy-MM-dd')}}</font></nobr>
|
|
128
|
+
</td>
|
|
129
|
+
<td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;" @click="$parent.$parent.$parent.openViewContract(row)">
|
|
130
|
+
<nobr><font>{{new Date(row.f_contract_expiration_date).Format('yyyy-MM-dd')}}</font></nobr>
|
|
131
|
+
</td>
|
|
132
|
+
<td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;" @click="$parent.$parent.$parent.openViewContract(row)">
|
|
133
|
+
<nobr><font>{{new Date() > new Date(row.f_contract_expiration_date) ? '无效': '有效'}}</font></nobr>
|
|
134
|
+
</td>
|
|
135
|
+
<td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;">
|
|
136
|
+
<dropdown>
|
|
137
|
+
<button type="button" data-toggle="dropdown" style="border: 0px;background: none;">
|
|
138
|
+
<span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>
|
|
139
|
+
</button>
|
|
140
|
+
<ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">
|
|
141
|
+
<li>
|
|
142
|
+
<a href="#" @click="$parent.$parent.$parent.openAddMatter(row)">添加事项</a>
|
|
143
|
+
</li>
|
|
144
|
+
<li>
|
|
145
|
+
<a href="#" @click="$parent.$parent.$parent.openRenew(row)">续签</a>
|
|
146
|
+
</li>
|
|
147
|
+
</ul>
|
|
148
|
+
</dropdown>
|
|
149
|
+
</td>
|
|
150
|
+
</tr>
|
|
151
|
+
</template>
|
|
152
|
+
</data-grid>
|
|
153
|
+
</criteria-paged>
|
|
154
|
+
</template>
|
|
155
|
+
|
|
156
|
+
<script>
|
|
157
|
+
import {PagedList} from 'vue-client'
|
|
158
|
+
import {isEmpty} from '../../../../Util'
|
|
159
|
+
// Date格式化
|
|
160
|
+
Date.prototype.Format = function (fmt) {
|
|
161
|
+
var o = {
|
|
162
|
+
'M+': this.getMonth() + 1, // 月份
|
|
163
|
+
'd+': this.getDate(), // 日
|
|
164
|
+
'H+': this.getHours(), // 小时
|
|
165
|
+
'm+': this.getMinutes(), // 分
|
|
166
|
+
's+': this.getSeconds(), // 秒
|
|
167
|
+
'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
|
|
168
|
+
'S': this.getMilliseconds() // 毫秒
|
|
169
|
+
}
|
|
170
|
+
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
|
|
171
|
+
for (var k in o) {
|
|
172
|
+
if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
|
|
173
|
+
}
|
|
174
|
+
return fmt
|
|
175
|
+
}
|
|
176
|
+
export default {
|
|
177
|
+
title: '其他合同列表',
|
|
178
|
+
props: ['showData'],
|
|
179
|
+
data () {
|
|
180
|
+
return {
|
|
181
|
+
model: new PagedList('rs/sql/getContract', 30, {
|
|
182
|
+
data: {
|
|
183
|
+
f_contract_type: '其他合同',
|
|
184
|
+
orgid: this.$login.f.orgid,
|
|
185
|
+
date: new Date().Format('yyyy-MM-dd')
|
|
186
|
+
}
|
|
187
|
+
}),
|
|
188
|
+
criteriaShow: false,
|
|
189
|
+
contractStatus: [
|
|
190
|
+
{
|
|
191
|
+
'label': '全部',
|
|
192
|
+
'value': ''
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
'label': '有效',
|
|
196
|
+
'value': `f_contract_expiration_date >= '${new Date().Format('yyyy-MM-dd')}'`
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
'label': '预警',
|
|
200
|
+
'value': `f_contract_early_warning_date < '${new Date().Format('yyyy-MM-dd')}' and f_contract_expiration_date >= '${new Date().Format('yyyy-MM-dd')}'`
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
'label': '无效',
|
|
204
|
+
'value': `f_contract_expiration_date < '${new Date().Format('yyyy-MM-dd')}'`
|
|
205
|
+
}
|
|
206
|
+
],
|
|
207
|
+
contractNature:[{label: '全部', value: ''}, ...this.$appdata.getParam('合同性质')],
|
|
208
|
+
contractSource: [{label: '全部', value: ''}, ...this.$appdata.getParam('合同来源')]
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
ready () {
|
|
212
|
+
// 调用查询
|
|
213
|
+
this.search()
|
|
214
|
+
},
|
|
215
|
+
methods: {
|
|
216
|
+
openAddMatter (row) {
|
|
217
|
+
this.$dispatch('openAddMatter', row)
|
|
218
|
+
},
|
|
219
|
+
searchCondition (args) {
|
|
220
|
+
if (!isEmpty(args.model.f_contract_status)) {
|
|
221
|
+
args.condition += ` and ${args.model.f_contract_status}`
|
|
222
|
+
}
|
|
223
|
+
this.model.search(args.condition, args.model)
|
|
224
|
+
},
|
|
225
|
+
openRenew (row) {
|
|
226
|
+
this.$dispatch('openRenew', row)
|
|
227
|
+
},
|
|
228
|
+
openViewContract (row) {
|
|
229
|
+
this.$dispatch('openViewContract', row)
|
|
230
|
+
},
|
|
231
|
+
openAddContract () {
|
|
232
|
+
this.$dispatch('openAddContract')
|
|
233
|
+
},
|
|
234
|
+
clear () {
|
|
235
|
+
Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
|
|
236
|
+
this.$refs.cp.$refs.cri.model[key] = null
|
|
237
|
+
})
|
|
238
|
+
},
|
|
239
|
+
// 查询
|
|
240
|
+
search () {
|
|
241
|
+
this.$dispatch('search')
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
computed: {
|
|
245
|
+
rowclass () {
|
|
246
|
+
return function (contract) {
|
|
247
|
+
if (new Date() > new Date(contract.f_contract_expiration_date)) {
|
|
248
|
+
return 'danger'
|
|
249
|
+
}
|
|
250
|
+
if (new Date() > new Date(contract.f_contract_early_warning_date)) {
|
|
251
|
+
return 'warning'
|
|
252
|
+
}
|
|
253
|
+
return ''
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
</script>
|
|
259
|
+
|
|
260
|
+
<style scoped>
|
|
261
|
+
.warning {
|
|
262
|
+
background-color: #f0ad4e;
|
|
263
|
+
}
|
|
264
|
+
.danger {
|
|
265
|
+
background-color: #d9534f;
|
|
266
|
+
}
|
|
267
|
+
</style>
|