| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <!-- <div class="search_form"> |
| | | <el-form :model="searchForm" |
| | | :inline="true"> |
| | | <el-form-item label="鿣ç¼å·ï¼"> |
| | | <el-input v-model="searchForm.hiddenCode" |
| | | placeholder="请è¾å
¥" |
| | | clearable |
| | | prefix-icon="Search" |
| | | @change="handleQuery" /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" |
| | | @click="handleQuery"> æç´¢ </el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> --> |
| | | <div class="table_list"> |
| | | <div class="actions"> |
| | | <div></div> |
| | | <div> |
| | | <el-button type="primary" |
| | | @click="openForm('add')"> |
| | | æ°å¢éæ£ |
| | | </el-button> |
| | | <!-- <el-button type="primary" |
| | | plain |
| | | @click="handleImport">导å
¥</el-button> |
| | | <el-button @click="handleOut">导åº</el-button> --> |
| | | <el-button type="danger" |
| | | plain |
| | | @click="handleDelete">å é¤</el-button> |
| | | <!-- <el-button type="primary" |
| | | plain |
| | | @click="handlePrint">æå°</el-button> --> |
| | | </div> |
| | | </div> |
| | | <el-table :data="tableData" |
| | | border |
| | | v-loading="tableLoading" |
| | | @selection-change="handleSelectionChange" |
| | | :expand-row-keys="expandedRowKeys" |
| | | :row-key="(row) => row.id" |
| | | :row-class-name="getRowClass" |
| | | style="width: 100%" |
| | | height="calc(100vh - 18.5em)"> |
| | | <el-table-column align="center" |
| | | type="selection" |
| | | width="55" |
| | | fixed="left" /> |
| | | <el-table-column align="center" |
| | | label="åºå·" |
| | | type="index" |
| | | width="60" /> |
| | | <el-table-column label="鿣ç¼å·" |
| | | prop="hiddenCode" |
| | | width="180" |
| | | show-overflow-tooltip /> |
| | | <el-table-column label="鿣æè¿°" |
| | | prop="hiddenDesc" |
| | | show-overflow-tooltip /> |
| | | <el-table-column label="鿣å
·ä½ä½ç½®" |
| | | prop="location" |
| | | show-overflow-tooltip /> |
| | | <el-table-column label="䏿¥äºº" |
| | | prop="createUserName" |
| | | width="180" |
| | | show-overflow-tooltip /> |
| | | <el-table-column label="䏿¥æ¶é´" |
| | | prop="createTime" |
| | | show-overflow-tooltip /> |
| | | <el-table-column label="æ´æ¹å®ææé" |
| | | prop="rectifyTime" |
| | | width="120" |
| | | show-overflow-tooltip /> |
| | | <el-table-column label="æ´æ¹è´£ä»»äºº" |
| | | prop="rectifyUserName" |
| | | width="120" |
| | | show-overflow-tooltip /> |
| | | <el-table-column label="æ´æ¹è´£ä»»äººèç³»æ¹å¼" |
| | | prop="rectifyUserMobile" |
| | | width="120" |
| | | show-overflow-tooltip /> |
| | | <el-table-column label="æ´æ¹å
·ä½æªæ½" |
| | | prop="rectifyMeasures" |
| | | width="120" |
| | | show-overflow-tooltip /> |
| | | <el-table-column label="å®é
æ´æ¹å®ææ¶é´" |
| | | prop="rectifyActualTime" |
| | | width="120" |
| | | show-overflow-tooltip /> |
| | | <el-table-column label="éªæ¶æè§" |
| | | prop="verifyRemark" |
| | | width="120" |
| | | show-overflow-tooltip /> |
| | | <el-table-column label="éªæ¶æ¶é´" |
| | | prop="verifyTime" |
| | | width="120" |
| | | show-overflow-tooltip /> |
| | | <el-table-column label="éªæ¶ç»æ" |
| | | prop="verifyResult" |
| | | width="120" |
| | | show-overflow-tooltip> |
| | | <template #default="scope"> |
| | | <el-tag v-if="scope.row.verifyResult" |
| | | :type="scope.row.verifyResult === 'éè¿' ? 'success' : 'danger'"> |
| | | {{ scope.row.verifyResult }} |
| | | </el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column fixed="right" |
| | | label="æä½" |
| | | min-width="250" |
| | | align="center"> |
| | | <template #default="scope"> |
| | | <el-button link |
| | | type="primary" |
| | | size="small" |
| | | @click="openForm('edit', scope.row)">ç¼è¾</el-button> |
| | | <el-button link |
| | | type="primary" |
| | | size="small" |
| | | @click="downLoadFile(scope.row)">éä»¶</el-button> |
| | | <el-button link |
| | | type="primary" |
| | | size="small" |
| | | @click="openForm('edit2', scope.row)">æ´æ¹</el-button> |
| | | <el-button link |
| | | type="primary" |
| | | size="small" |
| | | :disabled="!scope.row.rectifyActualTime" |
| | | @click="openForm('edit3', scope.row)">éªæ¶</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <pagination v-show="total > 0" |
| | | :total="total" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :page="page.current" |
| | | :limit="page.size" |
| | | @pagination="paginationChange" /> |
| | | </div> |
| | | <FormDialog v-model="dialogFormVisible" |
| | | :title="getTitle(operationType)" |
| | | :width="'70%'" |
| | | :operation-type="operationType" |
| | | @close="closeDia" |
| | | @confirm="submitForm" |
| | | @cancel="closeDia"> |
| | | <el-form :model="form" |
| | | v-if="operationType === 'add' || operationType === 'edit'" |
| | | label-width="140px" |
| | | label-position="top" |
| | | :rules="rules" |
| | | ref="formRef"> |
| | | <el-row :gutter="30"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="鿣ç¼å·ï¼" |
| | | prop="hiddenCode"> |
| | | <el-input v-model="form.hiddenCode" |
| | | placeholder="èªå¨çæ" |
| | | disabled |
| | | clearable /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="鿣å
·ä½ä½ç½®ï¼" |
| | | prop="location"> |
| | | <el-input v-model="form.location" |
| | | placeholder="请è¾å
¥" |
| | | clearable /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-form-item label="鿣æè¿°ï¼" |
| | | prop="hiddenDesc"> |
| | | <el-input v-model="form.hiddenDesc" |
| | | type="textarea" |
| | | :rows="2" |
| | | placeholder="请è¾å
¥" |
| | | clearable /> |
| | | </el-form-item> |
| | | <el-row :gutter="30"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="éæ£ç±»åï¼" |
| | | prop="type"> |
| | | <el-select v-model="form.type" |
| | | placeholder="è¯·éæ©" |
| | | clearable> |
| | | <el-option v-for="item in typeList" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="鿣é£é©ç级ï¼" |
| | | prop="riskLevel"> |
| | | <el-select v-model="form.riskLevel" |
| | | placeholder="è¯·éæ©" |
| | | clearable> |
| | | <el-option v-for="item in riskLevelList" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="30"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="䏿¥äººï¼" |
| | | prop="createUser"> |
| | | <el-select v-model="form.createUser" |
| | | placeholder="è¯·éæ©" |
| | | @change="handleChange" |
| | | clearable> |
| | | <el-option v-for="item in userList" |
| | | :key="item.userId" |
| | | :label="item.nickName" |
| | | :value="item.userId" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="䏿¥æ¶é´ï¼" |
| | | prop="createTime"> |
| | | <el-date-picker style="width: 100%" |
| | | readonly |
| | | v-model="form.createTime" |
| | | value-format="YYYY-MM-DD" |
| | | format="YYYY-MM-DD" |
| | | type="date" |
| | | placeholder="è¯·éæ©" |
| | | clearable |
| | | :disabled="operationType === 'view'" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="30"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="æ´æ¹è´£ä»»äººï¼" |
| | | prop="rectifyUserId"> |
| | | <el-select v-model="form.rectifyUserId" |
| | | placeholder="è¯·éæ©" |
| | | @change="handleChange2" |
| | | clearable> |
| | | <el-option v-for="item in userList" |
| | | :key="item.userId" |
| | | :label="item.nickName" |
| | | :value="item.userId" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="æ´æ¹å®ææé" |
| | | prop="rectifyTime"> |
| | | <el-date-picker style="width: 100%" |
| | | v-model="form.rectifyTime" |
| | | value-format="YYYY-MM-DD" |
| | | format="YYYY-MM-DD" |
| | | type="date" |
| | | placeholder="è¯·éæ©" |
| | | clearable |
| | | :disabled="operationType === 'view'" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | | <el-descriptions :column="2" |
| | | style="margin-bottom: 20px;" |
| | | v-if="operationType === 'edit2' || operationType === 'edit3'" |
| | | title="éæ£è¯¦æ
" |
| | | border> |
| | | <el-descriptions-item label="鿣ç¼å·"> |
| | | <span class="detail-title">{{ form.hiddenCode }}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="鿣å
·ä½ä½ç½®"> |
| | | <span class="detail-title">{{ form.location }}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item :span="2" |
| | | label="鿣æè¿°"> |
| | | <span class="detail-title">{{ form.hiddenDesc }}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="éæ£ç±»å"> |
| | | <span class="detail-title">{{ form.type }}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="鿣é£é©ç级"> |
| | | <span class="detail-title">{{ form.riskLevel }}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="䏿¥äºº"> |
| | | <span class="detail-title">{{ form.createUserName }}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="䏿¥æ¶é´"> |
| | | <span class="detail-title">{{ form.createTime }}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="æ´æ¹è´£ä»»äºº"> |
| | | <span class="detail-title">{{ form.rectifyUserName }}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="æ´æ¹è´£ä»»äººèç³»æ¹å¼"> |
| | | <span class="detail-title">{{ form.rectifyUserMobile }}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="æ´æ¹å®ææé"> |
| | | <span class="detail-title">{{ form.rectifyTime }}</span> |
| | | </el-descriptions-item> |
| | | </el-descriptions> |
| | | <el-descriptions :column="2" |
| | | style="margin-bottom: 20px;" |
| | | v-if="operationType === 'edit3'" |
| | | title="æ´æ¹è¯¦æ
" |
| | | border> |
| | | <el-descriptions-item label="æ´æ¹å
·ä½æªæ½" |
| | | :span="2"> |
| | | <span class="detail-title">{{ form2.rectifyMeasures }}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="å®é
æ´æ¹å®ææ¶é´"> |
| | | <span class="detail-title">{{ form2.rectifyActualTime }}</span> |
| | | </el-descriptions-item> |
| | | </el-descriptions> |
| | | <el-form :model="form2" |
| | | v-if="operationType === 'edit2'" |
| | | label-width="140px" |
| | | label-position="top" |
| | | :rules="rules2" |
| | | ref="formRef2"> |
| | | <el-form-item label="æ´æ¹å
·ä½æªæ½ï¼" |
| | | prop="rectifyMeasures"> |
| | | <el-input v-model="form2.rectifyMeasures" |
| | | type="textarea" |
| | | :rows="2" |
| | | placeholder="请è¾å
¥æ´æ¹å
·ä½æªæ½" |
| | | clearable /> |
| | | </el-form-item> |
| | | <el-row :gutter="30"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="å®é
æ´æ¹å®ææ¶é´ï¼" |
| | | prop="rectifyActualTime"> |
| | | <el-date-picker style="width: 100%" |
| | | v-model="form2.rectifyActualTime" |
| | | value-format="YYYY-MM-DD" |
| | | format="YYYY-MM-DD" |
| | | type="date" |
| | | placeholder="è¯·éæ©" |
| | | clearable |
| | | :disabled="operationType === 'view'" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | | <el-form :model="form3" |
| | | v-if="operationType === 'edit3'" |
| | | label-width="140px" |
| | | label-position="top" |
| | | :rules="rules3" |
| | | ref="formRef3"> |
| | | <el-form-item label="éªæ¶æè§ï¼" |
| | | prop="verifyRemark"> |
| | | <el-input v-model="form3.verifyRemark" |
| | | type="textarea" |
| | | :rows="2" |
| | | placeholder="请è¾å
¥éªæ¶æè§" |
| | | clearable /> |
| | | </el-form-item> |
| | | <el-row :gutter="30"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="éªæ¶æ¶é´ï¼" |
| | | prop="verifyTime"> |
| | | <el-date-picker style="width: 100%" |
| | | disabled |
| | | v-model="form3.verifyTime" |
| | | value-format="YYYY-MM-DD" |
| | | format="YYYY-MM-DD" |
| | | type="date" |
| | | placeholder="è¯·éæ©" |
| | | clearable /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="éªæ¶ç»æï¼" |
| | | prop="verifyResult"> |
| | | <el-select v-model="form3.verifyResult" |
| | | placeholder="è¯·éæ©" |
| | | clearable> |
| | | <el-option label="éè¿" |
| | | value="éè¿" /> |
| | | <el-option label="ä¸éè¿" |
| | | value="ä¸éè¿" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="30"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="éªæ¶äººï¼" |
| | | prop="verifyUserId"> |
| | | <el-select v-model="form3.verifyUserId" |
| | | disabled |
| | | placeholder="è¯·éæ©" |
| | | clearable> |
| | | <el-option v-for="item in userList" |
| | | :key="item.userId" |
| | | :label="item.nickName" |
| | | :value="item.userId" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | | </FormDialog> |
| | | <!-- éä»¶åè¡¨å¼¹çª --> |
| | | <FileListDialog ref="fileListRef" |
| | | v-model="fileListDialogVisible" |
| | | :show-upload-button="true" |
| | | :show-delete-button="true" |
| | | :upload-method="handleUpload" |
| | | :delete-method="handleFileDelete" |
| | | title="éä»¶å表" /> |
| | | </div> |
| | | </template> |
| | | |
| | | <script setup> |
| | | import { getToken } from "@/utils/auth"; |
| | | import pagination from "@/components/PIMTable/Pagination.vue"; |
| | | import { onMounted, ref, getCurrentInstance } from "vue"; |
| | | import { ElMessageBox, ElMessage } from "element-plus"; |
| | | import useUserStore from "@/store/modules/user"; |
| | | import { userListNoPage } from "@/api/system/user.js"; |
| | | import FileListDialog from "@/components/Dialog/FileListDialog.vue"; |
| | | import FormDialog from "@/components/Dialog/FormDialog.vue"; |
| | | import { getQuotationList } from "@/api/salesManagement/salesQuotation.js"; |
| | | import { |
| | | dangerInvestigationListPage, |
| | | safeHiddenAdd, |
| | | safeHiddenUpdate, |
| | | safeHiddenDel, |
| | | fileListPage, |
| | | safeHiddenFileAdd, |
| | | safeHiddenFileDel, |
| | | } from "@/api/safeProduction/dangerInvestigation.js"; |
| | | import useFormData from "@/hooks/useFormData.js"; |
| | | import request from "@/utils/request"; |
| | | import dayjs from "dayjs"; |
| | | import { get } from "@vueuse/core"; |
| | | |
| | | const userStore = useUserStore(); |
| | | const { proxy } = getCurrentInstance(); |
| | | const tableData = ref([]); |
| | | const selectedRows = ref([]); |
| | | const userList = ref([]); |
| | | const tableLoading = ref(false); |
| | | const page = reactive({ |
| | | current: 1, |
| | | size: 100, |
| | | }); |
| | | const total = ref(0); |
| | | const getTitle = type => { |
| | | if (type === "add") { |
| | | return "æ°å¢éæ£"; |
| | | } else if (type === "edit") { |
| | | return "ä¿®æ¹éæ£"; |
| | | } else if (type === "edit2") { |
| | | return "æ´æ¹é¡µé¢"; |
| | | } else if (type === "edit3") { |
| | | return "éªæ¶é¡µé¢"; |
| | | } |
| | | }; |
| | | // ç¨æ·ä¿¡æ¯è¡¨åå¼¹æ¡æ°æ® |
| | | const operationType = ref(""); |
| | | const dialogFormVisible = ref(false); |
| | | const data = reactive({ |
| | | searchForm: { |
| | | hiddenCode: "", // 鿣ç¼å· |
| | | }, |
| | | form: { |
| | | hiddenCode: "", // 鿣ç¼å· |
| | | location: "", // 鿣ä½ç½® |
| | | hiddenDesc: "", // 鿣æè¿° |
| | | createUser: "", // 䏿¥äºº |
| | | createUserName: "", |
| | | createTime: dayjs().format("YYYY-MM-DD HH:mm:ss"), // 䏿¥æ¶é´ |
| | | rectifyUserId: "", // æ´æ¹è´£ä»»äºº |
| | | rectifyUserName: "", |
| | | rectifyTime: "", // æ´æ¹å®ææé |
| | | rectifyUserMobile: "", // æ´æ¹è´£ä»»äººææºå· |
| | | riskLevel: "", // 鿣é£é©ç级 |
| | | type: "", // éæ£ç±»å |
| | | }, |
| | | |
| | | rules: { |
| | | location: [{ required: true, message: "请è¾å
¥", trigger: "blur" }], |
| | | hiddenDesc: [{ required: true, message: "请è¾å
¥", trigger: "blur" }], |
| | | riskLevel: [{ required: true, message: "è¯·éæ©", trigger: "change" }], |
| | | type: [{ required: true, message: "è¯·éæ©", trigger: "change" }], |
| | | createUser: [{ required: true, message: "è¯·éæ©", trigger: "change" }], |
| | | rectifyUserId: [{ required: true, message: "è¯·éæ©", trigger: "change" }], |
| | | rectifyTime: [{ required: true, message: "è¯·éæ©", trigger: "change" }], |
| | | }, |
| | | }); |
| | | const rules2 = { |
| | | rectifyActualTime: [{ required: true, message: "è¯·éæ©", trigger: "blur" }], |
| | | rectifyMeasures: [{ required: true, message: "请è¾å
¥", trigger: "blur" }], |
| | | }; |
| | | const rules3 = { |
| | | verifyTime: [{ required: true, message: "è¯·éæ©", trigger: "blur" }], |
| | | verifyRemark: [{ required: true, message: "请è¾å
¥", trigger: "blur" }], |
| | | verifyResult: [{ required: true, message: "è¯·éæ©", trigger: "change" }], |
| | | acceptDesc: [{ required: true, message: "请è¾å
¥", trigger: "blur" }], |
| | | }; |
| | | const typeList = ref([ |
| | | { |
| | | value: "设å¤å®å
¨", |
| | | label: "设å¤å®å
¨", |
| | | }, |
| | | { |
| | | value: "人åæä½", |
| | | label: "人åæä½", |
| | | }, |
| | | { |
| | | value: "ç¯å¢é£é©", |
| | | label: "ç¯å¢é£é©", |
| | | }, |
| | | { |
| | | value: "ç©æç®¡æ§", |
| | | label: "ç©æç®¡æ§", |
| | | }, |
| | | { |
| | | value: "å
¶ä»", |
| | | label: "å
¶ä»", |
| | | }, |
| | | ]); |
| | | const form2 = ref({ |
| | | rectifyActualTime: "", // å®é
æ´æ¹å®ææ¶é´ |
| | | rectifyMeasures: "", // æ´æ¹å
·ä½æªæ½ |
| | | }); |
| | | const form3 = ref({ |
| | | verifyTime: "", // éªæ¶æ¶é´ |
| | | verifyRemark: "", // éªæ¶å¤æ³¨ |
| | | acceptDesc: "", // éªæ¶æè¿° |
| | | verifyUserId: "", // éªæ¶äºº |
| | | verifyUserName: "", |
| | | verifyResult: "", // éªæ¶ç»æ |
| | | }); |
| | | const riskLevelList = ref([ |
| | | { |
| | | value: "é大é£é©", |
| | | label: "é大é£é©", |
| | | }, |
| | | { |
| | | value: "è¾å¤§é£é©", |
| | | label: "è¾å¤§é£é©", |
| | | }, |
| | | { |
| | | value: "ä¸è¬é£é©", |
| | | label: "ä¸è¬é£é©", |
| | | }, |
| | | { |
| | | value: "ä½é£é©", |
| | | label: "ä½é£é©", |
| | | }, |
| | | ]); |
| | | // éæ£ç±»åé项 |
| | | const { type_qualification } = proxy.useDict("type_qualification"); |
| | | const { form, rules } = toRefs(data); |
| | | const { form: searchForm } = useFormData(data.searchForm); |
| | | // 产å表åå¼¹æ¡æ°æ® |
| | | const productFormVisible = ref(false); |
| | | |
| | | const quotationLoading = ref(false); |
| | | const quotationList = ref([]); |
| | | const quotationSearchForm = reactive({ |
| | | quotationNo: "", |
| | | customer: "", |
| | | }); |
| | | |
| | | const handleChange = userId => { |
| | | const selectedUser = userList.value.find(user => user.userId === userId); |
| | | if (selectedUser) { |
| | | form.value.createUserName = selectedUser.nickName; |
| | | } |
| | | }; |
| | | const handleChange2 = userId => { |
| | | const selectedUser = userList.value.find(user => user.userId === userId); |
| | | if (selectedUser) { |
| | | form.value.rectifyUserName = selectedUser.nickName; |
| | | form.value.rectifyUserMobile = selectedUser.phonenumber; |
| | | } |
| | | }; |
| | | |
| | | // 导å
¥ç¸å
³ |
| | | const importUploadRef = ref(null); |
| | | const importUpload = reactive({ |
| | | title: "导å
¥éå®å°è´¦", |
| | | open: false, |
| | | url: import.meta.env.VITE_APP_BASE_API + "/sales/ledger/import", |
| | | headers: { Authorization: "Bearer " + getToken() }, |
| | | isUploading: false, |
| | | beforeUpload: file => { |
| | | const isExcel = file.name.endsWith(".xlsx") || file.name.endsWith(".xls"); |
| | | const isLt10M = file.size / 1024 / 1024 < 10; |
| | | if (!isExcel) { |
| | | proxy.$modal.msgError("ä¸ä¼ æä»¶åªè½æ¯ xlsx/xls æ ¼å¼!"); |
| | | return false; |
| | | } |
| | | if (!isLt10M) { |
| | | proxy.$modal.msgError("ä¸ä¼ æä»¶å¤§å°ä¸è½è¶
è¿ 10MB!"); |
| | | return false; |
| | | } |
| | | return true; |
| | | }, |
| | | onChange: (file, fileList) => { |
| | | console.log("æä»¶ç¶ææ¹å", file, fileList); |
| | | }, |
| | | onProgress: (event, file, fileList) => { |
| | | console.log("ä¸ä¼ ä¸...", event.percent); |
| | | }, |
| | | onSuccess: (response, file, fileList) => { |
| | | console.log("ä¸ä¼ æå", response, file, fileList); |
| | | importUpload.isUploading = false; |
| | | if (response.code === 200) { |
| | | proxy.$modal.msgSuccess("导å
¥æå"); |
| | | importUpload.open = false; |
| | | if (importUploadRef.value) { |
| | | importUploadRef.value.clearFiles(); |
| | | } |
| | | getList(); |
| | | } else { |
| | | proxy.$modal.msgError(response.msg || "导å
¥å¤±è´¥"); |
| | | } |
| | | }, |
| | | onError: (error, file, fileList) => { |
| | | console.error("ä¸ä¼ 失败", error, file, fileList); |
| | | importUpload.isUploading = false; |
| | | proxy.$modal.msgError("导å
¥å¤±è´¥ï¼è¯·éè¯"); |
| | | }, |
| | | }); |
| | | |
| | | // æ¥è¯¢å表 |
| | | /** æç´¢æé®æä½ */ |
| | | const handleQuery = () => { |
| | | // åªæå¨ç¹å»æç´¢æé®æ¶æé置页ç å°ç¬¬ä¸é¡µ |
| | | // é¿å
表ååæ®µchangeäºä»¶å¹²æ°å页 |
| | | if (arguments.length === 0) { |
| | | page.current = 1; |
| | | } |
| | | expandedRowKeys.value = []; |
| | | getList(); |
| | | }; |
| | | const paginationChange = obj => { |
| | | page.current = obj.page; |
| | | page.size = obj.limit; |
| | | getList(); |
| | | }; |
| | | const getList = () => { |
| | | tableLoading.value = true; |
| | | const { entryDate, ...rest } = searchForm; |
| | | // å°èå´æ¥æåæ®µä¼ éç»å端 |
| | | const params = { ...rest, ...page }; |
| | | // ç§»é¤å½å
¥æ¥æçé»è®¤å¼è®¾ç½®ï¼åªä¿çèå´æ¥æå段 |
| | | delete params.entryDate; |
| | | return dangerInvestigationListPage(params) |
| | | .then(res => { |
| | | tableLoading.value = false; |
| | | tableData.value = res.data.records; |
| | | total.value = res.data.total; |
| | | return res; |
| | | }) |
| | | .catch(() => { |
| | | tableLoading.value = false; |
| | | }); |
| | | }; |
| | | |
| | | const findNodeById = (nodes, productId) => { |
| | | for (let i = 0; i < nodes.length; i++) { |
| | | if (nodes[i].value === productId) { |
| | | return nodes[i].label; // æ¾å°èç¹ï¼è¿å该èç¹ |
| | | } |
| | | if (nodes[i].children && nodes[i].children.length > 0) { |
| | | const foundNode = findNodeById(nodes[i].children, productId); |
| | | if (foundNode) { |
| | | return foundNode; // å¨åèç¹ä¸æ¾å°ï¼è¿å该èç¹ |
| | | } |
| | | } |
| | | } |
| | | return null; // æ²¡ææ¾å°èç¹ï¼è¿ånull |
| | | }; |
| | | // è¡¨æ ¼éæ©æ°æ® |
| | | const handleSelectionChange = selection => { |
| | | selectedRows.value = selection; |
| | | console.log("selection", selectedRows.value); |
| | | }; |
| | | const expandedRowKeys = ref([]); |
| | | // æå¼å¼¹æ¡ |
| | | const openForm = async (type, row) => { |
| | | console.log("row", row); |
| | | operationType.value = type; |
| | | form3.value = { |
| | | verifyTime: "", // éªæ¶æ¶é´ |
| | | verifyRemark: "", // éªæ¶å¤æ³¨ |
| | | verifyResult: "", // éªæ¶æè¿° |
| | | verifyUserId: "", // éªæ¶äºº |
| | | }; |
| | | form2.value = { |
| | | rectifyActualTime: "", // å®é
æ´æ¹å®ææ¶é´ |
| | | rectifyMeasures: "", // æ´æ¹å
·ä½æªæ½ |
| | | }; |
| | | if (type === "add") { |
| | | form.value = { |
| | | hiddenCode: "", // 鿣ç¼å· |
| | | location: "", // 鿣ä½ç½® |
| | | hiddenDesc: "", // 鿣æè¿° |
| | | createUser: "", // 䏿¥äºº |
| | | createUserName: "", |
| | | createTime: dayjs().format("YYYY-MM-DD HH:mm:ss"), // 䏿¥æ¶é´ |
| | | rectifyUserId: "", // æ´æ¹è´£ä»»äºº |
| | | rectifyUserName: "", |
| | | rectifyTime: "", // æ´æ¹å®ææé |
| | | rectifyUserMobile: "", // æ´æ¹è´£ä»»äººææºå· |
| | | riskLevel: "", // 鿣é£é©ç级 |
| | | type: "", // éæ£ç±»å |
| | | }; |
| | | } else if (type === "edit") { |
| | | form.value = { |
| | | id: row.id, |
| | | hiddenCode: row.hiddenCode, // 鿣ç¼å· |
| | | location: row.location, // 鿣ä½ç½® |
| | | hiddenDesc: row.hiddenDesc, // 鿣æè¿° |
| | | createUser: row.createUser, // 䏿¥äºº |
| | | createUserName: row.createUserName, |
| | | createTime: row.createTime, // 䏿¥æ¶é´ |
| | | rectifyUserId: row.rectifyUserId, // æ´æ¹è´£ä»»äºº |
| | | rectifyUserName: row.rectifyUserName, |
| | | rectifyTime: row.rectifyTime, // æ´æ¹å®ææé |
| | | rectifyUserMobile: row.rectifyUserMobile, // æ´æ¹è´£ä»»äººææºå· |
| | | riskLevel: row.riskLevel, // 鿣é£é©ç级 |
| | | type: row.type, // éæ£ç±»å |
| | | }; |
| | | } else if (type === "edit2") { |
| | | form.value = { |
| | | id: row.id, |
| | | hiddenCode: row.hiddenCode, // 鿣ç¼å· |
| | | location: row.location, // 鿣ä½ç½® |
| | | hiddenDesc: row.hiddenDesc, // 鿣æè¿° |
| | | createUser: row.createUser, // 䏿¥äºº |
| | | createUserName: row.createUserName, |
| | | createTime: row.createTime, // 䏿¥æ¶é´ |
| | | rectifyUserId: row.rectifyUserId, // æ´æ¹è´£ä»»äºº |
| | | rectifyUserName: row.rectifyUserName, |
| | | rectifyTime: row.rectifyTime, // æ´æ¹å®ææé |
| | | rectifyUserMobile: row.rectifyUserMobile, // æ´æ¹è´£ä»»äººææºå· |
| | | riskLevel: row.riskLevel, // 鿣é£é©ç级 |
| | | type: row.type, // éæ£ç±»å |
| | | }; |
| | | form2.value = { |
| | | rectifyActualTime: row.rectifyActualTime, // å®é
æ´æ¹å®ææ¶é´ |
| | | rectifyMeasures: row.rectifyMeasures, // æ´æ¹å
·ä½æªæ½ |
| | | }; |
| | | } else if (type === "edit3") { |
| | | form.value = { |
| | | id: row.id, |
| | | hiddenCode: row.hiddenCode, // 鿣ç¼å· |
| | | location: row.location, // 鿣ä½ç½® |
| | | hiddenDesc: row.hiddenDesc, // 鿣æè¿° |
| | | createUser: row.createUser, // 䏿¥äºº |
| | | createUserName: row.createUserName, |
| | | createTime: row.createTime, // 䏿¥æ¶é´ |
| | | rectifyUserId: row.rectifyUserId, // æ´æ¹è´£ä»»äºº |
| | | rectifyUserName: row.rectifyUserName, |
| | | rectifyTime: row.rectifyTime, // æ´æ¹å®ææé |
| | | rectifyUserMobile: row.rectifyUserMobile, // æ´æ¹è´£ä»»äººææºå· |
| | | riskLevel: row.riskLevel, // 鿣é£é©ç级 |
| | | type: row.type, // éæ£ç±»å |
| | | }; |
| | | form2.value = { |
| | | rectifyActualTime: row.rectifyActualTime, // å®é
æ´æ¹å®ææ¶é´ |
| | | rectifyMeasures: row.rectifyMeasures, // æ´æ¹å
·ä½æªæ½ |
| | | }; |
| | | form3.value = { |
| | | verifyTime: row.verifyTime, // éªæ¶æ¶é´ |
| | | verifyRemark: row.verifyRemark, // éªæ¶å¤æ³¨ |
| | | verifyResult: row.verifyResult, // éªæ¶æè¿° |
| | | verifyUserId: row.verifyUserId, // éªæ¶äºº |
| | | }; |
| | | console.log("form3.value", form3.value); |
| | | if (!form3.value.verifyUserId || form3.value.verifyUserId === "null") { |
| | | form3.value.verifyUserId = Number(currentUserId.value); // éªæ¶äºº |
| | | } |
| | | if (!form3.value.verifyTime || form3.value.verifyTime === "null") { |
| | | form3.value.verifyTime = dayjs().format("YYYY-MM-DD"); // éªæ¶æè¿° |
| | | } |
| | | } |
| | | dialogFormVisible.value = true; |
| | | }; |
| | | const getCurrentUserInfo = () => { |
| | | getInfo; |
| | | }; |
| | | const fetchQuotationList = async () => { |
| | | quotationLoading.value = true; |
| | | try { |
| | | const params = { |
| | | // å
¼å®¹å端å页忮µï¼è¿éæ²¿ç¨æ¥ä»·é¡µé¢å·²æå¯ç¨çåæ®µå½å |
| | | currentPage: 1, |
| | | pageSize: 100, |
| | | ...quotationSearchForm, |
| | | status: "éè¿", |
| | | }; |
| | | const res = await getQuotationList(params); |
| | | quotationList.value = res?.data?.records || []; |
| | | } finally { |
| | | quotationLoading.value = false; |
| | | } |
| | | }; |
| | | |
| | | // æäº¤è¡¨å |
| | | const submitForm = () => { |
| | | console.log("operationType.value", operationType.value); |
| | | |
| | | if (operationType.value == "add") { |
| | | proxy.$refs["formRef"].validate(valid => { |
| | | if (valid) { |
| | | safeHiddenAdd(form.value).then(res => { |
| | | proxy.$modal.msgSuccess("æäº¤æå"); |
| | | closeDia(); |
| | | getList(); |
| | | }); |
| | | } |
| | | }); |
| | | } else if (operationType.value == "edit") { |
| | | proxy.$refs["formRef"].validate(valid => { |
| | | if (valid) { |
| | | safeHiddenUpdate(form.value).then(res => { |
| | | proxy.$modal.msgSuccess("æäº¤æå"); |
| | | closeDia(); |
| | | getList(); |
| | | }); |
| | | } |
| | | }); |
| | | } else if (operationType.value == "edit2") { |
| | | console.log("form2.value", form2.value); |
| | | proxy.$refs["formRef2"].validate(valid => { |
| | | if (valid) { |
| | | safeHiddenUpdate({ ...form2.value, ...form.value }).then(res => { |
| | | proxy.$modal.msgSuccess("æäº¤æå"); |
| | | closeDia(); |
| | | getList(); |
| | | }); |
| | | } |
| | | }); |
| | | } else if (operationType.value == "edit3") { |
| | | proxy.$refs["formRef3"].validate(valid => { |
| | | if (valid) { |
| | | safeHiddenUpdate({ |
| | | ...form3.value, |
| | | ...form2.value, |
| | | ...form.value, |
| | | }).then(res => { |
| | | proxy.$modal.msgSuccess("æäº¤æå"); |
| | | closeDia(); |
| | | getList(); |
| | | }); |
| | | } |
| | | }); |
| | | } |
| | | }; |
| | | // å
³éå¼¹æ¡ |
| | | const closeDia = () => { |
| | | proxy.resetForm("formRef"); |
| | | proxy.resetForm("formRef2"); |
| | | dialogFormVisible.value = false; |
| | | }; |
| | | // å
³é产åå¼¹æ¡ |
| | | const closeProductDia = () => { |
| | | proxy.resetForm("productFormRef"); |
| | | productFormVisible.value = false; |
| | | }; |
| | | // å é¤ |
| | | const handleDelete = () => { |
| | | let ids = []; |
| | | if (selectedRows.value.length > 0) { |
| | | ids = selectedRows.value.map(item => item.id); |
| | | } else { |
| | | proxy.$modal.msgWarning("è¯·éæ©æ°æ®"); |
| | | return; |
| | | } |
| | | ElMessageBox.confirm("éä¸çå
容å°è¢«å é¤ï¼æ¯å¦ç¡®è®¤å é¤ï¼", "导åº", { |
| | | confirmButtonText: "确认", |
| | | cancelButtonText: "åæ¶", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | safeHiddenDel(ids).then(res => { |
| | | proxy.$modal.msgSuccess("å 餿å"); |
| | | getList(); |
| | | }); |
| | | }) |
| | | .catch(() => { |
| | | proxy.$modal.msg("已忶"); |
| | | }); |
| | | }; |
| | | |
| | | /** |
| | | * 夿æ¯å¦å¯ä»¥åè´§ |
| | | * åªæå¨äº§åç¶ææ¯å
è¶³ï¼åè´§ç¶ææ¯å¾
åè´§åå®¡æ ¸æç»çæ¶åæå¯ä»¥åè´§ |
| | | * @param row è¡æ°æ® |
| | | */ |
| | | const canShip = row => { |
| | | // 产åç¶æå¿
é¡»æ¯å
è¶³ï¼approveStatus === 1ï¼ |
| | | if (row.approveStatus !== 1) { |
| | | return false; |
| | | } |
| | | |
| | | // è·ååè´§ç¶æ |
| | | const shippingStatus = row.shippingStatus; |
| | | |
| | | // 妿已åè´§ï¼æåè´§æ¥ææè½¦çå·ï¼ï¼ä¸è½å次åè´§ |
| | | if (row.shippingDate || row.shippingCarNumber) { |
| | | return false; |
| | | } |
| | | |
| | | // åè´§ç¶æå¿
é¡»æ¯"å¾
åè´§"æ"å®¡æ ¸æç»" |
| | | const statusStr = shippingStatus ? String(shippingStatus).trim() : ""; |
| | | return statusStr === "å¾
åè´§" || statusStr === "å®¡æ ¸æç»"; |
| | | }; |
| | | |
| | | /** |
| | | * ä¸è½½æä»¶ |
| | | * |
| | | * @param row ä¸è½½æä»¶çç¸å
³ä¿¡æ¯å¯¹è±¡ |
| | | */ |
| | | const fileListRef = ref(null); |
| | | const fileListDialogVisible = ref(false); |
| | | const currentFileRow = ref(null); |
| | | const downLoadFile = row => { |
| | | currentFileRow.value = row; |
| | | fileListPage({ safeHiddenId: row.id }).then(res => { |
| | | if (fileListRef.value) { |
| | | fileListRef.value.open(res.data.records); |
| | | } |
| | | }); |
| | | }; |
| | | const currentUserId = ref(""); |
| | | const getCurrentFactoryName = async () => { |
| | | let res = await userStore.getInfo(); |
| | | currentUserId.value = res.user.userId; |
| | | }; |
| | | |
| | | /** |
| | | * è·åè¡ç±»åï¼ç¨äºå¤ææ¯å¦è¿ææªæ´æ¹ |
| | | * @param row è¡æ°æ® |
| | | * @returns ç±»å |
| | | */ |
| | | const getRowClass = ({ row }) => { |
| | | const now = new Date(); |
| | | |
| | | // æ£æ¥æ¯å¦è¶
è¿æ´æ¹æé䏿ªå®é
æ´æ¹ |
| | | if (row.rectifyTime && !row.rectifyActualTime) { |
| | | const rectifyTime = new Date(row.rectifyTime); |
| | | if (now > rectifyTime) { |
| | | return "overdue-row"; |
| | | } |
| | | } |
| | | |
| | | return ""; |
| | | }; |
| | | |
| | | onMounted(() => { |
| | | getList(); |
| | | userListNoPage().then(res => { |
| | | userList.value = res.data; |
| | | }); |
| | | getCurrentFactoryName(); |
| | | }); |
| | | // ä¸ä¼ éä»¶ |
| | | const handleUpload = async () => { |
| | | if (!currentFileRow.value) { |
| | | proxy.$modal.msgWarning("请å
éæ©æ°æ®"); |
| | | return null; |
| | | } |
| | | |
| | | return new Promise(resolve => { |
| | | // å建ä¸ä¸ªéèçæä»¶è¾å
¥å
ç´ |
| | | const input = document.createElement("input"); |
| | | input.type = "file"; |
| | | input.style.display = "none"; |
| | | input.onchange = async e => { |
| | | const file = e.target.files[0]; |
| | | if (!file) { |
| | | resolve(null); |
| | | return; |
| | | } |
| | | |
| | | try { |
| | | // ä½¿ç¨ FormData ä¸ä¼ æä»¶ |
| | | const formData = new FormData(); |
| | | formData.append("file", file); |
| | | |
| | | const uploadRes = await request({ |
| | | url: "/file/upload", |
| | | method: "post", |
| | | data: formData, |
| | | headers: { |
| | | "Content-Type": "multipart/form-data", |
| | | Authorization: `Bearer ${getToken()}`, |
| | | }, |
| | | }); |
| | | |
| | | if (uploadRes.code === 200) { |
| | | // ä¿åéä»¶ä¿¡æ¯ |
| | | const fileData = { |
| | | safeHiddenId: currentFileRow.value.id, |
| | | name: uploadRes.data.originalName || file.name, |
| | | url: uploadRes.data.tempPath || uploadRes.data.url, |
| | | }; |
| | | |
| | | const saveRes = await safeHiddenFileAdd(fileData); |
| | | if (saveRes.code === 200) { |
| | | proxy.$modal.msgSuccess("æä»¶ä¸ä¼ æå"); |
| | | // éæ°å è½½æä»¶å表 |
| | | const listRes = await fileListPage({ |
| | | safeHiddenId: currentFileRow.value.id, |
| | | }); |
| | | if (listRes.code === 200 && fileListRef.value) { |
| | | const fileList = (listRes.data?.records || []).map(item => ({ |
| | | name: item.name, |
| | | url: item.url, |
| | | id: item.id, |
| | | ...item, |
| | | })); |
| | | fileListRef.value.setList(fileList); |
| | | } |
| | | // è¿åæ°æä»¶ä¿¡æ¯ |
| | | resolve({ |
| | | name: fileData.name, |
| | | url: fileData.url, |
| | | id: saveRes.data?.id, |
| | | }); |
| | | } else { |
| | | proxy.$modal.msgError(saveRes.msg || "æä»¶ä¿å失败"); |
| | | resolve(null); |
| | | } |
| | | } else { |
| | | proxy.$modal.msgError(uploadRes.msg || "æä»¶ä¸ä¼ 失败"); |
| | | resolve(null); |
| | | } |
| | | } catch (error) { |
| | | proxy.$modal.msgError("æä»¶ä¸ä¼ 失败"); |
| | | resolve(null); |
| | | } finally { |
| | | document.body.removeChild(input); |
| | | } |
| | | }; |
| | | |
| | | document.body.appendChild(input); |
| | | input.click(); |
| | | }); |
| | | }; |
| | | // å é¤éä»¶ |
| | | const handleFileDelete = async row => { |
| | | try { |
| | | const res = await safeHiddenFileDel([row.id]); |
| | | if (res.code === 200) { |
| | | proxy.$modal.msgSuccess("å 餿å"); |
| | | // éæ°å è½½æä»¶å表 |
| | | if (currentFileRow.value && fileListRef.value) { |
| | | const listRes = await fileListPage({ |
| | | safeHiddenId: currentFileRow.value.id, |
| | | }); |
| | | if (listRes.code === 200) { |
| | | const fileList = (listRes.data?.records || []).map(item => ({ |
| | | name: item.name, |
| | | url: item.url, |
| | | id: item.id, |
| | | ...item, |
| | | })); |
| | | fileListRef.value.setList(fileList); |
| | | } |
| | | } |
| | | return true; // è¿å true 表示å 餿åï¼ç»ä»¶ä¼æ´æ°å表 |
| | | } else { |
| | | proxy.$modal.msgError(res.msg || "å é¤å¤±è´¥"); |
| | | return false; |
| | | } |
| | | } catch (error) { |
| | | proxy.$modal.msgError("å é¤å¤±è´¥"); |
| | | return false; |
| | | } |
| | | }; |
| | | </script> |
| | | |
| | | <style scoped lang="scss"> |
| | | .ml-10 { |
| | | margin-left: 10px; |
| | | } |
| | | |
| | | .table_list { |
| | | margin-top: unset; |
| | | } |
| | | |
| | | :deep(.warning-row) { |
| | | background-color: #fef0f0 !important; |
| | | } |
| | | |
| | | :deep(.warning-row td) { |
| | | // color: #cf1322 !important; |
| | | } |
| | | |
| | | :deep(.overdue-row) { |
| | | background-color: #ffffff !important; |
| | | } |
| | | |
| | | :deep(.overdue-row td) { |
| | | color: #e1707a !important; |
| | | } |
| | | |
| | | .actions { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | margin-bottom: 10px; |
| | | } |
| | | .print-preview-dialog { |
| | | .el-dialog__body { |
| | | padding: 0; |
| | | max-height: 80vh; |
| | | overflow-y: auto; |
| | | } |
| | | } |
| | | |
| | | .print-preview-container { |
| | | .print-preview-header { |
| | | padding: 15px; |
| | | border-bottom: 1px solid #e4e7ed; |
| | | text-align: center; |
| | | |
| | | .el-button { |
| | | margin: 0 10px; |
| | | } |
| | | } |
| | | |
| | | .print-preview-content { |
| | | padding: 20px; |
| | | background-color: #f5f5f5; |
| | | min-height: 400px; |
| | | } |
| | | } |
| | | |
| | | .print-page { |
| | | width: 220mm; |
| | | height: 90mm; |
| | | padding: 10mm; |
| | | margin: 0 auto; |
| | | background: white; |
| | | box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); |
| | | margin-bottom: 10px; |
| | | box-sizing: border-box; |
| | | } |
| | | |
| | | .delivery-note { |
| | | width: 100%; |
| | | height: 100%; |
| | | font-family: "SimSun", serif; |
| | | font-size: 10px; |
| | | line-height: 1.2; |
| | | display: flex; |
| | | flex-direction: column; |
| | | } |
| | | |
| | | .header { |
| | | text-align: center; |
| | | margin-bottom: 8px; |
| | | |
| | | .company-name { |
| | | font-size: 18px; |
| | | font-weight: bold; |
| | | margin-bottom: 4px; |
| | | } |
| | | |
| | | .document-title { |
| | | font-size: 16px; |
| | | font-weight: bold; |
| | | } |
| | | } |
| | | |
| | | .info-section { |
| | | margin-bottom: 8px; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | |
| | | .info-row { |
| | | line-height: 20px; |
| | | |
| | | .label { |
| | | font-weight: bold; |
| | | width: 60px; |
| | | font-size: 14px; |
| | | } |
| | | |
| | | .value { |
| | | margin-right: 20px; |
| | | min-width: 80px; |
| | | font-size: 14px; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .table-section { |
| | | margin-bottom: 4px; |
| | | flex: 1; |
| | | |
| | | .product-table { |
| | | width: 100%; |
| | | border-collapse: collapse; |
| | | border: 1px solid #000; |
| | | |
| | | th, |
| | | td { |
| | | border: 1px solid #000; |
| | | padding: 6px; |
| | | text-align: center; |
| | | font-size: 14px; |
| | | line-height: 1.4; |
| | | } |
| | | |
| | | th { |
| | | font-weight: bold; |
| | | } |
| | | |
| | | .total-label { |
| | | text-align: right; |
| | | font-weight: bold; |
| | | } |
| | | |
| | | .total-value { |
| | | font-weight: bold; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .footer-section { |
| | | .footer-row { |
| | | display: flex; |
| | | margin-bottom: 3px; |
| | | line-height: 20px; |
| | | justify-content: space-between; |
| | | |
| | | .footer-item { |
| | | display: flex; |
| | | margin-right: 20px; |
| | | |
| | | .label { |
| | | font-weight: bold; |
| | | width: 80px; |
| | | font-size: 14px; |
| | | } |
| | | |
| | | .value { |
| | | min-width: 80px; |
| | | font-size: 14px; |
| | | } |
| | | |
| | | &.address-item { |
| | | .address-value { |
| | | min-width: 200px; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | @media print { |
| | | .app-container { |
| | | display: none; |
| | | } |
| | | |
| | | .print-page { |
| | | box-shadow: none; |
| | | margin: 0; |
| | | padding: 10mm; |
| | | padding-left: 20mm; |
| | | page-break-inside: avoid; |
| | | page-break-after: always; |
| | | } |
| | | .print-page:last-child { |
| | | page-break-after: avoid; |
| | | } |
| | | } |
| | | </style> |