| | |
| | | <view class="search-section"> |
| | | <view class="search-bar"> |
| | | <view class="search-input"> |
| | | <up-input class="search-text" placeholder="请输入产品名称搜索" v-model="productCategoryValue" |
| | | @change="reloadPage" clearable /> |
| | | <up-input class="search-text" placeholder="请输入产品名称搜索" v-model="productCategoryValue" clearable @change="reloadPage" /> |
| | | </view> |
| | | <view class="filter-button" @click="reloadPage"> |
| | | <up-icon name="search" size="24" color="#999"></up-icon> |
| | |
| | | <view class="value">{{ item.boxNum }}</view> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="label">单价(元)/支</view> |
| | | <view class="label">单价(元)/件</view> |
| | | <view class="value">{{ item.taxInclusiveUnitPrice }}</view> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="label">单价(美元)/件</view> |
| | | <view class="value">{{ item.dollarPrice }}</view> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="label">纸箱规格</view> |
| | |
| | | <view class="value">{{ item.boxNum }}</view> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="label">单价(元)/支</view> |
| | | <view class="label">单价(元)/件</view> |
| | | <view class="value">{{ item.taxInclusiveUnitPrice }}</view> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="label">单价(美元)/件</view> |
| | | <view class="value">{{ item.dollarPrice }}</view> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="label">纸箱规格</view> |
| | |
| | | </template> |
| | | |
| | | <script setup> |
| | | import { ref, reactive, computed } from 'vue' |
| | | import { ref, reactive, computed, nextTick } from 'vue' |
| | | import { listPage, listPageByCustom, stockmanagementDel } from '@/api/inventoryManagement/dispatchLog.js' |
| | | import { onShow, onReachBottom, onPullDownRefresh } from '@dcloudio/uni-app' |
| | | import config from '@/config' |
| | |
| | | productCategoryValue.value = '' |
| | | reloadPage() |
| | | } |
| | | |
| | | // 返回上一页 |
| | | const goBack = () => { |
| | | uni.navigateBack() |
| | |
| | | pageParams.current += 1 |
| | | getList() |
| | | } |
| | | const reloadPage = () => { |
| | | const reloadPage = async() => { |
| | | await nextTick() |
| | | pageParams.current = 1 |
| | | contentList.value = [] |
| | | getList() |
| | |
| | | getListApi = listPage |
| | | } |
| | | loading.value = true |
| | | let params = pageParams |
| | | let params = {...pageParams} |
| | | if (productCategoryValue.value) { |
| | | params.productCategory = productCategoryValue.value |
| | | } |