操作成功
This commit is contained in:
@@ -114,14 +114,14 @@
|
||||
}
|
||||
try {
|
||||
let res = await emptyConfirm(this.pkObj, this.qty, this.val1, '2')
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
this.disabled = false
|
||||
this.pkId = ''
|
||||
this.pkObj = {}
|
||||
this._queryMaterialInfo()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
|
||||
@@ -114,14 +114,14 @@
|
||||
}
|
||||
try {
|
||||
let res = await emptyConfirm(this.pkObj, this.qty, this.val1, '1')
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
this.disabled = false
|
||||
this.pkId = ''
|
||||
this.pkObj = {}
|
||||
this._queryMaterialInfo()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
|
||||
@@ -112,14 +112,14 @@
|
||||
}
|
||||
try {
|
||||
let res = await needEmptyAxis(this.pkObj)
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
this.disabled1 = false
|
||||
this.pkId = ''
|
||||
this.pkObj = {}
|
||||
this._queryRawFoilList()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled1 = false
|
||||
}
|
||||
@@ -132,14 +132,14 @@
|
||||
}
|
||||
try {
|
||||
let res = await confirmBlanking(this.pkObj)
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
this.disabled2 = false
|
||||
this.pkId = ''
|
||||
this.pkObj = {}
|
||||
this._queryRawFoilList()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled2 = false
|
||||
}
|
||||
|
||||
@@ -47,8 +47,8 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(e, i) in dataList" :key="i" @click="toCheck(e)" :class="{'checked': e.package_box_SN === pkId}">
|
||||
<td>{{e.package_box_SN}}</td>
|
||||
<tr v-for="(e, i) in dataList" :key="i">
|
||||
<td>{{package_box_sn}}</td>
|
||||
<td>{{e.container_name}}</td>
|
||||
<td>{{e.product_name}}</td>
|
||||
<td>{{e.product_description}}</td>
|
||||
@@ -60,8 +60,8 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="submit-bar">
|
||||
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled" @tap="_stConfirm">入库确认</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled1" @tap="_stPrint">补码</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': dataList.length === 0}" :disabled="disabled" @tap="_stConfirm">入库确认</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': dataList.length === 0}" :disabled="disabled1" @tap="_stPrint">补码</button>
|
||||
<button class="submit-button" @tap="_boxQuery(val1)">查询</button>
|
||||
</view>
|
||||
</view>
|
||||
@@ -82,8 +82,6 @@
|
||||
val2: '',
|
||||
isV: '0',
|
||||
dataList: [],
|
||||
pkId: '',
|
||||
pkObj: {},
|
||||
disabled: false,
|
||||
disabled1: false
|
||||
};
|
||||
@@ -104,21 +102,18 @@
|
||||
/** 确认 */
|
||||
async _stConfirm () {
|
||||
this.disabled = true
|
||||
if (!this.pkId) {
|
||||
if (this.dataList.length === 0) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await stConfirm(this.pkObj, this.val2, '2', this.isV)
|
||||
let res = await stConfirm(this.dataList, this.val2, '2', this.isV)
|
||||
this.disabled = false
|
||||
this._boxQuery(this.val1)
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
this.pkId = ''
|
||||
this.pkObj = {}
|
||||
this.disabled = false
|
||||
this._boxQuery(this.val1)
|
||||
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
@@ -126,28 +121,21 @@
|
||||
/** 补码 */
|
||||
async _stPrint () {
|
||||
this.disabled1 = true
|
||||
if (!this.pkId) {
|
||||
if (this.dataList.length === 0) {
|
||||
this.disabled1 = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await stPrint(this.pkObj)
|
||||
let res = await stPrint(this.dataList)
|
||||
this.disabled1 = false
|
||||
this._boxQuery()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
this.pkId = ''
|
||||
this.pkObj = {}
|
||||
this.disabled1 = false
|
||||
this._boxQuery()
|
||||
|
||||
} catch (e) {
|
||||
this.disabled1 = false
|
||||
}
|
||||
},
|
||||
toCheck (e) {
|
||||
this.pkId = this.pkId === e.package_box_SN ? '' : e.package_box_SN
|
||||
this.pkObj = this.pkId === e.package_box_SN ? e : {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -91,14 +91,14 @@
|
||||
this.disabled1 = true
|
||||
try {
|
||||
let res = await stoutConfirm(this.dataList, this.val1)
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
this.disabled1 = false
|
||||
this.pkId = ''
|
||||
this.pkObj = {}
|
||||
this._stivtQuery()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled1 = false
|
||||
}
|
||||
@@ -111,14 +111,14 @@
|
||||
}
|
||||
try {
|
||||
let res = await stoutPrint(this.pkObj)
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
this.disabled1 = false
|
||||
this.pkId = ''
|
||||
this.pkObj = {}
|
||||
this._stivtQuery()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled1 = false
|
||||
}
|
||||
|
||||
@@ -115,15 +115,14 @@
|
||||
}
|
||||
try {
|
||||
let res = await stConfirm(this.pkObj, this.val2, '3', this.isV, this.val3)
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
this.pkId = ''
|
||||
this.pkObj = {}
|
||||
this.disabled = false
|
||||
this._boxQuery(this.val1)
|
||||
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
|
||||
@@ -108,15 +108,14 @@
|
||||
}
|
||||
try {
|
||||
let res = await stConfirm(this.pkObj, this.val2, '1', this.isV)
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
this.pkId = ''
|
||||
this.pkObj = {}
|
||||
this.disabled = false
|
||||
this._boxQuery(this.val1)
|
||||
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
|
||||
@@ -119,15 +119,14 @@
|
||||
}
|
||||
try {
|
||||
let res = await confirmInstor(this.pkObj, this.val1, this.index)
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
this.disabled = false
|
||||
this.pkId = ''
|
||||
this.pkObj = {}
|
||||
this._coolIOQuery()
|
||||
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
|
||||
@@ -116,15 +116,14 @@
|
||||
}
|
||||
try {
|
||||
let res = await outconfirmInstor(this.pkObj, this.val1)
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
this.disabled = false
|
||||
this.pkId = ''
|
||||
this.pkObj = {}
|
||||
this._outcoolIOQuery()
|
||||
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
|
||||
@@ -93,12 +93,12 @@
|
||||
this.disabled1 = true
|
||||
try {
|
||||
let res = await virtualoutConfirm(this.dataList, this.val1)
|
||||
this.disabled1 = false
|
||||
this._virtualivtQuery()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
this.disabled1 = false
|
||||
this._virtualivtQuery()
|
||||
} catch (e) {
|
||||
this.disabled1 = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user