|
|
@@ -13,8 +13,8 @@
|
|
13
|
13
|
start-placeholder="开始日期"
|
|
14
|
14
|
end-placeholder="结束日期"
|
|
15
|
15
|
/>
|
|
16
|
|
- <!-- :clearable="false" -->
|
|
17
|
|
- <!-- align="left" -->
|
|
|
16
|
+ <!-- :clearable="false" -->
|
|
|
17
|
+ <!-- align="left" -->
|
|
18
|
18
|
<el-cascader
|
|
19
|
19
|
ref="myCascader"
|
|
20
|
20
|
v-model="searchData.provinceCity"
|
|
|
@@ -82,14 +82,15 @@
|
|
82
|
82
|
<el-button v-permission="'HY_bulk_warehouse'" v-if="authority_bulk_warehouse()" type="primary" class="filter-item" @click="btn_bulk_warehouse">批量分仓</el-button>
|
|
83
|
83
|
<el-button v-permission="'HY_bulk_review'" v-if="authority_bulk_review()" type="primary" class="filter-item" @click="btn_bulk_review">批量审核</el-button>
|
|
84
|
84
|
<el-button v-permission="'HY_bulk_goback'" type="primary" class="filter-item" @click="btn_bulk_goback">批量退回</el-button>
|
|
|
85
|
+ <el-button v-permission="'HY_import'" v-if="activeName==7" type="primary" class="filter-item" @click="btn_import">批量导入审核</el-button>
|
|
85
|
86
|
<el-button v-permission="'HY_export'" type="primary" class="filter-item" @click="btn_export">导出</el-button>
|
|
86
|
87
|
<el-button v-permission="'HY_import_goback'" type="primary" class="filter-item" @click="btn_import_goback">导入附件退回</el-button>
|
|
87
|
88
|
</div>
|
|
88
|
89
|
<el-tabs v-model="activeName" type="card" @tab-click="handleTabClick">
|
|
89
|
|
- <el-tab-pane label="待分仓" name="1"></el-tab-pane>
|
|
90
|
|
- <el-tab-pane label="无货" name="4"></el-tab-pane>
|
|
91
|
|
- <el-tab-pane label="付款待审核" name="7"></el-tab-pane>
|
|
92
|
|
- <el-tab-pane label="0金额袜子" name="isZeroCommodity"></el-tab-pane>
|
|
|
90
|
+ <el-tab-pane label="待分仓" name="1"/>
|
|
|
91
|
+ <el-tab-pane label="无货" name="4"/>
|
|
|
92
|
+ <el-tab-pane label="付款待审核" name="7"/>
|
|
|
93
|
+ <el-tab-pane label="0金额袜子" name="isZeroCommodity"/>
|
|
93
|
94
|
</el-tabs>
|
|
94
|
95
|
<div>
|
|
95
|
96
|
<span>订单数量:{{ pageParams.total }}</span>
|
|
|
@@ -99,10 +100,10 @@
|
|
99
|
100
|
:data="dataLists"
|
|
100
|
101
|
border
|
|
101
|
102
|
stripe
|
|
102
|
|
- @selection-change="handleSelectionChange"
|
|
103
|
103
|
row-key="F_Id"
|
|
|
104
|
+ @selection-change="handleSelectionChange"
|
|
104
|
105
|
>
|
|
105
|
|
- <el-table-column type="selection" :reserve-selection="true"></el-table-column>
|
|
|
106
|
+ <el-table-column :reserve-selection="true" type="selection"/>
|
|
106
|
107
|
<el-table-column type="index" label="编号" align="center" fixed width="80" />
|
|
107
|
108
|
<el-table-column prop="F_Id" label="订单编号" align="center" min-width="180">
|
|
108
|
109
|
<template slot-scope="scope">
|
|
|
@@ -116,7 +117,7 @@
|
|
116
|
117
|
<el-table-column prop="F_Customer" label="客户姓名" align="center" min-width />
|
|
117
|
118
|
<el-table-column prop="F_CustomerPhone" label="手机号码" align="center" min-width="140" />
|
|
118
|
119
|
<el-table-column label="订购商品" align="center" min-width>
|
|
119
|
|
- <template slot-scope="scope">{{ scope.row.OrderDetailList | judgmentOrderGoods}}</template>
|
|
|
120
|
+ <template slot-scope="scope">{{ scope.row.OrderDetailList | judgmentOrderGoods }}</template>
|
|
120
|
121
|
</el-table-column>
|
|
121
|
122
|
<el-table-column prop="F_AddTime" label="下单日期" align="center" />
|
|
122
|
123
|
<el-table-column label="订单状态" align="center">
|
|
|
@@ -180,41 +181,42 @@
|
|
180
|
181
|
|
|
181
|
182
|
<script>
|
|
182
|
183
|
import { getDictionaryValueList, getProviceCityById } from '@/api/commonAPI'
|
|
183
|
|
-import { getOrderListCustomerService } from "@/api/customerServiceManagement/orderListCustomerService";
|
|
184
|
|
-import { pickerOptions, formatterContent } from "@/utils";
|
|
|
184
|
+import { getOrderListCustomerService } from '@/api/customerServiceManagement/orderListCustomerService'
|
|
|
185
|
+import { pickerOptions, formatterContent } from '@/utils'
|
|
185
|
186
|
// import through from "./through";
|
|
186
|
187
|
// import label from "./label";
|
|
187
|
188
|
// import edit from "./edit";
|
|
188
|
189
|
// import merge from './merge';
|
|
189
|
|
-import importGoback from './importGoback';
|
|
190
|
|
-import goback from "./goback";
|
|
191
|
|
-import warehouse from './warehouse';
|
|
192
|
|
-import review from './review';
|
|
193
|
|
-import detail from "@/views/orderManagement/orderList/detail"
|
|
194
|
|
-import Pagination from "@/components/Pagination"; // 对el-pagination 二次封装
|
|
|
190
|
+import importReceiving from './importReceiving'
|
|
|
191
|
+import importGoback from './importGoback'
|
|
|
192
|
+import goback from './goback'
|
|
|
193
|
+import warehouse from './warehouse'
|
|
|
194
|
+import review from './review'
|
|
|
195
|
+import detail from '@/views/orderManagement/orderList/detail'
|
|
|
196
|
+import Pagination from '@/components/Pagination' // 对el-pagination 二次封装
|
|
195
|
197
|
|
|
196
|
198
|
export default {
|
|
197
|
|
- name: "OrderListCustomerService",
|
|
|
199
|
+ name: 'OrderListCustomerService',
|
|
198
|
200
|
components: {
|
|
199
|
201
|
Pagination
|
|
200
|
202
|
},
|
|
201
|
203
|
filters: {
|
|
202
|
|
- judgmentStateName (status) {
|
|
|
204
|
+ judgmentStateName(status) {
|
|
203
|
205
|
const statusMap = {
|
|
204
|
|
- '0': "未提交",
|
|
205
|
|
- '1': "待分仓",
|
|
206
|
|
- '2': "已退回",
|
|
207
|
|
- '3': "已分仓",
|
|
208
|
|
- '4': "无货",
|
|
209
|
|
- '5': "仓库待审核",
|
|
210
|
|
- '6': "已发货",
|
|
211
|
|
- '7': "付款待审核",
|
|
212
|
|
- '8': "待分物流",
|
|
213
|
|
- '9': "物流未通过",
|
|
|
206
|
+ '0': '未提交',
|
|
|
207
|
+ '1': '待分仓',
|
|
|
208
|
+ '2': '已退回',
|
|
|
209
|
+ '3': '已分仓',
|
|
|
210
|
+ '4': '无货',
|
|
|
211
|
+ '5': '仓库待审核',
|
|
|
212
|
+ '6': '已发货',
|
|
|
213
|
+ '7': '付款待审核',
|
|
|
214
|
+ '8': '待分物流',
|
|
|
215
|
+ '9': '物流未通过'
|
|
214
|
216
|
}
|
|
215
|
217
|
return statusMap[status]
|
|
216
|
218
|
},
|
|
217
|
|
- judgmentOrderGoods (status) {
|
|
|
219
|
+ judgmentOrderGoods(status) {
|
|
218
|
220
|
let orderGoodsNameQuantity = ''
|
|
219
|
221
|
for (let i = 0; i < status.length; i++) {
|
|
220
|
222
|
orderGoodsNameQuantity = `${orderGoodsNameQuantity}${status[i].F_ProductName}*${status[i].F_Count},`
|
|
|
@@ -222,36 +224,36 @@ export default {
|
|
222
|
224
|
orderGoodsNameQuantity = orderGoodsNameQuantity.substring(0, orderGoodsNameQuantity.length - 1)
|
|
223
|
225
|
return orderGoodsNameQuantity
|
|
224
|
226
|
},
|
|
225
|
|
- judgmentAddress (data) {
|
|
226
|
|
- let addProvince = data.F_AddProvince === null ? '' : data.F_AddProvince //省
|
|
227
|
|
- let addCity = data.F_AddCity === null ? '' : data.F_AddCity //市
|
|
228
|
|
- let addArea = data.F_AddArea === null ? '' : data.F_AddArea //县/区
|
|
229
|
|
- let addTown = data.F_AddTown === null ? '' : data.F_AddTown //乡/镇
|
|
230
|
|
- let address = data.F_Address === null ? '' : data.F_Address //详细地址
|
|
231
|
|
- let addressStr = addProvince + addCity + addArea + addTown + address // 地址
|
|
|
227
|
+ judgmentAddress(data) {
|
|
|
228
|
+ const addProvince = data.F_AddProvince === null ? '' : data.F_AddProvince // 省
|
|
|
229
|
+ const addCity = data.F_AddCity === null ? '' : data.F_AddCity // 市
|
|
|
230
|
+ const addArea = data.F_AddArea === null ? '' : data.F_AddArea // 县/区
|
|
|
231
|
+ const addTown = data.F_AddTown === null ? '' : data.F_AddTown // 乡/镇
|
|
|
232
|
+ const address = data.F_Address === null ? '' : data.F_Address // 详细地址
|
|
|
233
|
+ const addressStr = addProvince + addCity + addArea + addTown + address // 地址
|
|
232
|
234
|
return addressStr
|
|
233
|
235
|
}
|
|
234
|
236
|
},
|
|
235
|
|
- data () {
|
|
|
237
|
+ data() {
|
|
236
|
238
|
return {
|
|
237
|
239
|
loading: false,
|
|
238
|
240
|
searchData: {
|
|
239
|
241
|
state: '1',
|
|
240
|
|
- adFrom: '', //消息/广告媒体来源
|
|
241
|
|
- type: '', //订单类型
|
|
242
|
|
- id: '', //订单号
|
|
243
|
|
- customer: '', //客户姓名
|
|
244
|
|
- customerPhone: '', //客户手机号
|
|
245
|
|
- trackingNo: '', //运单号
|
|
246
|
|
- payState: '', //交易状态
|
|
|
242
|
+ adFrom: '', // 消息/广告媒体来源
|
|
|
243
|
+ type: '', // 订单类型
|
|
|
244
|
+ id: '', // 订单号
|
|
|
245
|
+ customer: '', // 客户姓名
|
|
|
246
|
+ customerPhone: '', // 客户手机号
|
|
|
247
|
+ trackingNo: '', // 运单号
|
|
|
248
|
+ payState: '', // 交易状态
|
|
247
|
249
|
provinceCity: [], // 省市县
|
|
248
|
250
|
minprice: '', // 最低金额
|
|
249
|
251
|
maxprice: '', // 最高金额
|
|
250
|
252
|
F_AddDes: '', // 送货说明
|
|
251
|
|
- isZeroCommodity: '',
|
|
|
253
|
+ isZeroCommodity: ''
|
|
252
|
254
|
},
|
|
253
|
|
- searchTime: [], //订单时间
|
|
254
|
|
- activeName: "1", //标签切换首页
|
|
|
255
|
+ searchTime: [], // 订单时间
|
|
|
256
|
+ activeName: '1', // 标签切换首页
|
|
255
|
257
|
provinceCityDatas: [], // 省市下拉数据
|
|
256
|
258
|
provinceCityText: [], // 省市下拉绑定的值
|
|
257
|
259
|
props: {
|
|
|
@@ -270,16 +272,16 @@ export default {
|
|
270
|
272
|
dataLists: [], // 列表数据
|
|
271
|
273
|
multipleSelection: [], // 选中的数据
|
|
272
|
274
|
selectedId: [], // 选中的数据的id
|
|
273
|
|
- orderType: [],//订单类型
|
|
274
|
|
- selectOrderId: [], //合并订单id
|
|
275
|
|
- };
|
|
|
275
|
+ orderType: [], // 订单类型
|
|
|
276
|
+ selectOrderId: [] // 合并订单id
|
|
|
277
|
+ }
|
|
276
|
278
|
},
|
|
277
|
279
|
watch: {
|
|
278
|
280
|
searchTime(newVal, oldVal) {
|
|
279
|
281
|
!newVal && (this.searchTime = [])
|
|
280
|
282
|
}
|
|
281
|
283
|
},
|
|
282
|
|
- created () {
|
|
|
284
|
+ created() {
|
|
283
|
285
|
if (this.$route.params.id) {
|
|
284
|
286
|
this.activeName = this.$route.params.id
|
|
285
|
287
|
}
|
|
|
@@ -290,28 +292,28 @@ export default {
|
|
290
|
292
|
this.getAddDesList()
|
|
291
|
293
|
document.onkeyup = e => {
|
|
292
|
294
|
if (e.keyCode === 13) {
|
|
293
|
|
- this.getList();
|
|
|
295
|
+ this.getList()
|
|
294
|
296
|
}
|
|
295
|
|
- };
|
|
|
297
|
+ }
|
|
296
|
298
|
},
|
|
297
|
299
|
methods: {
|
|
298
|
|
- getList () {
|
|
299
|
|
- this.loading = true;
|
|
|
300
|
+ getList() {
|
|
|
301
|
+ this.loading = true
|
|
300
|
302
|
return new Promise(resolve => {
|
|
301
|
303
|
const params = {
|
|
302
|
|
- F_State: this.searchData.state, //订单状态
|
|
|
304
|
+ F_State: this.searchData.state, // 订单状态
|
|
303
|
305
|
pageindex: 1, // int 第几页
|
|
304
|
306
|
pagesize: 1000000, // int 每页几条信息
|
|
305
|
|
- F_ADFrom: this.searchData.adFrom, //消息/广告来源
|
|
306
|
|
- F_Type: this.searchData.type, //订单类型
|
|
307
|
|
- F_Id: this.searchData.id, //订单号
|
|
308
|
|
- F_Customer: this.searchData.customer, //客户姓名
|
|
309
|
|
- F_CustomerPhone: this.searchData.customerPhone, //客户手机号
|
|
310
|
|
- F_TrackingNo: this.searchData.trackingNo, //运单号
|
|
311
|
|
- SearchStartTime: this.searchTime[0] == null ? '' : this.searchTime[0], //添加开始时间
|
|
312
|
|
- SearchEndTime: this.searchTime[1] == null ? '' : this.searchTime[1], //添加结束时间
|
|
313
|
|
- PayState: this.searchData.payState, //交易状态
|
|
314
|
|
- F_IsExpress: -2, //-2全部 0客服未分配快递 1已分配
|
|
|
307
|
+ F_ADFrom: this.searchData.adFrom, // 消息/广告来源
|
|
|
308
|
+ F_Type: this.searchData.type, // 订单类型
|
|
|
309
|
+ F_Id: this.searchData.id, // 订单号
|
|
|
310
|
+ F_Customer: this.searchData.customer, // 客户姓名
|
|
|
311
|
+ F_CustomerPhone: this.searchData.customerPhone, // 客户手机号
|
|
|
312
|
+ F_TrackingNo: this.searchData.trackingNo, // 运单号
|
|
|
313
|
+ SearchStartTime: this.searchTime[0] == null ? '' : this.searchTime[0], // 添加开始时间
|
|
|
314
|
+ SearchEndTime: this.searchTime[1] == null ? '' : this.searchTime[1], // 添加结束时间
|
|
|
315
|
+ PayState: this.searchData.payState, // 交易状态
|
|
|
316
|
+ F_IsExpress: -2, // -2全部 0客服未分配快递 1已分配
|
|
315
|
317
|
state: '',
|
|
316
|
318
|
F_AddProvince: this.provinceCityText && this.provinceCityText[0], // 省份
|
|
317
|
319
|
F_AddCity: this.provinceCityText[1] && this.provinceCityText[1], // 市
|
|
|
@@ -321,31 +323,31 @@ export default {
|
|
321
|
323
|
maxprice: this.searchData.maxprice, // 最高金额
|
|
322
|
324
|
F_AddDes: this.searchData.F_AddDes, // 送货说明
|
|
323
|
325
|
F_IsZeroCommodity: this.searchData.isZeroCommodity
|
|
324
|
|
- };
|
|
|
326
|
+ }
|
|
325
|
327
|
getOrderListCustomerService(params).then(response => {
|
|
326
|
|
- this.loading = false;
|
|
327
|
|
- if (response.state.toLowerCase() === "success") {
|
|
328
|
|
- this.pageParams.total = response.data.Totals;
|
|
329
|
|
- this.dataLists = response.data.Rows;
|
|
|
328
|
+ this.loading = false
|
|
|
329
|
+ if (response.state.toLowerCase() === 'success') {
|
|
|
330
|
+ this.pageParams.total = response.data.Totals
|
|
|
331
|
+ this.dataLists = response.data.Rows
|
|
330
|
332
|
}
|
|
331
|
|
- });
|
|
332
|
|
- resolve();
|
|
333
|
|
- });
|
|
|
333
|
+ })
|
|
|
334
|
+ resolve()
|
|
|
335
|
+ })
|
|
334
|
336
|
},
|
|
335
|
|
- //处理默认选中当前日期
|
|
|
337
|
+ // 处理默认选中当前日期
|
|
336
|
338
|
getNowTime() {
|
|
337
|
|
- let now = new Date();
|
|
338
|
|
- let year = now.getFullYear(); //得到年份
|
|
339
|
|
- let month = now.getMonth() + 1; //得到月份
|
|
340
|
|
- let date = now.getDate(); //得到日期
|
|
341
|
|
- let hour =" 00:00:00"; //默认时分秒
|
|
342
|
|
- month = month.toString().padStart(2, "0");
|
|
343
|
|
- date = date.toString().padStart(2, "0");
|
|
344
|
|
- let defaultDate = `${year}-${month}-${date}`;
|
|
|
339
|
+ const now = new Date()
|
|
|
340
|
+ const year = now.getFullYear() // 得到年份
|
|
|
341
|
+ let month = now.getMonth() + 1 // 得到月份
|
|
|
342
|
+ let date = now.getDate() // 得到日期
|
|
|
343
|
+ const hour = ' 00:00:00' // 默认时分秒
|
|
|
344
|
+ month = month.toString().padStart(2, '0')
|
|
|
345
|
+ date = date.toString().padStart(2, '0')
|
|
|
346
|
+ const defaultDate = `${year}-${month}-${date}`
|
|
345
|
347
|
this.searchTime = [defaultDate, defaultDate]
|
|
346
|
348
|
},
|
|
347
|
349
|
// 获取订单类型
|
|
348
|
|
- getOrderType () {
|
|
|
350
|
+ getOrderType() {
|
|
349
|
351
|
return new Promise(resolve => {
|
|
350
|
352
|
const params = {
|
|
351
|
353
|
isleaf: true,
|
|
|
@@ -372,9 +374,9 @@ export default {
|
|
372
|
374
|
})
|
|
373
|
375
|
})
|
|
374
|
376
|
},
|
|
375
|
|
- handleTabClick (tab, event) {
|
|
376
|
|
- this.pageParams.pageindex=1
|
|
377
|
|
- if (this.activeName == "isZeroCommodity") {
|
|
|
377
|
+ handleTabClick(tab, event) {
|
|
|
378
|
+ this.pageParams.pageindex = 1
|
|
|
379
|
+ if (this.activeName == 'isZeroCommodity') {
|
|
378
|
380
|
this.searchData.isZeroCommodity = 1
|
|
379
|
381
|
this.searchData.state = ''
|
|
380
|
382
|
} else {
|
|
|
@@ -383,33 +385,45 @@ export default {
|
|
383
|
385
|
}
|
|
384
|
386
|
this.getList()
|
|
385
|
387
|
},
|
|
386
|
|
- btn_search () {
|
|
387
|
|
- this.pageParams.pageindex = 1;
|
|
388
|
|
- this.getList();
|
|
|
388
|
+ btn_search() {
|
|
|
389
|
+ this.pageParams.pageindex = 1
|
|
|
390
|
+ this.getList()
|
|
|
391
|
+ },
|
|
|
392
|
+ // 批量导入
|
|
|
393
|
+ btn_import() {
|
|
|
394
|
+ this.$layer.iframe({
|
|
|
395
|
+ content: {
|
|
|
396
|
+ content: importReceiving, // 传递的组件对象
|
|
|
397
|
+ parent: this, // 当前的vue对象
|
|
|
398
|
+ data: { rowid: '' } // props
|
|
|
399
|
+ },
|
|
|
400
|
+ area: ['30%', '30%'],
|
|
|
401
|
+ title: '导入'
|
|
|
402
|
+ })
|
|
389
|
403
|
},
|
|
390
|
|
- //导出
|
|
391
|
|
- btn_export () {
|
|
392
|
|
- let SearchStartTime = this.searchTime[0] == undefined ? '' : this.searchTime[0]
|
|
393
|
|
- let SearchEndTime = this.searchTime[1] == undefined ? '' : this.searchTime[1]
|
|
394
|
|
- let F_AddProvince = this.provinceCityText[0] == undefined ? '' : this.provinceCityText[0]
|
|
395
|
|
- let F_AddCity = this.provinceCityText[1] == undefined ? '' : this.provinceCityText[1]
|
|
396
|
|
- let F_AddArea = this.provinceCityText[2] == undefined ? '' : this.provinceCityText[2]
|
|
397
|
|
- let F_AddTown = this.provinceCityText[3] == undefined ? '' : this.provinceCityText[3]
|
|
398
|
|
- window.location.href = this.$store.getters.serverConfig.BASE_API + "api/order/getorderlistbykfpage?isdc=1" + "&F_State=" + this.activeName + "&SearchStartTime=" + SearchStartTime + "&SearchEndTime=" + SearchEndTime + "&F_AddProvince=" + F_AddProvince + "&F_AddCity=" + F_AddCity + "&F_AddArea=" + F_AddArea + "&F_AddTown=" + F_AddTown + "&minprice=" + this.searchData.minprice + "&maxprice=" + this.searchData.maxprice + "&F_AddDes=" + this.searchData.F_AddDes
|
|
|
404
|
+ // 导出
|
|
|
405
|
+ btn_export() {
|
|
|
406
|
+ const SearchStartTime = this.searchTime[0] == undefined ? '' : this.searchTime[0]
|
|
|
407
|
+ const SearchEndTime = this.searchTime[1] == undefined ? '' : this.searchTime[1]
|
|
|
408
|
+ const F_AddProvince = this.provinceCityText[0] == undefined ? '' : this.provinceCityText[0]
|
|
|
409
|
+ const F_AddCity = this.provinceCityText[1] == undefined ? '' : this.provinceCityText[1]
|
|
|
410
|
+ const F_AddArea = this.provinceCityText[2] == undefined ? '' : this.provinceCityText[2]
|
|
|
411
|
+ const F_AddTown = this.provinceCityText[3] == undefined ? '' : this.provinceCityText[3]
|
|
|
412
|
+ window.location.href = this.$store.getters.serverConfig.BASE_API + 'api/order/getorderlistbykfpage?isdc=1' + '&F_State=' + this.activeName + '&SearchStartTime=' + SearchStartTime + '&SearchEndTime=' + SearchEndTime + '&F_AddProvince=' + F_AddProvince + '&F_AddCity=' + F_AddCity + '&F_AddArea=' + F_AddArea + '&F_AddTown=' + F_AddTown + '&minprice=' + this.searchData.minprice + '&maxprice=' + this.searchData.maxprice + '&F_AddDes=' + this.searchData.F_AddDes
|
|
399
|
413
|
},
|
|
400
|
|
- btn_edit (editId) {
|
|
|
414
|
+ btn_edit(editId) {
|
|
401
|
415
|
this.$layer.iframe({
|
|
402
|
416
|
content: {
|
|
403
|
417
|
content: edit, // 传递的组件对象
|
|
404
|
418
|
parent: this, // 当前的vue对象
|
|
405
|
419
|
data: { rowid: editId } // props
|
|
406
|
420
|
},
|
|
407
|
|
- area: ["80%", "90%"],
|
|
408
|
|
- title: "编辑订单"
|
|
409
|
|
- });
|
|
|
421
|
+ area: ['80%', '90%'],
|
|
|
422
|
+ title: '编辑订单'
|
|
|
423
|
+ })
|
|
410
|
424
|
},
|
|
411
|
|
- //导入
|
|
412
|
|
- btn_waybill_number_import () {
|
|
|
425
|
+ // 导入
|
|
|
426
|
+ btn_waybill_number_import() {
|
|
413
|
427
|
this.$layer.iframe({
|
|
414
|
428
|
content: {
|
|
415
|
429
|
content: importWaybillNumber, // 传递的组件对象
|
|
|
@@ -422,127 +436,127 @@ export default {
|
|
422
|
436
|
})
|
|
423
|
437
|
},
|
|
424
|
438
|
// 批量分仓
|
|
425
|
|
- btn_bulk_warehouse () {
|
|
|
439
|
+ btn_bulk_warehouse() {
|
|
426
|
440
|
if (this.selectOrderId.length < 1) {
|
|
427
|
441
|
this.$message({
|
|
428
|
|
- message: "请选择订单!",
|
|
429
|
|
- type: "warning",
|
|
430
|
|
- });
|
|
431
|
|
- return;
|
|
|
442
|
+ message: '请选择订单!',
|
|
|
443
|
+ type: 'warning'
|
|
|
444
|
+ })
|
|
|
445
|
+ return
|
|
432
|
446
|
}
|
|
433
|
|
- let orderids = this.selectOrderId.join(',').replace(/\s+/g, '')
|
|
|
447
|
+ const orderids = this.selectOrderId.join(',').replace(/\s+/g, '')
|
|
434
|
448
|
this.$layer.iframe({
|
|
435
|
449
|
content: {
|
|
436
|
450
|
content: warehouse, // 传递的组件对象
|
|
437
|
451
|
parent: this, // 当前的vue对象
|
|
438
|
452
|
data: { rowid: orderids } // props
|
|
439
|
453
|
},
|
|
440
|
|
- area: ["30%", "30%"],
|
|
441
|
|
- title: "分仓"
|
|
442
|
|
- });
|
|
|
454
|
+ area: ['30%', '30%'],
|
|
|
455
|
+ title: '分仓'
|
|
|
456
|
+ })
|
|
443
|
457
|
},
|
|
444
|
458
|
// 分仓
|
|
445
|
|
- btn_warehouse (orderid) {
|
|
|
459
|
+ btn_warehouse(orderid) {
|
|
446
|
460
|
this.$layer.iframe({
|
|
447
|
461
|
content: {
|
|
448
|
462
|
content: warehouse, // 传递的组件对象
|
|
449
|
463
|
parent: this, // 当前的vue对象
|
|
450
|
464
|
data: { rowid: orderid } // props
|
|
451
|
465
|
},
|
|
452
|
|
- area: ["30%", "30%"],
|
|
453
|
|
- title: "分仓"
|
|
454
|
|
- });
|
|
|
466
|
+ area: ['30%', '30%'],
|
|
|
467
|
+ title: '分仓'
|
|
|
468
|
+ })
|
|
455
|
469
|
},
|
|
456
|
470
|
// 批量审核
|
|
457
|
|
- btn_bulk_review () {
|
|
|
471
|
+ btn_bulk_review() {
|
|
458
|
472
|
if (this.selectOrderId.length < 1) {
|
|
459
|
473
|
this.$message({
|
|
460
|
|
- message: "请选择订单!",
|
|
461
|
|
- type: "warning",
|
|
462
|
|
- });
|
|
463
|
|
- return;
|
|
|
474
|
+ message: '请选择订单!',
|
|
|
475
|
+ type: 'warning'
|
|
|
476
|
+ })
|
|
|
477
|
+ return
|
|
464
|
478
|
}
|
|
465
|
|
- let orderids = this.selectOrderId.join(',').replace(/\s+/g, '')
|
|
|
479
|
+ const orderids = this.selectOrderId.join(',').replace(/\s+/g, '')
|
|
466
|
480
|
this.$layer.iframe({
|
|
467
|
481
|
content: {
|
|
468
|
482
|
content: review, // 传递的组件对象
|
|
469
|
483
|
parent: this, // 当前的vue对象
|
|
470
|
484
|
data: { rowid: orderids } // props
|
|
471
|
485
|
},
|
|
472
|
|
- area: ["30%", "30%"],
|
|
473
|
|
- title: "审核"
|
|
474
|
|
- });
|
|
|
486
|
+ area: ['30%', '30%'],
|
|
|
487
|
+ title: '审核'
|
|
|
488
|
+ })
|
|
475
|
489
|
},
|
|
476
|
490
|
// 审核
|
|
477
|
|
- btn_review (orderid) {
|
|
|
491
|
+ btn_review(orderid) {
|
|
478
|
492
|
this.$layer.iframe({
|
|
479
|
493
|
content: {
|
|
480
|
494
|
content: review, // 传递的组件对象
|
|
481
|
495
|
parent: this, // 当前的vue对象
|
|
482
|
496
|
data: { rowid: orderid } // props
|
|
483
|
497
|
},
|
|
484
|
|
- area: ["30%", "30%"],
|
|
485
|
|
- title: "审核"
|
|
486
|
|
- });
|
|
|
498
|
+ area: ['30%', '30%'],
|
|
|
499
|
+ title: '审核'
|
|
|
500
|
+ })
|
|
487
|
501
|
},
|
|
488
|
502
|
// 批量退回
|
|
489
|
|
- btn_bulk_goback () {
|
|
|
503
|
+ btn_bulk_goback() {
|
|
490
|
504
|
if (this.selectOrderId.length < 1) {
|
|
491
|
505
|
this.$message({
|
|
492
|
|
- message: "请选择订单!",
|
|
493
|
|
- type: "warning",
|
|
494
|
|
- });
|
|
495
|
|
- return;
|
|
|
506
|
+ message: '请选择订单!',
|
|
|
507
|
+ type: 'warning'
|
|
|
508
|
+ })
|
|
|
509
|
+ return
|
|
496
|
510
|
}
|
|
497
|
|
- let orderids = this.selectOrderId.join(',').replace(/\s+/g, '')
|
|
|
511
|
+ const orderids = this.selectOrderId.join(',').replace(/\s+/g, '')
|
|
498
|
512
|
this.$layer.iframe({
|
|
499
|
513
|
content: {
|
|
500
|
514
|
content: goback, // 传递的组件对象
|
|
501
|
515
|
parent: this, // 当前的vue对象
|
|
502
|
516
|
data: { rowid: orderids } // props
|
|
503
|
517
|
},
|
|
504
|
|
- area: ["30%", "30%"],
|
|
505
|
|
- title: "退回订单"
|
|
506
|
|
- });
|
|
|
518
|
+ area: ['30%', '30%'],
|
|
|
519
|
+ title: '退回订单'
|
|
|
520
|
+ })
|
|
507
|
521
|
},
|
|
508
|
|
- //退回订单
|
|
509
|
|
- btn_goback (orderid) {
|
|
|
522
|
+ // 退回订单
|
|
|
523
|
+ btn_goback(orderid) {
|
|
510
|
524
|
this.$layer.iframe({
|
|
511
|
525
|
content: {
|
|
512
|
526
|
content: goback, // 传递的组件对象
|
|
513
|
527
|
parent: this, // 当前的vue对象
|
|
514
|
528
|
data: { rowid: orderid } // props
|
|
515
|
529
|
},
|
|
516
|
|
- area: ["30%", "30%"],
|
|
517
|
|
- title: "退回订单"
|
|
518
|
|
- });
|
|
|
530
|
+ area: ['30%', '30%'],
|
|
|
531
|
+ title: '退回订单'
|
|
|
532
|
+ })
|
|
519
|
533
|
},
|
|
520
|
|
- //导入附件退回
|
|
521
|
|
- btn_import_goback () {
|
|
|
534
|
+ // 导入附件退回
|
|
|
535
|
+ btn_import_goback() {
|
|
522
|
536
|
this.$layer.iframe({
|
|
523
|
537
|
content: {
|
|
524
|
538
|
content: importGoback, // 传递的组件对象
|
|
525
|
539
|
parent: this, // 当前的vue对象
|
|
526
|
|
- data: { rowid: "" } // props
|
|
|
540
|
+ data: { rowid: '' } // props
|
|
527
|
541
|
},
|
|
528
|
|
- area: ["30%", "30%"],
|
|
529
|
|
- title: "导入附件退回"
|
|
530
|
|
- });
|
|
|
542
|
+ area: ['30%', '30%'],
|
|
|
543
|
+ title: '导入附件退回'
|
|
|
544
|
+ })
|
|
531
|
545
|
},
|
|
532
|
|
- //通过订单
|
|
533
|
|
- btn_through (orderid) {
|
|
|
546
|
+ // 通过订单
|
|
|
547
|
+ btn_through(orderid) {
|
|
534
|
548
|
this.$layer.iframe({
|
|
535
|
549
|
content: {
|
|
536
|
550
|
content: through, // 传递的组件对象
|
|
537
|
551
|
parent: this, // 当前的vue对象
|
|
538
|
552
|
data: { rowid: orderid } // props
|
|
539
|
553
|
},
|
|
540
|
|
- area: ["30%", "30%"],
|
|
541
|
|
- title: "通过订单"
|
|
542
|
|
- });
|
|
|
554
|
+ area: ['30%', '30%'],
|
|
|
555
|
+ title: '通过订单'
|
|
|
556
|
+ })
|
|
543
|
557
|
},
|
|
544
|
|
- //订单详情
|
|
545
|
|
- hadndleOrderCode (ordercode) {
|
|
|
558
|
+ // 订单详情
|
|
|
559
|
+ hadndleOrderCode(ordercode) {
|
|
546
|
560
|
this.$layer.iframe({
|
|
547
|
561
|
content: {
|
|
548
|
562
|
content: detail, // 传递的组件对象
|
|
|
@@ -553,8 +567,8 @@ export default {
|
|
553
|
567
|
title: '订单详情'
|
|
554
|
568
|
})
|
|
555
|
569
|
},
|
|
556
|
|
- //选择多个
|
|
557
|
|
- handleSelectionChange (val) {
|
|
|
570
|
+ // 选择多个
|
|
|
571
|
+ handleSelectionChange(val) {
|
|
558
|
572
|
const ids = []
|
|
559
|
573
|
this.multipleSelection = val
|
|
560
|
574
|
for (let i = 0; i < this.multipleSelection.length; i++) {
|
|
|
@@ -607,8 +621,8 @@ export default {
|
|
607
|
621
|
}
|
|
608
|
622
|
return data
|
|
609
|
623
|
},
|
|
610
|
|
- //编辑权限
|
|
611
|
|
- authority_edit (state) {
|
|
|
624
|
+ // 编辑权限
|
|
|
625
|
+ authority_edit(state) {
|
|
612
|
626
|
if (state == -1 || state == 0 || state == 1) {
|
|
613
|
627
|
return true
|
|
614
|
628
|
} else {
|
|
|
@@ -616,7 +630,7 @@ export default {
|
|
616
|
630
|
}
|
|
617
|
631
|
},
|
|
618
|
632
|
// 分仓权限
|
|
619
|
|
- authority_warehouse (state) {
|
|
|
633
|
+ authority_warehouse(state) {
|
|
620
|
634
|
if (state == 1 || state == 4) {
|
|
621
|
635
|
return true
|
|
622
|
636
|
} else {
|
|
|
@@ -624,7 +638,7 @@ export default {
|
|
624
|
638
|
}
|
|
625
|
639
|
},
|
|
626
|
640
|
// 审核权限
|
|
627
|
|
- authority_review (state) {
|
|
|
641
|
+ authority_review(state) {
|
|
628
|
642
|
if (state == 7) {
|
|
629
|
643
|
return true
|
|
630
|
644
|
} else {
|
|
|
@@ -635,7 +649,7 @@ export default {
|
|
635
|
649
|
authority_bulk_review() {
|
|
636
|
650
|
if (this.activeName == 7) {
|
|
637
|
651
|
return true
|
|
638
|
|
- } else {
|
|
|
652
|
+ } else {
|
|
639
|
653
|
return false
|
|
640
|
654
|
}
|
|
641
|
655
|
},
|
|
|
@@ -647,8 +661,8 @@ export default {
|
|
647
|
661
|
return false
|
|
648
|
662
|
}
|
|
649
|
663
|
},
|
|
650
|
|
- //退回权限
|
|
651
|
|
- authority_goback (state) {
|
|
|
664
|
+ // 退回权限
|
|
|
665
|
+ authority_goback(state) {
|
|
652
|
666
|
return true
|
|
653
|
667
|
// if (state == 2 || state == 3 || state == 4 || state == 5 || state == 6) {
|
|
654
|
668
|
// return false
|
|
|
@@ -656,20 +670,20 @@ export default {
|
|
656
|
670
|
// return true
|
|
657
|
671
|
// }
|
|
658
|
672
|
},
|
|
659
|
|
- //通过权限
|
|
660
|
|
- authority_through (state) {
|
|
|
673
|
+ // 通过权限
|
|
|
674
|
+ authority_through(state) {
|
|
661
|
675
|
if (state == -1 || state == 0 || state == 1) {
|
|
662
|
676
|
return true
|
|
663
|
677
|
} else {
|
|
664
|
678
|
return false
|
|
665
|
679
|
}
|
|
666
|
|
- },
|
|
|
680
|
+ }
|
|
667
|
681
|
}
|
|
668
|
|
-};
|
|
|
682
|
+}
|
|
669
|
683
|
</script>
|
|
670
|
684
|
|
|
671
|
685
|
<style rel="stylesheet/scss" lang="scss" scoped>
|
|
672
|
686
|
.el {
|
|
673
|
687
|
cursor: pointer;
|
|
674
|
688
|
}
|
|
675
|
|
-</style>
|
|
|
689
|
+</style>
|