|
@@ -13,13 +13,6 @@
|
|
|
</el-tabs>
|
|
</el-tabs>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
- <template #table-column-orderSn="{scope}">
|
|
|
|
|
- <el-link
|
|
|
|
|
- :underline="true"
|
|
|
|
|
- style="font-size:12px;display:inline-block;"
|
|
|
|
|
- >{{ scope.row.orderSn }}</el-link>
|
|
|
|
|
- </template>
|
|
|
|
|
-
|
|
|
|
|
<template #table-column-customName="{scope}">
|
|
<template #table-column-customName="{scope}">
|
|
|
<div>
|
|
<div>
|
|
|
{{ scope.row.customName }}
|
|
{{ scope.row.customName }}
|
|
@@ -169,6 +162,15 @@
|
|
|
<el-button type="primary" size="mini" style="margin-left:30px;" @click="exportData()">导出数据</el-button>
|
|
<el-button type="primary" size="mini" style="margin-left:30px;" @click="exportData()">导出数据</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
|
|
+ <template #slot-more-do-btn>
|
|
|
|
|
+ <el-dropdown size="medium" split-button type="primary" @click="batchDown" @command="bottomDoMore($event,scope.row)">
|
|
|
|
|
+ 批量下载
|
|
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
|
|
+ <el-dropdown-item command="batchAllDown">批量全下载</el-dropdown-item>
|
|
|
|
|
+ </el-dropdown-menu>
|
|
|
|
|
+ </el-dropdown>
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
</x-crud>
|
|
</x-crud>
|
|
|
|
|
|
|
|
<arrival ref="arrivalRef" :arrivalData="arrivalData" @addNewItem="addNewItem" @refreshData="refreshData" />
|
|
<arrival ref="arrivalRef" :arrivalData="arrivalData" @addNewItem="addNewItem" @refreshData="refreshData" />
|
|
@@ -328,7 +330,8 @@ export default {
|
|
|
refundRecordData:{},
|
|
refundRecordData:{},
|
|
|
currentKdStaffName:'',
|
|
currentKdStaffName:'',
|
|
|
currentKdStaffId:0,
|
|
currentKdStaffId:0,
|
|
|
- staffList:[]
|
|
|
|
|
|
|
+ staffList:[],
|
|
|
|
|
+ selectedIds:[]
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
@@ -357,10 +360,22 @@ export default {
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ batchDown(){
|
|
|
|
|
+ let that = this
|
|
|
|
|
+ if (this.$util.isEmpty(this.selectedIds)) {
|
|
|
|
|
+ this.$message.error('请选要下载项')
|
|
|
|
|
+ return false
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
getKdStaff(e){
|
|
getKdStaff(e){
|
|
|
this.currentKdStaffId = e
|
|
this.currentKdStaffId = e
|
|
|
this.refreshData()
|
|
this.refreshData()
|
|
|
},
|
|
},
|
|
|
|
|
+ bottomDoMore(cmd,data){
|
|
|
|
|
+ if(cmd == 'batchAllDown'){
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
doMore(cmd,data){
|
|
doMore(cmd,data){
|
|
|
if(cmd == 'cancel'){
|
|
if(cmd == 'cancel'){
|
|
|
this.$message.error('开发中')
|
|
this.$message.error('开发中')
|
|
@@ -577,6 +592,11 @@ export default {
|
|
|
ctx.service(this.$service.order)
|
|
ctx.service(this.$service.order)
|
|
|
.set('table', {
|
|
.set('table', {
|
|
|
columns: [
|
|
columns: [
|
|
|
|
|
+ {
|
|
|
|
|
+ type: 'selection',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ width: '40'
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
prop: 'orderSn',
|
|
prop: 'orderSn',
|
|
|
label: '单号',
|
|
label: '单号',
|
|
@@ -688,10 +708,8 @@ export default {
|
|
|
}
|
|
}
|
|
|
],
|
|
],
|
|
|
on: {
|
|
on: {
|
|
|
- 'row-click': (row, column) => {
|
|
|
|
|
- if(column.property == 'orderSn'){
|
|
|
|
|
- this.detailShowFn(row)
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ 'selection-change': selection => {
|
|
|
|
|
+ this.selectedIds = selection.map(e => e.id)
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
props: {
|
|
props: {
|
|
@@ -715,7 +733,7 @@ export default {
|
|
|
['slot-tabs'],
|
|
['slot-tabs'],
|
|
|
['slot-search-option','slot-export-order'],
|
|
['slot-search-option','slot-export-order'],
|
|
|
['data-table'],
|
|
['data-table'],
|
|
|
- ['flex1', 'pagination']
|
|
|
|
|
|
|
+ ['slot-more-do-btn','flex1', 'pagination']
|
|
|
])
|
|
])
|
|
|
.on('refresh', async (params, { next }) => {
|
|
.on('refresh', async (params, { next }) => {
|
|
|
this.name = params.name?params.name:''
|
|
this.name = params.name?params.name:''
|