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;