Browse Source

新增部分页面导出

dev
qb 3 months ago
parent
commit
d9862ca29f
  1. 2
      src/utils/exportData.js
  2. 7
      src/views/basic/coderule/basicTenantCode.vue
  3. 6
      src/views/basic/forklift/basicForklift.vue
  4. 15
      src/views/basic/material/basicMaterial.vue
  5. 7
      src/views/basicdata/TripartiteMaterial/list.vue
  6. 7
      src/views/basicdata/carrier/basicdataCarrier.vue
  7. 5
      src/views/basicdata/driverArtery/basicdataDriverArtery.vue
  8. 7
      src/views/basicdata/platform/PaymentPlatform.vue
  9. 5
      src/views/basicdata/team/basicdataTeamGroup.vue
  10. 21
      src/views/basicdata/vehicle/basicdataVehicle.vue
  11. 7
      src/views/basicdata/vehicle/basicdataVehicleInfo.vue
  12. 64
      src/views/basicdata/warehouse/goodsAllocation/BasicdataGoodsAllocation.vue
  13. 5
      src/views/basicdata/warehouse/goodsArea/basicdataGoodsArea.vue
  14. 6
      src/views/basicdata/warehouse/goodsShelf/basicdataGoodsShelf.vue
  15. 7
      src/views/basicdata/warehouse/tray/basicdataTray.vue
  16. 168
      src/views/basicdata/warehouse/warehouse/basicdataWarehouse.vue
  17. 7
      src/views/warehouse/prewarehousing/PreStorageTrainNumber.vue
  18. 7
      src/views/warehouse/prewarehousing/Prewarehouseorder.vue
  19. 2
      src/views/waybill/ChangeOrder.vue
  20. 13
      src/views/waybill/FreezeOrder.vue
  21. 190
      src/views/waybill/TemporaryStorageList.vue
  22. 11
      src/views/waybill/orderPackageListDetailsByMarket.vue

2
src/utils/exportData.js

@ -21,7 +21,7 @@ export function exportExcel(columnList = [], listData = [], name = 'excel') {
if (blackArr.includes(val.label) || val.head) continue; if (blackArr.includes(val.label) || val.head) continue;
if (j === 0) headers.push(val.label); if (j === 0) headers.push(val.label);
arr.push(item[val.prop] || ''); arr.push(item[val.prop] || item[val.prop] === 0 ? item[val.prop] : '');
} }
console.log('arr :>> ', arr); console.log('arr :>> ', arr);
data.push(arr); data.push(arr);

7
src/views/basic/coderule/basicTenantCode.vue

@ -48,6 +48,7 @@
</div> </div>
<!-- 头部右侧按钮模块 --> <!-- 头部右侧按钮模块 -->
<div class="avue-crud__right"> <div class="avue-crud__right">
<el-button icon="Download" @click="handleExportData" circle></el-button>
<el-button icon="el-icon-refresh" @click="searchChange" circle></el-button> <el-button icon="el-icon-refresh" @click="searchChange" circle></el-button>
<el-button icon="Operation" @click="showdrawer(true)" circle></el-button> <el-button icon="Operation" @click="showdrawer(true)" circle></el-button>
<el-button icon="Search" @click="searchHide" circle></el-button> <el-button icon="Search" @click="searchHide" circle></el-button>
@ -192,6 +193,7 @@ import { columnList } from '@/option/finance/MerchantDepositSlip';
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import { deepClone } from '@/utils/util'; import { deepClone } from '@/utils/util';
import { ElMessage, ElMessageBox } from 'element-plus'; import { ElMessage, ElMessageBox } from 'element-plus';
import { exportExcel } from '@/utils/exportData';
// //
const $router = useRouter(); const $router = useRouter();
@ -584,6 +586,11 @@ const handleBatchDelete = async () => {
ElMessage.info('已取消删除'); ElMessage.info('已取消删除');
}); });
}; };
/** 导出表格数据 */
const handleExportData = () => {
exportExcel(details.columnList, details.data, '系统编码规则 - ' + new Date().getTime());
};
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">

6
src/views/basic/forklift/basicForklift.vue

@ -57,6 +57,7 @@
</div> </div>
<!-- 头部右侧按钮模块 --> <!-- 头部右侧按钮模块 -->
<div class="avue-crud__right"> <div class="avue-crud__right">
<el-button icon="Download" @click="handleExportData" circle></el-button>
<el-button icon="el-icon-refresh" @click="searchChange" circle></el-button> <el-button icon="el-icon-refresh" @click="searchChange" circle></el-button>
<el-button icon="Operation" @click="showdrawer(true)" circle></el-button> <el-button icon="Operation" @click="showdrawer(true)" circle></el-button>
<el-button icon="el-icon-search" @click="searchHide" circle></el-button> <el-button icon="el-icon-search" @click="searchHide" circle></el-button>
@ -531,6 +532,7 @@ import { getDictionaryBiz } from '@/api/system/dict';
import { getToken } from '@/utils/auth'; import { getToken } from '@/utils/auth';
import { compressImageBlob } from '@/components/IMGcompressor/imgcompressor.js'; import { compressImageBlob } from '@/components/IMGcompressor/imgcompressor.js';
import { setNodeHeight, debounce, handleClearTableQuery } from '@/utils/util'; import { setNodeHeight, debounce, handleClearTableQuery } from '@/utils/util';
import { exportExcel } from '@/utils/exportData';
export default { export default {
data() { data() {
@ -1200,6 +1202,10 @@ export default {
this.form.photo = url.toString(); this.form.photo = url.toString();
} }
}, },
/** 导出表格数据 */
handleExportData() {
exportExcel(this.columnList, this.data, '叉车 - ' + new Date().getTime());
},
}, },
}; };
</script> </script>

15
src/views/basic/material/basicMaterial.vue

