diff --git a/src/api/claimAndRefund/receive.js b/src/api/claimAndRefund/receive.js index cb9fcba..cfa3d34 100644 --- a/src/api/claimAndRefund/receive.js +++ b/src/api/claimAndRefund/receive.js @@ -381,4 +381,22 @@ export function getPreAuditNum(params) { method: 'get', params, }) +} + +// 库管员-下拉 +export function getMaTypeKeepList(params) { + return request({ + url: '/material/base/tm_task/getMaTypeKeepList', + method: 'get', + params, + }) +} + +// 获取差额量 +export function getPreNumInUse(params) { + return request({ + url: '/material/base/tm_task/getPreNumInUse', + method: 'get', + params, + }) } \ No newline at end of file diff --git a/src/views/claimAndreturn/picking/auditing/component/auditingPage1.vue b/src/views/claimAndreturn/picking/auditing/component/auditingPage1.vue index 1ffab30..11ab0c2 100644 --- a/src/views/claimAndreturn/picking/auditing/component/auditingPage1.vue +++ b/src/views/claimAndreturn/picking/auditing/component/auditingPage1.vue @@ -54,14 +54,8 @@ @keyup.enter.native="handleQuery" /> - - + + @@ -87,12 +81,7 @@ > - + - + @@ -211,19 +167,11 @@ - +

提交审批

-

申请人:{{ queryParams.applyFor }}

-

申请时间:{{ queryParams.updateTimes }}

+

申请人:{{ queryParams.applyFor }}

+

申请时间:{{ queryParams.updateTimes }}

{{ v.name }}

-

审核人:{{ queryParams[v.authorKey] }}

-

审核时间:{{ queryParams[v.timeKey] }}

+

审核人:{{ queryParams[v.authorKey] }}

+

审核时间:{{ queryParams[v.timeKey] }}

审核意见:{{ queryParams[v.remarkKey] }}

@@ -270,12 +214,7 @@ - + - + + + + + + + + + + 查询 + 导出 + + + + + + + + + + + 关 闭 + + diff --git a/src/views/claimAndreturn/picking/auditing/component/home1.vue b/src/views/claimAndreturn/picking/auditing/component/home1.vue index a0263ab..0c90070 100644 --- a/src/views/claimAndreturn/picking/auditing/component/home1.vue +++ b/src/views/claimAndreturn/picking/auditing/component/home1.vue @@ -28,12 +28,7 @@ style="width: 240px" placeholder="请选择" > - +
@@ -45,12 +40,7 @@ style="width: 240px" placeholder="请选择" > - + @@ -64,19 +54,8 @@ - 查询 - 重置 + 查询 + 重置 @@ -91,12 +70,7 @@ >新建 --> - 导出 @@ -110,18 +84,10 @@ - + - + - + 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 @@ > - 查询 - 重置 + 查询 + 重置 - 批量审核 - 导出 - + - - + + - - - - - - - + + + + + + + - - + + @@ -268,13 +175,7 @@ /> - + - 查询 - 重置 + 重置 @@ -358,12 +250,7 @@ height="500px" @selection-change="handleDialogSelectionChange" > - + - + @@ -596,12 +396,7 @@ - + @@ -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) + }, }, }