main
yangtingting 18 hours ago
parent dc1e50fe8a
commit ca5549f059

@ -3,6 +3,7 @@
// 伟旭
// let baseUrl = "http://192.168.200.97:9100/v1"
// let baseUrl = "http://47.119.160.181:9082/v1"
// let baseUrl = "http://192.168.12.36:8080/v1"
// let baseUrl = "http://47.119.163.201:81/v1/v1"
let baseUrl = "http://56carrier.com:80/v1"
@ -20,8 +21,19 @@ export default (options) => {
data: options.params,
success: res => {
const data = res.data
console.log(res.data,'res.data')
if( data.code === 200){
resolve(data)
} else if(data.code === 401){
uni.showToast({
title: data.message,
icon: 'none'
})
uni.clearStorage()
uni.reLaunch({
url: '/pages/login/index'
})
// reject(data.msg)
} else {
uni.showToast({
title: data.message,

@ -116,12 +116,12 @@
url: href
})
} else {
this.logout()
}
// this.logout()
}
},
// 退
logout () {
uni.showModal({
logout () {
uni.showModal({
title: '提示',
content: '确定要退出吗?',
success: (res) => {

@ -191,7 +191,7 @@
async scanSuccess(code) {
//
this.ruleForm.busNo = code.trim()
this.handleContainerNoChange(false)
this.handleContainerNoChange(true)
},
getScanData() {
uni.scanCode({
@ -281,28 +281,39 @@
})
},
submitData() {
if (this.unVerifyList.length) {
this.$refs.uToast.show({
type: 'warning',
message: "请监装完所有订单号",
})
return
}
// if (this.unVerifyList.length) {
// this.$refs.uToast.show({
// type: 'warning',
// message: "",
// })
// return
// }
this.ruleForm.isSubmit = true
Api.storge.verify(this.ruleForm).then(res => {
if (res?.data?.outStatus == "1") {
uni.navigateTo({
url: `/pages/outBound/superviseLoadingImg?id=${this.orderNoForm.outId}`
})
} else {
Object.assign(this.orderNoForm, res.data)
this.ruleForm.orderNos = []
this.unVerifyList = res?.data?.unVerify || []
if (res?.data?.verifyed && Array.isArray(res?.data?.verifyed)) {
this.tabList[1].badge.value = res?.data?.verifyed.length
}
}
else {
// Object.assign(this.orderNoForm, res.data)
// this.ruleForm.orderNos = []
// this.unVerifyList = res?.data?.unVerify || []
// if (res?.data?.verifyed && Array.isArray(res?.data?.verifyed)) {
// this.tabList[1].badge.value = res?.data?.verifyed.length
// }
this.$refs.uToast.show({
type: 'warning',
message: "请监装完所有订单号",
})
}
})
}) .catch(err => {
// Display an error message using the toast component if the API call fails
this.$refs.uToast.show({
type: 'error',
message: err.message || '提交失败,请重试。',
});
});
}
}

@ -91,16 +91,20 @@
this.$refs.ruleFormRef.validate().then(valid => {
Api.storge.unload(this.ruleForm).then(res => {
if (res?.data && Array.isArray(res?.data?.orderNos)) {
uni.navigateTo({
url: `/pages/outStock/dischargeDetail?data=${JSON.stringify({...res.data,orderNo:this.ruleForm.orderNo})}`
})
} else {
this.ruleForm.orderNo = ""
uni.navigateTo({
url: "/pages/outStock/recordingVolume?name=discharge"
})
}
this.$refs.uToast.show({
type: 'success',
message: "提交卸货成功",
})
// if (res?.data && Array.isArray(res?.data?.orderNos)) {
// uni.navigateTo({
// url: `/pages/outStock/dischargeDetail?data=${JSON.stringify({...res.data,orderNo:this.ruleForm.orderNo})}`
// })
// } else {
// this.ruleForm.orderNo = ""
// uni.navigateTo({
// url: "/pages/outStock/recordingVolume?name=discharge"
// })
// }
})
})
}

@ -11,7 +11,7 @@
@scanIcon="getScanData" clearable placeholder="请输入订单号" v-model="ruleForm.orderNo" shape="round"
:showAction="false">
</u-search>
<button type="primary" class="btn" @tap="submitData"></button>
<button type="primary" class="btn" @tap="submitData"></button>
</u-form>
</view>
<u-toast ref="uToast"></u-toast>

@ -15,7 +15,7 @@
</view>
<fuzzy-list label-name="optionText" value-name="optionValue" align="center" no-data="" :show="show"
:list="list" :custom-style="{ fontSize: '30rpx' }" @select="select"></fuzzy-list>
<u-form-item label="库位号" style="margin-top: 10px;">
<u-form-item label="库位号" style="margin-top: 10px;">
<view style="display: flex;flex-wrap: wrap;width: 60%;">
<view v-for="(item,index) in ruleForm.locationList" style="display: flex;align-items: center;">
<view v-show="ruleForm.locationList.length">{{item}}</view>
@ -155,7 +155,9 @@
message: "提交入库成功",
})
this.ruleForm.locationList = []
uni.navigateTo({
url: `/pages/outStock/forkliftWarehousing`
})
})
}

@ -150,10 +150,10 @@
name: '卸货',
type: 1
},
{
name: '录入材积',
type: 3
},
// {
// name: '',
// type: 3
// },
{
name: '打板',
type: 2

Loading…
Cancel
Save