Browse Source

新增字段信息

master
马远东 1 year ago
parent
commit
5d26d2c9a0
  1. 203
      src/views/distribution/turndelivery/deliveryDiscuss.vue
  2. 220
      src/views/warehouse/parcelList/distributionParcelList.vue

203
src/views/distribution/turndelivery/deliveryDiscuss.vue

@ -272,6 +272,7 @@
v-model="multifunctional"
placeholder="请输入要搜索的值"
clearable
@clear='soclear'
/>
<el-button type="primary" @click="SearchFu"
><el-icon><Plus /></el-icon></el-button
@ -280,6 +281,28 @@
</div>
</div>
<!-- 顶部结束 -->
<!-- 首页表格 -->
<el-row>
<!-- 列表模块 -->
<tablecmt
:columnList="menuData"
:tableData="dataInfo"
:loading="loadingObj.list"
@inputTxt="inputsc"
@timeCheck="timesc"
@btnCheck="btnsc"
@selectCheck="selectsc"
@selection="selectionChange"
>
<template #default="slotProps">
<template v-if="slotProps.scope.column.label === '操作'">
<div class="ElBtnClass">
<el-button @click="view(slotProps.scope)">查看</el-button>
</div>
</template>
</template>
</tablecmt>
</el-row>
<div class="el-Cart">
<!-- 表格列开始 -->
<el-table
@ -319,14 +342,13 @@
align="center"
>
<template #default="props">
<span :class="props.row[item.prop]=='state'?'.static-class':''">{{ props.row[item.prop] ? props.row[item.prop] : '/' }}</span>
<span :class="props.row[item.prop] == 'state' ? '.static-class' : ''">{{
props.row[item.prop] ? props.row[item.prop] : '/'
}}</span>
</template>
</el-table-column>
</template>
<template v-if="item.type === 2">
<el-table-column
v-if="item.head"
@ -827,7 +849,7 @@ const data = ref([]); // 表格数据
const wrapData = ref([]); //
const wrapLoading = ref(false); //
const dataInfo = ref([]); //
const dataInfoTemp=ref([]);//
const dataInfoTemp = ref([]); //
const dataTmp = ref([]); //
const TabHeight = ref(230); //
const TCTabHeight = ref(600); //
@ -871,8 +893,84 @@ const isZeroTable = ref([]); //零担表格
const comprehensive = ref(false); //,
const QuantityEntryStatus = ref(false); //
const TCzj = ref(); //
const soInpuState = ref(false); //
const statisticsList = ref([]); //
const inputValue = ref('number'); //
const details = reactive({
/** 是否开启搜索 */
search: false,
/** 表格搜索条件 */
query: {},
/** 时间快捷选择设置 */
shortcuts: [
{
text: '最近一周',
value: () => {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
return [start, end];
},
},
{
text: '最近一个月',
value: () => {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
return [start, end];
},
},
{
text: '最近三个月',
value: () => {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
return [start, end];
},
},
],
/** 时间选择器数据 */
stockupDate: [],
/** 列表 */
columnList,
/** 列表数据 */
data: [{}],
/** 页面loading */
loadingObj: {
/** 列表加载loading */
list: false,
packageListLoading: false,
},
/** 列表复选框选中的数据 */
selectionList: [],
/** 是否显示设置表格 */
drawerShow: false,
/** 分页参数 */
page: {
currentPage: 1,
pageSize: 50,
total: 0,
},
});
const {
search,
query,
shortcuts,
stockupDate,
data,
loadingObj,
selectionList,
drawerShow,
page,
trickleLoadingPage,
zeroAdditionalRecordingInfo,
popUpShow,
recorddata,
} = toRefs(details);
const dataInfoID = ref(); //ID
//
//
//
@ -1746,6 +1844,14 @@ function dataTabInfo() {
}
//
const AddInfo = () => {
if (soInpuState.value) {
ElMessage({
showClose: true,
message: '请先重置搜索框值',
type: 'warning',
});
return;
}
dataTmp.value = [];
console.log('提交前的参数', dataInfo.value);
console.log('提交前前临时存储', dataTmp.value);
@ -1872,9 +1978,72 @@ function removeDuplicates(arr) {
const ids = arr.map(obj => obj.id);
return arr.filter((item, index) => ids.indexOf(item.id) === index);
}
const soclear=()=>{
SearchFu()
}
//
const SearchFu = () => {
console.log(soInpuState.value, '当前搜索状态');
if (!multifunctional.value && !dataInfoTemp.value.length) {
soInpuState.value = false; //
ElMessage({
showClose: true,
message: '请输入搜索内容',
type: 'warning',
});
return;
}
if (!multifunctional.value && dataInfoTemp.value.length) {
//
soInpuState.value = false; //
dataInfo.value = JSON.parse(JSON.stringify(dataInfoTemp.value));
dataInfoTemp.value = [];
}
if (soInpuState.value) {
ElMessage({
showClose: true,
message: '请先重置数据',
type: 'warning',
});
return;
} else {
//
console.log('多功能搜索功能');
console.log(dataInfo.value, '当前订单');
dataInfoTemp.value = dataInfo.value; //
let temp = dataInfo.value.filter(item => {
return Object.values(item).some(val => {
if (typeof val === 'string') {
return val.includes(multifunctional.value);
}
return false;
});
});
console.log(temp, '搜索结果');
console.log(dataInfoTemp.value,'临时存储的值');
dataInfo.value = temp; //
soInpuState.value = false; //
}
// console.log(dataInfo.value, '');
};
//
const DeleteEvent = val => {
dataInfoID.value = val; //
if (dataInfoTemp.value.length) {
//
const index = dataInfoTemp.value.findIndex(item => item.id === val.id);
if (index !== -1) {
dataInfoTemp.value.splice(index, 1);
}
}
console.log(dataInfoID.value, '当前删除的数据');
//
const index = dataInfo.value.findIndex(item => item.id === val.id);
if (index !== -1) {
@ -1995,28 +2164,6 @@ const Entering = val => {
});
};
//
const SearchFu = () => {
console.log('多功能搜索功能');
console.log(dataInfo.value, '当前订单');
let st= dataInfo.value.filter(item => {
return Object.values(item).some(val => {
if (typeof val === 'string') {
return val.includes(multifunctional.value);
}
return false;
});
});
st.forEach(item=>{
item.state=true;
})
console.log(st, '搜索结果');
};
//
const QuantityEntry = val => {
dataId.value = findIndexById(val.id); //
@ -2988,7 +3135,7 @@ const SubmitCommercial = () => {
align-items: center;
justify-content: space-between;
width: 24%;
.el-input {
.el-input {
margin-right: 4px;
}
button {

220
src/views/warehouse/parcelList/distributionParcelList.vue

@ -198,16 +198,37 @@ export default {
head: false,
},
{
prop: 'trainNumber',
label: '配送车次',
prop: 'orderCode',
label: '订单自编号',
type: 2,
values: '',
width: '200',
checkarr: [],
fixed: true,
sortable: true,
},
{
prop: 'orderPackageCode',
label: '包条码',
type: 2,
values: '',
width: '150',
checkarr: [],
fixed: false,
fixed: true,
sortable: true,
head: false,
},
// {
// prop: 'trainNumber',
// label: '',
// type: 2,
// values: '',
// width: '150',
// checkarr: [],
// fixed: false,
// sortable: true,
// },
// {
// prop: 'materialName',
// label: '',
// type: 2,
@ -240,7 +261,7 @@ export default {
},
{
prop: 'trainNumber',
label: '车次号',
label: '客户车次号',
type: 2,
values: '',
width: '130',
@ -248,9 +269,10 @@ export default {
fixed: false,
sortable: true,
},
{
prop: 'orderCode',
label: '订单自编号',
prop: 'warehouseEntryTimeEnd',
label: '入库时间',
type: 2,
values: '',
width: '200',
@ -258,62 +280,109 @@ export default {
fixed: false,
sortable: true,
},
{
prop: 'warehouseEntryTimeEnd',
label: '入库时间',
type: 2,
prop: 'conditionsType',
label: '包件类型',
type: 3,
values: '',
width: '200',
width: '130',
checkarr: [
{
label: '定制品',
value: '1',
},
{
label: '库存品',
value: '2',
},
],
fixed: false,
sortable: false,
head: false,
},
{
prop: 'orderPackageStockupStatusName',
label: '备货状态',
type: 3,
values: '',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
},
{
prop: 'orderPackageCode',
label: '包条码',
type: 2,
prop: 'orderPackageStatusName',
label: '包件状态',
type: 3,
values: '',
width: '150',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'conditionsType',
label: '包件类型',
prop: 'orderPackageLoadingStatusName',
label: '装车状态',
type: 3,
values: '',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
},
{
prop: 'orderPackageReservationStatusName',
label: '预约状态',
type: 3,
values: '',
width: '130',
checkarr: [
{
label: '定制品',
value: '1',
label: '待上架',
value: '10',
},
{
label: '库存品',
value: '2',
label: '已上架',
value: '20',
},
],
fixed: false,
sortable: false,
head: false,
sortable: true,
},
{
label: '预约单号',
prop: 'orderPackageGroundingStatusName',
label: '上架状态',
type: 3,
values: '',
width: '130',
checkarr: [
{
label: '待上架',
value: '10',
},
{
label: '已上架',
value: '20',
},
],
fixed: false,
sortable: true,
},
{
label: '预约单编号',
prop: 'reservationCode',
display: false,
hide: true,
},
{
label: '配送单号',
label: '配送车次号',
prop: 'noteNumber',
display: false,
hide: true,
},
{
label: '签收司机',
label: '配送司机',
prop: 'driverName',
display: false,
hide: true,
@ -325,17 +394,11 @@ export default {
hide: true,
},
{
label: '配送车',
label: '配送车',
prop: 'dvehicleName',
display: false,
hide: true,
},
{
label: '签收车次',
prop: 'zvehicleName',
display: false,
hide: true,
},
{
prop: 'firsts',
label: '一级品',
@ -377,73 +440,16 @@ export default {
sortable: true,
},
{
prop: 'orderPackageStockupStatusName',
label: '备货状态',
type: 3,
values: '',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
},
{
prop: 'orderPackageStatusName',
label: '包件状态',
type: 3,
values: '',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
},
{
prop: 'orderPackageLoadingStatusName',
label: '装车状态',
type: 3,
prop: 'materialName',
label: '物料名称',
type: 2,
values: '',
width: '130',
width: '150',
checkarr: [],
fixed: false,
sortable: true,
},
{
prop: 'orderPackageReservationStatusName',
label: '预约状态',
type: 3,
values: '',
width: '130',
checkarr: [
{
label: '待上架',
value: '10',
},
{
label: '已上架',
value: '20',
},
],
fixed: false,
sortable: true,
},
{
prop: 'orderPackageGroundingStatusName',
label: '上架状态',
type: 3,
values: '',
width: '130',
checkarr: [
{
label: '待上架',
value: '10',
},
{
label: '已上架',
value: '20',
},
],
fixed: false,
sortable: true,
},
// {
// prop: 'allocationMsg',
// label: '',
@ -454,28 +460,6 @@ export default {
// fixed: false,
// sortable: true,
// },
{
prop: 'loadingTime',
label: '装车时间',
type: 1,
values: '',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'signingTime',
label: '签收时间',
type: 1,
values: '',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'goodsAllocation',
label: '货位信息',

Loading…
Cancel
Save