空载具出入库接口

This commit is contained in:
2025-08-13 09:35:04 +08:00
parent 6bdb111230
commit 24604bd356
4 changed files with 16 additions and 11 deletions

View File

@@ -96,7 +96,7 @@
this.$store.dispatch('delLoginName', '') this.$store.dispatch('delLoginName', '')
} }
this.$store.dispatch('saveUserInfo', JSON.stringify(res.data.user)) this.$store.dispatch('saveUserInfo', JSON.stringify(res.data.user))
this.$store.dispatch('saveToken', res.token) this.$store.dispatch('saveToken', res.data.token)
uni.redirectTo({ uni.redirectTo({
url: '/pages/home/home' url: '/pages/home/home'
}) })

View File

@@ -34,7 +34,7 @@
<script> <script>
import NavBar from '@/components/NavBar.vue' import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue' import SearchBox from '@/components/SearchBox.vue'
import {getSect, vehicleInConfirm} from '@/utils/getData4.js' import {getPdaSect, vehicleInConfirm} from '@/utils/getData4.js'
export default { export default {
components: { components: {
NavBar, NavBar,
@@ -53,12 +53,12 @@
this.title = options.title this.title = options.title
}, },
created () { created () {
this._getSect() this._getPdaSect()
}, },
methods: { methods: {
async _getSect () { async _getPdaSect () {
try { try {
let res = await getSect() let res = await getPdaSect()
if (res) { if (res) {
this.options = res.data this.options = res.data
} else { } else {

View File

@@ -34,7 +34,7 @@
<script> <script>
import NavBar from '@/components/NavBar.vue' import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue' import SearchBox from '@/components/SearchBox.vue'
import {getSect, iosOutvehicleOutConfirm} from '@/utils/getData4.js' import {getPdaSect, iosOutvehicleOutConfirm} from '@/utils/getData4.js'
export default { export default {
components: { components: {
NavBar, NavBar,
@@ -53,12 +53,12 @@
this.title = options.title this.title = options.title
}, },
created () { created () {
this._getSect() this._getPdaSect()
}, },
methods: { methods: {
async _getSect () { async _getPdaSect () {
try { try {
let res = await getSect() let res = await getPdaSect()
if (res) { if (res) {
this.options = res.data this.options = res.data
} else { } else {

View File

@@ -223,10 +223,15 @@ export const getPlate = (vcode) => request({
}) })
// 空载具出入库 // 空载具出入库
// 载具编码下拉框
export const getPdaSect = (scode, page, size) => request({
url:'api/pda/iosIn/getPdaSect',
data: {stor_code: scode, page: page, size: size}
})
// 空载具入库 // 空载具入库
export const vehicleInConfirm = (sectcode, sitecode) => request({ export const vehicleInConfirm = (vcode, sitecode) => request({
url:'api/pda/iosIn/vehicleInConfirm', url:'api/pda/iosIn/vehicleInConfirm',
data: {sect_code: sectcode, site_code: sitecode} data: {vehicle_code: vcode, site_code: sitecode}
}) })
// 空载具出库 // 空载具出库
export const iosOutvehicleOutConfirm = (sid, siteCode) => request({ export const iosOutvehicleOutConfirm = (sid, siteCode) => request({