Browse Source

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

intex_online20250327
叶佳兴 4 weeks ago
parent
commit
ae7e0186f3
  1. 2
      src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts
  2. 13
      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:{ form:{
componentProps:{ componentProps:{
disabled: false disabled: true
} }
}, },
}, },

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

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

Loading…
Cancel
Save