diff --git a/anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/paymentConfirmation/cashierConfirmation.vue b/anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/paymentConfirmation/cashierConfirmation.vue index a130040148..1025e91bda 100644 --- a/anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/paymentConfirmation/cashierConfirmation.vue +++ b/anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/paymentConfirmation/cashierConfirmation.vue @@ -49,7 +49,7 @@ diff --git a/anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/paymentConfirmation/receipt.vue b/anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/paymentConfirmation/receipt.vue index 41578ec150..a31aaa75a0 100644 --- a/anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/paymentConfirmation/receipt.vue +++ b/anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/paymentConfirmation/receipt.vue @@ -46,9 +46,9 @@ - + diff --git a/yxt-as-ui/src/views/operation/repairbill/repairbillAdd.vue b/yxt-as-ui/src/views/operation/repairbill/repairbillAdd.vue index 6da373efde..ad85d92cd7 100644 --- a/yxt-as-ui/src/views/operation/repairbill/repairbillAdd.vue +++ b/yxt-as-ui/src/views/operation/repairbill/repairbillAdd.vue @@ -328,7 +328,7 @@ @@ -472,6 +472,7 @@ name="file" :action="updateAction" :limit="10" + :on-preview="handlePreview" :on-success="handleSuccess" :on-remove="handleRemove" :headers="headers" @@ -1254,7 +1255,15 @@ export default { } }) }, - serviceDelete(index) { + serviceDelete(value, index) { + if (this.formobj.goodsDetailsVos.length > 0) { + for (var i = 0; i < this.formobj.goodsDetailsVos.length; i++) { + if (this.formobj.goodsDetailsVos[i].serviceItem === value) { + this.$message({ showClose: true, type: 'error', message: '因维修用料表中包含该维修项目,无法删除' }) + return + } + } + } this.formobj.sitemVos.splice(index, 1) }, serviceCurrentChange(value, row) { @@ -1416,6 +1425,9 @@ export default { }) } }, + handlePreview(file, fileList) { + window.open(file.url, '_blank') + }, handleRemove(file, fileList) { if (this.formobj.fileName.length > 0) { this.formobj.fileName.forEach((e, index) => { @@ -1671,6 +1683,7 @@ export default { } this.serviceData = [] this.subjoinData = [] + this.fileList = [] this.activeNames = '1' this.submitdisabled = false this.$emit('doback')