Browse Source

YT-1300: bug修复

intex_online20241228
ljlong_2630 2 months ago
parent
commit
74153a0bb4
  1. 4
      src/api/wms/deliverRecordMain/index.ts
  2. 1
      src/components/BasicForm/src/BasicForm.vue
  3. 1
      src/utils/dict.ts
  4. 2
      src/views/eam/equipmentTransferRecord/index.vue
  5. 2
      src/views/wms/deliversettlementManage/ftSuppliesRecordMain/deliverRecordMain/index.vue
  6. 32
      src/views/wms/deliversettlementManage/inducedProduct/deliverRecordMain/deliverRecordMain.data.ts
  7. 87
      src/views/wms/deliversettlementManage/inducedProduct/deliverRecordMain/index.vue

4
src/api/wms/deliverRecordMain/index.ts

@ -103,8 +103,8 @@ export const inducedProductUpdate = () => {
} }
// 创建发货记录信息 // 创建发货记录信息
export const inducedProductCreate = () => { export const inducedProductCreate = (data) => {
return request.download({ url: '/wms/deliver-record-main/inducedProductCreate' }) return request.post({ url: '/wms/deliver-record-main/inducedProductCreate',data })
} }

1
src/components/BasicForm/src/BasicForm.vue

@ -622,7 +622,6 @@ const opensearchTable = (
const _searchTableTitle = searchTitle const _searchTableTitle = searchTitle
const _searchTableAllSchemas = searchAllSchemas const _searchTableAllSchemas = searchAllSchemas
const _searchTablePage = searchPage const _searchTablePage = searchPage
debugger
searchTableRef.value.open( searchTableRef.value.open(
_searchTableTitle, _searchTableTitle,
_searchTableAllSchemas, _searchTableAllSchemas,

1
src/utils/dict.ts

@ -418,6 +418,7 @@ export enum DICT_TYPE {
SUPPLIER_TOOL_APPORT_STATEMENT_MAIN = 'supplier_tool_apport_statement_main', // 供应商模具费用主 SUPPLIER_TOOL_APPORT_STATEMENT_MAIN = 'supplier_tool_apport_statement_main', // 供应商模具费用主
SUPPLIER_TOOL_APPORT_STATEMENT_DETAIL = 'supplier_tool_apport_statement_detail', // 供应商模具费用子 SUPPLIER_TOOL_APPORT_STATEMENT_DETAIL = 'supplier_tool_apport_statement_detail', // 供应商模具费用子
PRODUCTION_LINE_ITEM = 'production_line_item', //顺引生产线项 PRODUCTION_LINE_ITEM = 'production_line_item', //顺引生产线项
CLASS_ITEM = 'class_item', //顺引班组项
} }

2
src/views/eam/equipmentTransferRecord/index.vue

@ -255,7 +255,7 @@ const searchFormClick = (searchData) => {
} }
const onEnter = (a,b,c,d) =>{ const onEnter = (a,b,c,d) =>{
debugger
} }
/** 初始化 **/ /** 初始化 **/

2
src/views/wms/deliversettlementManage/ftSuppliesRecordMain/deliverRecordMain/index.vue

@ -288,7 +288,7 @@ const submitForm = async (formType, submitData) => {
try { try {
if (formType === 'create') { if (formType === 'create') {
await DeliverRecordMainApi.createDeliverRecordMain(data) await DeliverRecordMainApi.createDeliverRecordMain(data)
message.success(t('common.createSuccess')) message.success(t('common.createSuccess'))
getList() getList()
} else { } else {

32
src/views/wms/deliversettlementManage/inducedProduct/deliverRecordMain/deliverRecordMain.data.ts

@ -32,6 +32,7 @@ export const DeliverRecordMain = useCrudSchemas(
table: { table: {
width: 150 width: 150
}, },
isForm: false,
form: { form: {
component: 'Select', component: 'Select',
componentProps: { componentProps: {
@ -647,7 +648,7 @@ export const DeliverRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
tableForm: { tableForm: {
type: 'InputNumber', type: 'InputNumber',
min: 0, min: 1,
max:999999, max:999999,
// precision: 6 // precision: 6
} }
@ -664,6 +665,34 @@ export const DeliverRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isTableForm: false, isTableForm: false,
}, },
{
label: '顺序号',
field: 'serialNo',
isTable: true,
sort: 'custom',
table: {
width: 150
},
isTableForm: true,
tableForm: {
component: 'InputNumber'
}
},
{
label: '班次',
field: 'classes',
dictType: DICT_TYPE.CLASS_ITEM,
dictClass: 'string',
isTable: false,
sort: 'custom',
table: {
width: 150
},
isTableForm: true,
tableForm: {
type: 'Select'
},
},
{ {
label: '单价', label: '单价',
field: 'singlePrice', field: 'singlePrice',
@ -889,6 +918,7 @@ export const DeliverRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
isTable: true, isTable: true,
isTableForm: false,
}, },
{ {
label: '最后更新时间', label: '最后更新时间',

87
src/views/wms/deliversettlementManage/inducedProduct/deliverRecordMain/index.vue

@ -151,16 +151,16 @@ DeliverRecordDetail.allSchemas.tableFormColumns.map(item => {
value: 'customerCode' , value: 'customerCode' ,
isMainValue: true isMainValue: true
}] }]
item.form.componentProps.searchCondition = [ // item.form.componentProps.searchCondition = [
{ // {
key: 'businessType', // key: 'businessType',
value: businessType.value, // value: businessType.value,
isMainValue: false // isMainValue: false
},{ // },{
key: 'customerCode', // key: 'customerCode',
value: 'customerCode' , // value: 'customerCode' ,
isMainValue: true // isMainValue: true
}] // }]
} }
}) })
@ -207,6 +207,73 @@ const buttonBaseClick = (val, item) => {
} }
} }
//true0
const flag = ref(false)
const submitForm = async (formType, submitData) => {
let data = {...submitData}
if(formType == 'create'){
if(data.masterId){
data.id = data.masterId
}
flag.value = false
data.subList = tableData.value //
data.subList.forEach(item=>{
item.toWarehouseCode = data.toWarehouseCode
item.toLocationCode = data.toLocationCode
})
let isExist = false
tableData.value.forEach(item => {
let rs = tableData.value.filter(filterItem => (filterItem.itemCode == item.itemCode))
if(rs.length > 1) isExist = true
})
data.businessType = businessType.value
console.log(data);
if (isExist) {
return message.warning('物料代码重复')
}
data.subList.forEach(obj => {
if(obj.qty == 0){
message.warning(`数量不能为0!`)
flag.value = true
return;
}
})
if(flag.value){
return
}
formRef.value.formLoading = true
try {
if (formType === 'create') {
if(tableData.value.length <= 0){
message.warning(`子表明细不能为空!`)
flag.value = true
formRef.value.formLoading = false
return;
}
await DeliverRecordMainApi.inducedProductCreate(data).then(res=>{
if(res.code == 200){
}
})
message.success(t('common.createSuccess'))
}
formRef.value.dialogVisible = false
//
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}
}
}
// - // -

Loading…
Cancel
Save