From 8bc40d2f078ca739a8d1d5cb16ed6b73da224692 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Thu, 13 Jun 2024 13:07:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=96=B0=E8=B4=AD=E9=85=8D?= =?UTF-8?q?=E4=BB=B6=E4=BF=9D=E5=AD=98=E5=90=8E=E6=97=A0=E6=B3=95=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E9=97=AE=E9=A2=98=EF=BC=8C=E8=A7=A3=E5=86=B3=E6=8A=A5?= =?UTF-8?q?=E5=BA=9F=E5=9B=BE=E7=89=87=E5=9C=A8=E9=A2=84=E6=8A=A5=E5=BA=9F?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E4=B8=8D=E5=9B=9E=E6=98=BE=E7=AD=89=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/scrapManage/component/scrapImg.vue | 25 +- .../views/scrapManage/component/selDepart.vue | 276 +++++++++--------- .../forecastWaste/auditing/config.js | 2 +- .../forecastWaste/auditing/index.vue | 7 +- .../forecastWaste/listing/config.js | 3 +- .../forecastWaste/listing/index.vue | 33 ++- .../newPurchase/partsAcceptance/index.vue | 1 + sgzb-ui/vue.config.js | 6 +- 8 files changed, 193 insertions(+), 160 deletions(-) diff --git a/sgzb-ui/src/views/scrapManage/component/scrapImg.vue b/sgzb-ui/src/views/scrapManage/component/scrapImg.vue index 7eac3bee..b5f4a7e6 100644 --- a/sgzb-ui/src/views/scrapManage/component/scrapImg.vue +++ b/sgzb-ui/src/views/scrapManage/component/scrapImg.vue @@ -11,7 +11,7 @@ export default { props: { - scrapImg: { - type: String, - default: () => null, - }, + scrapImgUrl: {}, }, data() { return { - scrapImgList: [ - { imgUrl: '123' }, - { imgUrl: '123' }, - { imgUrl: '123' }, - ], + scrapImgList: [], + impViewUrl: process.env.VUE_APP_BASE_API + '/system', } }, - created() { - if (this.scrapImg) { - this.scrapImgList = this.scrapImg.split(',') + mounted() { + let imgList = [] + if (this.scrapImgUrl) { + imgList = this.scrapImgUrl.split(',') } + + this.scrapImgList = imgList.map( + (item) => (item = this.impViewUrl + item), + ) }, } diff --git a/sgzb-ui/src/views/scrapManage/component/selDepart.vue b/sgzb-ui/src/views/scrapManage/component/selDepart.vue index 046e976a..ffff78e5 100644 --- a/sgzb-ui/src/views/scrapManage/component/selDepart.vue +++ b/sgzb-ui/src/views/scrapManage/component/selDepart.vue @@ -68,154 +68,164 @@ diff --git a/sgzb-ui/src/views/scrapManage/forecastWaste/auditing/config.js b/sgzb-ui/src/views/scrapManage/forecastWaste/auditing/config.js index b6b2c751..8f1fb609 100644 --- a/sgzb-ui/src/views/scrapManage/forecastWaste/auditing/config.js +++ b/sgzb-ui/src/views/scrapManage/forecastWaste/auditing/config.js @@ -80,7 +80,7 @@ export const dialogConfig = { { t_width: '', t_props: 'maCode', t_label: '设备编码' }, { t_width: '', t_props: 'scrapNum', t_label: '设备数量' }, { t_width: '', t_props: 'status', t_label: '审批状态', t_slot: 't_type' }, - { t_width: '', t_props: '', t_label: '报废原因' }, + { t_width: '', t_props: 'auditRemark', t_label: '报废原因' }, { t_width: '', t_props: '', t_label: '损坏原因', t_slot: 't_damage' }, { t_width: '', t_props: '', t_label: '报废图片', t_slot: 't_img' }, { t_width: '', t_props: 'remark', t_label: '备注' }, diff --git a/sgzb-ui/src/views/scrapManage/forecastWaste/auditing/index.vue b/sgzb-ui/src/views/scrapManage/forecastWaste/auditing/index.vue index 16ae33c8..a688680d 100644 --- a/sgzb-ui/src/views/scrapManage/forecastWaste/auditing/index.vue +++ b/sgzb-ui/src/views/scrapManage/forecastWaste/auditing/index.vue @@ -118,7 +118,10 @@ - @@ -124,7 +132,10 @@ @@ -218,23 +229,31 @@ export default { this.temp = !this.temp }, - /* 关闭选择审批部门弹框 */ + /* 确定或取消按钮触发的自定义事件 */ async closeDepartSel(val, list) { + // val === 0 取消 ===1 为确定 + if (val === 0) { + this.dialogConfig.outerVisible = false + this.$refs.listingTbRef.getList() + this.submitScrapParams.taskIdList = [] + return + } if (list.length < 1) { this.$message.error('请选择审批部门') return } + this.submitScrapParams.deptIds = [] list.map((e) => { this.submitScrapParams.deptIds.push(e.id) }) const res = await submitScrapApi(this.submitScrapParams) if (res.code == 200) { this.$message.success('已提交成功') - this.dialogConfig.outerVisible = val + this.dialogConfig.outerVisible = false this.$refs.listingTbRef.getList() + this.submitScrapParams.taskIdList = [] } - this.submitScrapParams.deptIds = this.submitScrapParams.taskIdList = - [] + this.$refs.selDepartRef.clearNode() }, /* 批量提交报废按钮 */ handelSubmitScrap() { diff --git a/sgzb-ui/src/views/warehouseManage/newPurchase/partsAcceptance/index.vue b/sgzb-ui/src/views/warehouseManage/newPurchase/partsAcceptance/index.vue index 6180f830..b3a6db78 100644 --- a/sgzb-ui/src/views/warehouseManage/newPurchase/partsAcceptance/index.vue +++ b/sgzb-ui/src/views/warehouseManage/newPurchase/partsAcceptance/index.vue @@ -17,6 +17,7 @@ @queryParts="queryParts" @editParts="editParts" @acceptParts="acceptParts" + @partsSaveSuccess="partsSaveSuccess" /> diff --git a/sgzb-ui/vue.config.js b/sgzb-ui/vue.config.js index 3a63933c..e52e86cc 100644 --- a/sgzb-ui/vue.config.js +++ b/sgzb-ui/vue.config.js @@ -43,11 +43,11 @@ module.exports = { // target: `https://test-cc.zhgkxt.com`,//线上环境-南网 // target: `https://z.csgmall.com.cn`, - target: `http://10.40.92.51:28080`, //超 + // target: `http://10.40.92.51:28080`, //超 // target: `http://10.40.92.81:8080`, //韩/ // target: `http://10.40.92.74:8080`,//旭/ - // target: `http://10.40.92.148:28080`, //帅 - // target: `http://10.40.92.253:28080`, //福 + // target: `http://10.40.92.138:28080`, //帅 + target: `http://10.40.92.253:28080`, //福 //******** 注意事项 ********* */ //1.全局替换qrUrl二维码扫码提供的网址-发布服务器的地址target;