@ -76,6 +76,7 @@
</div> </div>
<!-- 头部右侧按钮模块 --> <!-- 头部右侧按钮模块 -->
<div class="avue-crud__right"> <div class="avue-crud__right">
<el-button icon="Download" @click="handleExportData" circle></el-button>
<el-button icon="el-icon-refresh" @click="searchChange" circle></el-button> <el-button icon="el-icon-refresh" @click="searchChange" circle></el-button>
<el-button icon="Operation" @click="showdrawer(true)" circle></el-button> <el-button icon="Operation" @click="showdrawer(true)" circle></el-button>
<el-button icon="Search" @click="searchHide" circle></el-button> <el-button icon="Search" @click="searchHide" circle></el-button>
@ -242,7 +243,13 @@
</el-button> </el-button>
<!-- 提交 --> <!-- 提交 -->
<el-button type="primary" icon="Position" @click="handleSubmit" :disabled="details.loadingObj.pageLoading"> </el-button> <el-button
type="primary"
icon="Position"
@click="handleSubmit"
:disabled="details.loadingObj.pageLoading"
> </el-button
>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
@ -354,6 +361,7 @@ import { dateNow } from '@/utils/date';
import { isNumber } from '@antfu/utils'; import { isNumber } from '@antfu/utils';
import VueQr from 'vue-qr/src/packages/vue-qr.vue'; import VueQr from 'vue-qr/src/packages/vue-qr.vue';
import MyPrint from '@/components/MyPrint/MyPrint.vue'; import MyPrint from '@/components/MyPrint/MyPrint.vue';
import { exportExcel } from '@/utils/exportData';
// //
const $router = useRouter(); const $router = useRouter();
@ -801,6 +809,11 @@ const rowDelTripartite = ({ row }) => {
}, },
}); });
}; };
/** 导出表格数据 */
const handleExportData = () => {
exportExcel(details.columnList, details.data, '物料 - ' + new Date().getTime());
};
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">

7
src/views/basicdata/TripartiteMaterial/list.vue

@ -37,6 +37,7 @@
</div> </div>
<!-- 头部右侧按钮模块 --> <!-- 头部右侧按钮模块 -->
<div class="avue-crud__right"> <div class="avue-crud__right">
<el-button icon="Download" @click="handleExportData" circle></el-button>
<el-button icon="el-icon-refresh" @click="searchChange" circle></el-button> <el-button icon="el-icon-refresh" @click="searchChange" circle></el-button>
<el-button icon="Operation" @click="showdrawer(true)" circle></el-button> <el-button icon="Operation" @click="showdrawer(true)" circle></el-button>
<el-button icon="el-icon-search" @click="searchHide" circle></el-button> <el-button icon="el-icon-search" @click="searchHide" circle></el-button>
@ -258,6 +259,7 @@ import {
import { useStore } from 'vuex'; import { useStore } from 'vuex';
import { useRouter, useRoute } from 'vue-router'; import { useRouter, useRoute } from 'vue-router';
import { ElMessage, ElMessageBox } from 'element-plus'; import { ElMessage, ElMessageBox } from 'element-plus';
import { exportExcel } from '@/utils/exportData';
// //
const $router = useRouter(); const $router = useRouter();
@ -635,6 +637,11 @@ const handleDownloadTemplate = async () => {
myUpload.value.details.loadingObj.UploadLoadong = false; myUpload.value.details.loadingObj.UploadLoadong = false;
} }
}; };
/** 导出表格数据 */
const handleExportData = () => {
exportExcel(details.columnList, details.data, '三方物料 - ' + new Date().getTime());
};
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">

7
src/views/basicdata/carrier/basicdataCarrier.vue

@ -65,6 +65,7 @@
<!-- 头部右侧按钮模块 --> <!-- 头部右侧按钮模块 -->
<div class="avue-crud__right"> <div class="avue-crud__right">
<el-button icon="Download" @click="handleExportData" circle></el-button>
<el-button icon="el-icon-refresh" @click="searchChange" circle></el-button> <el-button icon="el-icon-refresh" @click="searchChange" circle></el-button>
<el-button icon="Operation" @click="showdrawer(true)" circle></el-button> <el-button icon="Operation" @click="showdrawer(true)" circle></el-button>
<el-button icon="Search" @click="searchHide" circle></el-button> <el-button icon="Search" @click="searchHide" circle></el-button>
@ -347,6 +348,7 @@ import {
remove, remove,
postCarrierSubmit, postCarrierSubmit,
} from '@/api/basicdata/basicdataCarrier'; } from '@/api/basicdata/basicdataCarrier';
import { exportExcel } from '@/utils/exportData';
// //
const $router = useRouter(); const $router = useRouter();
@ -822,6 +824,11 @@ const handleSubmit = async () => {
details.loadingObj.pageLoading = false; details.loadingObj.pageLoading = false;
} }
}; };
/** 导出表格数据 */
const handleExportData = () => {
exportExcel(details.columnList, details.data, '承运商 - ' + new Date().getTime());
};
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">

5
src/views/basicdata/driverArtery/basicdataDriverArtery.vue

@ -49,6 +49,7 @@
</div> </div>
<!-- 头部右侧按钮模块 --> <!-- 头部右侧按钮模块 -->
<div class="avue-crud__right"> <div class="avue-crud__right">
<el-button icon="Download" @click="handleExportData" circle></el-button>
<el-button icon="el-icon-refresh" @click="onLoad()" circle></el-button> <el-button icon="el-icon-refresh" @click="onLoad()" circle></el-button>
<el-button icon="Operation" @click="showdrawer(true)" circle></el-button> <el-button icon="Operation" @click="showdrawer(true)" circle></el-button>
<el-button icon="el-icon-search" @click="searchHide" circle></el-button> <el-button icon="el-icon-search" @click="searchHide" circle></el-button>
@ -160,6 +161,7 @@ import NProgress from 'nprogress';
import 'nprogress/nprogress.css'; import 'nprogress/nprogress.css';
import { getDetail as getDetailDelineNode } from '@/api/basic/basicDelineNode'; import { getDetail as getDetailDelineNode } from '@/api/basic/basicDelineNode';
import { ElMessageBox } from 'element-plus'; import { ElMessageBox } from 'element-plus';
import { exportExcel } from '@/utils/exportData';
export default { export default {
data() { data() {
return { return {
@ -662,6 +664,9 @@ export default {
handleClearTableQuery(this.columnList); handleClearTableQuery(this.columnList);
this.onLoad(); this.onLoad();
}, },
handleExportData() {
exportExcel(this.columnList, this.data, '司机信息 - ' + new Date().getTime());
},
}, },
}; };
</script> </script>

7
src/views/basicdata/platform/PaymentPlatform.vue

@ -23,6 +23,7 @@
</div> </div>
<!-- 头部右侧按钮模块 --> <!-- 头部右侧按钮模块 -->
<div class="avue-crud__right"> <div class="avue-crud__right">
<el-button icon="Download" @click="handleExportData" circle></el-button>
<el-button icon="el-icon-refresh" @click="searchChange" circle></el-button> <el-button icon="el-icon-refresh" @click="searchChange" circle></el-button>
<el-button icon="Operation" @click="showdrawer(true)" circle></el-button> <el-button icon="Operation" @click="showdrawer(true)" circle></el-button>
<el-button icon="Search" @click="searchHide" circle></el-button> <el-button icon="Search" @click="searchHide" circle></el-button>
@ -145,6 +146,7 @@ import {
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import { ElMessage, ElMessageBox } from 'element-plus'; import { ElMessage, ElMessageBox } from 'element-plus';
import { columnList } from '@/option/basicdata/PaymentPlatform'; import { columnList } from '@/option/basicdata/PaymentPlatform';
import { exportExcel } from '@/utils/exportData';
// //
const $router = useRouter(); const $router = useRouter();
@ -452,6 +454,11 @@ const handleRemove = row => {
} }
}); });
}; };
/** 导出表格数据 */
const handleExportData = () => {
exportExcel(details.columnList, details.data, '支付平台 - ' + new Date().getTime());
};
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">

