sale-client 3.6.27 → 3.6.29
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 +85 -85
- package/package.json +1 -1
- package/src/components/charge/business/OtherChargeNew.vue +1 -0
- package/src/components/common/userinfo_detail/ic_detail/HandQueryUser.vue +1 -1
- package/src/filiale/jinjiang/InstallationBookingCenter.vue +421 -0
- package/src/filiale/jinjiang/InstallationBookingHand.vue +230 -0
- package/src/filiale/jinjiang/sale.js +4 -0
- package/src/filiale/qianneng/eticket/EticketRecordList.vue +309 -309
- package/src/filiale/shanxian/OtherChargeNew.vue +1 -0
- package/src/filiale/wenxi/HandplanQuery.vue +6 -0
- package/src/main.js +1 -1
package/build/dev-server.js
CHANGED
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
var path = require('path')
|
|
2
|
-
const [localUrl, serverRul] = ['https://qnjtkf.cn:8400/', 'https://qnjtkf.cn:8400/']
|
|
3
|
-
var merge = require('webpack-merge')
|
|
4
|
-
var baseConfig = require('./webpack.dev.conf')
|
|
5
|
-
var devConfig = {
|
|
6
|
-
devServer: {
|
|
7
|
-
contentBase: path.join(__dirname, 'src'),
|
|
8
|
-
hot: true,
|
|
9
|
-
publicPath: baseConfig.output.publicPath,
|
|
10
|
-
historyApiFallback: true,
|
|
11
|
-
host: '127.0.0.1',
|
|
12
|
-
port: 8089,
|
|
13
|
-
open: true,
|
|
14
|
-
stats: {
|
|
15
|
-
colors: false, // 配置控制台输出彩色日志
|
|
16
|
-
chunks: false, // 不输出构建 chunk 信息
|
|
17
|
-
children: false // 不输出子模块构建信息
|
|
18
|
-
},
|
|
19
|
-
proxy: {
|
|
20
|
-
'/rs/file': {
|
|
21
|
-
target: serverRul
|
|
22
|
-
},
|
|
23
|
-
'/invoice': {
|
|
24
|
-
target: serverRul
|
|
25
|
-
},
|
|
26
|
-
// 查找资源服务数据
|
|
27
|
-
'/rs/search': {
|
|
28
|
-
target: serverRul
|
|
29
|
-
},
|
|
30
|
-
// 查找资源服务数据
|
|
31
|
-
'/rs/logic/getLogin': {
|
|
32
|
-
target: serverRul
|
|
33
|
-
},
|
|
34
|
-
// 查找资源服务数据
|
|
35
|
-
'/rs/logic/getInitData': {
|
|
36
|
-
target: serverRul
|
|
37
|
-
},
|
|
38
|
-
'/rs/logic/getSaleInitData': {
|
|
39
|
-
target: serverRul
|
|
40
|
-
},
|
|
41
|
-
// 用户登录服务地址
|
|
42
|
-
'/rs/user': {
|
|
43
|
-
target: serverRul
|
|
44
|
-
},
|
|
45
|
-
'/rs/path': {
|
|
46
|
-
target: serverRul
|
|
47
|
-
},
|
|
48
|
-
'/rs/data': {
|
|
49
|
-
target: serverRul
|
|
50
|
-
},
|
|
51
|
-
'/rs/license': {
|
|
52
|
-
target: serverRul
|
|
53
|
-
},
|
|
54
|
-
'/rs/db': {
|
|
55
|
-
target: serverRul
|
|
56
|
-
},
|
|
57
|
-
'/excel': {
|
|
58
|
-
target: serverRul
|
|
59
|
-
},
|
|
60
|
-
'/rs/config': {
|
|
61
|
-
target: serverRul
|
|
62
|
-
},
|
|
63
|
-
'/rs/report': {
|
|
64
|
-
target: serverRul
|
|
65
|
-
},
|
|
66
|
-
'/rs/vue': {
|
|
67
|
-
target: serverRul
|
|
68
|
-
},
|
|
69
|
-
'/rs/logic': {
|
|
70
|
-
target: localUrl
|
|
71
|
-
},
|
|
72
|
-
'/rs/sql': {
|
|
73
|
-
target: localUrl
|
|
74
|
-
},
|
|
75
|
-
'/webmeter': {
|
|
76
|
-
target: serverRul
|
|
77
|
-
},
|
|
78
|
-
'/rs': {
|
|
79
|
-
target: serverRul
|
|
80
|
-
// changeOrigin: true
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
module.exports = merge(baseConfig, devConfig)
|
|
1
|
+
var path = require('path')
|
|
2
|
+
const [localUrl, serverRul] = ['https://qnjtkf.cn:8400/', 'https://qnjtkf.cn:8400/']
|
|
3
|
+
var merge = require('webpack-merge')
|
|
4
|
+
var baseConfig = require('./webpack.dev.conf')
|
|
5
|
+
var devConfig = {
|
|
6
|
+
devServer: {
|
|
7
|
+
contentBase: path.join(__dirname, 'src'),
|
|
8
|
+
hot: true,
|
|
9
|
+
publicPath: baseConfig.output.publicPath,
|
|
10
|
+
historyApiFallback: true,
|
|
11
|
+
host: '127.0.0.1',
|
|
12
|
+
port: 8089,
|
|
13
|
+
open: true,
|
|
14
|
+
stats: {
|
|
15
|
+
colors: false, // 配置控制台输出彩色日志
|
|
16
|
+
chunks: false, // 不输出构建 chunk 信息
|
|
17
|
+
children: false // 不输出子模块构建信息
|
|
18
|
+
},
|
|
19
|
+
proxy: {
|
|
20
|
+
'/rs/file': {
|
|
21
|
+
target: serverRul
|
|
22
|
+
},
|
|
23
|
+
'/invoice': {
|
|
24
|
+
target: serverRul
|
|
25
|
+
},
|
|
26
|
+
// 查找资源服务数据
|
|
27
|
+
'/rs/search': {
|
|
28
|
+
target: serverRul
|
|
29
|
+
},
|
|
30
|
+
// 查找资源服务数据
|
|
31
|
+
'/rs/logic/getLogin': {
|
|
32
|
+
target: serverRul
|
|
33
|
+
},
|
|
34
|
+
// 查找资源服务数据
|
|
35
|
+
'/rs/logic/getInitData': {
|
|
36
|
+
target: serverRul
|
|
37
|
+
},
|
|
38
|
+
'/rs/logic/getSaleInitData': {
|
|
39
|
+
target: serverRul
|
|
40
|
+
},
|
|
41
|
+
// 用户登录服务地址
|
|
42
|
+
'/rs/user': {
|
|
43
|
+
target: serverRul
|
|
44
|
+
},
|
|
45
|
+
'/rs/path': {
|
|
46
|
+
target: serverRul
|
|
47
|
+
},
|
|
48
|
+
'/rs/data': {
|
|
49
|
+
target: serverRul
|
|
50
|
+
},
|
|
51
|
+
'/rs/license': {
|
|
52
|
+
target: serverRul
|
|
53
|
+
},
|
|
54
|
+
'/rs/db': {
|
|
55
|
+
target: serverRul
|
|
56
|
+
},
|
|
57
|
+
'/excel': {
|
|
58
|
+
target: serverRul
|
|
59
|
+
},
|
|
60
|
+
'/rs/config': {
|
|
61
|
+
target: serverRul
|
|
62
|
+
},
|
|
63
|
+
'/rs/report': {
|
|
64
|
+
target: serverRul
|
|
65
|
+
},
|
|
66
|
+
'/rs/vue': {
|
|
67
|
+
target: serverRul
|
|
68
|
+
},
|
|
69
|
+
'/rs/logic': {
|
|
70
|
+
target: localUrl
|
|
71
|
+
},
|
|
72
|
+
'/rs/sql': {
|
|
73
|
+
target: localUrl
|
|
74
|
+
},
|
|
75
|
+
'/webmeter': {
|
|
76
|
+
target: serverRul
|
|
77
|
+
},
|
|
78
|
+
'/rs': {
|
|
79
|
+
target: serverRul
|
|
80
|
+
// changeOrigin: true
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
module.exports = merge(baseConfig, devConfig)
|
package/package.json
CHANGED
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
<input class="input_search" style="width:60%" type="number" min="1" @blur.prevent="getcollection()"
|
|
51
51
|
v-model="row.f_unitprice"
|
|
52
52
|
:value.sync="row.f_unitprice"
|
|
53
|
+
v-validate:f_unitprice='{required: true}'
|
|
53
54
|
:disabled="false"
|
|
54
55
|
placeholder="单价" v-next-el='sl'>
|
|
55
56
|
</div>
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
></print-data>
|
|
60
60
|
<export-excel :data="{condition:$parent.$parent.condition}"
|
|
61
61
|
:field="$parent.$parent.fields"
|
|
62
|
-
sqlurl="rs/logic/
|
|
62
|
+
sqlurl="rs/logic/saleExport" sql-name="sale_HandplanQuery" template-name='抄表查询'
|
|
63
63
|
v-ref:exports
|
|
64
64
|
:choose-col="true">
|
|
65
65
|
|
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="binary">
|
|
3
|
+
<div :class="{'basic-main': !showDetail ,'binary-left': showDetail }">
|
|
4
|
+
<div class="flex" style="flex: 1;">
|
|
5
|
+
<div style="flex: 1.2">
|
|
6
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
7
|
+
<criteria @condition-changed="$parent.selfSearch" partial='criteria' v-ref:criteria>
|
|
8
|
+
<div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
|
|
9
|
+
<div class="row">
|
|
10
|
+
<div
|
|
11
|
+
:class="{'col-sm-2':!$parent.$parent.showDetail ,'col-sm-4':$parent.$parent.showDetail }"
|
|
12
|
+
class="form-group">
|
|
13
|
+
<label class="font_normal_body">申办流水号</label>
|
|
14
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_sblsh"
|
|
15
|
+
condition="f_sblsh like '%{}%'" placeholder="申办人流水号">
|
|
16
|
+
</div>
|
|
17
|
+
|
|
18
|
+
<div
|
|
19
|
+
:class="{'col-sm-2':!$parent.$parent.showDetail ,'col-sm-4':$parent.$parent.showDetail }"
|
|
20
|
+
class="form-group">
|
|
21
|
+
<label class="font_normal_body">申办人名称</label>
|
|
22
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
23
|
+
condition="f_sbrmc = '{}'" placeholder="申办人名称">
|
|
24
|
+
</div>
|
|
25
|
+
<div
|
|
26
|
+
:class="{'col-sm-2':!$parent.$parent.showDetail ,'col-sm-4':$parent.$parent.showDetail }"
|
|
27
|
+
v-if="!$parent.$parent.showDetail"
|
|
28
|
+
class="form-group">
|
|
29
|
+
<label class="font_normal_body">是否本司客户</label>
|
|
30
|
+
<v-select :value.sync="model.f_ismy_custom"
|
|
31
|
+
v-model="model.f_ismy_custom"
|
|
32
|
+
condition="f_ismy_custom = '{}'"
|
|
33
|
+
@change="$parent.$parent.isMyCustomChange()"
|
|
34
|
+
style="width: 60%"
|
|
35
|
+
:options='$parent.$parent.isMyCustoms' placeholder='是否本司客户'
|
|
36
|
+
close-on-select>
|
|
37
|
+
|
|
38
|
+
</v-select>
|
|
39
|
+
</div>
|
|
40
|
+
<div
|
|
41
|
+
:class="{'col-sm-2':!$parent.$parent.showDetail ,'col-sm-4':$parent.$parent.showDetail }"
|
|
42
|
+
class="form-group button-range">
|
|
43
|
+
<button @click="search(), $parent.$parent.clean()" class="button_search button_spacing"
|
|
44
|
+
style="float: right">查询
|
|
45
|
+
</button>
|
|
46
|
+
<button @click="$parent.$parent.clear()" class="button_search button_spacing"
|
|
47
|
+
style="float: right">清空
|
|
48
|
+
</button>
|
|
49
|
+
<div
|
|
50
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
51
|
+
@click="$parent.$parent.hidden()"
|
|
52
|
+
class="button_spacing"
|
|
53
|
+
style="float: right"></div>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
<div class="row" v-if="$parent.$parent.criteriaShow">
|
|
57
|
+
<div
|
|
58
|
+
:class="{'col-sm-2':!$parent.$parent.showDetail ,'col-sm-4':$parent.$parent.showDetail }"
|
|
59
|
+
v-if="$parent.$parent.showDetail"
|
|
60
|
+
class="form-group">
|
|
61
|
+
<label class="font_normal_body">是否本司客户</label>
|
|
62
|
+
<v-select :value.sync="model.f_ismy_custom"
|
|
63
|
+
@change="$parent.$parent.isMyCustomChange()"
|
|
64
|
+
v-model="model.f_ismy_custom"
|
|
65
|
+
condition="f_ismy_custom = '{}'"
|
|
66
|
+
style="width: 60%"
|
|
67
|
+
:options='$parent.$parent.isMyCustoms' placeholder='是否本司客户'
|
|
68
|
+
close-on-select>
|
|
69
|
+
</v-select>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
</criteria>
|
|
74
|
+
<data-grid :model="model" class="list_area table_sy" v-ref:grid partial='list'>
|
|
75
|
+
<template partial='head'>
|
|
76
|
+
<tr>
|
|
77
|
+
<th>
|
|
78
|
+
<nobr>申报流水号</nobr>
|
|
79
|
+
</th>
|
|
80
|
+
<th>
|
|
81
|
+
<nobr>事项编码</nobr>
|
|
82
|
+
</th>
|
|
83
|
+
<th>
|
|
84
|
+
<nobr>事项名称</nobr>
|
|
85
|
+
</th>
|
|
86
|
+
<!-- <th>-->
|
|
87
|
+
<!-- <nobr>申请人类型</nobr>-->
|
|
88
|
+
<!-- </th>-->
|
|
89
|
+
<th>
|
|
90
|
+
<nobr>申请人名称</nobr>
|
|
91
|
+
</th>
|
|
92
|
+
<!-- <th>-->
|
|
93
|
+
<!-- <nobr>申请人证件类型</nobr>-->
|
|
94
|
+
<!-- </th>-->
|
|
95
|
+
<!-- <th>-->
|
|
96
|
+
<!-- <nobr>申请人证件号码</nobr>-->
|
|
97
|
+
<!-- </th>-->
|
|
98
|
+
<th>
|
|
99
|
+
<nobr>联系人姓名</nobr>
|
|
100
|
+
</th>
|
|
101
|
+
<!-- <th>-->
|
|
102
|
+
<!-- <nobr>联系人证件类型</nobr>-->
|
|
103
|
+
<!-- </th>-->
|
|
104
|
+
<!-- <th>-->
|
|
105
|
+
<!-- <nobr>联系人证件号码</nobr>-->
|
|
106
|
+
<!-- </th>-->
|
|
107
|
+
<th>
|
|
108
|
+
<nobr>联系人电话</nobr>
|
|
109
|
+
</th>
|
|
110
|
+
<th>
|
|
111
|
+
<nobr>申办项目名称</nobr>
|
|
112
|
+
</th>
|
|
113
|
+
<!-- <th>-->
|
|
114
|
+
<!-- <nobr>申办材料清单</nobr>-->
|
|
115
|
+
<!-- </th>-->
|
|
116
|
+
<th>
|
|
117
|
+
<nobr>申办时间</nobr>
|
|
118
|
+
</th>
|
|
119
|
+
<th>
|
|
120
|
+
<nobr>审批状态</nobr>
|
|
121
|
+
</th>
|
|
122
|
+
<th>
|
|
123
|
+
<nobr>审批人</nobr>
|
|
124
|
+
</th>
|
|
125
|
+
<th>
|
|
126
|
+
<nobr>审批时间</nobr>
|
|
127
|
+
</th>
|
|
128
|
+
<th>
|
|
129
|
+
<nobr>办结状态</nobr>
|
|
130
|
+
</th>
|
|
131
|
+
<th>
|
|
132
|
+
<nobr>办结人</nobr>
|
|
133
|
+
</th>
|
|
134
|
+
<th>
|
|
135
|
+
<nobr>办结时间</nobr>
|
|
136
|
+
</th>
|
|
137
|
+
<th>
|
|
138
|
+
<nobr>操作</nobr>
|
|
139
|
+
</th>
|
|
140
|
+
<th v-if="$parent.$parent.$parent.isMyCustom">
|
|
141
|
+
<nobr>操作</nobr>
|
|
142
|
+
</th>
|
|
143
|
+
<th v-if="$parent.$parent.$parent.isMyCustom">
|
|
144
|
+
<nobr>批文回复</nobr>
|
|
145
|
+
</th>
|
|
146
|
+
</tr>
|
|
147
|
+
</template>
|
|
148
|
+
<template partial='body'>
|
|
149
|
+
<td style="text-align: center;">{{ row.f_sblsh }}</td>
|
|
150
|
+
<td style="text-align: center;">{{ row.f_sxbm }}</td>
|
|
151
|
+
<td style="text-align: center;">{{ row.f_sxmc }}</td>
|
|
152
|
+
<!-- <td style="text-align: center;">{{ row.f_sqrlx }}</td>-->
|
|
153
|
+
<td style="text-align: center;">{{ row.f_sbrmc }}</td>
|
|
154
|
+
<!-- <td style="text-align: center;">{{ row.f_sqrzjlx }}</td>-->
|
|
155
|
+
<!-- <td style="text-align: center;">{{ row.f_sqrzjhm }}</td>-->
|
|
156
|
+
<td style="text-align: center;">{{ row.f_lxrmc }}</td>
|
|
157
|
+
<!-- <td style="text-align: center;">{{ row.f_lxrzjlx }}</td>-->
|
|
158
|
+
<!-- <td style="text-align: center;">{{ row.f_lxrzjhm }}</td>-->
|
|
159
|
+
<td style="text-align: center;">{{ row.f_lxrsj }}</td>
|
|
160
|
+
<td style="text-align: center;">{{ row.f_sbxmmc }}</td>
|
|
161
|
+
<!-- <td style="text-align: center;">{{ row.f_sbclqd }}</td>-->
|
|
162
|
+
<td style="text-align: center;">{{ row.f_sbsj }}</td>
|
|
163
|
+
<td style="text-align: center;">{{ row.f_sp_state }}</td>
|
|
164
|
+
<td style="text-align: center;">{{ row.f_sp_operate }}</td>
|
|
165
|
+
<td style="text-align: center;">{{ row.f_sp_date }}</td>
|
|
166
|
+
<td style="text-align: center;">{{ row.f_bj_state }}</td>
|
|
167
|
+
<td style="text-align: center;">{{ row.f_bj_operate }}</td>
|
|
168
|
+
<td style="text-align: center;">{{ row.f_bj_date }}</td>
|
|
169
|
+
<td style="text-align: center;">
|
|
170
|
+
<button type="button" name="button" class="button_search-2 button_spacing width-60"
|
|
171
|
+
@click.stop="$parent.$parent.$parent.markUsers(row)">
|
|
172
|
+
{{ $parent.$parent.$parent.isMyCustom ? '标记为非本司客户' : '标记为本司客户' }}
|
|
173
|
+
</button>
|
|
174
|
+
</td>
|
|
175
|
+
<td style="text-align: center;" v-if="$parent.$parent.$parent.isMyCustom">
|
|
176
|
+
<button type="button" name="button" class="button_search-2 button_spacing width-60"
|
|
177
|
+
@click.stop="$parent.$parent.$parent.download(row)">下载附件
|
|
178
|
+
</button>
|
|
179
|
+
<button type="button" name="button" class="button_search-2 button_spacing width-60"
|
|
180
|
+
@click.stop="$parent.$parent.$parent.examined(row)">审批
|
|
181
|
+
</button>
|
|
182
|
+
<button type="button" name="button" class="button_search-2 button_spacing width-60"
|
|
183
|
+
@click.stop="$parent.$parent.$parent.completion(row)">办结
|
|
184
|
+
</button>
|
|
185
|
+
</td>
|
|
186
|
+
<td style="text-align: center;" v-if="$parent.$parent.$parent.isMyCustom">
|
|
187
|
+
<button type="button" name="button" class="button_search-2 button_spacing width-60"
|
|
188
|
+
@click.stop="$parent.$parent.$parent.approval(row)">批文批复
|
|
189
|
+
</button>
|
|
190
|
+
</td>
|
|
191
|
+
</template>
|
|
192
|
+
</data-grid>
|
|
193
|
+
</criteria-paged>
|
|
194
|
+
</div>
|
|
195
|
+
</div>
|
|
196
|
+
</div>
|
|
197
|
+
<div class="binary-right" :style="{width:'70%'}" v-if="showDetail">
|
|
198
|
+
<div class="auto" style="height: 100%; margin-top: 1%">
|
|
199
|
+
<installation-booking-hand :row="row" :title="title" v-ref:hand></installation-booking-hand>
|
|
200
|
+
</div>
|
|
201
|
+
</div>
|
|
202
|
+
<modal :show.sync="approvalShow" width="570px" title="批文批复" v-ref:modal large backdrop="false"
|
|
203
|
+
@modal-close="modalClose()">
|
|
204
|
+
<article slot="modal-body" class="modal-body">
|
|
205
|
+
<validator name='v'>
|
|
206
|
+
<div class="col-sm-8" style="margin-top: 10px">
|
|
207
|
+
<label for="f_comments" class="font_normal_body">选择文件:</label>
|
|
208
|
+
<input type="file" id="fileInput" class="input_search form-control" @change="handleFileChange">
|
|
209
|
+
</div>
|
|
210
|
+
<div style="text-align:center;height:auto;margin-top:10px;">
|
|
211
|
+
<button @click="uploadFile" class="button_clear btn-gn">上传文件</button>
|
|
212
|
+
</div>
|
|
213
|
+
</validator>
|
|
214
|
+
</article>
|
|
215
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
216
|
+
</footer>
|
|
217
|
+
</modal>
|
|
218
|
+
</div>
|
|
219
|
+
</template>
|
|
220
|
+
|
|
221
|
+
<script>
|
|
222
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
223
|
+
import FormData from 'form-data'
|
|
224
|
+
import axios from 'axios'
|
|
225
|
+
|
|
226
|
+
export default {
|
|
227
|
+
'title': '报装预约中心',
|
|
228
|
+
data () {
|
|
229
|
+
return {
|
|
230
|
+
model: new PagedList('rs/sql/government_getReservationData', 20),
|
|
231
|
+
showDetail: false,
|
|
232
|
+
criteriaShow: false,
|
|
233
|
+
row: null,
|
|
234
|
+
title: '',
|
|
235
|
+
isMyCustom: true,
|
|
236
|
+
approvalShow: false,
|
|
237
|
+
selectedFile: null,
|
|
238
|
+
isMyCustoms: [{label: '是', value: '0'}, {label: '否', value: '1'}]
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
ready () {
|
|
242
|
+
this.$refs.paged.$refs.criteria.model.f_ismy_custom = ['0']
|
|
243
|
+
},
|
|
244
|
+
methods: {
|
|
245
|
+
clean () {
|
|
246
|
+
this.showDetail = false
|
|
247
|
+
this.row = null
|
|
248
|
+
},
|
|
249
|
+
download (obj) {
|
|
250
|
+
let jsonArr = JSON.parse(obj.f_data_json)
|
|
251
|
+
console.log(typeof jsonArr)
|
|
252
|
+
const urlPrefix = 'http://218.200.69.51:8600/aplanmis-rest/previewPdf/downLoadPdf?detailId='
|
|
253
|
+
|
|
254
|
+
jsonArr.forEach(row => {
|
|
255
|
+
const url = urlPrefix + row.detailid
|
|
256
|
+
console.log(url)
|
|
257
|
+
|
|
258
|
+
const iframe = document.createElement('iframe')
|
|
259
|
+
iframe.style.display = 'none'
|
|
260
|
+
iframe.src = url
|
|
261
|
+
|
|
262
|
+
document.body.appendChild(iframe)
|
|
263
|
+
})
|
|
264
|
+
},
|
|
265
|
+
async markUsers (obj) {
|
|
266
|
+
let http = new HttpResetClass()
|
|
267
|
+
let message
|
|
268
|
+
if (this.isMyCustom) {
|
|
269
|
+
message = `确定要将客户${obj.f_sbrmc}标记为非本司客户吗?`
|
|
270
|
+
} else {
|
|
271
|
+
message = `确定要将客户${obj.f_sbrmc}标记为本司客户吗?`
|
|
272
|
+
}
|
|
273
|
+
this.$showMessage(message, ['confirm', 'cancel']).then(async (res) => {
|
|
274
|
+
if (res === 'confirm') {
|
|
275
|
+
let msg = {
|
|
276
|
+
resolveMsg: '操作成功!',
|
|
277
|
+
rejectMsg: '操作失败!'
|
|
278
|
+
}
|
|
279
|
+
await http.load('POST', 'rs/logic/government_markCustom', {data: obj}, msg)
|
|
280
|
+
await this.search()
|
|
281
|
+
}
|
|
282
|
+
})
|
|
283
|
+
},
|
|
284
|
+
modalClose () {
|
|
285
|
+
const fileInput = document.getElementById('fileInput')
|
|
286
|
+
if (fileInput) {
|
|
287
|
+
fileInput.value = '' // 清空文件输入框的值
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
approval (row) {
|
|
291
|
+
if (row.f_sp_state === '未处理' || row.f_bj_state === '未处理') {
|
|
292
|
+
this.$showMessage('此预约数据还未完成审批或办结环节,请先完成审批和办结环节再进行批文批复!!!', ['confirm'])
|
|
293
|
+
} else {
|
|
294
|
+
this.clean()
|
|
295
|
+
this.approvalShow = true
|
|
296
|
+
this.row = row
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
handleFileChange (event) {
|
|
300
|
+
this.selectedFile = event.target.files[0]
|
|
301
|
+
},
|
|
302
|
+
async uploadFile () {
|
|
303
|
+
if (!this.selectedFile) {
|
|
304
|
+
// 用户没有选择文件,可以进行相应的提示或处理
|
|
305
|
+
this.$showMessage('请先选择文件再进行上传!!!', ['confirm'])
|
|
306
|
+
return
|
|
307
|
+
}
|
|
308
|
+
let form = new FormData()
|
|
309
|
+
form.append('file', this.selectedFile)
|
|
310
|
+
form.append('f_sblsh', this.row.f_sblsh)
|
|
311
|
+
form.append('f_operate', this.$login.f.name)
|
|
312
|
+
axios.post('rs/docking/upload', form, {
|
|
313
|
+
timeout: 5000 // 设置超时时间为 5000 毫秒
|
|
314
|
+
})
|
|
315
|
+
.then(response => {
|
|
316
|
+
this.approvalShow = false
|
|
317
|
+
this.modalClose()
|
|
318
|
+
this.$showAlert('批文批复成功!!!', 'info', 3000)
|
|
319
|
+
})
|
|
320
|
+
.catch(error => {
|
|
321
|
+
console.log(error)
|
|
322
|
+
this.$showAlert('批文批复失败!!!', 'info', 3000)
|
|
323
|
+
})
|
|
324
|
+
},
|
|
325
|
+
/**
|
|
326
|
+
* 退出用户详细信息页面
|
|
327
|
+
*/
|
|
328
|
+
close () {
|
|
329
|
+
this.clean()
|
|
330
|
+
},
|
|
331
|
+
hidden () {
|
|
332
|
+
this.criteriaShow = !this.criteriaShow
|
|
333
|
+
},
|
|
334
|
+
search () {
|
|
335
|
+
this.$refs.paged.$refs.criteria.search()
|
|
336
|
+
},
|
|
337
|
+
isMyCustomChange () {
|
|
338
|
+
if (this.$refs.paged.$refs.criteria.model.f_ismy_custom.length > 0) {
|
|
339
|
+
if (this.$refs.paged.$refs.criteria.model.f_ismy_custom[0] == '0') {
|
|
340
|
+
this.isMyCustom = true
|
|
341
|
+
this.search()
|
|
342
|
+
} else {
|
|
343
|
+
this.isMyCustom = false
|
|
344
|
+
this.search()
|
|
345
|
+
}
|
|
346
|
+
} else {
|
|
347
|
+
this.$refs.paged.$refs.criteria.model.f_ismy_custom = ['0']
|
|
348
|
+
this.search()
|
|
349
|
+
this.isMyCustom = true
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
examined (row) {
|
|
353
|
+
this.title = '预约报装'
|
|
354
|
+
this.showDetail = true
|
|
355
|
+
if (row.f_sp_state != '未处理') {
|
|
356
|
+
row.f_orderstate = true
|
|
357
|
+
} else {
|
|
358
|
+
row.f_orderstate = false
|
|
359
|
+
}
|
|
360
|
+
this.title = this.title + '审批'
|
|
361
|
+
this.row = row
|
|
362
|
+
},
|
|
363
|
+
completion (row) {
|
|
364
|
+
if (row.f_sp_state !== '未处理') {
|
|
365
|
+
const currentTime = new Date()
|
|
366
|
+
const previousTime = new Date(row.f_sp_date)
|
|
367
|
+
const timeDiff = currentTime - previousTime
|
|
368
|
+
const halfHourInMilliseconds = 30 * 60 * 1000 // 半小时的毫秒数
|
|
369
|
+
if (timeDiff < halfHourInMilliseconds) {
|
|
370
|
+
const remainingTime = Math.ceil((halfHourInMilliseconds - timeDiff) / 1000)
|
|
371
|
+
const minutes = Math.floor(remainingTime / 60)
|
|
372
|
+
const seconds = remainingTime % 60
|
|
373
|
+
const message = `此预约数据距离审批时间不到半小时,暂不能办理办结,请于${minutes}分钟${seconds}秒后进行办结!!!`
|
|
374
|
+
this.$showMessage(message, ['confirm'])
|
|
375
|
+
} else {
|
|
376
|
+
this.title = '预约报装'
|
|
377
|
+
this.showDetail = true
|
|
378
|
+
if (row.f_bj_state != '未处理') {
|
|
379
|
+
row.f_orderstate = true
|
|
380
|
+
} else {
|
|
381
|
+
row.f_orderstate = false
|
|
382
|
+
}
|
|
383
|
+
this.title = this.title + '办结'
|
|
384
|
+
this.row = row
|
|
385
|
+
}
|
|
386
|
+
} else {
|
|
387
|
+
this.$showMessage('此预约数据还未完成审批环节,请先完成审批再进行办结!!!', ['confirm'])
|
|
388
|
+
}
|
|
389
|
+
},
|
|
390
|
+
selfSearch (args) {
|
|
391
|
+
this.model.search(args.condition, args.model)
|
|
392
|
+
this.clean()
|
|
393
|
+
},
|
|
394
|
+
clear () {
|
|
395
|
+
Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
|
|
396
|
+
this.$refs.paged.$refs.criteria.model[key] = []
|
|
397
|
+
})
|
|
398
|
+
},
|
|
399
|
+
getorg (val) {
|
|
400
|
+
this.f_filialeid = val[0]
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
computed: {},
|
|
404
|
+
watch: {},
|
|
405
|
+
events: {
|
|
406
|
+
'clean' () {
|
|
407
|
+
this.clean()
|
|
408
|
+
},
|
|
409
|
+
'parentSearch' () {
|
|
410
|
+
this.clean()
|
|
411
|
+
this.search()
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
</script>
|
|
416
|
+
<style>
|
|
417
|
+
.nav-tabss ul > li > a {
|
|
418
|
+
padding: 5px 10px;
|
|
419
|
+
}
|
|
420
|
+
</style>
|
|
421
|
+
|