出入库状态戳

pull/2/head
qiuhongwu 9 months ago
parent 9e24c192cc
commit 3445125133

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

@ -1,9 +1,14 @@
<template>
<!-- 入库 -->
<el-card class="hl-card">
<el-card class="hl-card" style="position: relative">
<template #header>
<span v-text="dialogTitle"></span>
</template>
<div class="abstatus">
<img src="/src/assets/imgs/status/status2.png" v-if="formData.status == 2" alt="" />
<img src="/src/assets/imgs/status/statuszf.png" v-else-if="formData.status == 3" alt="" />
<span v-else></span>
</div>
<el-form
ref="formRef"
:model="formData"
@ -517,7 +522,6 @@ const subFormRules = reactive({
storageOkQty: [{ required: true, message: '入库数量不能为空', trigger: 'blur' }]
})
const handleStatus = async (num) => {
//
await formRef.value.validate()
if (formData.value.matItemDOList.length === 0) {
@ -579,7 +583,6 @@ const handleStatus = async (num) => {
query.type = 'update'
query.id = formData.value.id
reload()
}
const userList = ref<UserApi.UserVO[]>([]) //
@ -671,7 +674,6 @@ const saveFormData = async () =>{
}
formData.value = await StorageApi.getStorage(storageid.value)
message.success(t(commonResult))
} finally {
formLoading.value = false
}
@ -697,7 +699,7 @@ const submitForm = async () => {
query.id = storageid.value
formData.value.id = storageid.value
//
reload();
reload()
}
var matCount = 1
@ -866,7 +868,6 @@ onMounted(async () => {
isShowBtnDelete.value = false
}
//
const queryParamsRg = reactive({
pageNo: 1,

@ -1,9 +1,14 @@
<template>
<!-- 出库 -->
<el-card class="hl-card">
<el-card class="hl-card" style="position: relative">
<template #header>
<span v-text="dialogTitle"></span>
</template>
<div class="abstatus">
<img src="/src/assets/imgs/status/status2.png" v-if="formData.status == 2" alt="" />
<img src="/src/assets/imgs/status/statuszf.png" v-else-if="formData.status == 3" alt="" />
<span v-else></span>
</div>
<el-form
ref="formRef"
:model="formData"
@ -177,7 +182,12 @@
/>
</template>
</el-table-column>
<el-table-column prop="matSpec" label="规格/型号" min-width="120" align="center" />
<el-table-column
prop="matSpec"
label="规格/型号"
min-width="120"
align="center"
/>
<el-table-column prop="matUnit" label="系统单位" min-width="120" align="center">
<template #default="scope">
@ -489,7 +499,6 @@ const subFormRules = reactive({
storageOkQty: [{ required: true, message: '出库数量不能为空', trigger: 'blur' }]
})
const handleStatus = async (num) => {
//
await formRef.value.validate()
if (formData.value.matItemDOList.length === 0) {
@ -660,9 +669,6 @@ const saveFormData = async () =>{
}
formData.value = await StorageApi.getStorage(storageid.value)
message.success(t(commonResult))
} finally {
formLoading.value = false
}
@ -712,7 +718,6 @@ const onAddItem = () => {
}
matCount = matCount + 1
formData.value.matItemDOList.push(newData)
} else {
message.alertWarning('请选择出库仓库')
@ -748,11 +753,14 @@ const handleWh = async (wid) => {
let matParams = {
pageNo: 1,
pageSize: 99,
status: "1"
status: '1'
}
const dataMat = await MaterialApi.getMaterialPage(matParams)
matList.value = []
matList.value = dataMat.list.filter((item) => matLastRemoteData.find((fish) => fish.matId === item.id && fish.whId == wid) !== undefined)
matList.value = dataMat.list.filter(
(item) =>
matLastRemoteData.find((fish) => fish.matId === item.id && fish.whId == wid) !== undefined
)
formData.value.matItemDOList = []
// formData.value.matItemDOList.forEach(item => {
@ -792,7 +800,12 @@ const remoteMatCodeSearch = async (name) => {
const dataMat = await MaterialApi.getMaterialPage(matParams)
matList.value = []
matList.value = dataMat.list.filter((item) => matLastRemoteData.find((fish) => fish.matId === item.id && fish.whId == formData.value.whId) !== undefined)
matList.value = dataMat.list.filter(
(item) =>
matLastRemoteData.find(
(fish) => fish.matId === item.id && fish.whId == formData.value.whId
) !== undefined
)
matSelectLoading.value = false
}
@ -862,8 +875,6 @@ onMounted(async () => {
dialogTitle.value = t('action.' + query.type)
dialogTitle.value = query.type === 'review' ? '查看' : dialogTitle.value
//-------------------
const data = await WarehouseApi.getWarehouseSimpList()
warehouseList.value = data

Loading…
Cancel
Save