5
src/views/basicdata/team/basicdataTeamGroup.vue

@ -25,6 +25,7 @@
</div> </div>
<!-- 头部右侧按钮模块 --> <!-- 头部右侧按钮模块 -->
<div class="avue-crud__right"> <div class="avue-crud__right">
<el-button icon="Download" @click="handleExportData" circle></el-button>
<el-button icon="el-icon-refresh" @click="searchChange" circle></el-button> <el-button icon="el-icon-refresh" @click="searchChange" circle></el-button>
<el-button icon="el-icon-search" @click="searchHide" circle></el-button> <el-button icon="el-icon-search" @click="searchHide" circle></el-button>
</div> </div>
@ -170,6 +171,7 @@ import { getDept, getLazyList } from '@/api/system/dept';
import { getDeptWarehouse } from '@/api/basicdata/basicdataWarehouse'; import { getDeptWarehouse } from '@/api/basicdata/basicdataWarehouse';
import { getUserDetail } from '@/api/system/user'; import { getUserDetail } from '@/api/system/user';
import { handleClearTableQuery, setNodeHeight } from '@/utils/util'; import { handleClearTableQuery, setNodeHeight } from '@/utils/util';
import { exportExcel } from '@/utils/exportData';
export default { export default {
data() { data() {
@ -587,6 +589,9 @@ export default {
this.selectionClear(); this.selectionClear();
}); });
}, },
handleExportData() {
exportExcel(details.columnList, details.data, '基础班组 - ' + new Date().getTime());
},
}, },
}; };
</script> </script>

21
src/views/basicdata/vehicle/basicdataVehicle.vue

@ -76,6 +76,7 @@
</div> </div>
<!-- 头部右侧按钮模块 --> <!-- 头部右侧按钮模块 -->
<div class="avue-crud__right"> <div class="avue-crud__right">
<el-button icon="Download" @click="handleExportData" circle></el-button>
<el-button icon="el-icon-refresh" @click="searchChange" circle></el-button> <el-button icon="el-icon-refresh" @click="searchChange" circle></el-button>
<el-button icon="Operation" @click="showdrawer(true)" circle></el-button> <el-button icon="Operation" @click="showdrawer(true)" circle></el-button>
<el-button icon="Search" @click="searchHide" circle></el-button> <el-button icon="Search" @click="searchHide" circle></el-button>
@ -192,12 +193,13 @@ import {
getVehicleExport, getVehicleExport,
} from '@/api/basicdata/basicdataVehicle'; } from '@/api/basicdata/basicdataVehicle';
import { getOwn } from '@/api/basicdata/basicdataDriverArtery'; import { getOwn } from '@/api/basicdata/basicdataDriverArtery';
import { exportExcel } from '@/utils/exportData';
// //
const $router = useRouter(); const $router = useRouter();
const $store = useStore(); const $store = useStore();
const tabName=ref(0) const tabName = ref(0);
const details = reactive<any>({ const details = reactive<any>({
/** 是否开启搜索 */ /** 是否开启搜索 */
search: true, search: true,
@ -294,10 +296,10 @@ const onLoad = debounce(async () => {
let _page = details.page; let _page = details.page;
// //
let submit = { let submit = {
..._page, ..._page,
...details.query, ...details.query,
pageType:tabName.value, pageType: tabName.value,
} };
const res = await getPage(submit); const res = await getPage(submit);
console.log('res :>> ', res); console.log('res :>> ', res);
@ -396,12 +398,12 @@ initData();
const searchChange = () => { const searchChange = () => {
onLoad(); onLoad();
}; };
const tabchange=()=>{ const tabchange = () => {
details.query = {}; details.query = {};
details.page.current = 1; details.page.current = 1;
handleClearTableQuery(details.columnList); handleClearTableQuery(details.columnList);
onLoad(); onLoad();
} };
/** 清空表单 */ /** 清空表单 */
const searchReset = () => { const searchReset = () => {
details.query = {}; details.query = {};
@ -572,6 +574,11 @@ const handleExport = () => {
} }
}); });
}; };
/** 导出表格数据 */
const handleExportData = () => {
exportExcel(details.columnList, details.data, '车辆 - ' + new Date().getTime());
};
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">

7
src/views/basicdata/vehicle/basicdataVehicleInfo.vue

@ -22,6 +22,7 @@
<!-- 头部右侧按钮模块 --> <!-- 头部右侧按钮模块 -->
<div class="avue-crud__right"> <div class="avue-crud__right">
<el-button icon="Download" @click="handleExportData" circle></el-button>
<el-button icon="el-icon-refresh" @click="searchChange" circle></el-button> <el-button icon="el-icon-refresh" @click="searchChange" circle></el-button>
<el-button icon="Operation" @click="showdrawer(true)" circle></el-button> <el-button icon="Operation" @click="showdrawer(true)" circle></el-button>
<el-button icon="Search" @click="searchHide" circle></el-button> <el-button icon="Search" @click="searchHide" circle></el-button>
@ -127,6 +128,7 @@ import { useRouter } from 'vue-router';
import { ElMessage, ElMessageBox } from 'element-plus'; import { ElMessage, ElMessageBox } from 'element-plus';
import { getToken } from '@/utils/auth'; import { getToken } from '@/utils/auth';
import { getList, postSave } from '@/api/basicdata/basicdataVehicleInfo'; import { getList, postSave } from '@/api/basicdata/basicdataVehicleInfo';
import { exportExcel } from '@/utils/exportData';
// //
const $router = useRouter(); const $router = useRouter();
@ -438,6 +440,11 @@ const handleSubmit = async () => {
details.loadingObj.pageLoading = false; details.loadingObj.pageLoading = false;
} }
}; };
/** 导出表格数据 */
const handleExportData = () => {
exportExcel(details.columnList, details.data, '车型 - ' + new Date().getTime());
};
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">

