手工退料

This commit is contained in:
2026-03-03 10:47:55 +08:00
parent d7df287915
commit 0b8e3cccbd
2 changed files with 60 additions and 4 deletions

View File

@@ -20,6 +20,54 @@
<uni-data-select v-model="index4" :localdata="options4" @change="selectChange4"></uni-data-select>
</view>
</view>
<view class="zd-row border-bottom">
<view class="zd-col-7">
<span class="filter_label filter_input_disabled">料桶号</span>
</view>
<view class="zd-col-17">
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.material_code" disabled>
</view>
</view>
<view class="zd-row border-bottom">
<view class="zd-col-7">
<span class="filter_label filter_input_disabled">物料编码</span>
</view>
<view class="zd-col-17">
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.material_code" disabled>
</view>
</view>
<view class="zd-row border-bottom">
<view class="zd-col-7">
<span class="filter_label filter_input_disabled">物料名称</span>
</view>
<view class="zd-col-17">
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.material_name" disabled>
</view>
</view>
<view class="zd-row border-bottom">
<view class="zd-col-7">
<span class="filter_label filter_input_disabled">供应商编码</span>
</view>
<view class="zd-col-17">
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.material_code" disabled>
</view>
</view>
<view class="zd-row border-bottom">
<view class="zd-col-7">
<span class="filter_label filter_input_disabled">供应商名称</span>
</view>
<view class="zd-col-17">
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.material_name" disabled>
</view>
</view>
<view class="zd-row border-bottom">
<view class="zd-col-7">
<span class="filter_label filter_input_disabled">批次</span>
</view>
<view class="zd-col-17">
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.material_code" disabled>
</view>
</view>
<view v-show="index4 !== '2'" class="zd-row border-bottom">
<view class="zd-col-6">
<span class="filter_label">物料数量</span>
@@ -42,7 +90,7 @@
import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue'
import NumberInput from '@/components/NumberInput.vue'
import {getPdaCallEquipment, checkoutbillBackMaterial} from '@/utils/getData4.js'
import {getPdaCallEquipment, getMaterialSuppByDeviceCode, checkoutbillBackMaterial} from '@/utils/getData4.js'
export default {
components: {
NavBar,
@@ -56,6 +104,7 @@
index2: '',
options4: [{text:'退料', value:'1'}, {text:'退空桶', value: '2'}],
index4: '',
currentData: {},
qty: null,
disabled: false
};
@@ -80,6 +129,7 @@
selectChange2 (e) {
if (e) {
this.index2 = e
this._getMaterialSuppByDeviceCode()
}
},
selectChange4 (e) {
@@ -91,9 +141,9 @@
this.qty = null
this.disabled = false
},
async _getMaterialSuppByVehicleCode () {
async _getMaterialSuppByDeviceCode () {
try {
let res = await getMaterialSuppByVehicleCode(this.val2)
let res = await getMaterialSuppByDeviceCode(this.index2)
if (res.code === '200') {
this.currentData = res.data
} else {
@@ -160,7 +210,7 @@
let res = await checkoutbillBackMaterial(this.index2, this.index4, qty)
if (res.code === '200') {
uni.showToast({
title: res.message,
title: '退料提交成功,分配的入库库位是:' + res.data,
icon: 'none'
})
this.clearUp()

View File

@@ -277,6 +277,12 @@ export const checkoutbillBackMaterial = (code, type, qty) => request({
url:'api/checkoutbill/BackMaterial',
data: {device_code: code, task_type: type, qty: qty}
})
// PDA根据点位获取载具中物料信息
export const getMaterialSuppByDeviceCode = (dcode) => request({
url:'api/pda/iosOut/getMaterialSuppByDeviceCode',
data: {device_code: dcode}
})
// 获取库位(已弃用)
export const getPdaStruct = (scode) => request({
url:'api/pda/iosIn/getPdaStruct',