Browse Source

Merge remote-tracking branch 'origin/master_hella' into master_hella

master_hella_20240701
gaojs 6 months ago
parent
commit
4b503905b2
  1. 6
      src/api/wms/supplierdeliverRequestMain/index.ts
  2. 1
      src/locales/en-US.ts
  3. 1
      src/locales/zh-CN.ts
  4. 10
      src/views/qms/inspectionRecord/inspectionRecordMain.data.ts
  5. 5
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts
  6. 13
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue
  7. 16
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

6
src/api/wms/supplierdeliverRequestMain/index.ts

@ -96,6 +96,12 @@ export const genLabel = async (data:SupplierdeliverRequestMainVO) => {
return await request.post({ url: `/wms/supplierdeliver-request-main/genLabel`,data }) return await request.post({ url: `/wms/supplierdeliver-request-main/genLabel`,data })
} }
// 校验是否修改了包装数量
export const checkPackQty = async (data:SupplierdeliverRequestMainVO) => {
return await request.post({ url: `/wms/supplierdeliver-request-main/checkPackQty`,data })
}
// 生成记录 // 生成记录
export const genRecordsSupplierdeliverRequestMain = async (id) => { export const genRecordsSupplierdeliverRequestMain = async (id) => {
return await request.post({ url: `/wms/supplierdeliver-request-main/genRecords?id=` + id }) return await request.post({ url: `/wms/supplierdeliver-request-main/genRecords?id=` + id })

1
src/locales/en-US.ts

@ -774,6 +774,7 @@ export default {
:'Item packaging information', :'Item packaging information',
:'System Prompt', :'System Prompt',
:'Do you generate labels for this data?', :'Do you generate labels for this data?',
:'Do you want to modify the quantity of material packaging?',
:'Do you process the selected data?', :'Do you process the selected data?',
:'shipments', :'shipments',
:'Label information', :'Label information',

1
src/locales/zh-CN.ts

@ -774,6 +774,7 @@ export default {
:'物品包装信息', :'物品包装信息',
:'系统提示', :'系统提示',
:'是否为此数据生成标签', :'是否为此数据生成标签',
:'是否修改物料包装标包数量',
:'是否处理所选中数据', :'是否处理所选中数据',
:'发货', :'发货',
:'标签信息', :'标签信息',

10
src/views/qms/inspectionRecord/inspectionRecordMain.data.ts

@ -2,7 +2,7 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter2 } from '@/utils/formatTime' import { dateFormatter2 } from '@/utils/formatTime'
import { validateHanset, validateEmail } from '@/utils/validator' import { validateHanset, validateEmail } from '@/utils/validator'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import {validateTwoNum } from '@/utils/validator' import {validateTwoNum,validateSixNum } from '@/utils/validator'
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化
/** /**
@ -716,18 +716,18 @@ export const InspectionRecordPackage = useCrudSchemas(reactive<CrudSchema[]>([
export const InspectionRecordPackageRules = reactive({ export const InspectionRecordPackageRules = reactive({
qualifiedAmount: [ qualifiedAmount: [
required, required,
{ validator:validateTwoNum, message: '小数点后最多6位', trigger: 'blur'} { validator:validateSixNum, message: '小数点后最多6位', trigger: 'blur'}
], ],
frozenAmount: [ frozenAmount: [
required, required,
{ validator:validateTwoNum, message: '小数点后最多6位', trigger: 'blur'} { validator:validateSixNum, message: '小数点后最多6位', trigger: 'blur'}
], ],
destroyAmount: [ destroyAmount: [
required, required,
{ validator:validateTwoNum, message: '小数点后最多6位', trigger: 'blur'} { validator:validateSixNum, message: '小数点后最多6位', trigger: 'blur'}
], ],
noQualifiedAmount: [ noQualifiedAmount: [
required, required,
{ validator:validateTwoNum, message: '小数点后最多6位', trigger: 'blur'} { validator:validateSixNum, message: '小数点后最多6位', trigger: 'blur'}
], ],
}) })

5
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts

@ -1013,7 +1013,10 @@ export const UnplannedreceiptRequestDetailRules = reactive({
], ],
qadProjectCode:[ qadProjectCode:[
{ required: true, message: '请选择科目代码', trigger: 'change' } { required: true, message: '请选择科目代码', trigger: 'change' }
] ],
singlePrice:[
{ required: true, message: '请维护标准成本价格', trigger: 'blur' }
],
}) })

13
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue

@ -210,7 +210,7 @@ const searchTableSuccessLabel = (formField, searchField, val, formRef, type, row
const searchTableSuccess = async(formField, searchField, val, formRef, type, row) => { const searchTableSuccess = async(formField, searchField, val, formRef, type, row) => {
console.log('searchTableSuccess',formField, searchField, val, formRef, type, row) console.log('searchTableSuccess',formField, searchField, val, formRef, type, row)
console.log('searchTableSuccess123',val)
nextTick( async () => { nextTick( async () => {
if (type == 'tableForm') { if (type == 'tableForm') {
@ -263,7 +263,7 @@ const searchTableSuccess = async(formField, searchField, val, formRef, type, row
let params = { let params = {
itemCode: row.itemCode, itemCode: row.itemCode,
batch: row.batch, batch: row.batch,
locationCode:val.code locationCode:val[0]['code']
} }
let aa = await BalanceApi.getSumByConditions(params); let aa = await BalanceApi.getSumByConditions(params);
console.log('23423423',aa); console.log('23423423',aa);
@ -826,8 +826,13 @@ const tableSelectionDelete = (selection) => {
// //
const submitForm = async (formType, data) => { const submitForm = async (formType, data) => {
if(tableData.value.find(item=>Number(item.returnedQty)>Number(item.receiptQty))){ console.log('submitForm',tableData.value)
message.warning("退货数量不能大于收获数量") // if(tableData.value.find(item=>Number(item.returnedQty)>Number(item.receiptQty))){
// message.warning("退")
// return;
// }
if(tableData.value.find(item=>Number(item.qty)>Number(item.inventoryBalance))){
message.warning("退货数量不能大于库存余额")
return; return;
} }
data.subList = tableData.value // data.subList = tableData.value //

16
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

@ -788,11 +788,27 @@ const submitFormLabel = async (formType, data) => {
console.log("formType==",formType) console.log("formType==",formType)
console.log("data==",data) console.log("data==",data)
data.subList = detatableData.tableList data.subList = detatableData.tableList
//
let flag = false;
await SupplierdeliverRequestMainApi.checkPackQty(data).then(async res => {
if(res){
await message.confirm(t('ts.是否修改物料包装标包数量')+'?').then(()=>{
flag = true; //
}).catch(() =>{
flag = false
})
}else{
flag = true; //
}
})
console.log("返回结果",flag);
if(flag){
console.log("detatableData",detatableData) console.log("detatableData",detatableData)
await message.confirm(t('ts.是否为此数据生成标签?')) await message.confirm(t('ts.是否为此数据生成标签?'))
await SupplierdeliverRequestMainApi.genLabel(data) await SupplierdeliverRequestMainApi.genLabel(data)
isCreateLabel.value = true isCreateLabel.value = true
message.success(t('ts.创建标签成功')) message.success(t('ts.创建标签成功'))
}
getList() getList()
} finally { } finally {
formLabelRef.value.formLoading = false formLabelRef.value.formLoading = false

Loading…
Cancel
Save