Browse Source

配送商配新增统计

dev-xx
qb 1 year ago
parent
commit
b5381319a2
  1. 102
      src/views/distribution/turndelivery/deliveryDiscuss.vue

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

@ -327,7 +327,7 @@
? 'static-class' ? 'static-class'
: '' : ''
" "
>{{ props.row[item.prop]!=null ? props.row[item.prop] : '/' }}</span >{{ props.row[item.prop] != null ? props.row[item.prop] : '/' }}</span
> >
</template> </template>
</el-table-column> </el-table-column>
@ -404,15 +404,21 @@
</el-table> </el-table>
<div class="el-Cart-button-btn"> <div class="el-Cart-button-btn">
<div class="el_tool"> <div class="el_tool">
已选择:{{dataInfo.length}} 已选择:{{ dataInfo.length }}
<div> <div>
<span>合计:</span> <span>合计:</span>
<span>订单总件数: <span style="color: #67c23a;">{{Totalnumberoforders}} </span> </span> <span
<span style=" margin: 0 4px;"></span> >订单总件数:
<span>在库总件数: <span style="color: #67c23a;"> {{Totalnumberofitemsinstock}}</span></span> <span style="color: #67c23a">{{ Totalnumberoforders }} </span>
</div> </span>
</div> <span style="margin: 0 4px"></span>
<span
>在库总件数:
<span style="color: #67c23a"> {{ Totalnumberofitemsinstock }}</span></span
>
</div>
</div>
<el-button type="primary" @click="SubmitCommercial" <el-button type="primary" @click="SubmitCommercial"
><el-icon><Select /></el-icon>()</el-button ><el-icon><Select /></el-icon>()</el-button
> >
@ -630,6 +636,18 @@
</el-table> </el-table>
<!-- 表格翻页功能 --> <!-- 表格翻页功能 -->
<div class="demo-pagination-block TCdemo-pagination-block"> <div class="demo-pagination-block TCdemo-pagination-block">
<div class="statistics">
<span> 订单总件数</span>
<span>
{{ totolOrderNum }}
</span>
<span> 在库件数</span>
<span>
{{ inStockNum }}
</span>
</div>
<el-pagination <el-pagination
v-model:current-page="currentPage" v-model:current-page="currentPage"
v-model:page-size="pageSize" v-model:page-size="pageSize"
@ -857,8 +875,8 @@ const numTab = ref([
}, },
]); ]);
const num = ref(null); // const num = ref(null); //
const Totalnumberoforders=ref(0);// const Totalnumberoforders = ref(0); //
const Totalnumberofitemsinstock =ref(0);// const Totalnumberofitemsinstock = ref(0); //
const kind = ref(true); // const kind = ref(true); //
const currentPage = ref(1); // const currentPage = ref(1); //
const pageSize = ref(20); // const pageSize = ref(20); //
@ -919,6 +937,27 @@ const soInpuState = ref(false); //搜索框状态表示当前没有搜索
const statisticsList = ref([]); // const statisticsList = ref([]); //
const inputValue = ref('number'); // const inputValue = ref('number'); //
const dataInfoID = ref(); //ID const dataInfoID = ref(); //ID
/** 在库件数 */
const inStockNum = ref(0);
/** 订单总件数 */
const totolOrderNum = computed(() => {
const _arr = [...new Set(dataTmp.value), ...dataInfo.value];
let _total = 0;
let _handQuantity = 0;
for (const iterator of _arr) {
_total += iterator.totalNumber;
_handQuantity += iterator.handQuantity;
}
inStockNum.value = _handQuantity;
return _total;
});
// //
// //
// //
@ -1237,7 +1276,7 @@ const menuData = ref([
statistics: true, // statistics: true, //
}, },
{ {
prop: 'handQuantity', prop: 'handQuantity',
label: '在库件数', label: '在库件数',
type: 1, type: 1,
values: '', values: '',
@ -1747,7 +1786,7 @@ onMounted(() => {
DataSubmit.value.stockup.stockupDate = res.data.data.stockupInfo.stockupDate; // DataSubmit.value.stockup.stockupDate = res.data.data.stockupInfo.stockupDate; //
DataSubmit.value.taskTime = res.data.data.taskTime; // DataSubmit.value.taskTime = res.data.data.taskTime; //
editLoading.value = false; // editLoading.value = false; //
tooSUM() tooSUM();
}); });
} }
}); });
@ -1883,14 +1922,14 @@ const selectChange = (selection, row) => {
} }
} }
}; };
function tooSUM(){ function tooSUM() {
Totalnumberoforders.value=0 Totalnumberoforders.value = 0;
Totalnumberofitemsinstock.value=0 Totalnumberofitemsinstock.value = 0;
dataInfo.value.forEach(item=>{ dataInfo.value.forEach(item => {
Totalnumberoforders.value+= item.totalNumber, (Totalnumberoforders.value += item.totalNumber),
Totalnumberofitemsinstock.value+=item.handQuantity (Totalnumberofitemsinstock.value += item.handQuantity);
}) });
}; }
// //
const submit = () => { const submit = () => {
// //
@ -1932,7 +1971,7 @@ const submit = () => {
// //
dataInfo.value = removeDuplicates(dataInfo.value); dataInfo.value = removeDuplicates(dataInfo.value);
// //
tooSUM() tooSUM();
// //
dataTmp.value = removeDuplicates(dataTmp.value); dataTmp.value = removeDuplicates(dataTmp.value);
AddLalog.value = false; // AddLalog.value = false; //
@ -2042,7 +2081,6 @@ const SearchFu = () => {
// //
const DeleteEvent = val => { const DeleteEvent = val => {
if (route.query.id) { if (route.query.id) {
// //
let data = { let data = {
@ -2101,7 +2139,7 @@ const DeleteEvent = val => {
}); });
} }
} }
tooSUM() tooSUM();
}; };
// //
const EditEvent = val => { const EditEvent = val => {
@ -2207,7 +2245,7 @@ const PackageFn = () => {
// //
const ViewEvent = val => { const ViewEvent = val => {
wrapData.value=[] wrapData.value = [];
loading.value = true; // loading.value = true; //
PackageFrom.value = {}; // PackageFrom.value = {}; //
parameter.value = {}; // parameter.value = {}; //
@ -2737,7 +2775,7 @@ const SubmitCommercial = () => {
editLoading.value = false; // editLoading.value = false; //
console.log(res, '修改之后提交的返回值'); console.log(res, '修改之后提交的返回值');
$store.commit('DEL_TAG_CURRENT'); // $store.commit('DEL_TAG_CURRENT'); //
router.push('/distribution/inventory/distrilbutionBillLadingList'); router.back();
}); });
} else { } else {
// //
@ -2747,7 +2785,7 @@ const SubmitCommercial = () => {
// //
editLoading.value = false; // editLoading.value = false; //
$store.commit('DEL_TAG_CURRENT'); // $store.commit('DEL_TAG_CURRENT'); //
router.push('/distribution/inventory/distrilbutionBillLadingList'); router.back();
}); });
} }
@ -3315,11 +3353,11 @@ const SubmitCommercial = () => {
justify-content: flex-start !important; justify-content: flex-start !important;
} }
} }
.el_tool{ .el_tool {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
min-width: 300px; min-width: 300px;
font-size: 14px; font-size: 14px;
} }
</style> </style>

Loading…
Cancel
Save