新购配件
This commit is contained in:
parent
17651dd7df
commit
900e8eccd9
|
|
@ -23,6 +23,12 @@
|
|||
<span style="font-size: 15px; font-weight: 800">新购入库</span>
|
||||
</div>
|
||||
<view class="line"></view>
|
||||
<uni-row :gutter="24">
|
||||
<uni-col :span="7">配件类型:</uni-col>
|
||||
<uni-col :span="16">
|
||||
<view class="cont">{{ item.maName }}</view>
|
||||
</uni-col>
|
||||
</uni-row>
|
||||
<uni-row :gutter="24">
|
||||
<uni-col :span="7">物资名称:</uni-col>
|
||||
<uni-col :span="16">
|
||||
|
|
@ -86,7 +92,7 @@ const getTableList = async () => {
|
|||
let obj = {
|
||||
id: id.value,
|
||||
taskId: taskId.value,
|
||||
keyWWord: keyWord.value,
|
||||
keyWord: keyWord.value,
|
||||
}
|
||||
const { data: res } = await getPartArrivedInfoApi(obj)
|
||||
detailsList.value = res.partTypeCheckDetailsList
|
||||
|
|
@ -100,7 +106,7 @@ const onCodingItem = (item) => {
|
|||
uni.showToast({ title: '该设备已完成入库!', icon: 'none' })
|
||||
return
|
||||
}
|
||||
|
||||
if (isDetail.value) return
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '是否确认入库?',
|
||||
|
|
@ -108,12 +114,12 @@ const onCodingItem = (item) => {
|
|||
cancelText: '取消',
|
||||
success: async (res) => {
|
||||
if (res.confirm) {
|
||||
const res = await partTypeWarehouseApi({
|
||||
const res = await partTypeWarehouseApi([{
|
||||
taskId: taskId.value,
|
||||
id: item.id,
|
||||
partId: item.partId,
|
||||
purchaseNum: item.purchaseNum,
|
||||
})
|
||||
}])
|
||||
if (res.code === 200) {
|
||||
uni.showToast({
|
||||
title: '入库成功!',
|
||||
|
|
|
|||
|
|
@ -71,9 +71,9 @@
|
|||
>
|
||||
</uni-row>
|
||||
<uni-row :gutter="24">
|
||||
<uni-col :span="7">验收数量:</uni-col>
|
||||
<uni-col :span="7">采购数量:</uni-col>
|
||||
<uni-col :span="17"
|
||||
><div class="cont">{{ item.checkMaNumber }}</div></uni-col
|
||||
><div class="cont">{{ item.purchaseMaNumber }}</div></uni-col
|
||||
>
|
||||
</uni-row>
|
||||
<div class="storage-info">
|
||||
|
|
@ -83,7 +83,7 @@
|
|||
</div>
|
||||
<div class="storage-item">
|
||||
<span class="label">待入库:</span>
|
||||
<span class="value">{{ item.purchaseMaNumber || 0 }}</span>
|
||||
<span class="value">{{ Number(item.purchaseMaNumber) - Number(item.inputMaNumber) || 0 }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue