|
|
@@ -10,6 +10,19 @@
|
|
|
<div class="photography-page flex-col bg-F5F6F7 ">
|
|
|
<div class="main-container page—wrap max-w-full">
|
|
|
<div class="history-section flex-col koutu-section">
|
|
|
+ <div class="search-bar">
|
|
|
+ <el-input
|
|
|
+ v-model="searchGoodsArtNo"
|
|
|
+ placeholder="搜索货号"
|
|
|
+ clearable
|
|
|
+ style="width: 200px"
|
|
|
+ @keyup.enter="handleSearch"
|
|
|
+ >
|
|
|
+ <template #append>
|
|
|
+ <el-button @click="handleSearch">搜索</el-button>
|
|
|
+ </template>
|
|
|
+ </el-input>
|
|
|
+ </div>
|
|
|
|
|
|
<div class="history-warp" ref="containerRef">
|
|
|
<div v-if="!goodsList.length" class="fs-14 c-666 mar-top-50">
|
|
|
@@ -177,8 +190,14 @@ const {
|
|
|
totalPages,
|
|
|
importDirs,
|
|
|
deleteAllGoods,
|
|
|
+ searchGoodsArtNo,
|
|
|
} = usePhotography()
|
|
|
|
|
|
+// 搜索货号
|
|
|
+const handleSearch = () => {
|
|
|
+ getPhotoRecords({ page: 1, goods_art_no: searchGoodsArtNo.value })
|
|
|
+}
|
|
|
+
|
|
|
// thumbnails
|
|
|
const containerRef = ref<HTMLElement | null>(null)
|
|
|
const { thumbnailMap, observe, stop } = useThumbnails(getFilePath)
|
|
|
@@ -405,6 +424,12 @@ watch(goodsList, () => {
|
|
|
flex-direction: column;
|
|
|
padding: 20px;
|
|
|
|
|
|
+ .search-bar {
|
|
|
+ margin-bottom: 15px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: flex-start;
|
|
|
+ }
|
|
|
+
|
|
|
::v-deep {
|
|
|
.el-checkbox__input {
|
|
|
transform: scale(1.4);
|