手工退料
This commit is contained in:
@@ -20,6 +20,54 @@
|
|||||||
<uni-data-select v-model="index4" :localdata="options4" @change="selectChange4"></uni-data-select>
|
<uni-data-select v-model="index4" :localdata="options4" @change="selectChange4"></uni-data-select>
|
||||||
</view>
|
</view>
|
||||||
</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 v-show="index4 !== '2'" class="zd-row border-bottom">
|
||||||
<view class="zd-col-6">
|
<view class="zd-col-6">
|
||||||
<span class="filter_label">物料数量</span>
|
<span class="filter_label">物料数量</span>
|
||||||
@@ -42,7 +90,7 @@
|
|||||||
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 NumberInput from '@/components/NumberInput.vue'
|
import NumberInput from '@/components/NumberInput.vue'
|
||||||
import {getPdaCallEquipment, checkoutbillBackMaterial} from '@/utils/getData4.js'
|
import {getPdaCallEquipment, getMaterialSuppByDeviceCode, checkoutbillBackMaterial} from '@/utils/getData4.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar,
|
NavBar,
|
||||||
@@ -56,6 +104,7 @@
|
|||||||
index2: '',
|
index2: '',
|
||||||
options4: [{text:'退料', value:'1'}, {text:'退空桶', value: '2'}],
|
options4: [{text:'退料', value:'1'}, {text:'退空桶', value: '2'}],
|
||||||
index4: '',
|
index4: '',
|
||||||
|
currentData: {},
|
||||||
qty: null,
|
qty: null,
|
||||||
disabled: false
|
disabled: false
|
||||||
};
|
};
|
||||||
@@ -80,6 +129,7 @@
|
|||||||
selectChange2 (e) {
|
selectChange2 (e) {
|
||||||
if (e) {
|
if (e) {
|
||||||
this.index2 = e
|
this.index2 = e
|
||||||
|
this._getMaterialSuppByDeviceCode()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
selectChange4 (e) {
|
selectChange4 (e) {
|
||||||
@@ -91,9 +141,9 @@
|
|||||||
this.qty = null
|
this.qty = null
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
},
|
},
|
||||||
async _getMaterialSuppByVehicleCode () {
|
async _getMaterialSuppByDeviceCode () {
|
||||||
try {
|
try {
|
||||||
let res = await getMaterialSuppByVehicleCode(this.val2)
|
let res = await getMaterialSuppByDeviceCode(this.index2)
|
||||||
if (res.code === '200') {
|
if (res.code === '200') {
|
||||||
this.currentData = res.data
|
this.currentData = res.data
|
||||||
} else {
|
} else {
|
||||||
@@ -160,7 +210,7 @@
|
|||||||
let res = await checkoutbillBackMaterial(this.index2, this.index4, qty)
|
let res = await checkoutbillBackMaterial(this.index2, this.index4, qty)
|
||||||
if (res.code === '200') {
|
if (res.code === '200') {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: '退料提交成功,分配的入库库位是:' + res.data,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
this.clearUp()
|
this.clearUp()
|
||||||
|
|||||||
@@ -277,6 +277,12 @@ export const checkoutbillBackMaterial = (code, type, qty) => request({
|
|||||||
url:'api/checkoutbill/BackMaterial',
|
url:'api/checkoutbill/BackMaterial',
|
||||||
data: {device_code: code, task_type: type, qty: qty}
|
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({
|
export const getPdaStruct = (scode) => request({
|
||||||
url:'api/pda/iosIn/getPdaStruct',
|
url:'api/pda/iosIn/getPdaStruct',
|
||||||
|
|||||||
Reference in New Issue
Block a user