| | |
| | | :visible.sync="visible" |
| | | width="500px" |
| | | :close-on-click-modal="false" |
| | | @open='open' |
| | | @close="handleClose" |
| | | > |
| | | <div class="receive-dialog"> |
| | |
| | | <img |
| | | v-if="imgSrc" |
| | | style="width: 200px; height: 100px; margin-left: 25px" |
| | | :src="imgSrc" |
| | | :src="getFullUrl(imgSrc)" |
| | | fit="fit" |
| | | /> |
| | | </div> |
| | |
| | | |
| | | <script> |
| | | import SignatureCanvas from "@/components/SignatureCanvas.vue"; |
| | | import {getFullUrl} from '@/utils/utils.js' |
| | | import {queryDetail} from '@/components/service.js' |
| | | |
| | | export default { |
| | | name: "ReceiveConfirmDialog", |
| | |
| | | }; |
| | | }, |
| | | methods: { |
| | | getFullUrl, |
| | | open(){ |
| | | queryDetail().then(res=>{ |
| | | if(res){ |
| | | this.imgSrc=res.signPicture |
| | | } |
| | | }) |
| | | }, |
| | | handleClose() { |
| | | this.$emit("update:visible", false); |
| | | this.imgSrc = ""; |
| | |
| | | }, |
| | | handleSignatureConfirm(imageData) { |
| | | this.signatureDialogVisible = false; |
| | | this.imgSrc = imageData; |
| | | this.imgSrc = ""; // 先清空 |
| | | this.$nextTick(() => { |
| | | this.imgSrc = imageData; |
| | | }); |
| | | }, |
| | | handleConfirm() { |
| | | if (!this.imgSrc) { |