Browse Source

修复已知bug,库存品增加冻结明细

dev-xx
马远东 2 months ago
parent
commit
2e08f5936b
  1. BIN
      public/img/Qrewm.png
  2. 9
      src/api/distribution/distributionStockList.js
  3. 7
      src/components/MultiConditionSearch/MultiConditionSearch.vue
  4. 2
      src/views/aftersales/aftersalesWorkOrderend.vue
  5. 42
      src/views/distribution/inventory/delivery/distributionStockArticle.vue
  6. 138
      src/views/distribution/inventory/distributionStockListDetails.vue
  7. 1
      src/views/warehouse/warehousesignedorder/distributionStockArticle.vue
  8. 8
      src/views/waybill/WaybillOrderList.vue
  9. 2
      src/views/waybill/orderPackageList.vue

BIN
public/img/Qrewm.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 13 KiB

9
src/api/distribution/distributionStockList.js

@ -269,7 +269,14 @@ export const $_stockListUnpackDetail = (params) => {
params params
}) })
} }
// 查询冻结明细
export const $_planDetail = (params) => {
return request({
url: '/api/logpm-distribution/distributionStockListInfo/planDetail',
method: 'get',
params
})
}

7
src/components/MultiConditionSearch/MultiConditionSearch.vue

@ -114,13 +114,6 @@ const destroyWindow = () => {
}; };
const dialogSearchSubmit = () => { const dialogSearchSubmit = () => {
const lines = localInputValue.value
.split('\n') //
.map(line => line.trim()) //
.filter(line => line !== ''); //
const joinedLines = lines.join(','); // 使
localInputValue.value = joinedLines;
emit('dialogSearchSubmit', localInputValue.value); emit('dialogSearchSubmit', localInputValue.value);
}; };
</script> </script>

2
src/views/aftersales/aftersalesWorkOrderend.vue

