Browse Source

修改库内盘点页面样式

myd
qb 1 year ago
parent
commit
aadca41793
  1. 4
      config/host.js
  2. 109
      pages.json
  3. 387
      pagesTask/pages/storageLocationCheckDetails/storageLocationCheckDetails.vue
  4. 4
      unpackage/dist/dev/app-plus/app-config-service.js
  5. 311
      unpackage/dist/dev/app-plus/app-service.js
  6. 22
      unpackage/dist/dev/app-plus/manifest.json

4
config/host.js

@ -4,7 +4,7 @@
* 测试域名
* */
//测试域名
// const devhost = 'http://test.api.huitongys.com/'
const devhost = 'http://test.api.huitongys.com/'
// lmy
// const devhost = 'http://192.168.10.123:8889/'
// zhy
@ -12,7 +12,7 @@
// tjj
// const devhost = 'http://192.168.10.29:13000/'
// cyz
const devhost = 'http://h5uapi.huitongys.com/'
// const devhost = 'http://h5uapi.huitongys.com/'
// cg
// const devhost='http://192.168.10.200:8888/'
/**

109
pages.json

@ -1155,63 +1155,68 @@
"path": "pages/storageLocationCheckDetails/storageLocationCheckDetails",
"style": {
"navigationBarTitleText": "库位盘点",
"enablePullDownRefresh": true,
"onReachBottomDistance": 1,
"navigationStyle": "custom",
"app-plus": {
"animationDuration": 300,
"animationType": "zoom-fade-out"
"animationType": "zoom-fade-out",
"pullToRefresh": {
"support": true,
"color": "#d3832a", //
"style": "circle" //
}
}
}
]
}
],
"permission": {
"scope.userLocation": {
"desc": "你的位置信息将用于小程序位置接口的效果展示"
}
},
"tabBar": {
"color": "#999999",
"selectedColor": "#df8926",
"backgroundColor": "#ffffff",
"list": [{
"pagePath": "pages/index/index",
"iconPath": "/static/TabberIcon/icon1.png",
"selectedIconPath": "/static/TabberIcon/icon1check.png",
"text": "工作台"
},
{
"pagePath": "pages/taskList/taskList",
"iconPath": "/static/TabberIcon/icon2.png",
"selectedIconPath": "/static/TabberIcon/icon2check.png",
"text": "任务"
},
// {
// "pagePath": "pages/reportForms/reportForms",
// "iconPath": "/static/TabberIcon/icon3.png",
// "selectedIconPath": "/static/TabberIcon/icon3check.png",
// "text": "报表"
// },
// {
// "pagePath": "pages/news/news",
// "iconPath": "/static/TabberIcon/icon4.png",
// "selectedIconPath": "/static/TabberIcon/icon4check.png",
// "text": "消息"
// },
{
"pagePath": "pages/user/user",
"iconPath": "/static/TabberIcon/icon5.png",
"selectedIconPath": "/static/TabberIcon/icon5check.png",
"text": "我的"
}
]
}
],
"permission": {
"scope.userLocation": {
"desc": "你的位置信息将用于小程序位置接口的效果展示"
}
},
"tabBar": {
"color": "#999999",
"selectedColor": "#df8926",
"backgroundColor": "#ffffff",
"list": [{
"pagePath": "pages/index/index",
"iconPath": "/static/TabberIcon/icon1.png",
"selectedIconPath": "/static/TabberIcon/icon1check.png",
"text": "工作台"
},
// {
// "pagePath": "pages/taskList/taskList",
// "iconPath": "/static/TabberIcon/icon2.png",
// "selectedIconPath": "/static/TabberIcon/icon2check.png",
// "text": "任务"
// },
// {
// "pagePath": "pages/reportForms/reportForms",
// "iconPath": "/static/TabberIcon/icon3.png",
// "selectedIconPath": "/static/TabberIcon/icon3check.png",
// "text": "报表"
// },
// {
// "pagePath": "pages/news/news",
// "iconPath": "/static/TabberIcon/icon4.png",
// "selectedIconPath": "/static/TabberIcon/icon4check.png",
// "text": "消息"
// },
{
"pagePath": "pages/user/user",
"iconPath": "/static/TabberIcon/icon5.png",
"selectedIconPath": "/static/TabberIcon/icon5check.png",
"text": "我的"
}
]
},
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "uni-app",
"navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8"
},
"uniIdRouter": {}
}
},
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "uni-app",
"navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8"
},
"uniIdRouter": {}
}

387
pagesTask/pages/storageLocationCheckDetails/storageLocationCheckDetails.vue

@ -1,158 +1,167 @@
<template>
<view>
<!-- 顶部导航栏 -->
<u-navbar title="库位盘点" placeholder :autoBack="true" leftIconSize='35' bgColor='#d3832a' leftIconColor='#ffffff'
titleStyle='color:#ffffff'></u-navbar>
</view>
<!-- 主体内容 -->
<view class="main">
<!-- 顶部 -->
<view class="main_top">
<input type="text" placeholder="请输入包条码" class="main_top_search" />
<view class="button">搜索</view>
</view>
<!-- 库位信息 -->
<view class="main_info">
<view class="main_info_row">
<view class="main_info_item">
<text>库位号:</text>
<text>{{1}}</text>
</view>
</view>
<view class="main_info_row">
<view class="main_info_item">
<text>库位总数:</text>
<text>{{1}}</text>
</view>
<view class="main_info_item">
<text>库位已盘数:</text>
<text>{{1}}</text>
</view>
<view class="main_info_item">
<text>库位未盘数:</text>
<text>{{1}}</text>
</view>
<BasicContainer :option="option">
<!-- 主体内容 -->
<view class="main">
<!-- 顶部 -->
<view class="main_top">
<input type="text" placeholder="请输入库位码" class="main_top_search" />
<view class="button" @click="submitSearch">搜索</view>
</view>
</view>
<!-- tabBar选项卡 -->
<view class="tabBar">
<view :class="{'tabBar-item': true, 'active': tabBarCode === 1}" @click="handleTabBarCode(1)">
定制品{{300}}
</view>
<view :class="{'tabBar-item': true, 'active': tabBarCode === 2}" @click="handleTabBarCode(2)">
库存品{{100}}
</view>
<view :class="{'tabBar-item': true, 'active': tabBarCode === 3}" @click="handleTabBarCode(3)">
零担{{1000}}
</view>
</view>
<!-- 控件 -->
<view class="control">
<view class="button" @click="showControl = true" v-show="!showControl">批量操作</view>
<template v-if="showControl">
<view class="button">反选</view>
<view class="controlList">
<view class="button">
批量删除
</view>
<view class="button">
批量删除
</view>
<view class="button">
状态修改
<!-- 库位信息 -->
<view class="main_info">
<view class="main_info_row">
<view class="main_info_item">
<text>库位号:</text>
<text>{{1}}</text>
</view>
</view>
</template>
</view>
<!-- 按库位盘点 -->
<!-- 表格 -->
<template v-if="renderList.length !== 0">
<view class="list" v-for="item in renderList" :key="item">
<!-- 定制品 -->
<view v-if="item.goodsType === 1">
<view class="tpbx">
<image src="/pagesHome/static/kuweiicon.png"></image>
<view>服务号{{item.serviceNum}}</view>
<view class="main_info_row">
<view class="main_info_item">
<text>库位总数:</text>
<text>{{1}}</text>
</view>
<view class="tpbx">
<image src="/pagesHome/static/kuweiicon.png"></image>
<view>订单号{{item.orderCode}}</view>
<view class="main_info_item">
<text>库位已盘数:</text>
<text>{{1}}</text>
</view>
<!-- <view class="tpbx">
<image src="/pagesHome/static/kuweiicon.png"></image>
<view>仓库地址{{dtilobj.warehouseName}}</view>
<view class="main_info_item">
<text>库位未盘数:</text>
<text>{{1}}</text>
</view>
<view class="tpbx">
<image src="/pagesHome/static/kuweiicon.png"></image>
<view>库位信息{{dtilobj.areaTitle + '-' + dtilobj.allocationTitle}}</view>
</view> -->
</view>
</view>
<!-- 零担 -->
<view v-if="item.goodsType === 2">
<view class="tpbx">
<image src="/pagesHome/static/kuweiicon.png"></image>
<view>运单号{{item.waybillNo}}</view>
</view>
<view class="tpbx">
<image src="/pagesHome/static/kuweiicon.png"></image>
<view>订单号{{item.orderCode}}</view>
</view>
<!-- <view class="tpbx">
<image src="/pagesHome/static/kuweiicon.png"></image>
<view>仓库地址{{dtilobj.warehouseName}}</view>
</view>
<view class="tpbx">
<image src="/pagesHome/static/kuweiicon.png"></image>
<view>库位信息{{dtilobj.areaTitle + '-' + dtilobj.allocationTitle}}</view>
</view> -->
<!-- tabBar选项卡 -->
<view class="tabBar">
<view :class="{'tabBar-item': true, 'active': tabBarCode === 1}" @click="handleTabBarCode(1)">
定制品{{300}}
</view>
<view :class="{'tabBar-item': true, 'active': tabBarCode === 2}" @click="handleTabBarCode(2)">
零担{{1000}}
</view>
<view :class="{'tabBar-item': true, 'active': tabBarCode === 3}" @click="handleTabBarCode(3)">
库存品{{100}}
</view>
</view>
<!-- 库存品 -->
<view v-if="item.goodsType === 3">
<view class="tpbx">
<image src="/pagesHome/static/kuweiicon.png"></image>
<view>物料编码{{item.materialCode}}</view>
<!-- 控件 -->
<view class="control">
<view class="button" @click="showControl = true" v-show="!showControl">批量操作</view>
<template v-if="showControl">
<view class="button">反选</view>
<view class="controlList">
<view class="button" @click="handleBatchDel">
批量删除
</view>
<view class="button" @click="handleBatchUp">
批量上架
</view>
<view class="button" @click="handleBatchState">
状态修改
</view>
</view>
<view class="tpbx">
<image src="/pagesHome/static/kuweiicon.png"></image>
<view>物料名称{{item.materialName}}</view>
</view>
<!-- <view class="tpbx">
<image src="/pagesHome/static/kuweiicon.png"></image>
<view>仓库地址{{dtilobj.warehouseName}}</view>
</view>
<view class="tpbx">
<image src="/pagesHome/static/kuweiicon.png"></image>
<view>库位信息{{dtilobj.areaTitle + '-' + dtilobj.allocationTitle}}</view>
</view> -->
<view class="tpbx">
<image src="/pagesHome/static/kuweiicon.png"></image>
<view>订单号{{item.orderCode}}</view>
</view>
<view class="tpbx">
<image src="/pagesHome/static/kuweiicon.png"></image>
<view>商场名称{{item.marketName}}</view>
</view>
<view class="tpbx">
<image src="/pagesHome/static/kuweiicon.png"></image>
<view>批次号{{item.incomingBatch}}</view>
</template>
</view>
<!-- 按库位盘点 -->
<!-- 表格 -->
<template v-if="renderList.length !== 0">
<view class="list" v-for="(item, index) in renderList" :key="item">
<view class="leftIcon">
<image class="checkImage"
:src="checkindex.indexOf(index)!=-1?'/pagesHome/static/check.png':'/pagesHome/static/nocheck.png'">
</image>
</view>
<!-- 定制品 -->
<template v-if="tabBarCode === 1">
<view class="rightMsg">
<view class="tpbx">
<image src="/pagesHome/static/kuweiicon.png"></image>
<view>包条码{{item.serviceNum}}</view>
</view>
<view class="tpbx">
<image src="/pagesHome/static/kuweiicon.png"></image>
<view>合同号{{item.orderCode}}</view>
</view>
<view class="tpbx">
<image src="/pagesHome/static/kuweiicon.png"></image>
<view>库位{{item.orderCode}}</view>
</view>
<view class="tpbx">
<image src="/pagesHome/static/kuweiicon.png"></image>
<view>状态{{item.orderCode}}</view>
</view>
</view>
</template>
<!-- 零担 -->
<template v-else-if="tabBarCode === 2">
<view class="rightMsg">
<view class="tpbx">
<image src="/pagesHome/static/kuweiicon.png"></image>
<view>运单号{{item.waybillNo}}</view>
</view>
<view class="tpbx">
<image src="/pagesHome/static/kuweiicon.png"></image>
<view>订单号{{item.orderCode}}</view>
</view>
<!-- <view class="tpbx">
<image src="/pagesHome/static/kuweiicon.png"></image>
<view>仓库地址{{dtilobj.warehouseName}}</view>
</view>
<view class="tpbx">
<image src="/pagesHome/static/kuweiicon.png"></image>
<view>库位信息{{dtilobj.areaTitle + '-' + dtilobj.allocationTitle}}</view>
</view> -->
</view>
</template>
<!-- 库存品 -->
<template v-else-if="tabBarCode === 3">
<view class="rightMsg">
<view class="tpbx">
<image src="/pagesHome/static/kuweiicon.png"></image>
<view>物料编码{{item.materialCode}}</view>
</view>
<view class="tpbx">
<image src="/pagesHome/static/kuweiicon.png"></image>
<view>物料名称{{item.materialName}}</view>
</view>
<!-- <view class="tpbx">
<image src="/pagesHome/static/kuweiicon.png"></image>
<view>仓库地址{{dtilobj.warehouseName}}</view>
</view>
<view class="tpbx">
<image src="/pagesHome/static/kuweiicon.png"></image>
<view>库位信息{{dtilobj.areaTitle + '-' + dtilobj.allocationTitle}}</view>
</view> -->
<view class="tpbx">
<image src="/pagesHome/static/kuweiicon.png"></image>
<view>订单号{{item.orderCode}}</view>
</view>
<view class="tpbx">
<image src="/pagesHome/static/kuweiicon.png"></image>
<view>商场名称{{item.marketName}}</view>
</view>
<view class="tpbx">
<image src="/pagesHome/static/kuweiicon.png"></image>
<view>批次号{{item.incomingBatch}}</view>
</view>
</view>
</template>
</view>
</view>
</template>
</template>
<!-- 提交 -->
<button @click="submitCheck" class="submitButton" type="primary">提交盘点</button>
</view>
<saomiao2></saomiao2>
</BasicContainer>
<!-- 提交 -->
<button @click="submitCheck" class="submitButton" type="primary">提交盘点</button>
</view>
<saomiao2></saomiao2>
</template>
<script setup lang="ts">
@ -161,7 +170,21 @@
onLoad,
onHide
} from '@dcloudio/uni-app'
import { reactive, toRefs } from "vue";
import { reactive, toRefs, watch } from "vue";
const option = reactive({
title: '库位盘点',
isEnd: false,
haveData: true,
pullDownRefreshInitPage() {
console.log('下拉刷新')
//
details.articleList = []
},
reachBottomInitPage() {
console.log('触底加载')
}
})
const details = reactive({
//
@ -173,9 +196,33 @@
//
scancode: '',
//
renderList: []
renderList: [],
//
articleList: [],
//
stockList: [],
//
zeroList: [],
//
checkindex: [],
//
articleCheckList: [],
//
stockCheckList: [],
//
zeroCheckList: [],
})
const {
showControl,
tabBarCode,
renderList,
articleList,
stockList,
zeroList,
checkindex
} = toRefs(details)
//
onLoad((_info) => {
@ -210,19 +257,39 @@
details.tabBarCode = code
}
/**
* 提交搜索请求
*/
function submitSearch() { }
/**
* 提交盘点
*/
function submitCheck() { }
//
function randomCheck() { }
/**
* 批量删除
*/
function handleBatchDel() { }
const {
showControl,
tabBarCode,
renderList
} = toRefs(details)
/**
* 批量上架
*/
function handleBatchUp() { }
/**
* 批量修改状态
*/
function handleBatchState() { }
watch([articleList, zeroList, stockList, tabBarCode], () => {
//
if (tabBarCode.value === 1) return renderList.value = articleList.value
//
if (tabBarCode.value === 2) return renderList.value = zeroList.value
// //
if (tabBarCode.value === 3) return renderList.value = stockList.value
})
</script>
<style lang="scss" scoped>
@ -352,6 +419,29 @@
}
}
.list {
display: flex;
margin: 20upx 0;
padding: 0 10upx;
border-radius: 10upx;
box-shadow: 0 0 20upx #d3832a;
.leftIcon {
flex: none;
margin-right: 30upx;
padding-top: 18upx;
.checkImage {
width: 48upx;
height: 48upx;
}
}
.rightMsg {
flex: 1;
}
}
//
.tpbx {
display: flex;
@ -368,6 +458,7 @@
}
>view {
flex: 1;
font-size: 28upx;
font-weight: 400;
color: #020B18;

4
unpackage/dist/dev/app-plus/app-config-service.js vendored

File diff suppressed because one or more lines are too long

311
unpackage/dist/dev/app-plus/app-service.js vendored

@ -4016,7 +4016,7 @@ if (uni.restoreGlobal) {
};
};
const base64 = new Base64();
const devhost = "http://192.168.10.48:8888/";
const devhost = "http://ht.h5u.huitongys.com/login/";
const imghost = "";
const host = devhost;
const APPKEY = "h5u:h5u_secret";
@ -4312,7 +4312,7 @@ if (uni.restoreGlobal) {
header["Blade-Auth"] = `bearer ${Store.state.access_token}`;
} else {
if (!token && params.url.indexOf("oauth/token") == -1) {
uni.navigateTo({
uni.reLaunch({
url: "/pages/login/login"
});
api.error("请登录");
@ -4373,9 +4373,12 @@ if (uni.restoreGlobal) {
utils.ttsspke("接口出错,请联系后端开发人员");
return;
} else if (res.statusCode == 401) {
uni.navigateTo({
uni.reLaunch({
url: "/pages/login/login"
});
uni.removeStorage({
key: "access_token"
});
api.error("请登录");
return;
}
@ -4383,7 +4386,7 @@ if (uni.restoreGlobal) {
utils.ttsspke("连接服务器失败");
}
}).catch((err) => {
formatAppLog("log", "at utils/request.js:132", err);
formatAppLog("log", "at utils/request.js:135", err);
api.error("请检查是否连接到无线网络");
utils.ttsspke("请检查是否连接到无线网络");
uni.hideLoading();
@ -5255,125 +5258,7 @@ if (uni.restoreGlobal) {
__name: "index",
setup(__props) {
const tip = vue.ref(null);
let details = vue.reactive({
tablist: [
{
type: 1,
name: "工作台",
minilist: [
{
icon: "http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png",
name: "订单查询",
router: "/pagesHome/pages/orderInquiry/orderInquiry"
},
{
icon: "http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png",
name: "自提扫描",
router: "/pagesHome/pages/SelfPickupScan/SelfPickupScan"
}
]
},
{
type: 1,
name: "库内",
minilist: [
{
icon: "http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png",
name: "订单分拣",
router: "/pagesHome/pages/ordersorting/ordersorting"
},
{
icon: "http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png",
name: "库存品分拣",
router: "/pagesHome/pages/lnventorysorting/lnventorysorting"
},
{
icon: "http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png",
name: "扫码上架",
router: "/pagesHome/pages/ScanUpType/ScanUpType"
},
{
icon: "http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png",
name: "手动上架",
router: "/pagesHome/pages/PeopleScanUpType/PeopleScanUpType"
},
{
icon: "http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png",
name: "移库",
router: "/pagesHome/pages/RelocationType/RelocationType"
},
{
icon: "http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png",
name: "滞留",
router: "/pagesHome/pages/Retention/Retention"
},
{
icon: "http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png",
name: "合托",
router: "/pagesHome/pages/MergeTray/MergeTray"
},
{
icon: "http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png",
name: "下架",
router: "/pagesHome/pages/DownGoodsType/DownGoodsType"
},
{
icon: "http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png",
name: "空置托盘",
router: "/pagesHome/pages/RemoveTray/RemoveTray"
},
{
icon: "http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png",
name: "复核",
router: "/pagesHome/pages/Check/Check"
}
]
},
{
type: 1,
name: "出库",
minilist: [
{
icon: "http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png",
name: "拣货扫描",
router: "/pagesHome/pages/pickingScan/pickingScan"
},
{
icon: "http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png",
name: "自提扫描",
router: "/pagesHome/pages/SelfPickupScan/SelfPickupScan"
}
]
},
{
type: 1,
name: "配送",
minilist: [
{
icon: "http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png",
name: "装车扫描",
router: "/pagesHome/pages/LoadingScan/LoadingScan"
},
{
icon: "http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png",
name: "签收扫描",
router: "/pagesHome/pages/signinScan/signinScan"
}
]
},
{
type: 1,
name: "离线上传",
minilist: [
{
icon: "http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png",
name: "离线上传",
router: "/pagesHome/pages/OfflineUpload/OfflineUpload"
}
]
}
]
});
let details = vue.reactive({ tablist: [] });
function gopathpage(path) {
uni.navigateTo({
url: path
@ -7550,7 +7435,7 @@ This will fail in production if not fixed.`);
}
uni.removeStorageSync(item);
});
uni.navigateTo({
uni.reLaunch({
url: "/pages/login/login"
});
formatAppLog("log", "at pages/user/user.vue:169", res.currentSize);
@ -22130,6 +22015,18 @@ This will fail in production if not fixed.`);
}
});
});
onPullDownRefresh(() => {
setTimeout(() => {
details.scancode = "";
details.allocationId = "";
details.dtilobj = {};
details.obldate = {};
details.trayCode = "";
details.scanlist = [];
details.isshowtot = false;
uni.stopPullDownRefresh();
}, 1e3);
});
function goorderdetail(item) {
uni.navigateTo({
url: "/pagesHome/pages/orderDetails/orderDetails?orderCode=" + item.orderCode
@ -22150,7 +22047,7 @@ This will fail in production if not fixed.`);
details.scanlist.map((item) => {
details.codenumer += item.shelfNum;
});
formatAppLog("log", "at pagesHome/pages/Relocation/Relocation.vue:294", details.codenumer);
formatAppLog("log", "at pagesHome/pages/Relocation/Relocation.vue:310", details.codenumer);
});
async function scandata() {
let res = null;
@ -22174,7 +22071,7 @@ This will fail in production if not fixed.`);
if (res.code == 200) {
details.trayCode = details.scancode;
details.scanlist = res.data.list;
formatAppLog("log", "at pagesHome/pages/Relocation/Relocation.vue:319", "details.scanlist :>> ", details.scanlist);
formatAppLog("log", "at pagesHome/pages/Relocation/Relocation.vue:335", "details.scanlist :>> ", details.scanlist);
details.obldate = res.data;
}
} else if (details.pagetype == "2") {
@ -22190,6 +22087,10 @@ This will fail in production if not fixed.`);
}
async function uplist() {
let res = null;
uni.showLoading({
mask: true,
title: "移库中"
});
if (details.pagetype == "1") {
let data = {
allocationId: details.allocationId,
@ -22203,7 +22104,12 @@ This will fail in production if not fixed.`);
};
res = await warehouseUpdownTypemoveAllocationPackageList(data);
}
uni.hideLoading();
if (res.code == 200) {
uni.showToast({
title: "移库成功",
icon: "success"
});
details.scancode = "";
details.allocationId = "";
details.dtilobj = {};
@ -22211,6 +22117,11 @@ This will fail in production if not fixed.`);
details.trayCode = "";
details.scanlist = [];
details.isshowtot = false;
} else {
uni.showToast({
title: "移库失败",
icon: "error"
});
}
}
function setstate(flg) {
@ -22829,6 +22740,21 @@ This will fail in production if not fixed.`);
}
});
});
onPullDownRefresh(() => {
setTimeout(() => {
details.scancode = "";
details.allocationId = "";
details.datalist = [];
details.reqobj = {};
details.uplistarr = [];
details.waybillCode = "";
details.codelist = [];
details.Marketlist = [];
details.checkmakindex = 0;
details.checkinarr = [];
uni.stopPullDownRefresh();
}, 1e3);
});
vue.watchEffect(() => {
if (Number(details.upshelfScanType) == 1 || Number(details.upshelfScanType) == 2) {
details.uplistarr = fn2(details.uplistarr, "orderCode");
@ -22882,7 +22808,7 @@ This will fail in production if not fixed.`);
warehouseCode: "LQ"
};
let res = await warehouseTrayTypefindAllMarket(data);
formatAppLog("log", "at pagesHome/pages/PeopleScanUp/PeopleScanUp.vue:395", res.data);
formatAppLog("log", "at pagesHome/pages/PeopleScanUp/PeopleScanUp.vue:416", res.data);
details.Marketlist = res.data;
}
async function scanlist() {
@ -22902,7 +22828,7 @@ This will fail in production if not fixed.`);
};
response = await warehouseUpdownTypegetStockByParam(data);
}
formatAppLog("log", "at pagesHome/pages/PeopleScanUp/PeopleScanUp.vue:416", response);
formatAppLog("log", "at pagesHome/pages/PeopleScanUp/PeopleScanUp.vue:437", response);
details.codelist = response.data;
details.codelist.map((item) => {
item["enterNum"] = 0;
@ -22930,7 +22856,7 @@ This will fail in production if not fixed.`);
allocationId: details.scancode
};
let res = await warehouseUpdownTypeupShelfScanAllocation(data);
formatAppLog("log", "at pagesHome/pages/PeopleScanUp/PeopleScanUp.vue:455", res);
formatAppLog("log", "at pagesHome/pages/PeopleScanUp/PeopleScanUp.vue:476", res);
if (res.code == 200) {
details.reqobj = res.data;
details.allocationId = res.data.allocationId;
@ -22975,6 +22901,10 @@ This will fail in production if not fixed.`);
});
return;
}
uni.showLoading({
mask: true,
title: "上架中"
});
let res;
details.uplistarr.map((item) => {
if (item.enterNum > item.totalNumber) {
@ -22994,6 +22924,7 @@ This will fail in production if not fixed.`);
};
res = await warehouseUpdownTypeupShelfStockList(data);
}
uni.hideLoading();
if (res.code == 200) {
uni.showToast({
title: "上架成功",
@ -23003,6 +22934,11 @@ This will fail in production if not fixed.`);
details.scancode = details.allocationId;
details.allocationId = "";
scandata();
} else {
uni.showToast({
title: "上架失败",
icon: "error"
});
}
tip.value.setisshow(false);
},
@ -23473,36 +23409,31 @@ This will fail in production if not fixed.`);
256
/* UNKEYED_FRAGMENT */
)) : vue.createCommentVNode("v-if", true),
vue.unref(checkstate) == 3 && vue.unref(reqobj).trayCode ? (vue.openBlock(), vue.createElementBlock(
vue.Fragment,
{ key: 2 },
vue.renderList([1], (item) => {
return vue.createElementVNode("view", { class: "item1" }, [
vue.createElementVNode("view", null, [
vue.createElementVNode("image", { src: "/pagesHome/static/kuweiicon.png" }),
vue.createElementVNode(
"view",
null,
"托盘码:" + vue.toDisplayString(vue.unref(reqobj).trayCode),
1
/* TEXT */
)
]),
vue.createElementVNode("view", null, [
vue.createElementVNode("image", { src: "/pagesHome/static/scanicon.png" }),
vue.createElementVNode(
"view",
null,
"扫码包数:" + vue.toDisplayString(vue.unref(reqobj).trayNum),
1
/* TEXT */
)
])
]);
}),
64
/* STABLE_FRAGMENT */
)) : vue.createCommentVNode("v-if", true)
vue.unref(checkstate) == 3 && vue.unref(reqobj).trayCode ? (vue.openBlock(), vue.createElementBlock("view", {
key: 2,
class: "item1"
}, [
vue.createElementVNode("view", null, [
vue.createElementVNode("image", { src: "/pagesHome/static/kuweiicon.png" }),
vue.createElementVNode(
"view",
null,
"托盘码:" + vue.toDisplayString(vue.unref(reqobj).trayCode),
1
/* TEXT */
)
]),
vue.createElementVNode("view", null, [
vue.createElementVNode("image", { src: "/pagesHome/static/scanicon.png" }),
vue.createElementVNode(
"view",
null,
"扫码包数:" + vue.toDisplayString(vue.unref(reqobj).trayNum),
1
/* TEXT */
)
])
])) : vue.createCommentVNode("v-if", true)
])
])
]),
@ -24203,6 +24134,18 @@ This will fail in production if not fixed.`);
}
});
});
onPullDownRefresh(() => {
setTimeout(() => {
details.scantype = 1;
details.beilist = {};
details.newbeilist = {};
details.scancode = "";
details.renderList = [];
details.mergeTray = "";
details.newmergeTray = "";
uni.stopPullDownRefresh();
}, 1e3);
});
function setstate(state) {
details.scantype = state;
}
@ -24274,11 +24217,16 @@ This will fail in production if not fixed.`);
content: "是否确认合并?",
confirmTxt: "合并",
success: async () => {
uni.showLoading({
mask: true,
title: "合并中"
});
let data = {
sourceTrayCode: details.mergeTray,
targetTrayCode: details.newmergeTray
};
let res = await warehouseTrayTypemergeTray(data);
uni.hideLoading();
if (res.code == 200) {
utils.ttsspke("合托成功");
uni.navigateTo({
@ -25056,6 +25004,11 @@ This will fail in production if not fixed.`);
details.scancode = "";
details.resdata = {};
details.isallcheck = false;
} else {
uni.showToast({
icon: "error",
title: "下架失败"
});
}
uni.hideLoading();
}
@ -26159,6 +26112,13 @@ This will fail in production if not fixed.`);
}
});
});
onPullDownRefresh(() => {
setTimeout(() => {
details.datalist = [];
details.trayCodes = "";
uni.stopPullDownRefresh();
}, 1e3);
});
async function scandata() {
var _a, _b, _c, _d;
let data = {
@ -26166,7 +26126,7 @@ This will fail in production if not fixed.`);
};
let res = await warehouseTrayTypetrayToNullScanTrayCode(data);
if (res.code == 200) {
formatAppLog("log", "at pagesHome/pages/RemoveTray/RemoveTray.vue:93", res);
formatAppLog("log", "at pagesHome/pages/RemoveTray/RemoveTray.vue:103", res);
details.datalist = (_a = res.data) == null ? void 0 : _a.list;
details.statetype = (_b = res.data) == null ? void 0 : _b.type;
if (((_d = (_c = res.data) == null ? void 0 : _c.list) == null ? void 0 : _d.length) > 0) {
@ -26182,10 +26142,22 @@ This will fail in production if not fixed.`);
isshow: true,
isshowcancel: true,
success: async () => {
if (!details.trayCodes) {
tip.value.setisshow(false);
return uni.showToast({
icon: "error",
title: "托盘码为空"
});
}
let data = {
trayCode: details.trayCodes
};
uni.showLoading({
mask: true,
title: "提交中"
});
let res = await warehouseTrayTypetrayToNull(data);
uni.hideLoading();
if (res.code == 200) {
tip.value.setdetails({
title: "提示",
@ -26207,6 +26179,11 @@ This will fail in production if not fixed.`);
details.datalist = [];
details.trayCodes = "";
tip.value.setisshow(false);
} else {
uni.showToast({
icon: "error",
title: "空置失败"
});
}
},
cancel: () => {
@ -27028,12 +27005,21 @@ This will fail in production if not fixed.`);
}
async function uplist() {
let res = null;
uni.showLoading({
title: "移库中",
mask: true
});
let data = {
allocationId: details.allocationId,
targetAllocationId: details.targetAllocationId
};
res = await warehouseUpdownTypemoveAllocationByAllocation(data);
uni.hideLoading();
if (res.code == 200) {
uni.showToast({
title: "移库成功",
icon: "success"
});
details.scancode = "";
details.scancode1 = "";
details.allocationId = "";
@ -27043,6 +27029,11 @@ This will fail in production if not fixed.`);
details.trayCode = "";
details.scanlist = [];
details.isshowtot = false;
} else {
uni.showToast({
title: "移库失败",
icon: "error"
});
}
}
function setstate(flg) {

22
unpackage/dist/dev/app-plus/manifest.json vendored

@ -7,8 +7,8 @@
"id": "__UNI__EB22F37",
"name": "货无忧",
"version": {
"name": "1.0.1",
"code": 101
"name": "1.0.2",
"code": 102
},
"description": "",
"developer": {
@ -214,24 +214,6 @@
"selectedIconPath": "/static/TabberIcon/icon1check.png",
"text": "工作台"
},
{
"pagePath": "pages/taskList/taskList",
"iconPath": "/static/TabberIcon/icon2.png",
"selectedIconPath": "/static/TabberIcon/icon2check.png",
"text": "任务"
},
{
"pagePath": "pages/reportForms/reportForms",
"iconPath": "/static/TabberIcon/icon3.png",
"selectedIconPath": "/static/TabberIcon/icon3check.png",
"text": "报表"
},
{
"pagePath": "pages/news/news",
"iconPath": "/static/TabberIcon/icon4.png",
"selectedIconPath": "/static/TabberIcon/icon4check.png",
"text": "消息"
},
{
"pagePath": "pages/user/user",
"iconPath": "/static/TabberIcon/icon5.png",

Loading…
Cancel
Save