Browse Source

导出

fix_bug_pro20231227
13208366016 1 year ago
parent
commit
80c6ae07b8
  1. 1
      src/api/distribution/distrilbutionBillLading.js
  2. 14
      src/router/views/index.js
  3. 32
      src/views/distribution/inventory/distrilbutionBillLadingList.vue
  4. 4
      vite.config.js

1
src/api/distribution/distrilbutionBillLading.js

@ -77,6 +77,7 @@ export const getBillLadingExport = params => {
params: {
...params,
},
responseType: 'blob',
});
};

14
src/router/views/index.js

@ -441,6 +441,20 @@ export default [
},
],
},
// 测试页面
{
path: '/basic/pda/basicPdatt',
component: Layout,
redirect: '/basic/pda',
children: [
{
path: '/basic/pda/basicPdatt',
name: 'pad信息',
meta: {},
component: () => import('@/views/basic/pda/basicPdatt.vue'),
},
],
},
{
path: '/basic/property/basicPropertyform',
component: Layout,

32
src/views/distribution/inventory/distrilbutionBillLadingList.vue

@ -28,9 +28,9 @@
</el-form-item>
</el-form>
</el-row>
<el-row>
<el-row>
<el-col :span="4">
<span style="margin-bottom: 2%; font-size:16px">
<span style="margin-bottom: 2%; font-size: 16px">
待提货{{ treatNum }}/{{ numBill }}
</span>
</el-col>
@ -50,13 +50,10 @@
>创建自提</el-button
>
<el-button type="primary" icon="el-icon-plus" @click="handleSign(null, 2)"
>自提签收</el-button>
<el-button
type="danger"
icon="el-icon-delete"
@click="handleExportInfo"
plain
>导出
>自提签收</el-button
>
<el-button type="danger" icon="el-icon-delete" @click="handleExportInfo" plain
>导出
</el-button>
</div>
<!-- 头部右侧按钮模块 -->
@ -338,7 +335,8 @@ import {
remove,
getListOwn,
getBillLadingDetail,
getListOwnNUm, getBillLadingExport
getListOwnNUm,
getBillLadingExport,
} from '@/api/distribution/distrilbutionBillLading';
import option from '@/option/distribution/distrilbutionBillLading';
import { mapGetters } from 'vuex';
@ -662,6 +660,7 @@ export default {
distributionType: [],
costListName: [],
certificateType: [],
shortcuts: [
{
text: '最近一周',
@ -737,16 +736,17 @@ export default {
/**
* 导出
* */
handleExportInfo(){
handleExportInfo() {
let row = {};
if (!!this.ids) {
row.ids = this.ids;
} else {
row.ids = '';
}
getBillLadingExport(row).then(res => {
console.log(res.data);
downloadXls(res.data, '已确定预约单数据.xlsx');
downloadXls(res.data, '提货数据.xlsx');
});
},
showdrawer(value) {
this.drawerShow = value;
@ -927,7 +927,7 @@ export default {
},
//
handleSign(row, num) {
if(num === 2){
if (num === 2) {
if (this.selectionList.length == 0) {
this.$message.warning('至少选择一条数据!!');
return;
@ -1190,7 +1190,7 @@ export default {
height: 30px !important;
}
}
:deep(.el-form-item__label){
padding:0;
:deep(.el-form-item__label) {
padding: 0;
}
</style>

4
vite.config.js

@ -20,7 +20,9 @@ export default ({ mode, command }) => {
// target: 'http://192.168.10.101:8888',
// target: 'http://192.168.10.75:8777',
// tjj
target: 'http://192.168.10.29:13000',
// target: 'http://192.168.10.29:13000',
// sst
target: 'http://192.168.10.94:8888',
// target: 'http://test.api.huitongys.com',
// target: 'http://h5uapi.huitongys.com',
changeOrigin: true,

Loading…
Cancel
Save