Browse Source

添加配送按钮

fix_bug_pro20231227
caoyizhong 1 year ago
parent
commit
afff165cd3
  1. 12
      src/api/distribution/distributionDeliveryList.js
  2. 16
      src/api/distribution/distributionSignfor.js
  3. 28
      src/views/distribution/deliverylist/distributionDeliveryList.vue
  4. 25
      src/views/distribution/deliverylist/distributionDeliveryListdis.vue
  5. 25
      src/views/distribution/deliverylist/distributionDeliveryListmar.vue
  6. 27
      src/views/distribution/signdetail/distributionSigndetail.vue
  7. 32
      src/views/distribution/signfor/distributionSignfor.vue
  8. 32
      src/views/distribution/signfor/distributionSignfortreat.vue

12
src/api/distribution/distributionDeliveryList.js

@ -22,6 +22,18 @@ export const getPage = (current, size, params) => {
},
});
};
export const getDeliveryListExport = row => {
return request({
url: '/api/logpm-distribution/deliveryList/export-distributionDeliveryList',
method: 'get',
params: {
...row
},
responseType: 'blob',
})
};
export const getstatistics = (current, size, params) => {
return request({
url: '/api/logpm-distribution/deliveryList/statistics',

16
src/api/distribution/distributionSignfor.js

@ -22,6 +22,22 @@ export const getPage = (current, size, params) => {
}
})
}
/**
* 导出
* @param row
* @returns {AxiosPromise}
*/
export const getSignforExport = row => {
return request({
url: '/api/logpm-distribution/signfor/export-export-distributionSignfor',
method: 'get',
params: {
...row
},
responseType: 'blob',
})
};
export const getListOrder = (current, size, params) => {
return request({
url: '/api/logpm-distribution/reservationStockarticle/orderpage',

28
src/views/distribution/deliverylist/distributionDeliveryList.vue

@ -164,6 +164,13 @@
>批量打印</el-button
> -->
<!-- <el-button type="danger" icon="el-icon-delete" @click="handleDelete" plain> </el-button>-->
<el-button
type="danger"
icon="el-icon-download"
@click="handleExportInfo"
plain
>导出
</el-button>
</div>
<!-- 头部右侧按钮模块 -->
<div class="avue-crud__right">
@ -328,7 +335,7 @@ import {
remove,
getPage,
getstatistics,
printBatch,
printBatch, getDeliveryListExport
} from '@/api/distribution/distributionDeliveryList';
import option from '@/option/distribution/distributionDeliveryList';
import { mapGetters } from 'vuex';
@ -337,6 +344,8 @@ import { addIncrement } from '@/api/distribution/distributionStockArticle';
import { getDriverList } from '@/api/basicdata/basicdataDriverArtery';
import { getVehicleList } from '@/api/basicdata/basicdataVehicle';
import print from '@/utils/print';
import { getBillLadingExport } from '@/api/distribution/distrilbutionBillLading';
import { downloadXls } from '@/utils/util';
export default {
data() {
@ -702,6 +711,23 @@ export default {
},
},
methods: {
/**
* 导出
* */
handleExportInfo(){
let row = {};
// if (!!this.ids) {
// row.ids = this.ids;
// }
const ids = this.selectionList.join(',');
row.ids = ids;
// console.log("<><><>>",ids);
getDeliveryListExport(row).then(res => {
// console.log(res.data);
downloadXls(res.data, '全部配送计划数据.xlsx');
});
},
getvehicleData() {
return new Promise((rv, rev) => {
getVehicleList(1, 10, '').then(res => {

25
src/views/distribution/deliverylist/distributionDeliveryListdis.vue

@ -107,6 +107,13 @@
<el-button type="primary" @click="toDeliveryPlan">新增商配</el-button>
<el-button type="primary" @click="printBatchOrder">批量打印</el-button>
<el-button
type="danger"
icon="el-icon-download"
@click="handleExportInfo"
plain
>导出
</el-button>
</div>
<!-- 头部右侧按钮模块 -->
<div class="avue-crud__right">
@ -318,7 +325,7 @@ import {
remove,
getPage,
getstatistics,
printBatch,
printBatch, getDeliveryListExport
} from '@/api/distribution/distributionDeliveryList';
import option from '@/option/distribution/distributionDeliveryList';
import { mapGetters } from 'vuex';
@ -327,6 +334,8 @@ import { addIncrement } from '@/api/distribution/distributionStockArticle';
import { getVehicleList } from '@/api/basicdata/basicdataVehicle';
import { getDriverList } from '@/api/basicdata/basicdataDriverArtery';
import print from '@/utils/print';
import { getBillLadingExport } from '@/api/distribution/distrilbutionBillLading';
import { downloadXls } from '@/utils/util';
export default {
data() {
@ -718,6 +727,20 @@ export default {
},
},
methods: {
/**
* 导出
* */
handleExportInfo(){
let row = {};
const ids = this.selectionList.join(',');
row.ids = ids;
row.type = '1';
getDeliveryListExport(row).then(res => {
console.log(res.data);
downloadXls(res.data, '商配配送计划数据.xlsx');
});
},
getvehicleData() {
return new Promise((rv, rev) => {
getVehicleList(1, 10, '').then(res => {

25
src/views/distribution/deliverylist/distributionDeliveryListmar.vue

@ -105,6 +105,13 @@
>批量打印</el-button
>
<!-- <el-button type="danger" icon="el-icon-delete" @click="handleDelete" plain> </el-button>-->
<el-button
type="danger"
icon="el-icon-download"
@click="handleExportInfo"
plain
>导出
</el-button>
</div>
<!-- 头部右侧按钮模块 -->
<div class="avue-crud__right">
@ -316,7 +323,7 @@ import {
remove,
getPage,
getstatistics,
printBatch,
printBatch, getDeliveryListExport
} from '@/api/distribution/distributionDeliveryList';
import option from '@/option/distribution/distributionDeliveryList';
import { mapGetters } from 'vuex';
@ -325,6 +332,8 @@ import { addIncrement } from '@/api/distribution/distributionStockArticle';
import { getVehicleList } from '@/api/basicdata/basicdataVehicle';
import { getDriverList } from '@/api/basicdata/basicdataDriverArtery';
import print from '@/utils/print';
import { getBillLadingExport } from '@/api/distribution/distrilbutionBillLading';
import { downloadXls } from '@/utils/util';
export default {
data() {
@ -694,6 +703,20 @@ export default {
},
},
methods: {
/**
* 导出
* */
handleExportInfo(){
let row = {};
const ids = this.selectionList.join(',');
row.ids = ids;
row.type = '2';
getDeliveryListExport(row).then(res => {
console.log(res.data);
downloadXls(res.data, '市配配送计划数据.xlsx');
});
},
getvehicleData() {
return new Promise((rv, rev) => {
getVehicleList(1, 10, '').then(res => {

27
src/views/distribution/signdetail/distributionSigndetail.vue

@ -7,6 +7,13 @@
<div class="avue-crud__left">
<!-- <el-button type="primary" icon="el-icon-plus" @click="handleAdd"> </el-button>-->
<!-- <el-button type="danger" icon="el-icon-delete" @click="handleDelete" plain> </el-button>-->
<el-button
type="danger"
icon="el-icon-download"
@click="handleExportInfo"
plain
>导出
</el-button>
</div>
<!-- 头部右侧按钮模块 -->
<div class="avue-crud__right">
@ -104,6 +111,9 @@ import option from '@/option/distribution/distributionSigndetail';
import { mapGetters } from 'vuex';
import dayjs from 'dayjs';
import { getDictionaryBiz } from '@/api/system/dict';
import { getDeliveryListExport } from '@/api/distribution/distributionDeliveryList';
import { downloadXls } from '@/utils/util';
import { getSignforExport } from '@/api/distribution/distributionSignfor';
export default {
data() {
@ -461,6 +471,23 @@ export default {
},
},
methods: {
/**
* 导出
* */
handleExportInfo(){
let row = {};
// if (!!this.ids) {
// row.ids = this.ids;
// }
const ids = this.selectionList.join(',');
row.ids = ids;
// console.log("<><><>>",ids);
getSignforExport(row).then(res => {
// console.log(res.data);
downloadXls(res.data, '签收明细数据.xlsx');
});
},
showdrawer(value) {
this.drawerShow = value;
},

32
src/views/distribution/signfor/distributionSignfor.vue

@ -75,7 +75,15 @@
<el-row>
<div class="avue-crud__header">
<!-- 头部左侧按钮模块 -->
<div class="avue-crud__left"></div>
<div class="avue-crud__left">
<el-button
type="danger"
icon="el-icon-download"
@click="handleExportInfo"
plain
>导出
</el-button>
</div>
<!-- 头部右侧按钮模块 -->
<div class="avue-crud__right">
<el-button icon="el-icon-refresh" @click="searchChange" circle></el-button>
@ -191,7 +199,7 @@ import {
update,
remove,
getPage,
getstatistics,
getstatistics, getSignforExport
} from '@/api/distribution/distributionSignfor';
import option from '@/option/distribution/distributionSignfor';
import { mapGetters } from 'vuex';
@ -200,6 +208,8 @@ import dayjs from 'dayjs';
import { getVehicleList } from '@/api/basicdata/basicdataVehicle';
import { getDriverList } from '@/api/basicdata/basicdataDriverArtery';
import { getDeliveryListExport } from '@/api/distribution/distributionDeliveryList';
import { downloadXls } from '@/utils/util';
export default {
data() {
return {
@ -562,6 +572,24 @@ export default {
},
},
methods: {
/**
* 导出
* */
handleExportInfo(){
let row = {};
// if (!!this.ids) {
// row.ids = this.ids;
// }
const ids = this.selectionList.join(',');
row.ids = ids;
row.signingStatus = '2';
// console.log("<><><>>",ids);
getSignforExport(row).then(res => {
// console.log(res.data);
downloadXls(res.data, '签收数据.xlsx');
});
},
showdrawer(value) {
this.drawerShow = value;
},

32
src/views/distribution/signfor/distributionSignfortreat.vue

@ -103,6 +103,16 @@
<!-- <el-button type="danger" icon="el-icon-delete" @click="handleDelete" plain-->
<!-- > </el-button-->
<!-- >-->
<el-button
type="danger"
icon="el-icon-download"
@click="handleExportInfo"
plain
>导出
</el-button>
</div>
<!-- 头部右侧按钮模块 -->
<div class="avue-crud__right">
@ -450,13 +460,15 @@ import {
getPage,
getstatistics,
loadingAbnormalPackageListDetail,
loadingAbnormalPackageListAuditing,
loadingAbnormalPackageListAuditing, getSignforExport
} from '@/api/distribution/distributionSignfor';
import { update as updatesign } from '@/api/distribution/distributionSignfor';
import option from '@/option/distribution/distributionSignfor';
import { mapGetters } from 'vuex';
import { getDictionaryBiz } from '@/api/system/dict';
import dayjs from 'dayjs';
import { getDeliveryListExport } from '@/api/distribution/distributionDeliveryList';
import { downloadXls } from '@/utils/util';
export default {
data() {
@ -1349,6 +1361,24 @@ export default {
},
},
methods: {
/**
* 导出
* */
handleExportInfo(){
let row = {};
// if (!!this.ids) {
// row.ids = this.ids;
// }
const ids = this.selectionList.join(',');
row.ids = ids;
row.signingStatus = '1';
// console.log("<><><>>",ids);
getSignforExport(row).then(res => {
// console.log(res.data);
downloadXls(res.data, '待签收数据.xlsx');
});
},
showdrawer(value) {
this.drawerShow = value;
},

Loading…
Cancel
Save