拣选余料回库
This commit is contained in:
@@ -108,7 +108,7 @@
|
|||||||
try {
|
try {
|
||||||
let res = await getReturnMaterial(this.val1)
|
let res = await getReturnMaterial(this.val1)
|
||||||
if (res) {
|
if (res) {
|
||||||
this.currentData = res
|
this.currentData = res.data
|
||||||
} else {
|
} else {
|
||||||
this.currentData = {}
|
this.currentData = {}
|
||||||
}
|
}
|
||||||
@@ -143,7 +143,7 @@
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await confirmReturnMaterial(this.currentData)
|
let res = await confirmReturnMaterial(this.index, this.currentData)
|
||||||
if (res.code === '200') {
|
if (res.code === '200') {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
|
|||||||
@@ -67,8 +67,8 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="zd-row submit-bar">
|
<view class="zd-row submit-bar">
|
||||||
<button class="zd-col-6 button-default" @tap="clearUp">清空</button>
|
<button class="zd-col-6 button-default" @tap="clearUp">清空</button>
|
||||||
<button class="zd-col-8 button-primary" :class="{'button-info': !code}" :disabled="disabled" @tap="_confirm('2')">强制确认</button>
|
<button class="zd-col-8 button-primary" :class="{'button-info': !val1 || !this.currentData.group_id}" :disabled="disabled" @tap="_confirm('2')">强制确认</button>
|
||||||
<button class="zd-col-8 button-primary" :class="{'button-info': !code}" :disabled="disabled" @tap="_confirm('1')">出库确认</button>
|
<button class="zd-col-8 button-primary" :class="{'button-info': !val1 || !this.currentData.group_id}" :disabled="disabled" @tap="_confirm('1')">出库确认</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -119,7 +119,7 @@
|
|||||||
},
|
},
|
||||||
async _confirm (type) {
|
async _confirm (type) {
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
if (!this.code) {
|
if (!this.val1 || !this.currentData.group_id) {
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,9 +66,9 @@ export const getReturnMaterial = (search) => request({
|
|||||||
data: {search: search}
|
data: {search: search}
|
||||||
})
|
})
|
||||||
// 拣选余料回库确认
|
// 拣选余料回库确认
|
||||||
export const confirmReturnMaterial = (gid, code, sid) => request({
|
export const confirmReturnMaterial = (sid, obj) => request({
|
||||||
url:'api/pda/iosIn/confirmReturnMaterial',
|
url:'api/pda/iosIn/confirmReturnMaterial',
|
||||||
data: {group_id: gid, vehicle_code: code, sect_id: sid}
|
data: {sect_id: sid, obj: obj}
|
||||||
})
|
})
|
||||||
|
|
||||||
// 出库管理
|
// 出库管理
|
||||||
@@ -80,7 +80,7 @@ export const getMaterialDtl = (sid, search) => request({
|
|||||||
// 线边仓出库确认
|
// 线边仓出库确认
|
||||||
export const materialConfirm = (sid, siteCode, obj) => request({
|
export const materialConfirm = (sid, siteCode, obj) => request({
|
||||||
url:'api/pda/iosOut/materialConfirm',
|
url:'api/pda/iosOut/materialConfirm',
|
||||||
data: {sect_id: sid, siteCode: siteCode, obj}
|
data: {sect_id: sid, siteCode: siteCode, obj: obj}
|
||||||
})
|
})
|
||||||
// 产线叫料获取物料库存
|
// 产线叫料获取物料库存
|
||||||
export const linegetMaterialDtl = (rcode, search) => request({
|
export const linegetMaterialDtl = (rcode, search) => request({
|
||||||
@@ -90,7 +90,7 @@ export const linegetMaterialDtl = (rcode, search) => request({
|
|||||||
// 产线叫料确认
|
// 产线叫料确认
|
||||||
export const callMaterialConfirm = (rcode, siteCode, obj) => request({
|
export const callMaterialConfirm = (rcode, siteCode, obj) => request({
|
||||||
url:'api/pda/iosOut/callMaterialConfirm',
|
url:'api/pda/iosOut/callMaterialConfirm',
|
||||||
data: {region_code: rcode, siteCode: siteCode, obj}
|
data: {region_code: rcode, siteCode: siteCode, obj: obj}
|
||||||
})
|
})
|
||||||
// 出库确认获取物料明细
|
// 出库确认获取物料明细
|
||||||
export const iosOutgetVehicleMaterial = (search) => request({
|
export const iosOutgetVehicleMaterial = (search) => request({
|
||||||
|
|||||||
Reference in New Issue
Block a user