Browse Source

Merge remote-tracking branch 'remotes/origin/intex_online20250327' into intex

赵雪冰创建自己的分支
intex_zhaoxuebing
songguoqiang 7 days ago
committed by zhaoxuebing
parent
commit
6369d78790
  1. 1
      src/locales/en-US.ts
  2. 1
      src/locales/zh-CN.ts
  3. 14
      src/views/wms/basicDataManage/supplierManage/modelDeliTime/index.vue
  4. 22
      src/views/wms/basicDataManage/supplierManage/modelDeliTime/modelDeliTime.data.ts
  5. 2
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue
  6. 36
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts
  7. 29
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverBasicForm.vue
  8. 36
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts

1
src/locales/en-US.ts

@ -1325,6 +1325,7 @@ export default {
退:'Return',
: 'Invalid successfully',
'索赔金额不能为0,请修改后提交。': 'The claim amount cannot be 0, please modify and submit.',
'发货数量必须大于0': 'The shipment quantity must be greater than 0',
: 'Create Shift',
:'More',
:'Batch retry',

1
src/locales/zh-CN.ts

@ -1324,6 +1324,7 @@ export default {
:'作废成功',
退: '退回',
'索赔金额不能为0,请修改后提交。': '索赔金额不能为0,请修改后提交。',
'发货数量必须大于0': '发货数量必须大于0',
:'新增班次',
:'更多',
:'批量重试',

14
src/views/wms/basicDataManage/supplierManage/modelDeliTime/index.vue

@ -148,8 +148,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
}
const setV = {}
setV[formField] = val[0][searchField]
if (formField == 'modelShow') {
setV['modelShow'] = val.map(item=>item.model).join(',')
if (formField == 'model') {
setV['model'] = val.map(item=>item.model).join(',')
}
if (formField == 'supplierCode') {
@ -182,7 +182,7 @@ const submitForm = async (formType, submitData) => {
if (data.masterId) {
data.id = data.masterId
}
data.model =data.modelShow[0]
// data.model =data.modelShow[0]
// data.model =data.modelShow.join(',')
data.yearAndMonth =data.yearAndMonthShow.join(',')
data.subList = tableData.value //
@ -327,23 +327,25 @@ const openForm = async (type: string, row?: any) => {
item.componentProps.isSearchList = false
item.componentProps.disabled = true
}
if (item.field == 'modelShow') {
if (item.field == 'model') {
item.componentProps.disabled = true
item.componentProps.isSearchList = false
}
if (item.field == 'yearAndMonthShow') {
item.componentProps.disabled = true
}
})
row.yearAndMonthShow =row.yearAndMonth.split(',')
row.modelShow =row.model.split(',')
// row.modelShow =row.model.split(',')
} else {
ModelDeliTime.allSchemas.formSchema.forEach((item) => {
if (item.field == 'supplierCode') {
item.componentProps.isSearchList = true
item.componentProps.disabled = false
}
if (item.field == 'modelShow') {
if (item.field == 'model') {
item.componentProps.disabled = false
item.componentProps.isSearchList = true
}
if (item.field == 'yearAndMonthShow') {
item.componentProps.disabled = false

22
src/views/wms/basicDataManage/supplierManage/modelDeliTime/modelDeliTime.data.ts

@ -106,11 +106,11 @@ export const ModelDeliTime = useCrudSchemas(reactive<CrudSchema[]>([
// },
{
label: '受入号',
field: 'modelShow',
field: 'model',
sort: 'custom',
isSearch: true,
isTable: false,
isDetail: false,
isTable: true,
isDetail: true,
// form: {
// component: 'Select',
// componentProps: {
@ -156,14 +156,14 @@ export const ModelDeliTime = useCrudSchemas(reactive<CrudSchema[]>([
}
}
},
{
label: '受入号',
field: 'model',
sort: 'custom',
isTable: true,
isDetail: true,
isForm: false,
},
// {
// label: '受入号',
// field: 'model',
// sort: 'custom',
// isTable: true,
// isDetail: true,
// isForm: false,
// },
{
label: '年月',
field: 'yearAndMonthShow',

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

@ -532,7 +532,7 @@ const isShowMainButton1 = (row, val) => {
formRef.value.open(type, row)
if('create'==type){
nextTick(async () => {
formRef.value.formRef.setValues({deliveryDate:dayjs().valueOf()})
formRef.value.formRef.setValues({deliveryDate:dayjs().valueOf(),schdShipDate:dayjs().valueOf()})
})
PurchasePlanMain.allSchemas.formSchema.forEach((item) => {
//

36
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts

@ -233,6 +233,41 @@ export const PurchasePlanMain = useCrudSchemas(
dateFormat:'YYYY-MM-DD'
}
},
{
label: '取货日期',
sortTableDefault:5,
field: 'schdShipDate',
sort: 'custom',
isDetail: true,
isTable: true,
isForm: true,
isTableForm: false,
isSearch: true,
sortSearchDefault: 3,
formatter: dateFormatter2,
search: {
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
defaultTime: [new Date('1 '), new Date('1 ')]
}
},
form: {
component: 'DatePicker',
componentProps: {
format: 'YYYY-MM-DD',
valueFormat: 'x',
defaultTime: [new Date('1 '), new Date('1 ')]
}
},
table: {
width: 150
},
detail: {
dateFormat:'YYYY-MM-DD'
}
},
{
label: '便次',
field: 'deliNo',
@ -592,6 +627,7 @@ export const PurchasePlanMainRules = reactive({
supplierCode: [{ required: true, message: '请选择供应商代码', trigger: 'change' }],
poNumber: [{ required: true, message: '请选择采购订单号', trigger: 'change' }],
deliveryDate: [{ required: true, message: '请选择送达时间', trigger: 'change' }],
schdShipDate: [{ required: true, message: '请选择取货日期', trigger: 'change' }],
status: [{ required: true, message: '请选择状态', trigger: 'change' }],
number: [{ required: true, message: '请输入单据号', trigger: 'blur' }],
businessType: [{ required: true, message: '请输入业务类型', trigger: 'blur' }],

29
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverBasicForm.vue

@ -312,8 +312,11 @@ const getSearchTableData = async (number,formField,searchField,isAll)=>{
let produceDateStr = formatDate(newRow['produceDate'],'YYYYMMDD');
newRow['batch'] = produceDateStr
newRow['supplierBatch'] = produceDateStr
newRow.expireDate = row['expireTime']?addDay(newRow['produceDate'],row['expireTime']).valueOf():dayjs('2099-12-31').valueOf()
newRow.expireDate = row['expireTime'] ? addDay(newRow['produceDate'], row['expireTime']).valueOf() : dayjs('2099-12-31').valueOf()
//
if (newRow['allowOverShipment'] == 'TRUE') {
newRow['qty'] =0
}
tableData.value.push(newRow)
itemCodes.push(row['itemCode'])
})
@ -356,9 +359,9 @@ const submitForm = async (formType, submitData) => {
// data.subList = tableData.value //
data.subList = []
for (let item of tableData.value) {
if(item.qty>0){
// if(item.qty>0){
data.subList.push(item) //
}
// }
}
let isHave = data.subList.some((item) => {
@ -374,6 +377,9 @@ const submitForm = async (formType, submitData) => {
// 2.2. -
let itemCodes = []
let itemCodeSum = []
// 2.3 0
let itemCodesQtyIsZ = []
console.log(222, data.subList)
data.subList.forEach(item=>{
if(item['allowOverShipment']!='TRUE'){
let qtyDefault = item['planQty'] - item['shippedQty']
@ -395,7 +401,22 @@ const submitForm = async (formType, submitData) => {
}
}
}
console.log(item['qty'])
if(!item['qty']||item['qty']==0){
itemCodesQtyIsZ.push({
itemCode:item['itemCode'],
poLine:item['poLine']
})
}
})
if(itemCodesQtyIsZ.length>0){
let str = ''
itemCodesQtyIsZ.forEach(cur => {
str += `【物料号${cur.itemCode}-订单行${cur.poLine}`
})
message.error(`${str}${t('ts.发货数量必须大于0')}`)
return
}
if(itemCodes.length>0){
let str = ''
itemCodes.forEach(cur => {

36
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts

@ -257,6 +257,42 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
}
},
},
{
label: '取货日期',
sortTableDefault:5,
field: 'schdShipDate',
sort: 'custom',
isDetail: true,
isTable: true,
isForm: true,
isTableForm: false,
isSearch: true,
sortSearchDefault: 3,
formatter: dateFormatter2,
search: {
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
defaultTime: [new Date('1 '), new Date('1 ')]
}
},
form: {
component: 'DatePicker',
componentProps: {
disabled: true,
format: 'YYYY-MM-DD',
valueFormat: 'x',
defaultTime: [new Date('1 '), new Date('1 ')]
}
},
table: {
width: 150
},
detail: {
dateFormat:'YYYY-MM-DD'
}
},
{
label: '便次',
field: 'deliNo',

Loading…
Cancel
Save