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