64
src/views/basicdata/warehouse/goodsAllocation/BasicdataGoodsAllocation.vue

@ -72,6 +72,7 @@
<!-- 头部右侧按钮模块 --> <!-- 头部右侧按钮模块 -->
<div class="avue-crud__right"> <div class="avue-crud__right">
<el-button icon="Download" @click="handleExportData" circle></el-button>
<el-button icon="el-icon-refresh" @click="searchChange" circle></el-button> <el-button icon="el-icon-refresh" @click="searchChange" circle></el-button>
<el-button icon="Operation" @click="showdrawer(true)" circle></el-button> <el-button icon="Operation" @click="showdrawer(true)" circle></el-button>
<el-button icon="Search" @click="searchHide" circle></el-button> <el-button icon="Search" @click="searchHide" circle></el-button>
@ -194,6 +195,7 @@ import {
$_updateDefault, $_updateDefault,
downAllocation, downAllocation,
} from '@/api/basicdata/basicdataGoodsAllocation'; } from '@/api/basicdata/basicdataGoodsAllocation';
import { exportExcel } from '@/utils/exportData';
// //
const $router = useRouter(); const $router = useRouter();
@ -570,36 +572,40 @@ const handleView = ({ row }) => {
}); });
}; };
const handleMakeCargo = async row => { const handleMakeCargo = async row => {
return // return
row.isDefault = !row.isDefault ? 1 : 0; // row.isDefault = !row.isDefault ? 1 : 0;
ElMessageBox.confirm(`是否确认${row.isDefault ? '关闭' : '开启'}{操作?`, '提示', { // ElMessageBox.confirm(`${row.isDefault ? '' : ''}{?`, '', {
confirmButtonText: '确定', // confirmButtonText: '',
cancelButtonText: '取消', // cancelButtonText: '',
type: 'warning', // type: 'warning',
}) // })
.then(async () => { // .then(async () => {
try { // try {
details.loadingObj.list = true; // details.loadingObj.list = true;
let data = { // let data = {
id: row.id, // id: row.id,
isDefault: !row.isDefault ? 1 : 0, // isDefault: !row.isDefault ? 1 : 0,
}; // };
await $_updateDefault(data).then(res => { // await $_updateDefault(data).then(res => {
if (res.data.code == 200) { // if (res.data.code == 200) {
ElMessage.success(res.data.msg); // ElMessage.success(res.data.msg);
} // }
}); // });
} catch (e) { // } catch (e) {
console.log(e); // console.log(e);
} finally { // } finally {
details.loadingObj.list = false; // details.loadingObj.list = false;
onLoad(); // onLoad();
} // }
}) // })
.catch(() => { // .catch(() => {
console.log(row,'row'); // console.log(row,'row');
// });
};
}); /** 导出表格数据 */
const handleExportData = () => {
exportExcel(details.columnList, details.data, '货位 - ' + new Date().getTime());
}; };
</script> </script>

5
src/views/basicdata/warehouse/goodsArea/basicdataGoodsArea.vue

@ -74,6 +74,7 @@
</div> </div>
<!-- 头部右侧按钮模块 --> <!-- 头部右侧按钮模块 -->
<div class="avue-crud__right"> <div class="avue-crud__right">
<el-button icon="Download" @click="handleExportData" circle></el-button>
<el-button icon="el-icon-refresh" @click="searchChange" circle></el-button> <el-button icon="el-icon-refresh" @click="searchChange" circle></el-button>
<el-button icon="el-icon-search" @click="searchHide" circle></el-button> <el-button icon="el-icon-search" @click="searchHide" circle></el-button>
</div> </div>
@ -286,6 +287,7 @@ import {
} from '@/utils/util'; } from '@/utils/util';
import { dateNow } from '@/utils/date'; import { dateNow } from '@/utils/date';
import { Value } from 'sass'; import { Value } from 'sass';
import { exportExcel } from '@/utils/exportData';
export default { export default {
data() { data() {
@ -893,6 +895,9 @@ export default {
this.selectionClear(); this.selectionClear();
}); });
}, },
handleExportData() {
exportExcel(this.columnList, this.data, '货区 - ' + new Date().getTime());
},
}, },
}; };
</script> </script>

6
src/views/basicdata/warehouse/goodsShelf/basicdataGoodsShelf.vue

@ -49,6 +49,7 @@
</div> </div>
<!-- 头部右侧按钮模块 --> <!-- 头部右侧按钮模块 -->
<div class="avue-crud__right"> <div class="avue-crud__right">
<el-button icon="Download" @click="handleExportData" circle></el-button>
<el-button icon="el-icon-refresh" @click="searchChange" circle></el-button> <el-button icon="el-icon-refresh" @click="searchChange" circle></el-button>
<el-button icon="el-icon-search" @click="searchHide" circle></el-button> <el-button icon="el-icon-search" @click="searchHide" circle></el-button>
</div> </div>
@ -438,6 +439,7 @@ import { exportBlob } from '@/api/common';
import { getToken } from '@/utils/auth'; import { getToken } from '@/utils/auth';
import { downloadXls, handleClearTableQuery, setNodeHeight, handleSelectQuery } from '@/utils/util'; import { downloadXls, handleClearTableQuery, setNodeHeight, handleSelectQuery } from '@/utils/util';
import print from '@/utils/print'; import print from '@/utils/print';
import { exportExcel } from '@/utils/exportData';
export default { export default {
data() { data() {
return { return {
@ -1499,6 +1501,10 @@ export default {
this.onLoad(this.page); this.onLoad(this.page);
}, },
handleExportData() {
exportExcel(this.columnList, this.data, '货架信息 - ' + new Date().getTime());
},
}, },
}; };
</script> </script>

7
src/views/basicdata/warehouse/tray/basicdataTray.vue

@ -109,6 +109,7 @@
<!-- 头部右侧按钮模块 --> <!-- 头部右侧按钮模块 -->
<div class="avue-crud__right"> <div class="avue-crud__right">
<el-button icon="Download" @click="handleExportData" circle></el-button>
<el-button icon="el-icon-refresh" @click="searchChange" circle></el-button> <el-button icon="el-icon-refresh" @click="searchChange" circle></el-button>
<el-button icon="Operation" @click="showdrawer(true)" circle></el-button> <el-button icon="Operation" @click="showdrawer(true)" circle></el-button>
<el-button icon="Search" @click="searchHide" circle></el-button> <el-button icon="Search" @click="searchHide" circle></el-button>
@ -309,6 +310,7 @@ import {
getWarehouseListqx, getWarehouseListqx,
} from '@/api/basicdata/basicdataTray'; } from '@/api/basicdata/basicdataTray';
import { compressImageBlob } from '@/components/IMGcompressor/imgcompressor.js'; import { compressImageBlob } from '@/components/IMGcompressor/imgcompressor.js';
import { exportExcel } from '@/utils/exportData';
// //
const $router = useRouter(); const $router = useRouter();
@ -825,6 +827,11 @@ const handleHistory = ({ row }) => {
}, },
}); });
}; };
/** 导出表格数据 */
const handleExportData = () => {
exportExcel(details.columnList, details.data, '托盘信息 - ' + new Date().getTime());
};
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">

