剩余模块:生产入库,销售出库
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<template>
|
||||
<view class="app status-bar-gap">
|
||||
<view class="page">
|
||||
<l-header title="扫描记录" sticky #right>
|
||||
<view style="margin-right: 32rpx;" @click="fStockFlexDetailMultiDeleteFun()">全部删除</view>
|
||||
<l-header :title="t('public.smjl')" sticky #right>
|
||||
<view style="margin-right: 32rpx;" @click="fStockFlexDetailMultiDeleteFun()">{{ t('index.qbsc') }}</view>
|
||||
</l-header>
|
||||
<view class="input-box">
|
||||
<view class="input-item">
|
||||
@@ -15,8 +15,8 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="records-listBox">
|
||||
<scroll-view id="scroll-box" class="scroll-box" scroll-y="true"
|
||||
:style="{'height':state.scrollHeight+'px'}" @scrolltolower="fnScrollBottom()">
|
||||
<scroll-view id="scroll-box" class="scroll-box" scroll-y="true" :style="{'height':state.scrollHeight+'px'}"
|
||||
@scrolltolower="fnScrollBottom()">
|
||||
<view class="list-box-list">
|
||||
<uni-swipe-action>
|
||||
<uni-swipe-action-item :right-options="state.options" @click="onClick"
|
||||
@@ -26,39 +26,27 @@
|
||||
<up-icon name="trash" color="#ffffff" size="28"></up-icon>
|
||||
</view>
|
||||
</template>
|
||||
<view class="data-item"
|
||||
:style="[{'background-color':'#ffffff'}]"
|
||||
:key="index">
|
||||
<view class="data-item" :style="[{'background-color':'#ffffff'}]" :key="index">
|
||||
<view class="text" style="margin-bottom: 20px;display: flex;">
|
||||
<view>{{ item['FVHUBMaterial.FName'] }}</view>
|
||||
</view>
|
||||
<view class="itemBox">
|
||||
<view>单据编号</view>
|
||||
<view>{{ t('receive.djbh') }}</view>
|
||||
<view class="zongjian"></view>
|
||||
<view>{{ item.FVHUBFBillNo }}</view>
|
||||
</view>
|
||||
<view class="itemBox">
|
||||
<view>物料编码</view>
|
||||
<view>{{ t('public.wlbm') }}</view>
|
||||
<view class="zongjian"></view>
|
||||
<view>{{ item.FVHUBMaterialNumber }}</view>
|
||||
</view>
|
||||
<view class="itemBox">
|
||||
<view>本次扫描数量</view>
|
||||
<view>{{ t('public.qty') }}</view>
|
||||
<view class="zongjian"></view>
|
||||
<view>{{ item.FVHUBScanQty }}</view>
|
||||
</view>
|
||||
<view class="itemBox">
|
||||
<view>仓库</view>
|
||||
<view class="zongjian"></view>
|
||||
<view>{{ item['FVHUBStock.FName'] }}</view>
|
||||
</view>
|
||||
<view class="itemBox">
|
||||
<view>仓库编码</view>
|
||||
<view class="zongjian"></view>
|
||||
<view>{{ item['FVHUBStock.FNumber'] }}</view>
|
||||
</view>
|
||||
<view class="itemBox">
|
||||
<view>扫描时间</view>
|
||||
<view>{{ t('receive.rq') }}</view>
|
||||
<view class="zongjian"></view>
|
||||
<view>{{ parseTime(item.FVHUBCreateDate, '{y}-{m}-{d} {h}:{i}') }}</view>
|
||||
</view>
|
||||
@@ -66,7 +54,7 @@
|
||||
</uni-swipe-action-item>
|
||||
</uni-swipe-action>
|
||||
</view>
|
||||
<view v-if="state.dataList.length==0">
|
||||
<view v-if="state.dataList.length==0">
|
||||
<up-empty mode="list"></up-empty>
|
||||
</view>
|
||||
</scroll-view>
|
||||
@@ -78,15 +66,17 @@
|
||||
<script lang="ts" setup>
|
||||
import { reactive, nextTick, onMounted, ref, computed, watch } from 'vue';
|
||||
import { onLoad, onShow, onReachBottom, } from '@dcloudio/uni-app'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
|
||||
import { parseTime } from '../../utils/tools.js';
|
||||
// parseTime(p.FDate, '{y}-{m}-{d}');
|
||||
import { fStockFlexDetailDelete, fStockFlexDetailMultiDelete, receiveBillList, temporaryScanList } from '../../common/request/api/api';
|
||||
import { sqlite } from '../../stores/sqlite'
|
||||
const DB = sqlite()
|
||||
const inputRef = ref()
|
||||
import { useI18n } from 'vue-i18n'
|
||||
const getI18n = useI18n()
|
||||
const { t, locale } = getI18n
|
||||
const DB = sqlite()
|
||||
const inputRef = ref()
|
||||
|
||||
const state = reactive({
|
||||
queryString: '',
|
||||
dataList: [],
|
||||
@@ -139,17 +129,17 @@
|
||||
|
||||
|
||||
const navClick = (index : any) => { state.navIndex = index }
|
||||
const onClick = (e : any) => {}
|
||||
const swipeChange = (e : any, index : any) => {}
|
||||
|
||||
const fStockFlexDetailDeleteFun = (item:any) => {
|
||||
const onClick = (e : any) => { }
|
||||
const swipeChange = (e : any, index : any) => { }
|
||||
|
||||
const fStockFlexDetailDeleteFun = (item : any) => {
|
||||
uni.showModal({
|
||||
title : '提示', content : '确定要删除该条数据吗?', cancelText : '取消', confirmText: '确定',
|
||||
success(res) {
|
||||
title: t('index.ts'), content: t('index.qdysc'), cancelText: t('public.cancel'), confirmText: t('public.confirm'),
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
fStockFlexDetailDelete({Ids:item.FID + ''}).then((res:any) => {
|
||||
if(res.code === 200) {
|
||||
uni.$u.toast('已删除')
|
||||
fStockFlexDetailDelete({ Ids: item.FID + '' }).then((res : any) => {
|
||||
if (res.code === 200) {
|
||||
uni.$u.toast(t('index.ysc'))
|
||||
state.page.pageIndex = 1
|
||||
fnDataList()
|
||||
}
|
||||
@@ -162,12 +152,12 @@
|
||||
}
|
||||
const fStockFlexDetailMultiDeleteFun = () => {
|
||||
uni.showModal({
|
||||
title : '提示', content : '确定要删全部删除吗?', cancelText : '取消', confirmText: '确定',
|
||||
success(res) {
|
||||
title: t('index.ts'), content: t('index.qdyqbsc'), cancelText: t('public.cancel'), confirmText: t('public.confirm'),
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
fStockFlexDetailMultiDelete({FVHUBFormId:state.FormId}).then((res:any) => {
|
||||
if(res.code === 200) {
|
||||
uni.$u.toast('已全部删除')
|
||||
fStockFlexDetailMultiDelete({ FVHUBFormId: state.FormId }).then((res : any) => {
|
||||
if (res.code === 200) {
|
||||
uni.$u.toast(t('index.tqbsc'))
|
||||
state.page.pageIndex = 1
|
||||
fnDataList()
|
||||
}
|
||||
@@ -238,6 +228,7 @@
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
flex: 1;
|
||||
|
||||
.input-box {
|
||||
background-color: white;
|
||||
box-sizing: border-box;
|
||||
@@ -271,11 +262,13 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.records-listBox {
|
||||
flex: 1;
|
||||
|
||||
.list-box-list {
|
||||
width: 100%;
|
||||
|
||||
.itemRight {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
Reference in New Issue
Block a user