|
@@ -25,8 +25,8 @@
|
|
|
|
|
|
<div class="w-full h-auto flex justify-between mt-2">
|
|
|
<div class="bg-white shadow-md rounded-md" style="width: 65%;">
|
|
|
- <Detailcompinents :data="relatedTasks" :information="information" :formTaskType="2" :filed="'orderId'"
|
|
|
- :disabled-list="['taskType', 'orderId']" @refreshData="refreshData" />
|
|
|
+ <Detailcompinents :data="relatedTasks" :information="information" :formTaskType="2"
|
|
|
+ :filed="'orderId'" :disabled-list="['taskType', 'orderId']" @refreshData="refreshData" />
|
|
|
</div>
|
|
|
<div class="bg-white ml-2 shadow-md rounded-md flex-1">
|
|
|
<OperationRecord :data="operationRecord" />
|
|
@@ -140,33 +140,40 @@ function getRelatedProducts() {
|
|
|
|
|
|
type allTypeStr = 'getDetail' | 'getFileList' | 'getRelatedTasks' | 'getOperationRecord' | 'getRelatedProducts' | 'getPaymentCollectionList' | ''
|
|
|
|
|
|
-async function getAll(event: allTypeStr) {
|
|
|
+async function getAll(_event: allTypeStr) {
|
|
|
try {
|
|
|
pageLoading.value = true
|
|
|
- if (!event) {
|
|
|
- await Promise.all([
|
|
|
- getDetail(),
|
|
|
- getFileList(),
|
|
|
- getRelatedTasks(),
|
|
|
- getOperationRecord(),
|
|
|
- getRelatedProducts(),
|
|
|
- getPaymentCollectionList()
|
|
|
- ])
|
|
|
- } else if (event == 'getDetail') {
|
|
|
- await getDetail()
|
|
|
- } else if (event == 'getFileList') {
|
|
|
- await getFileList()
|
|
|
- } else if (event == 'getRelatedTasks') {
|
|
|
- await getRelatedTasks()
|
|
|
- } else if (event == 'getOperationRecord') {
|
|
|
- await getOperationRecord()
|
|
|
- } else if (event == 'getRelatedProducts') {
|
|
|
- await getRelatedProducts()
|
|
|
- } else if (event == 'getPaymentCollectionList') {
|
|
|
- await getDetail()
|
|
|
- await getPaymentCollectionList()
|
|
|
- }
|
|
|
-
|
|
|
+ // if (!event) {
|
|
|
+ // await Promise.all([
|
|
|
+ // getDetail(),
|
|
|
+ // getFileList(),
|
|
|
+ // getRelatedTasks(),
|
|
|
+ // getOperationRecord(),
|
|
|
+ // getRelatedProducts(),
|
|
|
+ // getPaymentCollectionList()
|
|
|
+ // ])
|
|
|
+ // } else if (event == 'getDetail') {
|
|
|
+ // await getDetail()
|
|
|
+ // } else if (event == 'getFileList') {
|
|
|
+ // await getFileList()
|
|
|
+ // } else if (event == 'getRelatedTasks') {
|
|
|
+ // await getRelatedTasks()
|
|
|
+ // } else if (event == 'getOperationRecord') {
|
|
|
+ // await getOperationRecord()
|
|
|
+ // } else if (event == 'getRelatedProducts') {
|
|
|
+ // await getRelatedProducts()
|
|
|
+ // } else if (event == 'getPaymentCollectionList') {
|
|
|
+ // await getDetail()
|
|
|
+ // await getPaymentCollectionList()
|
|
|
+ // }
|
|
|
+ await Promise.all([
|
|
|
+ getDetail(),
|
|
|
+ getFileList(),
|
|
|
+ getRelatedTasks(),
|
|
|
+ getOperationRecord(),
|
|
|
+ getRelatedProducts(),
|
|
|
+ getPaymentCollectionList()
|
|
|
+ ])
|
|
|
pageLoading.value = false
|
|
|
} catch {
|
|
|
pageLoading.value = false
|