168
src/views/basicdata/warehouse/warehouse/basicdataWarehouse.vue

@ -1,35 +1,33 @@
<template> <template>
<basic-container v-loading="loadingObj.list" element-loading-text="正在加载中..."> <basic-container v-loading="loadingObj.list" element-loading-text="正在加载中...">
<div v-h5uShow="details.search"> <div v-h5uShow="details.search">
<!-- 查询模块 --> <!-- 查询模块 -->
<el-form :inline="true" :model="Topquery" class="header_search"> <el-form :inline="true" :model="Topquery" class="header_search">
<el-form-item label="仓库:"> <el-form-item label="仓库:">
<el-select <el-select
v-model="details.query.warehouseId" v-model="details.query.warehouseId"
multiple multiple
collapse-tags collapse-tags
class="w100" class="w100"
clearable clearable
placeholder="请选择仓库" placeholder="请选择仓库"
filterable filterable
> >
<el-option <el-option
v-for="value in warehouseList" v-for="value in warehouseList"
:key="value.value" :key="value.value"
:label="value.label" :label="value.label"
:value="value.label" :value="value.label"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 查询按钮 --> <!-- 查询按钮 -->
<el-form-item class="el-btn"> <el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button> <el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button> <el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<!-- 头部右侧按钮模块 --> <!-- 头部右侧按钮模块 -->
<div> <div>
@ -41,12 +39,23 @@
<div> <div>
<div class="el_top_btn"> <div class="el_top_btn">
<div> <div>
<el-button type="primary" v-if="accessControl.warehouseWarehouse_add" @click="newlyadd" icon="el-icon-plus"> </el-button> <el-button
<el-button type="primary" v-if="accessControl.warehouseWarehouse_delete" icon="el-icon-delete" @click="DeleteInformationAll" type="primary"
v-if="accessControl.warehouseWarehouse_add"
@click="newlyadd"
icon="el-icon-plus"
> </el-button
>
<el-button
type="primary"
v-if="accessControl.warehouseWarehouse_delete"
icon="el-icon-delete"
@click="DeleteInformationAll"
>批量删除</el-button >批量删除</el-button
> >
</div> </div>
<div class="avue-crud__right"> <div class="avue-crud__right">
<el-button icon="Download" @click="handleExportData" circle></el-button>
<el-button icon="el-icon-refresh" @click="searchChangeS" circle></el-button> <el-button icon="el-icon-refresh" @click="searchChangeS" circle></el-button>
<el-button icon="Operation" @click="showdrawer(true)" circle></el-button> <el-button icon="Operation" @click="showdrawer(true)" circle></el-button>
<el-button icon="Search" @click="searchHide" circle></el-button> <el-button icon="Search" @click="searchHide" circle></el-button>
@ -74,9 +83,21 @@
@click="Expandconfiguration(slotProps.scope.row)" @click="Expandconfiguration(slotProps.scope.row)"
>扩展配置</el-text >扩展配置</el-text
> >
<el-text v-if="accessControl.warehouseWarehouse_view"click="view(slotProps.scope)">查看</el-text> <el-text
<el-text v-if="accessControl.warehouseWarehouse_edit" @click="edit(slotProps.scope)">编辑</el-text> v-if="accessControl.warehouseWarehouse_view"
<el-text v-if="accessControl.warehouseWarehouse_delete" @click="DeleteInformation(slotProps.scope)">删除</el-text> click="view(slotProps.scope)"
>查看</el-text
>
<el-text
v-if="accessControl.warehouseWarehouse_edit"
@click="edit(slotProps.scope)"
>编辑</el-text
>
<el-text
v-if="accessControl.warehouseWarehouse_delete"
@click="DeleteInformation(slotProps.scope)"
>删除</el-text
>
</div> </div>
</template> </template>
</template> </template>
@ -511,7 +532,11 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="默认库位" v-if="Expandconfigurationform.isAutoWarehouse"> <el-form-item label="默认库位" v-if="Expandconfigurationform.isAutoWarehouse">
<el-input v-model="Expandconfigurationform.defaultAllocation" style="width: 240px" placeholder="请输入默认库位" /> <el-input
v-model="Expandconfigurationform.defaultAllocation"
style="width: 240px"
placeholder="请输入默认库位"
/>
</el-form-item> </el-form-item>
<el-form-item label="是否干线上传装车图片"> <el-form-item label="是否干线上传装车图片">
<el-select <el-select
@ -611,9 +636,10 @@ import { Delete, Download, Plus, ZoomIn } from '@element-plus/icons-vue';
import { ElMessage, ElMessageBox } from 'element-plus'; import { ElMessage, ElMessageBox } from 'element-plus';
import { compressImageBlob } from '@/components/IMGcompressor/imgcompressor.js'; import { compressImageBlob } from '@/components/IMGcompressor/imgcompressor.js';
import { useStore } from 'vuex'; import { useStore } from 'vuex';
import { exportExcel } from '@/utils/exportData';
const $useStore = useStore(); const $useStore = useStore();
const accessControl = $useStore.getters.permission; const accessControl = $useStore.getters.permission;
console.log(accessControl.Expand_configuration,'accessControl'); console.log(accessControl.Expand_configuration, 'accessControl');
const dataRwo = ref({}); // const dataRwo = ref({}); //
const props = { multiple: true }; const props = { multiple: true };
@ -794,20 +820,19 @@ const searchChangeS = () => {
Topquery.value = {}; Topquery.value = {};
onLoad(); onLoad();
}; };
const searchChange=()=>{ const searchChange = () => {
console.log(details.query,'details.query'); console.log(details.query, 'details.query');
let data= { let data = {
warehouseNames:details.query.warehouseId.map(item=>item).join(',') warehouseNames: details.query.warehouseId.map(item => item).join(','),
} };
onLoad(data); onLoad(data);
console.log(data,'data'); console.log(data, 'data');
};
}
// //
const searchReset=()=>{ const searchReset = () => {
details.query.warehouseId=[] details.query.warehouseId = [];
onLoad(); onLoad();
} };
const areaoptions = ref([]); // const areaoptions = ref([]); //
// //
const initialization = () => { const initialization = () => {
@ -864,8 +889,8 @@ const details = reactive({
/** 包明细 */ /** 包明细 */
packageOrderListlVisited: false, packageOrderListlVisited: false,
}, },
warehouseOption:[], warehouseOption: [],
search:false, search: false,
}); });
const { const {
@ -940,7 +965,6 @@ const MyWareh = () => {
}); });
}; };
MyWareh(); // MyWareh(); //
const Setheight = () => { const Setheight = () => {
const _node = document.querySelector('.tableNode'); const _node = document.querySelector('.tableNode');
@ -1040,7 +1064,7 @@ const onLoad = val => {
}; };
onLoad(); onLoad();
const searchHide = () => { const searchHide = () => {
details.search=!details.search details.search = !details.search;
}; };
// //
@ -1213,12 +1237,21 @@ const Expandconfiguration = async row => {
let data = { let data = {
warehouseId: row.id, warehouseId: row.id,
}; };
Expandconfigurationform.value.defaultAllocation = '' Expandconfigurationform.value.defaultAllocation = '';
details.loadingObj.list = true; // details.loadingObj.list = true; //
let _res = await $_warehouseConfig(data); let _res = await $_warehouseConfig(data);
if (_res.data.code == 200) { if (_res.data.code == 200) {
const { id, isStrictLoading, isAutoRelease,isAutoWarehouse,defaultAllocation,isTrunklineLoadingPhoto,isTrunklineStartPhoto,isTrunklineUnloadPhoto} = _res.data.data; const {
id,
isStrictLoading,
isAutoRelease,
isAutoWarehouse,
defaultAllocation,
isTrunklineLoadingPhoto,
isTrunklineStartPhoto,
isTrunklineUnloadPhoto,
} = _res.data.data;
dialogExpandconfiguration.value = true; dialogExpandconfiguration.value = true;
let form = Expandconfigurationform.value; let form = Expandconfigurationform.value;
form.id = id; //id form.id = id; //id
@ -1226,11 +1259,9 @@ const Expandconfiguration = async row => {
form.isAutoRelease = isAutoRelease; // form.isAutoRelease = isAutoRelease; //
form.isAutoWarehouse = isAutoWarehouse; // form.isAutoWarehouse = isAutoWarehouse; //
form.defaultAllocation = defaultAllocation; // form.defaultAllocation = defaultAllocation; //
form.isTrunklineLoadingPhoto = isTrunklineLoadingPhoto;//线 form.isTrunklineLoadingPhoto = isTrunklineLoadingPhoto; //线
form.isTrunklineStartPhoto = isTrunklineStartPhoto;//线 form.isTrunklineStartPhoto = isTrunklineStartPhoto; //线
form.isTrunklineUnloadPhoto = isTrunklineUnloadPhoto;//线 form.isTrunklineUnloadPhoto = isTrunklineUnloadPhoto; //线
} }
console.log(_res, '_res'); console.log(_res, '_res');
} catch (err) { } catch (err) {
@ -1244,7 +1275,7 @@ const Expandconfigurationsubmit = async () => {
try { try {
let data = { let data = {
...Expandconfigurationform.value, ...Expandconfigurationform.value,
warehouseId:dataRwo.value.id, warehouseId: dataRwo.value.id,
id: Expandconfigurationform.value.id, id: Expandconfigurationform.value.id,
}; };
Expandconfigurationloading.value = true; Expandconfigurationloading.value = true;
@ -1348,8 +1379,8 @@ const newlyaddSubmit = () => {
data.cityCode = Addform.value['addressInfo'][1]; //- data.cityCode = Addform.value['addressInfo'][1]; //-
data.code = Addform.value['addressInfo'][2]; //- data.code = Addform.value['addressInfo'][2]; //-
data.departmentName = department.value.label; // data.departmentName = department.value.label; //
data.longitude = data.address[0] data.longitude = data.address[0];
data.latitude=data.address[1] data.latitude = data.address[1];
if (dialogTitle.value == '编辑') { if (dialogTitle.value == '编辑') {
data.id = dataRwo.value.id; data.id = dataRwo.value.id;
$_Postupdate(data) $_Postupdate(data)
@ -1367,9 +1398,7 @@ const newlyaddSubmit = () => {
.catch(error => { .catch(error => {
console.log(error); console.log(error);
}) })
.finally(() => { .finally(() => {});
});
} else { } else {
// //
$_basicdataWarehousesave(data) $_basicdataWarehousesave(data)
@ -1387,16 +1416,17 @@ const newlyaddSubmit = () => {
.catch(error => { .catch(error => {
console.log(error); console.log(error);
}) })
.finally(() => { .finally(() => {});
});
} }
} }
}); });
return; return;
}; };
// /** 导出表格数据 */
const handleExportData = () => {
exportExcel(details.columnList, details.data, '仓库信息 - ' + new Date().getTime());
};
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">

7
src/views/warehouse/prewarehousing/PreStorageTrainNumber.vue

@ -27,6 +27,7 @@
<div class="avue-crud__left"></div> <div class="avue-crud__left"></div>
<!-- 头部右侧按钮模块 --> <!-- 头部右侧按钮模块 -->
<div class="avue-crud__right"> <div class="avue-crud__right">
<el-button icon="Download" @click="handleExportData" circle></el-button>
<el-button icon="el-icon-refresh" @click="searchChange" circle></el-button> <el-button icon="el-icon-refresh" @click="searchChange" circle></el-button>
<el-button icon="Operation" @click="showdrawer(true)" circle></el-button> <el-button icon="Operation" @click="showdrawer(true)" circle></el-button>
<el-button icon="Search" @click="searchHide" circle></el-button> <el-button icon="Search" @click="searchHide" circle></el-button>
@ -118,6 +119,7 @@ import { deepClone } from '@/utils/util';
import { showOrderPackgeCode } from '@/api/distribution/distributionStockArticle'; import { showOrderPackgeCode } from '@/api/distribution/distributionStockArticle';
import { getPageByCarNum } from '@/api/warehouse/PreStoragePackage'; import { getPageByCarNum } from '@/api/warehouse/PreStoragePackage';
import { ElMessage, ElMessageBox } from 'element-plus'; import { ElMessage, ElMessageBox } from 'element-plus';
import { exportExcel } from '@/utils/exportData';
// //
const $router = useRouter(); const $router = useRouter();
@ -321,6 +323,11 @@ const viewDetails = ({ row }) => {
}, },
}); });
}; };
/** 导出表格数据 */
const handleExportData = () => {
exportExcel(details.columnList, details.data, '预入库车次 - ' + new Date().getTime());
};
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">

