优化新购入库审核问题

This commit is contained in:
BianLzhaoMin 2024-08-15 11:08:40 +08:00
parent 88353bf755
commit eaf4f5896b
7 changed files with 193 additions and 271 deletions

7
.env.development Normal file
View File

@ -0,0 +1,7 @@
# 开发环境配置
ENV = 'development'
# 若依管理系统/开发环境
VUE_APP_BASE_API = '/dev-api'

5
.env.production Normal file
View File

@ -0,0 +1,5 @@
# 生产环境配置
ENV = 'production'
# 若依管理系统/生产环境
VUE_APP_BASE_API = '/dev-api'

View File

@ -4,6 +4,8 @@
// app // app
plus.screen.lockOrientation('portrait-primary') plus.screen.lockOrientation('portrait-primary')
console.log('App Launch') console.log('App Launch')
console.log(process.env.NODE_ENV,'当前运行环境····')
}, },
onShow: function() { onShow: function() {
console.log('App Show') console.log('App Show')

View File

@ -1,6 +1,8 @@
const ENV = process.env.NODE_ENV
class HttpConfig { class HttpConfig {
// #ifdef H5 // #ifdef H5
baseUrl = "/api" // baseUrl = "/api"
// #endif // #endif
// #ifdef APP-PLUS // #ifdef APP-PLUS
// baseUrl = "http://112.29.103.165:21624" // baseUrl = "http://112.29.103.165:21624"
@ -15,17 +17,20 @@ class HttpConfig {
// baseUrl = "http://10.40.92.52:28080" // baseUrl = "http://10.40.92.52:28080"
// baseUrl = "http://10.40.92.140:28080" // baseUrl = "http://10.40.92.140:28080"
// baseUrl = "https://z.csgmall.com.cn/gl" // baseUrl = "https://z.csgmall.com.cn/gl"
baseUrl = "http://192.168.2.160:39080" // 梁超 // baseUrl = "http://192.168.2.160:39080" // 梁超
// baseUrl = "http://192.168.2.218:39080" // 福
target = "http://192.168.2.218:39080" // 开发阶段后台ip
// #endif // #endif
// 基地址 (部署时使用 需要加 dev-api // 基地址 (部署时使用 需要加 dev-api
// authPath = `${this.baseUrl}/dev-api/auth` // authPath = `${this.baseUrl}/dev-api/auth`
// systemPath = `${this.baseUrl}/dev-api/system` // systemPath = `${this.baseUrl}/dev-api/system`
// basePath = `${this.baseUrl}/dev-api/base` // basePath = `${this.baseUrl}/dev-api/base`
// materialPath = `${this.baseUrl}/dev-api/material` // materialPath = `${this.baseUrl}/dev-api/material`
authPath = `${this.baseUrl}/auth` baseUrl = ENV === 'production' ? '/api' : target
systemPath = `${this.baseUrl}/system` authPath = ENV === 'production' ? `${this.baseUrl}/dev-api/auth` : `${this.baseUrl}/auth`
basePath = `${this.baseUrl}/material/base` systemPath = ENV === 'production' ? `${this.baseUrl}/dev-api/system` : `${this.baseUrl}/system`
materialPath = `${this.baseUrl}/material` basePath = ENV === 'production' ? `${this.baseUrl}/dev-api/material/base` : `${this.baseUrl}/material/base`
materialPath = ENV === 'production' ? `${this.baseUrl}/dev-api/material` : `${this.baseUrl}/material`
// 短链 // 短链
serviceUrl = { serviceUrl = {
login: { login: {

View File

@ -3,12 +3,12 @@
<view class="dataInfo"> <view class="dataInfo">
<view class="dataList" v-for="(item, index) in list" :key="index"> <view class="dataList" v-for="(item, index) in list" :key="index">
<view class="info-upper"> <view class="info-upper">
<checkbox-group <!-- <checkbox-group
@change="checkClick(item)" @change="checkClick(item)"
style="margin-right: 15rpx" style="margin-right: 15rpx"
v-show="item.status == '0'"> v-show="item.status == '0'">
<checkbox :checked="item.checked" /> <checkbox :checked="item.checked" />
</checkbox-group> </checkbox-group> -->
<view class="details"> <view class="details">
<view class="text"> <view class="text">
<text <text
@ -23,7 +23,7 @@
>规格型号</span >规格型号</span
>{{ item.specificationType }}</text >{{ item.specificationType }}</text
> >
<text <text v-if="item.CNstatus !== '已入库'"
><span ><span
style="padding-right: 20rpx; color: #a6a6a6" style="padding-right: 20rpx; color: #a6a6a6"
>待入库数量</span >待入库数量</span
@ -65,25 +65,26 @@
</view> </view>
<!-- <button @click="delCart">删除</button> --> <!-- <button @click="delCart">删除</button> -->
<view class="buy"> <view class="buy">
<view class="checked"> <!-- <view class="checked">
<checkbox-group @tap="checkAll"> <checkbox-group @tap="checkAll">
<checkbox :checked="allChecked" /> <checkbox :checked="allChecked" />
</checkbox-group> </checkbox-group>
<text>全选</text> <text>全选</text>
</view> </view> -->
<view style="display: flex"> <!-- <view style="display: flex"> -->
<!-- <view class="total" style="margin-right: 15rpx;"> <!-- <view class="total" style="margin-right: 15rpx;">
<view class="bill" @click="bindCode"> <view class="bill" @click="bindCode">
<text>绑定</text> <text>绑定</text>
</view> </view>
</view> --> </view> -->
<!-- </view> -->
<view class="total"> <view class="total">
<view class="bill" @click="finishCart"> <view class="bill" @click="finishCart">
<text>审核</text> <text>审核</text>
</view> </view>
</view> </view>
</view> </view>
</view>
<uni-popup ref="popup" type="center" :mask-click="false"> <uni-popup ref="popup" type="center" :mask-click="false">
<view class="popup"> <view class="popup">
<view class="pop-top"> <view class="pop-top">
@ -101,10 +102,10 @@
font-weight: normal; font-weight: normal;
text-align: center; text-align: center;
"> ">
是否通过审批 是否确认入库
</h4> </h4>
<view class="select-area"> <view class="select-area">
<view @click="modalConfirm">通过</view> <view @click="modalConfirm">确认</view>
<view @click="modalReject">驳回</view> <view @click="modalReject">驳回</view>
<!-- <uni-forms ref="examForm" :modelValue="examFormData" :rules="rules" label-position="top"> <!-- <uni-forms ref="examForm" :modelValue="examFormData" :rules="rules" label-position="top">
<uni-forms-item name="ifPass" required label="是否通过" label-width="150"> <uni-forms-item name="ifPass" required label="是否通过" label-width="150">
@ -208,11 +209,21 @@
}, },
finishCart() { finishCart() {
let that = this; let that = this;
that.totalGoods = that.list // that.totalGoods = that.list
.filter((item) => { // .filter((item) => {
return item.checked == true; // return item.checked == true;
}) // })
.map((subItem) => { // .map((subItem) => {
// return {
// typeId: subItem["typeId"],
// maId: subItem["maId"],
// maCode: subItem["maCode"],
// inputNum: subItem["checkNum"],
// companyId: subItem["companyId"],
// manageType: subItem["manageType"],
// };
// });
that.totalGoods = that.list.map((subItem) => {
return { return {
typeId: subItem["typeId"], typeId: subItem["typeId"],
maId: subItem["maId"], maId: subItem["maId"],
@ -337,7 +348,7 @@
title: res.data.msg, title: res.data.msg,
success: () => { success: () => {
that.closePopup(); that.closePopup();
uni.navigateBack(); // uni.navigateBack();
}, },
}); });
} else { } else {
@ -346,14 +357,15 @@
icon: "none", icon: "none",
title: res.data.msg, title: res.data.msg,
}); });
setTimeout(() => {
uni.navigateBack();
}, 500);
} }
}) })
.catch((err) => { .catch((err) => {
console.log(err); console.log(err);
})
.finally(() => {
setTimeout(() => {
uni.navigateBack();
}, 500);
}); });
}, },
fetchNewList() { fetchNewList() {
@ -545,7 +557,7 @@
.buy { .buy {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: flex-end;
position: fixed; position: fixed;
left: 50%; left: 50%;
bottom: 0; bottom: 0;
@ -566,9 +578,10 @@
} }
.buy .total { .buy .total {
display: flex; // display: flex;
align-items: center; // align-items: center;
justify-content: space-between; // justify-content: space-between;
margin-bottom: 10rpx;
} }
.buy .total .price { .buy .total .price {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long