|
@@ -56,6 +56,13 @@
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="last-photo" v-show="showlastPhoto && (lastPhoto as any)?.file_path" v-key="(lastPhoto as any)?.file_path">
|
|
<div class="last-photo" v-show="showlastPhoto && (lastPhoto as any)?.file_path" v-key="(lastPhoto as any)?.file_path">
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ class="close-btn"
|
|
|
|
|
+ type="danger"
|
|
|
|
|
+ icon="Close"
|
|
|
|
|
+ circle
|
|
|
|
|
+ @click="closeLastPhoto"
|
|
|
|
|
+ />
|
|
|
<el-image :src="getFilePath((lastPhoto as any)?.file_path || '')" fit="contain" ></el-image>
|
|
<el-image :src="getFilePath((lastPhoto as any)?.file_path || '')" fit="contain" ></el-image>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -222,6 +229,11 @@ const {
|
|
|
totalPages,
|
|
totalPages,
|
|
|
} = usePhotography()
|
|
} = usePhotography()
|
|
|
|
|
|
|
|
|
|
+// 关闭最后拍摄的照片预览
|
|
|
|
|
+const closeLastPhoto = () => {
|
|
|
|
|
+ showlastPhoto.value = false
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
// 选中的货号列表
|
|
// 选中的货号列表
|
|
|
const selectedGoods = ref<Set<string>>(new Set())
|
|
const selectedGoods = ref<Set<string>>(new Set())
|
|
|
|
|
|
|
@@ -854,6 +866,19 @@ watch(goodsList, () => {
|
|
|
z-index: 1000;
|
|
z-index: 1000;
|
|
|
background-color: rgba(0,0,0,.5);
|
|
background-color: rgba(0,0,0,.5);
|
|
|
|
|
|
|
|
|
|
+ .close-btn {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ top: 20px;
|
|
|
|
|
+ right: 20px;
|
|
|
|
|
+ z-index: 1001;
|
|
|
|
|
+ width: 32px;
|
|
|
|
|
+ height: 32px;
|
|
|
|
|
+
|
|
|
|
|
+ ::v-deep(.el-icon) {
|
|
|
|
|
+ font-size: 16px;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
.el-image {
|
|
.el-image {
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
height:100%;
|
|
height:100%;
|