7
src/views/warehouse/prewarehousing/Prewarehouseorder.vue

@ -77,6 +77,7 @@
</div> </div>
<!-- 头部右侧按钮模块 --> <!-- 头部右侧按钮模块 -->
<div class="avue-crud__right"> <div class="avue-crud__right">
<el-button icon="Download" @click="handleExportData" circle></el-button>
<el-button icon="el-icon-refresh" @click="searchChangeS" circle></el-button> <el-button icon="el-icon-refresh" @click="searchChangeS" circle></el-button>
<el-button icon="Operation" @click="showdrawer(true)" circle></el-button> <el-button icon="Operation" @click="showdrawer(true)" circle></el-button>
<el-button icon="Search" @click="searchHide" circle></el-button> <el-button icon="Search" @click="searchHide" circle></el-button>
@ -453,6 +454,7 @@ import {
import { useStore } from 'vuex'; import { useStore } from 'vuex';
import { getDictionaryBiz } from '@/api/system/dict'; import { getDictionaryBiz } from '@/api/system/dict';
import dayjs from 'dayjs'; import dayjs from 'dayjs';
import { exportExcel } from '@/utils/exportData';
const $router = useRouter(); // const $router = useRouter(); //
const $useStore = useStore(); // const $useStore = useStore(); //
const $route = useRoute(); // const $route = useRoute(); //
@ -1169,6 +1171,11 @@ const handleDownLoadFile = () => {
downloadFileBase64(url, name); downloadFileBase64(url, name);
}; };
/** 导出表格数据 */
const handleExportData = () => {
exportExcel(details.columnList, details.data, '预入库订单 - ' + new Date().getTime());
};
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">

