出库更新,版本更新

This commit is contained in:
2024-04-26 08:31:39 +08:00
parent 9d80c4978a
commit 4fd9d9638b
2 changed files with 15 additions and 4 deletions

View File

@@ -2,8 +2,8 @@
"name" : "干巷仓库APP", "name" : "干巷仓库APP",
"appid" : "__UNI__A67E78B", "appid" : "__UNI__A67E78B",
"description" : "", "description" : "",
"versionName" : "2.1.3", "versionName" : "2.1.4",
"versionCode" : 213, "versionCode" : 214,
"transformPx" : false, "transformPx" : false,
"app-plus" : { "app-plus" : {
"usingComponents" : true, "usingComponents" : true,

View File

@@ -40,8 +40,10 @@
<u-popup :customStyle="{padding:'10px'}" mode="center" round closeable safeAreaInsetTop <u-popup :customStyle="{padding:'10px'}" mode="center" round closeable safeAreaInsetTop
:show="showPopup" @close="popupClose" @open="popupOpen"> :show="showPopup" @close="popupClose" @open="popupOpen">
<view> <view>
<u-list width="300px" height="240px"> <u-list width="300px" height="240px">
<u-list-item v-for="(item, index) in outOrderPlanList" :key="index"> <u-empty mode="data" v-if="outOrderPlanList.length === 0 && !loading" text="出库计划未生成,请先生成出库计划" textSize="36"></u-empty>
<u-list-item v-else v-for="(item, index) in outOrderPlanList" :key="index">
<u-cell> <u-cell>
<view slot="title"> <view slot="title">
<u-row> <u-row>
@@ -58,8 +60,10 @@
</view> </view>
<view slot="label"> <view slot="label">
<u--text size="30" :text="'物料号:'+item.partnumber"></u--text> <u--text size="30" :text="'物料号:'+item.partnumber"></u--text>
<u--text size="30" :text="'仓库编号:'+item.warehouseCode"></u--text>
<u--text size="30" type="info" :text="'描述:'+item.description"></u--text> <u--text size="30" type="info" :text="'描述:'+item.description"></u--text>
<u--text size="30" type="primary" :text="'需求零件数:' + item.requireNum"></u--text> <u--text size="30" type="primary"
:text="'计划需求零件数:' + item.requireNum"></u--text>
<u--text size="30" type="info" <u--text size="30" type="info"
:text="'库存现有箱数:' + item.packageNum + ' 库存现有零件数:' + item.partnumberNum"></u--text> :text="'库存现有箱数:' + item.packageNum + ' 库存现有零件数:' + item.partnumberNum"></u--text>
<u--text size="30" type="warning" <u--text size="30" type="warning"
@@ -514,6 +518,10 @@
}, },
// 获取计划 // 获取计划
getPlan() { getPlan() {
this.loading = true;
setTimeout(() => {
this.loading = false;
}, 30000)
this.outOrderPlanList = []; this.outOrderPlanList = [];
const data = { const data = {
shipment_num: this.outInfo.shipmentNum, shipment_num: this.outInfo.shipmentNum,
@@ -522,6 +530,9 @@
WarehoseApi.getOutOrderPlanAndOutProductionNum(data).then(res => { WarehoseApi.getOutOrderPlanAndOutProductionNum(data).then(res => {
if (res.code === 200) { if (res.code === 200) {
this.outOrderPlanList = res.data; this.outOrderPlanList = res.data;
this.loading = false;
}else{
this.loading = false;
} }
}) })
} }