change
This commit is contained in:
@@ -123,7 +123,7 @@
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await materialBoxInventoryConfirm(this.materialData)
|
let res = await materialBoxInventoryConfirm(this.materialData)
|
||||||
if (res.code === '200') {
|
if (res) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
@@ -133,13 +133,8 @@
|
|||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/Material/dlx-pan-store?title=大料箱盘库'
|
url: '/pages/Material/dlx-pan-store?title=大料箱盘库'
|
||||||
})
|
})
|
||||||
} else {
|
|
||||||
uni.showToast({
|
|
||||||
title: res.message,
|
|
||||||
icon: 'none'
|
|
||||||
})
|
|
||||||
this.disabled = false
|
|
||||||
}
|
}
|
||||||
|
this.disabled = false
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -119,6 +119,8 @@
|
|||||||
clearUp () {
|
clearUp () {
|
||||||
this.val1 = ''
|
this.val1 = ''
|
||||||
this.val2 = ''
|
this.val2 = ''
|
||||||
|
this.kcqty = ''
|
||||||
|
this.materialData = {}
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
},
|
},
|
||||||
handleChange (e) {
|
handleChange (e) {
|
||||||
@@ -139,7 +141,7 @@
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await materialBoxOutConfirm(this.materialData.iostorinvdis_id, this.materialData.storagevehicle_code, this.materialData.struct_code, this.val2, this.materialData.plan_qty)
|
let res = await materialBoxOutConfirm(this.materialData.iostorinvdis_id, this.materialData.storagevehicle_code, this.materialData.struct_code, this.val2, this.materialData.plan_qty)
|
||||||
if (res.code === '200') {
|
if (res) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
@@ -149,13 +151,8 @@
|
|||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/Material/dlx-out-store?title=大料箱出库'
|
url: '/pages/Material/dlx-out-store?title=大料箱出库'
|
||||||
})
|
})
|
||||||
} else {
|
|
||||||
uni.showToast({
|
|
||||||
title: res.message,
|
|
||||||
icon: 'none'
|
|
||||||
})
|
|
||||||
this.disabled = false
|
|
||||||
}
|
}
|
||||||
|
this.disabled = false
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -96,19 +96,13 @@
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await vehicleIn(this.val2, this.val1, this.index)
|
let res = await vehicleIn(this.val2, this.val1, this.index)
|
||||||
if (res.code === '200') {
|
if (res) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
this.clearUp()
|
|
||||||
} else {
|
|
||||||
uni.showToast({
|
|
||||||
title: res.message,
|
|
||||||
icon: 'none'
|
|
||||||
})
|
|
||||||
this.disabled = false
|
|
||||||
}
|
}
|
||||||
|
this.clearUp()
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -124,19 +124,13 @@
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await vehicleOut(this.qty, this.val2, this.index, this.index2)
|
let res = await vehicleOut(this.qty, this.val2, this.index, this.index2)
|
||||||
if (res.code === '200') {
|
if (res) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
this.clearUp()
|
|
||||||
} else {
|
|
||||||
uni.showToast({
|
|
||||||
title: res.message,
|
|
||||||
icon: 'none'
|
|
||||||
})
|
|
||||||
this.disabled = false
|
|
||||||
}
|
}
|
||||||
|
this.clearUp()
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -105,6 +105,8 @@
|
|||||||
},
|
},
|
||||||
onLoad (options) {
|
onLoad (options) {
|
||||||
this.title = options.title
|
this.title = options.title
|
||||||
|
},
|
||||||
|
created () {
|
||||||
this._largeMaterialBoxgetType()
|
this._largeMaterialBoxgetType()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
@@ -161,7 +161,7 @@
|
|||||||
try {
|
try {
|
||||||
this.pkObj.material_qty = this.qty
|
this.pkObj.material_qty = this.qty
|
||||||
let res = await materialInConfirm(this.fobj.bill_type, this.fobj.struct_code, this.fobj.storagevehicle_code, this.tableData, this.pkObj)
|
let res = await materialInConfirm(this.fobj.bill_type, this.fobj.struct_code, this.fobj.storagevehicle_code, this.tableData, this.pkObj)
|
||||||
if (res.code === '200') {
|
if (res) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
@@ -172,13 +172,8 @@
|
|||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/Material/mater-in-store?title=物料入库'
|
url: '/pages/Material/mater-in-store?title=物料入库'
|
||||||
})
|
})
|
||||||
} else {
|
|
||||||
uni.showToast({
|
|
||||||
title: res.message,
|
|
||||||
icon: 'none'
|
|
||||||
})
|
|
||||||
this.disabled = false
|
|
||||||
}
|
}
|
||||||
|
this.disabled = false
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -74,7 +74,8 @@
|
|||||||
<td>{{e.supp_name}}</td>
|
<td>{{e.supp_name}}</td>
|
||||||
<td>{{e.material_spec}}</td>
|
<td>{{e.material_spec}}</td>
|
||||||
<td>{{e.material_model}}</td>
|
<td>{{e.material_model}}</td>
|
||||||
<td>{{e.quality_time_day}}</td>
|
<td>{{e.material_model}}</td>
|
||||||
|
<td>{{e.execution_stand}}</td>
|
||||||
<td>{{['', '待检', '合格', '不合格'][Number(e.quality_type)]}}</td>
|
<td>{{['', '待检', '合格', '不合格'][Number(e.quality_type)]}}</td>
|
||||||
<td>{{e.bake_num}}</td>
|
<td>{{e.bake_num}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -128,8 +129,8 @@
|
|||||||
try {
|
try {
|
||||||
let res = await getOutGroupInfo(this.val1)
|
let res = await getOutGroupInfo(this.val1)
|
||||||
if (res && res.data.data.length > 0) {
|
if (res && res.data.data.length > 0) {
|
||||||
this.val2 = res.data.bom_code
|
this.val2 = res.data.device_code
|
||||||
this.val3 = res.data.device_code
|
this.val3 = res.data.bom_code
|
||||||
this.dataList = res.data.data
|
this.dataList = res.data.data
|
||||||
console.log(this.dataList, 666)
|
console.log(this.dataList, 666)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user