|
@@ -117,7 +117,7 @@
|
|
|
</el-dialog>
|
|
|
</template>
|
|
|
<script setup>
|
|
|
-import { listDetailForReceipt,listDetailForAllReceipt } from '@/api/business/outsourcedOrderDetail'
|
|
|
+import { listDetailForReceipt,getNotFinishedOutsourceDetailList } from '@/api/business/outsourcedOrderDetail'
|
|
|
const { proxy } = getCurrentInstance()
|
|
|
const total = ref(0)
|
|
|
const props = defineProps({
|
|
@@ -145,30 +145,9 @@ const selections = ref([])
|
|
|
*/
|
|
|
function open(data) {
|
|
|
visible.value = true
|
|
|
- showAll.value = false
|
|
|
- queryParams.value.existingOutsourceDetailIds = data.outsourceDetailIds
|
|
|
getList()
|
|
|
}
|
|
|
|
|
|
-//查看对应外协所有批次
|
|
|
-function handleShowAllDetail() {
|
|
|
- showAll.value = true
|
|
|
- getAllList()
|
|
|
-}
|
|
|
-//查看对应外协已完成批次
|
|
|
-function handleShowFinishedDetail() {
|
|
|
- showAll.value = false
|
|
|
- getList()
|
|
|
-}
|
|
|
-function getAllList() {
|
|
|
- loading.value = true
|
|
|
- listDetailForAllReceipt(queryParams.value).then((res) => {
|
|
|
- dataList.value = res.rows
|
|
|
- total.value = res.total
|
|
|
- loading.value = false
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
/**
|
|
|
* 对话框关闭 事件
|
|
|
*/
|
|
@@ -184,7 +163,7 @@ function close() {
|
|
|
*/
|
|
|
function getList() {
|
|
|
loading.value = true
|
|
|
- listDetailForReceipt(queryParams.value).then((res) => {
|
|
|
+ getNotFinishedOutsourceDetailList(queryParams.value).then((res) => {
|
|
|
dataList.value = res.rows
|
|
|
total.value = res.total
|
|
|
loading.value = false
|