This commit is contained in:
2025-08-22 14:05:56 +08:00
parent 4a7bc7ddc1
commit 4729585448
3 changed files with 10 additions and 8 deletions

View File

@@ -35,7 +35,7 @@
</view>
<view class="zd-row submit-bar">
<button class="zd-col-6 button-default" @tap="clearUp">清空</button>
<button class="zd-col-16 button-primary" :class="{'button-info': !val1 || !val2}" :disabled="disabled" @tap="_vehicleOutConfirm">确认</button>
<button class="zd-col-16 button-primary" :class="{'button-info': !val1 || !val2}" :disabled="disabled" @tap="_loading">确认</button>
</view>
</view>
</template>
@@ -43,7 +43,7 @@
<script>
import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue'
import {getRegionByPoint, vehicleOutConfirm} from '@/utils/getData4.js'
import {getRegionByPoint, loading} from '@/utils/getData4.js'
export default {
components: {
NavBar,
@@ -54,6 +54,7 @@
title: '',
val1: '',
val2: '1',
pointCode: '',
currentData: {},
disabled: false
};
@@ -76,6 +77,7 @@
try {
let res = await getRegionByPoint(e)
if (res) {
this.pointCode = this.val1
this.val1 = res.region_code
}
} catch (e) {
@@ -90,16 +92,17 @@
clearUp () {
this.val1 = ''
this.val2 = ''
this.pointCode = ''
this.disabled = false
},
async _vehicleOutConfirm () {
async _loading () {
this.disabled = true
if (!this.val1 || !this.val2) {
this.disabled = false
return
}
try {
let res = await vehicleOutConfirm(this.val1, this.currentData.material_code, this.val2)
let res = await loading(this.pointCode, this.val1, this.currentData.material_code, this.val2)
if (res.code === '200') {
uni.showToast({
title: res.message,

View File

@@ -41,8 +41,7 @@
return {
userName: '',
menuList: [
{title: '功能管理', path: 'RF03', sonTree: [{title: '人工取货', path: '/pages/ftdl/man-get-goods'}, {title: '产线叫料', path: '/pages/ftdl/line-call-mater'}, {title: '库存锁定/解锁', path: '/pages/ftdl/kc-manage'}, {title: '定点作业', path: '/pages/ftdl/fixedpoint-work'}, {title: '作业管理', path: '/pages/ftdl/work-manage'}]},
// {title: '东丽管理', path: 'RF03', sonTree: [{title: '人工放货', path: '/pages/ftdl/man-load-goods'}, {title: '人工取货', path: '/pages/ftdl/man-get-goods'}, {title: '产线叫料', path: '/pages/ftdl/line-call-mater'}, {title: '产线下料', path: '/pages/ftdl/line-down-mater'}, {title: '库存锁定/解锁', path: '/pages/ftdl/kc-manage'}, {title: '定点作业', path: '/pages/ftdl/fixedpoint-work'}, {title: '作业管理', path: '/pages/ftdl/work-manage'}]},
{title: '东丽管理', path: 'RF03', sonTree: [{title: '人工放货', path: '/pages/ftdl/man-load-goods'}, {title: '人工取货', path: '/pages/ftdl/man-get-goods'}, {title: '产线叫料', path: '/pages/ftdl/line-call-mater'}, {title: '产线下料', path: '/pages/ftdl/line-down-mater'}, {title: '库存锁定/解锁', path: '/pages/ftdl/kc-manage'}, {title: '定点作业', path: '/pages/ftdl/fixedpoint-work'}, {title: '作业管理', path: '/pages/ftdl/work-manage'}]},
// {title: '预装管理', path: 'RF04', sonTree: [{title: '物料组盘', path: '/pages/entry/mater-group2'}, {title: '货架绑定', path: '/pages/outbound/shelf-bind'}]},
// {title: '产线管理', path: 'RF07', sonTree: [{title: '产线叫料', path: '/pages/outbound/line-callmater'}, {title: '线边仓出库', path: '/pages/outbound/mater-outstore'}, {title: '产线转运', path: '/pages/outbound/line-transfer2'}]},
// {title: '入库管理', path: 'RF01', sonTree: [{title: '物料组盘', path: '/pages/entry/mater-group'}, {title: '组盘入库', path: '/pages/entry/groupplate-instore'}, {title: '货架绑定', path: '/pages/outbound/shelf-bind'}, {title: '拣选余料回库', path: '/pages/entry/pick-yl-return-store'}, {title: '空载具入库', path: '/pages/entry/empty-vehicle-instore'}]},

View File

@@ -35,9 +35,9 @@ export const selectMaterials = (blurry) => request({
data: {blurry: blurry}
})
// 1.3叫料
export const loading = (rcode, mcode, num) => request({
export const loading = (pcode, rcode, mcode, num) => request({
url:'api/hand/loading',
data: {region_code: rcode, material_code: mcode, num: num}
data: {point_code: pcode, region_code: rcode, material_code: mcode, num: num}
})
// 产线下料