剩余模块:生产入库,销售出库
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
<template>
|
||||
<view class="app status-bar-gap">
|
||||
<view class="page">
|
||||
<l-header title="生产装箱" sticky #right>
|
||||
<view style="margin-right: 32rpx;" @click="fnToUrl()">添加</view>
|
||||
<l-header :title="t('index.zxddh')" sticky #right>
|
||||
<view style="margin-right: 32rpx;" @click="fnToUrl()">{{ t('index.tj') }}</view>
|
||||
</l-header>
|
||||
<view class="input-box">
|
||||
<view class="input-item">
|
||||
<up-input :placeholder="t('receive.djbh')" border="none" clearable inputAlign="left"
|
||||
<up-input :placeholder="t('index.zxddh')" border="none" clearable inputAlign="left"
|
||||
v-model="state.queryString" @change="changeFun">
|
||||
<template #prefix>
|
||||
<up-icon name="search" color="#2979ff" size="24"></up-icon>
|
||||
@@ -18,8 +18,8 @@
|
||||
<scroll-view id="scroll-box" class="scroll-box" scroll-y="true"
|
||||
:style="{'height':state.scrollHeight+'px'}" @scrolltolower="fnScrollBottom()">
|
||||
<view class="list-box-list" v-if="state.dataList.length > 0">
|
||||
<view class="data-item" v-for="(item, index) in state.dataList" :key="index">
|
||||
<view class="tit">装箱单单号:{{item.FBillNo}}</view>
|
||||
<view class="data-item" v-for="(item, index) in state.dataList" :key="index" @click="toPrintFun(item)">
|
||||
<view class="tit">{{ t('index.zxddh') }}:{{item.FBillNo}}</view>
|
||||
<view class="line-p"></view>
|
||||
<view class="b-font">{{ t('receive.rq') }}:{{item.FDateFormat}}</view>
|
||||
</view>
|
||||
@@ -76,6 +76,10 @@
|
||||
const fnToUrl = () => {
|
||||
toPages('/pages/encasement/material')
|
||||
}
|
||||
const toPrintFun = (row:any) => {
|
||||
console.log(row);
|
||||
toPages('/pages/encasement/print',{...row})
|
||||
}
|
||||
const debounceTimer = ref()
|
||||
const changeFun = (e : any) => {
|
||||
if (debounceTimer.value !== null) clearTimeout(debounceTimer.value)
|
||||
|
||||
@@ -1,15 +1,12 @@
|
||||
<template>
|
||||
<view class="app status-bar-gap">
|
||||
<view class="page">
|
||||
<l-header title="生成装箱" sticky #right>
|
||||
<l-header :title="t('index.sczx')" sticky #right>
|
||||
<view style="margin-right: 32rpx;" @click="dataPushNotification">{{ t('receive.tj') }}</view>
|
||||
</l-header>
|
||||
<view class="input-box">
|
||||
<up-tabs :scrollable="false" :list="state.tabsList"></up-tabs>
|
||||
</view>
|
||||
<view class="input-box">
|
||||
<view class="input-item">
|
||||
<up-input placeholder="生产订单编号" border="none" clearable inputAlign="left" v-model="state.queryString"
|
||||
<up-input :placeholder="t('receive.code')" border="none" clearable inputAlign="left" v-model="state.queryString"
|
||||
@change="changeFun" ref="inputRef">
|
||||
<template #prefix>
|
||||
<up-icon name="scan" color="#2979ff" size="24"></up-icon>
|
||||
@@ -32,22 +29,22 @@
|
||||
<view>{{ item['FVHUBMaterial.FName'] }}</view>
|
||||
</view>
|
||||
<view class="itemBox">
|
||||
<view>物料编码</view>
|
||||
<view>{{ t('receive.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>{{ t('index.ck') }}</view>
|
||||
<view class="zongjian"></view>
|
||||
<view>{{ item['FVHUBStock.FName'] }}</view>
|
||||
</view>
|
||||
<view class="itemBox">
|
||||
<view>批号</view>
|
||||
<view>{{ t('receive.ph') }}</view>
|
||||
<view class="zongjian"></view>
|
||||
<view>{{ item.FVHUBFlot }}</view>
|
||||
</view>
|
||||
@@ -88,8 +85,8 @@
|
||||
scanFrameDataFeedback: {}, //传回的扫描弹框数据
|
||||
shortcutDataFeedback: {}, //传回的默认值数据
|
||||
tabsList: [
|
||||
{ name: computed(() => '包装'), type: '1' },
|
||||
{ name: computed(() => '单独物料'), type: '2' },
|
||||
{ name: computed(() => t('index.bz')), type: '1' },
|
||||
{ name: computed(() => t('index.minbz')), type: '2' },
|
||||
],
|
||||
options: []
|
||||
})
|
||||
@@ -131,7 +128,6 @@
|
||||
FBarCode: val,
|
||||
}).then((res : any) => {
|
||||
if (res.code === 200) {
|
||||
debugger
|
||||
postTemporaryScanDraftSaveFun(res.data.Entry[0])
|
||||
}
|
||||
})
|
||||
@@ -164,12 +160,12 @@
|
||||
//删除数据
|
||||
const fStockFlexDetailDeleteFun = (item : any) => {
|
||||
uni.showModal({
|
||||
title: '提示', content: '确定要删除该条数据吗?', cancelText: '取消', confirmText: '确定',
|
||||
title: t('index.ts'), content: t('index.qdysc'), cancelText: t('index.qx'), confirmText: t('index.qd'),
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
fStockFlexDetailDelete({ Ids: item.FID + '' }).then((res : any) => {
|
||||
if (res.code === 200) {
|
||||
uni.$u.toast('已删除')
|
||||
uni.$u.toast(t('index.ysc'))
|
||||
fnDataList()
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user