From b9e8f34fe9ee49c41ed2535de8c0ce25803a9c81 Mon Sep 17 00:00:00 2001
From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com>
Date: Thu, 11 Jul 2024 15:17:01 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=A4=84=E7=BD=AE=E6=96=87?=
=?UTF-8?q?=E4=BB=B6=E4=B8=8A=E4=BC=A0=EF=BC=8C=E6=8A=A5=E5=BA=9F=E9=A9=B3?=
=?UTF-8?q?=E5=9B=9E=E7=AD=89=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
sgzb-ui/src/components/AnnexUpload/index.vue | 148 ++++++++++++++++++
.../forecastWaste/auditingReturn/index.vue | 12 +-
.../forecastWaste/listing/index.vue | 28 +++-
.../scrapManage/scrap/disposition/index.vue | 61 ++++++--
.../toolsAcceptance/component/queryTools.vue | 2 -
5 files changed, 227 insertions(+), 24 deletions(-)
create mode 100644 sgzb-ui/src/components/AnnexUpload/index.vue
diff --git a/sgzb-ui/src/components/AnnexUpload/index.vue b/sgzb-ui/src/components/AnnexUpload/index.vue
new file mode 100644
index 00000000..ceecacbc
--- /dev/null
+++ b/sgzb-ui/src/components/AnnexUpload/index.vue
@@ -0,0 +1,148 @@
+
+
+
+
+
+ 点击上传
+
+
+ {{ uploadTip }}
+
+
+
+
+
+
+
+
+
diff --git a/sgzb-ui/src/views/scrapManage/forecastWaste/auditingReturn/index.vue b/sgzb-ui/src/views/scrapManage/forecastWaste/auditingReturn/index.vue
index c496b762..17664602 100644
--- a/sgzb-ui/src/views/scrapManage/forecastWaste/auditingReturn/index.vue
+++ b/sgzb-ui/src/views/scrapManage/forecastWaste/auditingReturn/index.vue
@@ -13,6 +13,7 @@
type="primary"
size="mini"
@click="handleComplete"
+ v-if="isDetails == 0"
>完成退料
@@ -49,7 +50,7 @@
@click="handleRevoke(data)"
icon="el-icon-circle-close"
style="color: #de3115"
- v-if="data.num == 0"
+ v-if="data.num == 0 && isDetails == 0"
>
撤回
@@ -365,6 +366,9 @@ export default {
type: Object,
default: () => null,
},
+ isDetails: {
+ default: 0,
+ },
},
data() {
return {
@@ -892,6 +896,12 @@ export default {
}
const res = await getScrapReturnCompleteApi(endBackParams)
+
+ if (res.code == 200) {
+ this.$message.success('退料成功!')
+ this.dialogConfigReturn.outerVisible = false
+ this.$emit('closeReturnPage')
+ }
console.log(res, '退料结果')
// this.submitScrapParams.deptIds = []
diff --git a/sgzb-ui/src/views/scrapManage/forecastWaste/listing/index.vue b/sgzb-ui/src/views/scrapManage/forecastWaste/listing/index.vue
index 7cd90dd5..ea10ca8e 100644
--- a/sgzb-ui/src/views/scrapManage/forecastWaste/listing/index.vue
+++ b/sgzb-ui/src/views/scrapManage/forecastWaste/listing/index.vue
@@ -82,14 +82,16 @@
@click="handleSubmitScrap(data)"
>提交报废
-
+ >{{
+ data.commit == 0 ? '驳回退料' : '退料详情'
+ }}
-
+
@@ -227,6 +233,7 @@ export default {
this.dialogConfig.outerWidth = '70%'
this.dialogConfig.outerVisible = true
},
+ // 提交审批
handleSubmitScrap(row) {
this.submitScrapParams.taskIdList = []
this.submitScrapParams.taskIdList.push(row.taskId)
@@ -234,15 +241,22 @@ export default {
this.dialogConfig.outerWidth = '50%'
this.dialogConfig.outerVisible = true
},
+ // 审批详情
handleAuditing(row) {
this.auditingList = row.scrapAuditorSetList
this.dialogConfig.outerTitle = '审批详情'
this.dialogConfig.outerWidth = '50%'
this.dialogConfig.outerVisible = true
},
+ // 驳回 退料
handleReject(row) {
- console.log(row, '驳回退料----')
+ if (row.commit == 0) {
+ this.pageContent = '驳回退料'
+ } else {
+ this.pageContent = '退料详情'
+ }
this.sendParamsAuditing.taskId = row.taskId
+ this.isDetails = row.commit
this.parentId = row.parentId
this.temp = !this.temp
},
@@ -316,6 +330,10 @@ export default {
goBack() {
this.temp = !this.temp
},
+ closeReturnPage() {
+ this.temp = !this.temp
+ this.$refs.listingTbRef.getList()
+ },
},
}
diff --git a/sgzb-ui/src/views/scrapManage/scrap/disposition/index.vue b/sgzb-ui/src/views/scrapManage/scrap/disposition/index.vue
index 5471b65e..fabc08ce 100644
--- a/sgzb-ui/src/views/scrapManage/scrap/disposition/index.vue
+++ b/sgzb-ui/src/views/scrapManage/scrap/disposition/index.vue
@@ -131,16 +131,27 @@
-
- 请上传处置文件
-
+
+ 请上传处置文件
+
+
import TableModel from '@/components/TableModel'
import DialogModel from '@/components/DialogModel'
+import AnnexUpload from '@/components/AnnexUpload'
import ScrapSource from '../../component/scrapSource.vue'
import ScrapImg from '../../component/scrapImg.vue'
import { config, dialogConfig, getSelList } from './config.js'
@@ -173,6 +185,7 @@ export default {
components: {
TableModel,
DialogModel,
+ AnnexUpload,
ScrapSource,
ScrapImg,
},
@@ -184,13 +197,18 @@ export default {
getDialogListApi,
selectionList: [], // 选中的列表数据
rejectReason: '', // 驳回原因
- fileType: ['png', 'jpg', 'jpeg', 'pdf', 'doc', 'xls', 'docx'],
+ fileType: '.png、.jpg、.jpeg、.pdf、.doc、.docs、.xls、.xlsx', // 处置上传时文件类型
uploadFileList: [],
sendParams: {},
- fileList: [],
tbSelectList: [],
dispositionParams: [], // 处置参数
filePreviewUrl: process.env.VUE_APP_BASE_API + '/system', // 附件预览地址
+ uploadUrl: process.env.VUE_APP_BASE_API + '/system/sys/file/upload', // 附件上传地址
+ fileList: [], // 文件的数据源
+ // 附件上传时携带的参数
+ uploadParams: {
+ fileType: 'ma',
+ },
getSelList,
}
},
@@ -205,6 +223,7 @@ export default {
this.dialogConfig.outerWidth = '70%'
this.dialogConfig.outerVisible = true
},
+ // 单个处置
handleDisposition(row) {
this.dispositionParams = []
this.dispositionParams.push({
@@ -250,15 +269,15 @@ export default {
},
/* 确定 */
async handleSubmitInner() {
- if (this.uploadFileList.length < 1) {
- this.$message.error('请先上传文件')
+ if (this.fileList.length < 1) {
+ this.$message.error('请先上传文件!')
return
}
let fileUrl = ''
let fileName = ''
- this.uploadFileList.map((e) => {
- fileUrl += e.fileUrl + ','
- fileName += e.fileName + ','
+ this.fileList.map((e) => {
+ fileUrl += e.url + ','
+ fileName += e.name + ','
})
this.dispositionParams.map((e) => {
e.fileUrl = fileUrl.substring(fileUrl.length - 1, ',')
@@ -271,16 +290,26 @@ export default {
this.$refs.tbRef.getList()
}
},
- /* 获取上传后的图片信息 */
- getFileList(val) {
- this.uploadFileList = val
- },
+ // 文件上传成功
+ handleSuccess(file) {
+ const { fileName, fileUrl, id } = file
+ const fileObj = {
+ name: fileName,
+ url: fileUrl,
+ id,
+ }
+ this.fileList.push(fileObj)
+ },
+ // 文件移除
+ handleRemove(file) {
+ this.fileList = this.fileList.filter((e) => e.id !== file.id)
+ },
/* 批量处置 */
handleBatchDisposition() {
this.dispositionParams = []
if (this.tbSelectList.length < 1) {
- this.$message.error('请选择需处置的数据')
+ this.$message.error('请选择需处置的数据!')
return
}
this.tbSelectList.map((e) => {
diff --git a/sgzb-ui/src/views/warehouseManage/newPurchase/toolsAcceptance/component/queryTools.vue b/sgzb-ui/src/views/warehouseManage/newPurchase/toolsAcceptance/component/queryTools.vue
index 1d57d983..87e5e8bc 100644
--- a/sgzb-ui/src/views/warehouseManage/newPurchase/toolsAcceptance/component/queryTools.vue
+++ b/sgzb-ui/src/views/warehouseManage/newPurchase/toolsAcceptance/component/queryTools.vue
@@ -1172,8 +1172,6 @@ export default {
(e) => e.uid !== file.uid,
)
}
-
- console.log(this.aform, '移除后--')
},
// 文件上传成功
handleSuccess(res) {