|
@@ -10,7 +10,7 @@
|
|
|
>
|
|
|
<el-collapse accordion>
|
|
|
<el-collapse-item
|
|
|
- v-for="item in tableData"
|
|
|
+ v-for="item in filteredData"
|
|
|
:title="item.docNo"
|
|
|
:key="item"
|
|
|
>
|
|
@@ -50,6 +50,15 @@ const getList = async () => {
|
|
|
const { data } = await getReturnList(props.orderCode);
|
|
|
tableData.value = data;
|
|
|
};
|
|
|
+// 过滤
|
|
|
+const filteredData = computed(() => {
|
|
|
+ return tableData.value
|
|
|
+ .map(item => ({
|
|
|
+ ...item,
|
|
|
+ lineList: item.lineList.filter(line => line.moDocNo === props.orderCode)
|
|
|
+ }))
|
|
|
+});
|
|
|
+
|
|
|
watch(
|
|
|
() => props.modelValue,
|
|
|
(newValue) => {
|