| | |
| | | <template> |
| | | <el-dialog |
| | | title="出/入库详情" |
| | | :visible.sync="visible" |
| | | width="520px" |
| | | :close-on-click-modal="false" |
| | | custom-class="record-detail-dialog" |
| | | @close="handleClose" |
| | | > |
| | | <el-dialog title="出/入库详情" :visible.sync="visible" width="520px" :close-on-click-modal="false" |
| | | custom-class="record-detail-dialog" @close="handleClose" @opened="opened"> |
| | | <div class="dialog-content"> |
| | | <el-form :model="formData" label-position="top"> |
| | | <el-form-item label="出库/入库" required> |
| | | <div class="type-buttons"> |
| | | <el-button |
| | | type="primary" |
| | | @click="handleOutbound" |
| | | >出库</el-button> |
| | | <el-button :type="formData.type == '1' ? 'primary' : 'default'" |
| | | @click="formData.type = '1'">出库</el-button> |
| | | <el-button :type="formData.type == '2' ? 'primary' : 'default'" |
| | | @click="formData.type = '2'">入库</el-button> |
| | | </div> |
| | | </el-form-item> |
| | | |
| | |
| | | </div> |
| | | </el-form-item> |
| | | |
| | | <el-form-item |
| | | v-if="formData.operatorSignature" |
| | | label="出库时间" |
| | | required |
| | | class="time-item" |
| | | > |
| | | <el-form-item v-if="formData.operatorSignature" label="出库时间" required class="time-item"> |
| | | <div class="time-value">{{ formData.operateTime }}</div> |
| | | </el-form-item> |
| | | </div> |
| | |
| | | <el-form-item required class="signature-item"> |
| | | <template #label> |
| | | <span>保藏人签字</span> |
| | | <el-button type="primary" class="edit-sign-btn" @click="showSignature = true">修改签名</el-button> |
| | | <el-button type="primary" class="edit-sign-btn" |
| | | @click="showSignature = true">修改签名</el-button> |
| | | </template> |
| | | <div class="signature-area" :class="{ 'waiting': !formData.reviewerSignature }"> |
| | | <template v-if="formData.reviewerSignature"> |
| | |
| | | </div> |
| | | </el-form-item> |
| | | |
| | | <el-form-item |
| | | v-if="formData.reviewerSignature" |
| | | label="确认时间" |
| | | required |
| | | class="time-item" |
| | | > |
| | | <el-form-item v-if="formData.reviewerSignature" label="确认时间" required class="time-item"> |
| | | <div class="time-value">{{ formData.confirmTime }}</div> |
| | | </el-form-item> |
| | | </div> |
| | | </el-form> |
| | | </div> |
| | | <signature-canvas :visible.sync="showSignature" @confirm="handleSignatureConfirm" @cancel="showSignature = false" /> |
| | | <signature-canvas :visible.sync="showSignature" @confirm="handleSignatureConfirm" |
| | | @cancel="showSignature = false" /> |
| | | </el-dialog> |
| | | </template> |
| | | |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | formData: {}, |
| | | formData: { |
| | | type: '1', |
| | | }, |
| | | showSignature: false |
| | | } |
| | | }, |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | opened() { |
| | | this.formData.type = this.recordData.type |
| | | }, |
| | | handleClose() { |
| | | this.$emit('update:visible', false) |
| | | this.$emit('close') |
| | | }, |
| | | handleOutbound() { |
| | |
| | | padding: 20px 24px; |
| | | margin: 0; |
| | | border-bottom: 1px solid #DCDFE6; |
| | | |
| | | |
| | | .el-dialog__title { |
| | | font-size: 16px; |
| | | font-weight: 600; |
| | |
| | | } |
| | | |
| | | .type-buttons { |
| | | display: flex; |
| | | |
| | | gap: 12px; |
| | | |
| | | .el-button { |
| | | width: 80px; |
| | | background: #409EFF; |
| | | border-color: #409EFF; |
| | | color: #FFFFFF; |
| | | |
| | | |
| | | &:hover { |
| | | opacity: 0.8; |
| | |
| | | .edit-sign-btn { |
| | | margin-left: 12px; |
| | | } |
| | | </style> |
| | | </style> |