Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-ui into master_hella

master_hella_20240701
chenfang 8 months ago
parent
commit
03f9124bda
  1. 2
      src/components/BasicForm/src/BasicForm.vue
  2. 2
      src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts
  3. 10
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

2
src/components/BasicForm/src/BasicForm.vue

@ -4,12 +4,12 @@
v-model="dialogVisible" v-model="dialogVisible"
:width="dialogWidth" :width="dialogWidth"
:close-on-click-modal="false" :close-on-click-modal="false"
v-loading="formLoading"
> >
<div <div
style="max-height: 60vh;overflow-y: auto;"> style="max-height: 60vh;overflow-y: auto;">
<Form <Form
ref="formRef" ref="formRef"
v-loading="formLoading"
:rules="rules" :rules="rules"
:schema="formSchema" :schema="formSchema"
:is-col="true" :is-col="true"

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

@ -319,7 +319,7 @@ export const SupplieritemRules = reactive({
], ],
supplierItemCode: [ supplierItemCode: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }, { max: 50, message: '不得超过50个字符', trigger: 'blur' },
{ validator:validateYS, message: '请输入正确的代码', trigger: 'blur'} // { validator:validateYS, message: '请输入正确的代码', trigger: 'blur'}
], ],
// packUnit: [ // packUnit: [
// { required: true, message: '请选择供应商包装单位', trigger: 'change' } // { required: true, message: '请选择供应商包装单位', trigger: 'change' }

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

@ -441,6 +441,7 @@
// //
const submitForm = async (formType, data) => { const submitForm = async (formType, data) => {
data.subList = [] data.subList = []
let flag = false
for (let item of tableData.value) { for (let item of tableData.value) {
await PurchaseDetailApi.getPurchaseDetailPageCheckData({ await PurchaseDetailApi.getPurchaseDetailPageCheckData({
number: item.poNumber, number: item.poNumber,
@ -449,13 +450,20 @@
console.log("【要货计划】-每条数据结果",item) console.log("【要货计划】-每条数据结果",item)
if(res.list[0].type == 'DISCRETE'){// if(res.list[0].type == 'DISCRETE'){//
if (item.planQty > res.list[0].orderQty - res.list[0].plannedQty) { if (item.planQty > res.list[0].orderQty - res.list[0].plannedQty) {
flag = true;
message.error('要货计划数量不得大于订单数量-已计划数量') message.error('要货计划数量不得大于订单数量-已计划数量')
return return
}else{
data.subList.push(item) //
} }
}else{
data.subList.push(item) //
} }
data.subList.push(item) //
}) })
} }
if(flag){
return;
}
if (data.subList.length == tableData.value.length) { if (data.subList.length == tableData.value.length) {
try { try {
if (formType === 'create') { if (formType === 'create') {

Loading…
Cancel
Save