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