2
src/views/waybill/ChangeOrder.vue

@ -513,7 +513,7 @@ const handleExport = () => {
// const { status, data } = res; // const { status, data } = res;
// if (status !== 200) return; // if (status !== 200) return;
// downloadXls(data, ' - ' + new Date().getTime() + '.xlsx'); // downloadXls(data, ' - ' + new Date().getTime());
// } catch (error) { // } catch (error) {
// console.log('error :>> ', error); // console.log('error :>> ', error);
// } finally { // } finally {

13
src/views/waybill/FreezeOrder.vue

@ -38,6 +38,7 @@
</div> </div>
<!-- 头部右侧按钮模块 --> <!-- 头部右侧按钮模块 -->
<div class="avue-crud__right"> <div class="avue-crud__right">
<el-button icon="Download" @click="handleExportData" circle></el-button>
<el-button icon="el-icon-refresh" @click="searchChange" circle></el-button> <el-button icon="el-icon-refresh" @click="searchChange" circle></el-button>
<el-button icon="Operation" @click="showdrawer(true)" circle></el-button> <el-button icon="Operation" @click="showdrawer(true)" circle></el-button>
<el-button icon="Search" @click="searchHide" circle></el-button> <el-button icon="Search" @click="searchHide" circle></el-button>
@ -120,6 +121,7 @@ import { useRouter } from 'vue-router';
import print from '@/utils/print'; import print from '@/utils/print';
import { deepClone } from '@/utils/util'; import { deepClone } from '@/utils/util';
import { ElMessage, ElMessageBox } from 'element-plus'; import { ElMessage, ElMessageBox } from 'element-plus';
import { exportExcel } from '@/utils/exportData';
// //
const $router = useRouter(); const $router = useRouter();
@ -436,6 +438,17 @@ const handleClickAll = e => {
details.orderStatus = _name; details.orderStatus = _name;
initOnLoad(); initOnLoad();
}; };
/** 导出表格数据 */
const handleExportData = () => {
exportExcel(
details.columnList,
details.orderStatus === 'haveData' ? details.haveDataData : details.notHaveDataData,
(details.orderStatus === 'haveData' ? '冻结订单 - 有数据 - ' : '冻结订单 - 无数据 - ') +
new Date().getTime() +
'.xlsx'
);
};
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">

190
src/views/waybill/TemporaryStorageList.vue