@ -1641,7 +1641,7 @@ const onLoad = async () => {
}); });
} }
console.log(endFrom.value, '表单信息'); console.log(endFrom.value, '表单信息');
getDeptWarehouse({}).then(res => { await getDeptWarehouse({}).then(res => {
// //
console.log(res, '处理方'); console.log(res, '处理方');
console.log(localStorage.getItem('WarehouseName'), '当前本地仓库'); console.log(localStorage.getItem('WarehouseName'), '当前本地仓库');

42
src/views/distribution/inventory/delivery/distributionStockArticle.vue

@ -24,8 +24,7 @@
<el-icon class="el_dy_icon" @click="openDialog('运单号搜索', query.waybillNum)" <el-icon class="el_dy_icon" @click="openDialog('运单号搜索', query.waybillNum)"
><CirclePlusFilled ><CirclePlusFilled
/></el-icon> /></el-icon>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="入库时间:" class="el-times"> <el-form-item label="入库时间:" class="el-times">
@ -687,12 +686,12 @@
</template> </template>
</el-dialog> </el-dialog>
<multi-condition-search <MultiConditionSearch
v-model:modelValue="dialogVisible" v-model:modelValue="dialogVisible"
:title="popupTitle" :title="popupTitle"
v-model:inputValue="searchInput" v-model:inputValue="searchInput"
@dialogSearchSubmit="handleSearchSubmit" @dialogSearchSubmit="handleSearchSubmit"
/> />
</basic-container> </basic-container>
<edittablehead <edittablehead
@closce="showdrawer" @closce="showdrawer"
@ -737,7 +736,7 @@ const _newCol = deepClone(columnList);
export default { export default {
components: { components: {
MultiConditionSearch MultiConditionSearch,
}, },
data() { data() {
return { return {
@ -1505,25 +1504,32 @@ export default {
} }
}, },
openDialog(title, input) { async openDialog(title, input) {
this.popupTitle = title; this.popupTitle = title;
console.log(input, 'input'); console.log(input, '输入框值1');
if (input) { if (input) {
const formattedInput = input.split(',').join('\n'); const formattedInput = await input.split(',').join('\n');
console.log(formattedInput, '输入框值2');
this.searchInput = formattedInput; // inputAll this.searchInput = formattedInput; // inputAll
} else { } else {
this.searchInput = ''; this.searchInput = '';
} }
console.log(this.searchInput,'输入框值'); console.log(this.searchInput, '输入框值3');
this.dialogVisible = true; this.dialogVisible = true;
}, },
handleSearchSubmit(value) { handleSearchSubmit(value) {
const lines = value
.split('\n') //
.map(line => line.trim()) //
.filter(line => line !== ''); //
const joinedLines = lines.join(','); // 使
if (this.popupTitle == '订单自编号搜索') { if (this.popupTitle == '订单自编号搜索') {
this.query.orderCodeNum = value; // this.query.orderCodeNum = joinedLines; //
}else if(this.popupTitle == '运单号搜索'){ } else if (this.popupTitle == '运单号搜索') {
this.query.waybillNum = value; // this.query.waybillNum = joinedLines; //
} }
this.dialogVisible = false; this.dialogVisible = false;
}, },

138
src/views/distribution/inventory/distributionStockListDetails.vue

@ -236,6 +236,36 @@
</el-pagination> </el-pagination>
</div> </div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="冻结明细" name="FreezeDetails">
<tablecmt
class="tableNode"
:columnList="columnListarrs.FreezeDetails"
:tableData="data4"
:loading="loading"
@inputTxt="inputsc"
@timeCheck="timesc"
@btnCheck="btnsc"
@selectCheck="selectsc"
@selection="selectionChange"
>
<template #default="slotProps">
</template>
</tablecmt>
<!-- <div class="avue-crud__pagination" style="width: 100%">
<el-pagination
align="right"
background
@size-change="sizeChange"
@current-change="currentChange"
:current-page="page4.currentPage"
:page-sizes="[200, 250, 300, 500]"
:page-size="page3.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="page3.total"
>
</el-pagination>
</div> -->
</el-tab-pane>
<!-- <el-tab-pane label="拆包记录" name="unpacking"> <!-- <el-tab-pane label="拆包记录" name="unpacking">
<el-table ref="table" v-loading="loading" <el-table ref="table" v-loading="loading"
@selection-change="selectionChange" @selection-change="selectionChange"
@ -314,6 +344,7 @@ import {
showInventorySourcePackageCode, showInventorySourcePackageCode,
$_cancelAddStockListByPackage, $_cancelAddStockListByPackage,
$_stockListUnpackDetail, $_stockListUnpackDetail,
$_planDetail,
$_cancelUnpack, $_cancelUnpack,
$_showInventoryPackgeCodes, $_showInventoryPackgeCodes,
} from '@/api/distribution/distributionStockList'; } from '@/api/distribution/distributionStockList';
@ -332,7 +363,83 @@ export default {
locations: 0, // locations: 0, //
isShowPrint: false, isShowPrint: false,
html: '', html: '',
columnListarrs: { columnListarrs: {
//
FreezeDetails:[
{
prop: '',
label: '复选框',
type: 0,
width: 55,
fixed: true,
},
{
prop: '',
label: '序号',
type: 12,
values: '',
width: 55,
fixed: true,
},
{
prop: 'consignee',
label: '收货人',
type: 1,
values: '',
width: '150',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'packageCode',
label: '包条码',
type: 1,
values: '',
width: '150',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'planNum',
label: '计划数量',
type: 1,
values: '',
width: '150',
checkarr: [],
fixed: false,
sortable: true,
head: false,
isshowSummary: true,
},
{
prop: 'reservationCode',
label: '任务单号',
type: 1,
values: '',
width: '150',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'scanUser',
label: '备货人',
type: 1,
values: '',
width: '150',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
],
// //
columnWarehousing: [ columnWarehousing: [
{ {
@ -917,6 +1024,11 @@ export default {
pageSize: 200, pageSize: 200,
total: 0, total: 0,
}, },
page4: {
currentPage: 1,
pageSize: 200,
total: 0,
},
// //
form: {}, form: {},
// //
@ -928,6 +1040,7 @@ export default {
data1: [], data1: [],
data2: [], data2: [],
data3: [], data3: [],
data4: [],
leibiao: '', leibiao: '',
loadingObj: { loadingObj: {
pageLoading: false, pageLoading: false,
@ -1100,10 +1213,35 @@ export default {
console.log('拆包明细'); console.log('拆包明细');
// this.getOnChai(this.page2); // this.getOnChai(this.page2);
this.getunpacking(this.page3); this.getunpacking(this.page3);
}else if (this.leibiao == 'FreezeDetails') {
this.getFreezeDetails(this.page4);
} }
const _node = document.querySelectorAll('.tableNode'); const _node = document.querySelectorAll('.tableNode');
setNodeHeight(_node, '', true); setNodeHeight(_node, '', true);
}, },
getFreezeDetails(page){
let data = {
stockListId: this.$route.query.id,
// current: page.currentPage,
// size: page.pageSize,
};
this.loading = true;
$_planDetail(data)
.then(res => {
console.log(res, '拆单明细');
if (res.data.code == 200) {
this.data4 = res.data.data;
// this.page4.total = res.data.data.total;
console.log(this.page4, ' this.page4');
}
})
.catch(res => {
console.log(res, '错误');
})
.finally(() => {
this.loading = false;
});
},
// //
getunpacking(page) { getunpacking(page) {
let data = { let data = {

1
src/views/warehouse/warehousesignedorder/distributionStockArticle.vue

@ -136,7 +136,6 @@ import {
$_signforList, $_signforList,
$_signforDistributionStockArticleList, $_signforDistributionStockArticleList,
} from '@/api/distribution/distributionStockArticle.js'; } from '@/api/distribution/distributionStockArticle.js';
import functions from '@/utils/functions.js';
import { ElMessageBox, ElMessage } from 'element-plus'; import { ElMessageBox, ElMessage } from 'element-plus';
import { downloadXls } from '@/utils/util'; import { downloadXls } from '@/utils/util';
const $router = useRouter(); // const $router = useRouter(); //

8
src/views/waybill/WaybillOrderList.vue

@ -485,8 +485,14 @@ const openDialog = (title, input) => {
dialogVisible.value = true; dialogVisible.value = true;
}; };
const handleSearchSubmit = value => { const handleSearchSubmit = value => {
const lines = value
.split('\n') //
.map(line => line.trim()) //
.filter(line => line !== ''); //
const joinedLines = lines.join(','); // 使
if (popupTitle.value == '运单号搜索') { if (popupTitle.value == '运单号搜索') {
query.value.waybillNoList = value; // query.value.waybillNoList = joinedLines; //
} }
dialogVisible.value = false; dialogVisible.value = false;
}; };

2
src/views/waybill/orderPackageList.vue

@ -58,7 +58,7 @@
<el-button type="primary" icon="Printer" @click="handleBatchBarcode"> <el-button type="primary" icon="Printer" @click="handleBatchBarcode">
批量打印 批量打印
</el-button> </el-button>
<el-button @click="openDialog">打开搜索弹窗</el-button> <!-- <el-button @click="openDialog">打开搜索弹窗</el-button> -->
<!-- 批量入库 --> <!-- 批量入库 -->
<el-button <el-button
type="primary" type="primary"

Loading…
Cancel
Save