|
@@ -13,7 +13,6 @@
|
|
|
highlight-current-row
|
|
|
:table-events="{
|
|
|
select: selectRow,
|
|
|
- 'select-all': selectRow,
|
|
|
}"
|
|
|
:action-list="[
|
|
|
{
|
|
@@ -170,7 +169,7 @@ const config = computed(() => {
|
|
|
attrs: {
|
|
|
label: "事业部",
|
|
|
prop: "departmentName",
|
|
|
- width: 160,
|
|
|
+ width: 120,
|
|
|
},
|
|
|
},
|
|
|
{
|
|
@@ -184,7 +183,7 @@ const config = computed(() => {
|
|
|
attrs: {
|
|
|
label: "BOM品名",
|
|
|
prop: "bomSpecName",
|
|
|
- "min-width": 240,
|
|
|
+ "min-width": 280,
|
|
|
},
|
|
|
},
|
|
|
{
|
|
@@ -227,14 +226,14 @@ const config = computed(() => {
|
|
|
attrs: {
|
|
|
label: "订单号",
|
|
|
prop: "orderCode",
|
|
|
- width: 160,
|
|
|
+ width: 170,
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
attrs: {
|
|
|
label: "万里牛单号",
|
|
|
prop: "orderWlnCode",
|
|
|
- width: 160,
|
|
|
+ width: 150,
|
|
|
},
|
|
|
},
|
|
|
];
|
|
@@ -326,12 +325,14 @@ const getList = async (req) => {
|
|
|
loading.value = true;
|
|
|
proxy.post("/stockPreparation/uncompletedList", sourceList.value.pagination).then((res) => {
|
|
|
if (res && res.length > 0) {
|
|
|
- sourceList.value.data = res.map((item) => {
|
|
|
- return {
|
|
|
- ...item,
|
|
|
- isCheck: true,
|
|
|
- };
|
|
|
- });
|
|
|
+ sourceList.value.data = res
|
|
|
+ .filter((item, index) => index < 10)
|
|
|
+ .map((item) => {
|
|
|
+ return {
|
|
|
+ ...item,
|
|
|
+ isCheck: true,
|
|
|
+ };
|
|
|
+ });
|
|
|
} else {
|
|
|
sourceList.value.data = res;
|
|
|
}
|
|
@@ -410,19 +411,17 @@ const clickAccomplish = () => {
|
|
|
}
|
|
|
};
|
|
|
watch(selectData, (newVal) => {
|
|
|
- if (newVal.length == 0) {
|
|
|
+ if (newVal.length === 0) {
|
|
|
sourceList.value.data.forEach((x) => {
|
|
|
- x.isCheck = false;
|
|
|
+ x.isCheck = true;
|
|
|
});
|
|
|
- } else if (newVal.length == 1) {
|
|
|
- const current = newVal[0];
|
|
|
+ } else {
|
|
|
sourceList.value.data.forEach((x) => {
|
|
|
- if (x.orderId !== current.orderId) {
|
|
|
+ if (x.orderId !== newVal[0].orderId) {
|
|
|
x.isCheck = false;
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
});
|
|
|
</script>
|
|
|
|
|
@@ -430,4 +429,7 @@ watch(selectData, (newVal) => {
|
|
|
::v-deep(.el-input-number .el-input__inner) {
|
|
|
text-align: left;
|
|
|
}
|
|
|
+:deep(.el-table__header-wrapper .el-checkbox) {
|
|
|
+ display: none;
|
|
|
+}
|
|
|
</style>
|