审核:
@@ -427,19 +270,13 @@
diff --git a/src/views/repairTest/repair/dialogOneForm.vue b/src/views/repairTest/repair/dialogOneForm.vue
index efdacdd..77495be 100644
--- a/src/views/repairTest/repair/dialogOneForm.vue
+++ b/src/views/repairTest/repair/dialogOneForm.vue
@@ -124,7 +124,7 @@
:action="uploadUrl"
:headers="headers"
list-type="picture-card"
- accept="image/*,application/pdf,application/msword"
+ accept="image/*,application/pdf,.doc,.docx"
multiple
:limit="5"
:file-list="domain.fileList"
@@ -317,7 +317,7 @@
:action="uploadUrl"
:headers="headers"
list-type="picture-card"
- accept="image/*,application/pdf,application/msword"
+ accept="image/*,application/pdf,.doc,.docx"
multiple
:limit="5"
:file-list="domain.fileList"
diff --git a/src/views/repairTest/repair/dialogTwoForm copy.vue b/src/views/repairTest/repair/dialogTwoForm copy.vue
index bd7c01c..6346901 100644
--- a/src/views/repairTest/repair/dialogTwoForm copy.vue
+++ b/src/views/repairTest/repair/dialogTwoForm copy.vue
@@ -135,7 +135,7 @@
:action="uploadUrl"
:headers="headers"
list-type="picture-card"
- accept="image/*,application/pdf,application/msword"
+ accept="image/*,application/pdf,.doc,.docx"
multiple
:limit="5"
:file-list="domain.fileList"
@@ -322,7 +322,7 @@
:action="uploadUrl"
:headers="headers"
list-type="picture-card"
- accept="image/*,application/pdf,application/msword"
+ accept="image/*,application/pdf,.doc,.docx"
multiple
:limit="5"
:file-list="domain.fileList"
diff --git a/src/views/repairTest/repair/dialogTwoForm.vue b/src/views/repairTest/repair/dialogTwoForm.vue
index 2d62684..ef658cc 100644
--- a/src/views/repairTest/repair/dialogTwoForm.vue
+++ b/src/views/repairTest/repair/dialogTwoForm.vue
@@ -135,7 +135,7 @@
:action="uploadUrl"
:headers="headers"
list-type="picture-card"
- accept="image/*,application/pdf,application/msword"
+ accept="image/*,application/pdf,.doc,.docx"
multiple
:limit="5"
:file-list="domain.fileList"
@@ -322,7 +322,7 @@
:action="uploadUrl"
:headers="headers"
list-type="picture-card"
- accept="image/*,application/pdf,application/msword"
+ accept="image/*,application/pdf,.doc,.docx"
multiple
:limit="5"
:file-list="domain.fileList"
diff --git a/src/views/repairTest/testExamine/index.vue b/src/views/repairTest/testExamine/index.vue
index e0cd9f6..8003283 100644
--- a/src/views/repairTest/testExamine/index.vue
+++ b/src/views/repairTest/testExamine/index.vue
@@ -66,12 +66,7 @@
-
+
-
+
@@ -112,69 +102,32 @@
>
- 查询
- 重置
+ 查询
+ 重置
- 批量审核
- 导出
-
+
-
-
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
+
+
- 查看
@@ -255,6 +159,9 @@
@click="handleUpdate(scope.row, 'update')"
>审核
+ 保养记录表
@@ -268,13 +175,7 @@
/>
-
+
- 查询
- 重置
+ 重置
@@ -358,12 +250,7 @@
height="500px"
@selection-change="handleDialogSelectionChange"
>
-
+
-
+
- {{ scope.row.partNum }}
+ {{
+ scope.row.partNum
+ }}
@@ -596,12 +396,7 @@
-
+
不收费
收费
@@ -626,38 +421,14 @@
width="1200px"
>
-
+
- {{
- (partRecordParams.pageNum - 1) * 10 +
- scope.$index +
- 1
- }}
+ {{ (partRecordParams.pageNum - 1) * 10 + scope.$index + 1 }}
-
-
-
+
+
+
@@ -669,12 +440,7 @@
-
+
-
+
{{ openTextOne }}
@@ -706,9 +469,7 @@
@@ -738,12 +496,7 @@
width="800px"
>
-
+
-
- 你选择了{{ selectionList.length }}条数据,请进行审批
-
+ 你选择了{{ selectionList.length }}条数据,请进行审批
+
+
+
+
+
+
重庆市送变电工程有限公司
+
设备维修保养记录表
+
+
+
+
设备名称
+
型号厂家
+
编号
+
数量
+
主修人
+
验收人
+
+
+
+
{{
+ upkeepObj.typeName
+ }}
+
{{
+ upkeepObj.itemType
+ }}
+
{{ upkeepObj.repairNum }}
+
{{
+ upkeepObj.num
+ }}
+
{{
+ upkeepObj.createBy
+ }}
+
{{ upkeepObj.createBy }}
+
+
+
+
设备名称
+
{{ upkeepObj.unitName }} {{ upkeepObj.projectName }}
+
+
+
设备维修前情况:
+
+
+
技术鉴定情况:
+
+
+
维修处理情况:
+
验收情况:
+
+
+
+ {{ '2025' }} 年
+ {{ '3' }} 月
+ {{ '10' }} 日
+
+
+
+
+
@@ -799,12 +640,17 @@ import {
} from '@/api/repairTest/repair'
import selectTree from '../repair/selectTree.vue'
import Tree from '@/views/repairTest/repair/tree.vue'
+import vueEasyPrint from 'vue-easy-print'
export default {
name: 'TestExamine',
- components: { Tree, selectTree },
+ components: { Tree, selectTree, vueEasyPrint },
dicts: ['sys_normal_disable'],
data() {
return {
+ uploadUrl: process.env.VUE_APP_BASE_API + '/system/sys/file/upload', // 上传的图片服务器地址
+ headers: {
+ Authorization: 'Bearer ' + localStorage.getItem('token'),
+ },
checkResultOne: false,
defaultData: null,
selectionList: [],
@@ -900,6 +746,8 @@ export default {
pageSize: 10,
},
partRecordTotal: 0,
+ upkeepVisible: false, // 维修记录表
+ upkeepObj: {},
}
},
created() {
@@ -920,9 +768,7 @@ export default {
/** 查询字典类型列表 */
getList() {
this.loading = true
- getQuestListApi(
- this.addDateRange(this.queryParams, this.dateRange),
- ).then((response) => {
+ getQuestListApi(this.addDateRange(this.queryParams, this.dateRange)).then((response) => {
this.typeList = response.rows
this.total = response.total
this.loading = false
@@ -1042,9 +888,7 @@ export default {
// 多选框选中数据
handleSelectionChange(selection) {
this.selectionList = selection
- this.checkResultOne = selection.every(
- (item) => item.taskStatus == 46,
- )
+ this.checkResultOne = selection.every((item) => item.taskStatus == 46)
this.ids = selection.map((item) => item.dictId)
this.single = selection.length != 1
this.multiple = !selection.length
@@ -1253,6 +1097,61 @@ export default {
`试验检验单_${new Date().getTime()}.xlsx`,
)
},
+ // 维修记录表-打印
+ print() {
+ this.$nextTick(() => {
+ this.$refs.printRef.print()
+ })
+ },
+ // 维修记录表
+ openUpkeep(row) {
+ console.log('🚀 ~ openUpkeep ~ row:', row)
+ this.upkeepVisible = true
+ this.upkeepObj = row
+ },
+ handlePreview(file) {
+ console.log('🚀 ~ handlePreview ~ file:', file)
+ if (file.response) {
+ window.open(file.response.data.fileUrl)
+ } else {
+ window.open(file.fileUrl)
+ }
+ },
+ handleExceed(files, fileList) {
+ this.$message.warning(
+ `当前限制选择 5 个文件,本次选择了 ${files.length} 个文件,共选择了 ${
+ files.length + fileList.length
+ } 个文件`,
+ )
+ },
+ beforeUpload(file) {
+ const isLtMB = file.size / 1024 / 1024 < 20
+ if (!isLtMB) {
+ this.$message.error('上传文件大小不能超过 20MB!')
+ }
+ return isLtMB
+ },
+ beforeRemove(file, fileList) {
+ return this.$confirm(`确定移除 ${file.name} ?`)
+ },
+ handleSuccess(res, file, fileList, row) {
+ console.log('🚀 ~ handleSuccess ~ res:', res)
+ console.log('🚀 ~ handleSuccess ~ file:', file)
+ console.log('🚀 ~ handleSuccess ~ fileList:', fileList)
+ console.log('🚀 ~ handleSuccess ~ row:', row)
+
+ if (res.code == 200) {
+ if (!row.fileList) {
+ row.fileList = []
+ }
+ row.fileList.push({
+ typeId: row.typeId,
+ fileName: res.data.fileName,
+ fileUrl: res.data.fileUrl,
+ })
+ }
+ console.log('🚀 ~ row.fileList=fileList.map ~ row.fileList:', row.fileList)
+ },
},
}