@ -39,97 +39,96 @@
</el-tabs> </el-tabs>
<div class="overflow"> <div class="overflow">
<el-row> <div class="avue-crud__header">
<div class="avue-crud__header"> <!-- 头部左侧按钮模块 -->
<!-- 头部左侧按钮模块 --> <div class="avue-crud__left">
<div class="avue-crud__left"> <!-- 订单转运单 -->
<!-- 订单转运单 --> <el-button
<el-button type="primary"
type="primary" icon="el-icon-plus"
icon="el-icon-plus" v-if="permissionObj.TemporaryStorageList_orderTransitionWaybill"
v-if="permissionObj.TemporaryStorageList_orderTransitionWaybill" @click="handleCreateOrder"
@click="handleCreateOrder" >订单转运单
>订单转运单 </el-button>
</el-button>
<!-- 修改客户信息 -->
<el-button
type="primary"
icon="Edit"
v-if="permissionObj.TemporaryStorageList_editClientInfo"
@click="editClientInfo"
>
修改客户信息
</el-button>
<!-- 删除 -->
<el-button
type="primary"
icon="Delete"
v-if="permissionObj.TemporaryStorageList_delete"
@click="handleDelete"
>
删除
</el-button>
<!-- 开标签 -->
<el-button
type="primary"
icon="Plus"
v-if="permissionObj.TemporaryStorageList_openLabel"
@click="handleOpenAddTagDlog"
>开标签</el-button
>
<!-- 批量开标签导入 --> <!-- 修改客户信息 -->
<el-button <el-button
type="primary" type="primary"
icon="Upload" icon="Edit"
v-if="permissionObj.TemporaryStorageList_batchOpenLableUpload" v-if="permissionObj.TemporaryStorageList_editClientInfo"
@click=" @click="editClientInfo"
() => { >
if (!ChecksWhetherTheWarehouseIsSelected()) 修改客户信息
return ElMessage.warning('多仓权限无法操作,请选择仓库'); </el-button>
details.popUpShow.UploadBatch = true;
details.ouPaiChooseType = 0; <!-- 删除 -->
} <el-button
" type="primary"
> icon="Delete"
批量开标签导入 v-if="permissionObj.TemporaryStorageList_delete"
</el-button> @click="handleDelete"
>
<!-- 欧派数据导入 --> 删除
<el-button </el-button>
type="primary"
icon="Upload" <!-- 开标签 -->
v-if="permissionObj.TemporaryStorageList_opInfoUpload" <el-button
@click=" type="primary"
() => { icon="Plus"
details.popUpShow.UploadPackageDelivery = true; v-if="permissionObj.TemporaryStorageList_openLabel"
details.ouPaiChooseType = 0; @click="handleOpenAddTagDlog"
} >开标签
" </el-button>
>
欧派数据导入 <!-- 批量开标签导入 -->
</el-button> <el-button
type="primary"
<!-- 冻结 --> icon="Upload"
<el-button v-if="permissionObj.TemporaryStorageList_batchOpenLableUpload"
type="primary" @click="
icon="Rank" () => {
v-if="permissionObj.TemporaryStorageList_freeze" if (!ChecksWhetherTheWarehouseIsSelected())
@click="handleFreeze" return ElMessage.warning('多仓权限无法操作,请选择仓库');
>冻结</el-button details.popUpShow.UploadBatch = true;
> details.ouPaiChooseType = 0;
</div> }
<!-- 头部右侧按钮模块 --> "
<div class="avue-crud__right"> >
<el-button icon="el-icon-refresh" @click="searchChange" circle></el-button> 批量开标签导入
<el-button icon="Operation" @click="showdrawer(true)" circle></el-button> </el-button>
<el-button icon="Search" @click="searchHide" circle></el-button>
</div> <!-- 欧派数据导入 -->
<el-button
type="primary"
icon="Upload"
v-if="permissionObj.TemporaryStorageList_opInfoUpload"
@click="
() => {
details.popUpShow.UploadPackageDelivery = true;
details.ouPaiChooseType = 0;
}
"
>
欧派数据导入
</el-button>
<!-- 冻结 -->
<el-button
type="primary"
icon="Rank"
v-if="permissionObj.TemporaryStorageList_freeze"
@click="handleFreeze"
>冻结
</el-button>
</div> </div>
</el-row> <!-- 头部右侧按钮模块 -->
<div class="avue-crud__right">
<el-button icon="Download" @click="handleExportData" circle></el-button>
<el-button icon="el-icon-refresh" @click="searchChange" circle></el-button>
<el-button icon="Operation" @click="showdrawer(true)" circle></el-button>
<el-button icon="Search" @click="searchHide" circle></el-button>
</div>
</div>
<!-- 表格 --> <!-- 表格 -->
<!-- 列表模块 --> <!-- 列表模块 -->
<tablecmt <tablecmt
@ -579,7 +578,7 @@ import { ElMessage, ElMessageBox } from 'element-plus';
import type { FormInstance, FormRules } from 'element-plus'; import type { FormInstance, FormRules } from 'element-plus';
import { getToken } from '@/utils/auth'; import { getToken } from '@/utils/auth';
import { useStore } from 'vuex'; import { useStore } from 'vuex';
import { isLength } from 'html2canvas/dist/types/css/types/length'; import { exportExcel } from '@/utils/exportData';
// //
const $router = useRouter(); const $router = useRouter();
@ -1550,6 +1549,17 @@ onActivated(() => {
$store.commit('EDIT_REFRESHITEM', { title: 'TemporaryStorageList', status: false }); $store.commit('EDIT_REFRESHITEM', { title: 'TemporaryStorageList', status: false });
} }
}); });
/** 导出表格数据 */
const handleExportData = () => {
exportExcel(
details.columnList,
details.orderStatus === 'haveData' ? details.haveDataData : details.notHaveDataData,
(details.orderStatus === 'haveData' ? '暂存单 - 有数据 - ' : '暂存单 - 无数据 - ') +
new Date().getTime() +
'.xlsx'
);
};
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">

11
src/views/waybill/orderPackageListDetailsByMarket.vue

@ -105,6 +105,7 @@
</div> </div>
<!-- 头部右侧按钮模块 --> <!-- 头部右侧按钮模块 -->
<div class="avue-crud__right"> <div class="avue-crud__right">
<el-button icon="Download" @click="handleExportData" circle></el-button>
<el-button icon="el-icon-refresh" @click="searchChange" circle></el-button> <el-button icon="el-icon-refresh" @click="searchChange" circle></el-button>
<el-button icon="Operation" @click="showdrawer(true)" circle></el-button> <el-button icon="Operation" @click="showdrawer(true)" circle></el-button>
<el-button icon="Search" @click="searchHide" circle></el-button> <el-button icon="Search" @click="searchHide" circle></el-button>
@ -337,6 +338,7 @@ import {
import print from '@/utils/print'; import print from '@/utils/print';
import { ElMessage, ElMessageBox } from 'element-plus'; import { ElMessage, ElMessageBox } from 'element-plus';
import { useRoute, useRouter } from 'vue-router'; import { useRoute, useRouter } from 'vue-router';
import { exportExcel } from '@/utils/exportData';
// //
const $router = useRouter(); const $router = useRouter();
@ -906,6 +908,15 @@ const handleBatchBarcode = async () => {
} }
}; };
/** 导出表格数据 */
const handleExportData = () => {
exportExcel(
details.packageListColumnList,
details.packageListRenderData,
$route.query.name + ' - ' + new Date().getTime()
);
};
watch( watch(
() => $route, () => $route,
() => { () => {

Loading…
Cancel
Save