Browse Source

打切修改BUG

intex
叶佳兴 2 days ago
parent
commit
42b296d6f2
  1. 3
      src/views/wms/basicDataManage/cutItem/cutItem.data.ts
  2. 7
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

3
src/views/wms/basicDataManage/cutItem/cutItem.data.ts

@ -57,6 +57,7 @@ export const CutItem = useCrudSchemas(
sort: 'custom',
isSearch: false,
isForm: false,
hiddenSearchHigh:true,
table: {
width: 150
}
@ -64,6 +65,7 @@ export const CutItem = useCrudSchemas(
{
label: '背番',
field: 'backNumber',
hiddenSearchHigh:true,
sort: 'custom',
isForm: false,
isSearch: true,
@ -74,6 +76,7 @@ export const CutItem = useCrudSchemas(
{
label: '受入号',
field: 'receivedNumber',
hiddenSearchHigh:true,
sort: 'custom',
isSearch: true,
isForm: false,

7
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

@ -882,13 +882,12 @@ const handleSelectionPublish = async () => {
/** 发布按钮操作 */
const handlePublish = async (id: number) => {
try {
tableObject.loading = true
//
const res = await PurchasePlanMainApi.validation(id)
if (res) {
await message.confirm(t('要货数量超过打切数量,是否确认发布?'))
}else{
} else {
//
await message.confirm(t('ts.是否发布所选中数据?'))
}
@ -1115,6 +1114,10 @@ const submitForm = async (formType, submitData) => {
data.id = data.masterId
}
data.subList = []
if (data.deliveryDate < data.schdShipDate) {
message.error(t('要货计划送达日期不能早于取货日期!'))
return
}
let flag = false
for (let item of tableData.value) {
if (item.planQty > 0) {

Loading…
Cancel
Save