|
|
@@ -55,7 +55,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
-import { shallowRef } from 'vue'
|
|
|
+import { shallowRef, PropType } from 'vue'
|
|
|
import { useRequest } from '@/hooks/request'
|
|
|
import { queryUserGoodsInventoryLog } from '@/services/api/order'
|
|
|
import { formatDate, formatDecimal } from '@/filters';
|
|
|
@@ -63,12 +63,26 @@ import { getAppointmentModelOutName, getInoutApplyStatusName, getInoutTypeName }
|
|
|
import AppPullRefresh from '@mobile/components/base/pull-refresh/index.vue'
|
|
|
import AppModal from '@/components/base/modal/index.vue'
|
|
|
|
|
|
+const props = defineProps({
|
|
|
+ selectedRow: {
|
|
|
+ type: Object as PropType<Model.UserGoodsInventoryRsp>,
|
|
|
+ required: true,
|
|
|
+ },
|
|
|
+ inOutType: {
|
|
|
+ type: Number,
|
|
|
+ required: true
|
|
|
+ }
|
|
|
+})
|
|
|
+
|
|
|
const error = shallowRef(false)
|
|
|
const dataList = shallowRef<Model.UserGoodsInventoryLogRsp[]>([])
|
|
|
const showModal = shallowRef(true)
|
|
|
const refresh = shallowRef(false) // 是否刷新父组件数据
|
|
|
|
|
|
const { loading, pageIndex, pageCount, run } = useRequest(queryUserGoodsInventoryLog, {
|
|
|
+ params: {
|
|
|
+ goodsId: props.selectedRow.goodsid
|
|
|
+ },
|
|
|
onSuccess: (res) => {
|
|
|
if (pageIndex.value === 1) {
|
|
|
dataList.value = []
|