Browse Source

修复托盘打印和部分搜索

dev
qb 4 months ago
parent
commit
4dfe34c39c
  1. 8
      src/api/basicdata/basicdataTray.js
  2. 4
      src/views/basicdata/warehouse/tray/basicdataTray.vue
  3. 4
      src/views/reportforms/ConsigneeReport.vue
  4. 6
      src/views/reportforms/SalesDepartmentIncomeReport.vue

8
src/api/basicdata/basicdataTray.js

@ -79,11 +79,11 @@ export const getPrintTemplate = ids => {
};
/** 获取托盘码PDF */
export const getDownloadTrayCode = ids => {
export const postDownPdf = ids => {
return request({
url: '/api/logpm-basicdata/tray/getPDF',
method: 'get',
params: {
url: '/api/logpm-basicdata/tray/downPdf',
method: 'post',
data: {
ids,
},
responseType: 'blob',

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

@ -302,7 +302,7 @@ import {
add,
update,
getPrintTemplate,
getDownloadTrayCode,
postDownPdf,
disable,
addable,
vacants,
@ -649,7 +649,7 @@ const handleDownLoadTrayCode = async () => {
}
let qr = details.selectionList.map(item => item.id).join(',');
console.log(qr);
const res = await getDownloadTrayCode(qr);
const res = await postDownPdf(qr);
console.log(res);
const { status, data } = res;
if (status !== 200) return;

4
src/views/reportforms/ConsigneeReport.vue

@ -5,7 +5,7 @@
<div v-h5uShow="search">
<!-- 查询模块 -->
<el-form :inline="true" :model="query" class="header_search" label-width="100px">
<el-form-item label="品牌" prop="brandId">
<el-form-item label="品牌" prop="brandName">
<el-select
class="w100"
v-model="query.brand"
@ -18,7 +18,7 @@
v-for="item in details.brandOptions"
:key="item.brandId"
:label="item.brandName"
:value="item.brandId"
:value="item.brandName"
/>
</el-select>
</el-form-item>

6
src/views/reportforms/SalesDepartmentIncomeReport.vue

@ -5,10 +5,10 @@
<div v-h5uShow="search">
<!-- 查询模块 -->
<el-form :inline="true" :model="query" class="header_search" label-width="100px">
<el-form-item label="品牌" prop="brandId">
<el-form-item label="品牌" prop="brandName">
<el-select
class="w100"
v-model="query.brand"
v-model="query.brandName"
filterable
placeholder="请选择"
default-first-option
@ -18,7 +18,7 @@
v-for="item in details.brandOptions"
:key="item.brandId"
:label="item.brandName"
:value="item.brandId"
:value="item.brandName"
/>
</el-select>
</el-form-item>

Loading…
Cancel
Save