Browse Source

创建供应商发货申请和打签时需要校验物料在《供应商物料》中是否允许超发

intex_online20250327
叶佳兴 2 weeks ago
parent
commit
ae7e0186f3
  1. 2
      src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts
  2. 17
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue

2
src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts

@ -171,7 +171,7 @@ export const Supplieritem = useCrudSchemas(reactive<CrudSchema[]>([
},
form:{
componentProps:{
disabled: false
disabled: true
}
},
},

17
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue

@ -1,13 +1,12 @@
<template>
<el-dialog v-model="dialogTableVisible" title="标签" width="1100">
<div v-loading="isLoading">
<el-table
<el-table
:data="showTableData()"
border
row-key="id"
style="width: 1050px; max-height: 70vh; overflow-y: auto"
v-if="tableData.length > 0 && dialogTableVisible == true"
>
<el-table-column type="expand" width="50">
<template #default="scope">
@ -30,7 +29,12 @@
<el-table-column type="expand" width="50">
<template #default="scope1">
<div style="margin-left: 150px; margin-top: -8px; margin-bottom: -8px">
<el-table :data="scope1.row.children" border style="width: 300px" row-key="id">
<el-table
:data="scope1.row.children"
border
style="width: 300px"
row-key="id"
>
<el-table-column label="箱行号" width="100" prop="xPoNumber" align="center">
<template #default="scope2">
{{ scope2.$index + 1 }}
@ -175,11 +179,10 @@
layout="total, prev, pager, next, jumper"
:total="tableData.length"
/>
<div style="text-align: right;margin-top:10px">
<div style="text-align: right; margin-top: 10px">
<ButtonBase :Butttondata="Butttondata" @button-base-click="buttonBaseClick" />
</div>
</div>
</el-dialog>
</template>
<script setup lang="ts">
@ -588,10 +591,13 @@ const blurTwo = (oneRow, twoRow, threeRow) => {
}
//
const blurThree = (oneRow, twoRow, thereeRow) => {
console.log('yeyeye', oneRow)
if (oneRow.allowOverShipment != 'TRUE') {
if (parseFloat(thereeRow.qtyTwo) > parseFloat(oneRow.packQty)) {
message.warning('每箱个数最多' + oneRow.packQty)
thereeRow.qtyTwo = oneRow.packQty
}
}
let num = 0
twoRow.children.forEach((item) => {
num = accuracyFun.add(parseFloat(num), parseFloat(item.qtyTwo))
@ -611,7 +617,6 @@ const uomLabel = (row) => {
//
const emit = defineEmits(['submitForm'])
defineExpose({ openLabel, dialogTableVisible, isLoading }) // open
</script>
<style lang="scss" scoped>
::v-deep .row-expand-cover td .el-table__expand-icon {

Loading…
Cancel
Save