| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <div class="search-wrapper"> |
| | | <div class="search-wrapper mb20"> |
| | | <el-form |
| | | :model="searchForm" |
| | | class="demo-form-inline" |
| | |
| | | ></PIMTable> |
| | | </div> |
| | | <form-dia ref="formDia" @close="handleQuery"></form-dia> |
| | | <view-dia ref="viewDia"></view-dia> |
| | | <FileList v-if="fileDialogVisible" v-model:visible="fileDialogVisible" record-type="after_sales_service" :record-id="recordId" /> |
| | | </div> |
| | | </template> |
| | |
| | | <script setup> |
| | | import {onMounted, ref, reactive, toRefs, getCurrentInstance, nextTick, defineAsyncComponent} from "vue"; |
| | | import FormDia from "@/views/customerService/afterSalesHandling/components/formDia.vue"; |
| | | import ViewDia from "@/views/customerService/components/viewDia.vue"; |
| | | import { ElMessageBox } from "element-plus"; |
| | | import { |
| | | afterSalesServiceListPage, |
| | |
| | | }, |
| | | align: "center" |
| | | }, |
| | | { |
| | | label: "数量", |
| | | prop: "productModelQuantities", |
| | | align: "center", |
| | | formatData: params => { |
| | | if (!params) return "0"; |
| | | return String(params).split(',').reduce((sum, val) => sum + (Number(val) || 0), 0); |
| | | } |
| | | }, |
| | | { |
| | | label: "问题描述", |
| | | prop: "proDesc", |
| | |
| | | } |
| | | }, |
| | | { |
| | | name: "查看", |
| | | name: "详情", |
| | | type: "text", |
| | | clickFun: (row) => { |
| | | openForm("view", row); |
| | | viewDia.value?.openDialog(row); |
| | | }, |
| | | }, |
| | | // TODO 为写报告添加的 |
| | |
| | | selectedRows.value = selection; |
| | | }; |
| | | const formDia = ref() |
| | | const viewDia = ref() |
| | | const fileListRef = ref(null) |
| | | const fileListDialogVisible = ref(false) |
| | | const currentFileRow = ref(null) |