Browse Source

HL-6236计划外出入库,有项目代码,现传不到接口

hella_online_20241017
yufei_wang 2 months ago
parent
commit
df066d52a1
  1. 2
      src/views/wms/basicDataManage/labelManage/manufacturePackage/index.vue
  2. 2
      src/views/wms/basicDataManage/subject/qadProject/qadProject.data.ts
  3. 22
      src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/index.vue
  4. 17
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue

2
src/views/wms/basicDataManage/labelManage/manufacturePackage/index.vue

@ -70,7 +70,7 @@ import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
//
//
defineOptions({ name: 'PurchasePackage' })
const message = useMessage() //

2
src/views/wms/basicDataManage/subject/qadProject/qadProject.data.ts

@ -95,6 +95,8 @@ export const QadProject = useCrudSchemas(reactive<CrudSchema[]>([
field: 'available',
sort: 'custom',
isSearch: false,
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', // 默认都是字符串类型其他暂不考虑
},
{
label: '备注',

22
src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/index.vue

@ -164,8 +164,28 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
setV['reasonDescRequisition'] = val[0]['accountingName']
//
if(UnplannedissueRequestMainRules['projectCode']){
UnplannedissueRequestMainRules['projectCode'][0].required = val[0]['isProject']=='TRUE'
//
UnplannedissueRequestMainRules['projectCode'][0].required = val[0]['isProject']=='TRUE'
}
UnplannedissueRequestMain.allSchemas.formSchema.forEach((item) => {
if (item.field == 'projectCode') {
//
if(val[0]['isProject']=='TRUE'){
//-
item.componentProps.enterSearch = true
item.componentProps.isSearchList = true
item.componentProps.disabled = false
}else{
//-
setV['projectCode'] = ''
item.componentProps.enterSearch = false
item.componentProps.isSearchList = false
item.componentProps.disabled = true
}
}
})
}
if(formField === 'projectCode'){
setV['projectCode'] = val[0]['projectCode']

17
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue

@ -268,6 +268,23 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
if(UnplannedreceiptRequestMainRules['projectCode']){
UnplannedreceiptRequestMainRules['projectCode'][0].required = val[0]['isProject']=='TRUE'
}
UnplannedreceiptRequestMain.allSchemas.formSchema.forEach((item) => {
if (item.field == 'projectCode') {
//
if(val[0]['isProject']=='TRUE'){
//-
item.componentProps.enterSearch = true
item.componentProps.isSearchList = true
item.componentProps.disabled = false
}else{
//-
setV['projectCode'] = ''
item.componentProps.enterSearch = false
item.componentProps.isSearchList = false
item.componentProps.disabled = true
}
}
})
}
if(formField === 'projectCode'){
setV['projectCode'] = val[0]['projectCode']

Loading…
Cancel
Save