Browse Source

Merge remote-tracking branch 'origin/master'

master
zhaoxuebing 10 months ago
parent
commit
ca8249c812
  1. 10
      src/api/wms/itembasic/index.ts
  2. 7
      src/api/wms/supplierdeliverRecordMain/index.ts
  3. 15
      src/components/Detail/src/Detail.vue
  4. 14
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts
  5. 24
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue
  6. 16
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue
  7. 21
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts
  8. 8
      src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts
  9. 21
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue
  10. 5
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts

10
src/api/wms/itembasic/index.ts

@ -78,3 +78,13 @@ export const importTemplate = () => {
} }
// 导入地址 // 导入地址
export const importUrl = '/wms/itembasic/import' export const importUrl = '/wms/itembasic/import'
// 查询物品基本信息列表
export const selectItembasicPageToFgAndSemibasicPage = async (params) => {
if (params.isSearch) {
const data = {...params}
return request.post({ url: '/wms/itembasic/itembasicPageToFgAndSemiSenior', data })
} else {
return await request.get({ url: `/wms/itembasic/ItembasicPageToFgAndSemi`, params })
}
}

7
src/api/wms/supplierdeliverRecordMain/index.ts

@ -66,8 +66,13 @@ export const deleteSupplierdeliverRecordMain = async (id: number) => {
// 导出供应商发货记录主 Excel // 导出供应商发货记录主 Excel
export const exportSupplierdeliverRecordMain = async (params) => { export const exportSupplierdeliverRecordMain = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/supplierdeliver-record-main/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/supplierdeliver-record-main/export-excel`, params }) return await request.download({ url: `/wms/supplierdeliver-record-main/export-excel`, params })
} }
}
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {

15
src/components/Detail/src/Detail.vue

@ -434,6 +434,12 @@ const openDetail = async (row: any, titleName: any, titleValue: any, tableName:
defaultButtons.defaultFilterBtn(null) // defaultButtons.defaultFilterBtn(null) //
] ]
} }
//
if (props.fromeWhere == 'DeliverRequestMain') {
HeadButttondata.value = [
defaultButtons.defaultFilterBtn(null) //
]
}
} }
// //
@ -448,6 +454,15 @@ const openDetail = async (row: any, titleName: any, titleValue: any, tableName:
...props.buttondataTable ...props.buttondataTable
] ]
} }
//
if (props.fromeWhere == 'DeliverRequestMain') {
buttondata.value = [...[
defaultButtons.mainListEditBtn({
hide: isShowMainButton(row, ["1"])
})], //
...props.buttondataTable
]
}
} finally { } finally {
detailLoading.value = false detailLoading.value = false
} }

14
src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts

@ -645,12 +645,7 @@ export const DeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
searchField: 'code', searchField: 'code',
searchTitle: '物品基础信息', searchTitle: '物品基础信息',
searchAllSchemas: Itembasic.allSchemas, searchAllSchemas: Itembasic.allSchemas,
searchPage: ItembasicApi.getItembasicPage, searchPage: ItembasicApi.selectItembasicPageToFgAndSemibasicPage,
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}, },
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
@ -660,12 +655,7 @@ export const DeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
searchField: 'code', searchField: 'code',
searchTitle: '物品基础信息', searchTitle: '物品基础信息',
searchAllSchemas: Itembasic.allSchemas, searchAllSchemas: Itembasic.allSchemas,
searchPage: ItembasicApi.getItembasicPage, searchPage: ItembasicApi.selectItembasicPageToFgAndSemibasicPage,
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
} }
} }
}, },

24
src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue

@ -51,11 +51,13 @@
:apiUpdate="DeliverRequestMainApi.updateDeliverRequestMain" :apiUpdate="DeliverRequestMainApi.updateDeliverRequestMain"
:apiCreate="DeliverRequestMainApi.createDeliverRequestMain" :apiCreate="DeliverRequestMainApi.createDeliverRequestMain"
:isBusiness="true" :isBusiness="true"
fromeWhere="DeliverRequestMain"
@handleAddTable="handleAddTable" @handleAddTable="handleAddTable"
@handleDeleteTable="handleDeleteTable" @handleDeleteTable="handleDeleteTable"
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
@submitForm="submitForm" @submitForm="submitForm"
:isShowButton = isShowButton :isShowButton = isShowButton
:isShowReduceButton = isShowButton
/> />
<!-- 详情 --> <!-- 详情 -->
@ -70,8 +72,9 @@
:apiPage="DeliverRequestDetailApi.getDeliverRequestDetailPage" :apiPage="DeliverRequestDetailApi.getDeliverRequestDetailPage"
:apiDelete="DeliverRequestDetailApi.deleteDeliverRequestDetail" :apiDelete="DeliverRequestDetailApi.deleteDeliverRequestDetail"
:Echo="Echo" :Echo="Echo"
fromeWhere="DeliverRequestMain"
@searchTableSuccessDetail="searchTableSuccessDetail" @searchTableSuccessDetail="searchTableSuccessDetail"
:detailButtonIsShow = trueFalse
/> />
<!-- 导入 --> <!-- 导入 -->
@ -99,8 +102,9 @@ routeName.value = route.name
const tableColumns = ref(DeliverRequestMain.allSchemas.tableColumns) const tableColumns = ref(DeliverRequestMain.allSchemas.tableColumns)
const isShowButton = ref(true) const isShowButton = ref(true)
// // // //
const trueFalse = ref(true) const trueFalse = ref(false)
// //
const updataTableColumns = (val) => { const updataTableColumns = (val) => {
@ -318,9 +322,9 @@ const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
console.log(999,row.deliverPlanNumber); console.log(999,row.deliverPlanNumber);
if(row.deliverPlanNumber != null){ if(row.deliverPlanNumber != null){
trueFalse.value = false
}else {
trueFalse.value = true trueFalse.value = true
}else {
trueFalse.value = false
} }
detailRef.value.openDetail(row, titleName, titleValue,'requestDeliverMain') detailRef.value.openDetail(row, titleName, titleValue,'requestDeliverMain')
} }
@ -377,12 +381,6 @@ const flag = ref(false)
// //
const submitForm = async (formType, data) => { const submitForm = async (formType, data) => {
if(tableData.value.length <= 0){
message.warning(`子表明细不能为空!`)
flag.value = true
formRef.value.formLoading = false
return;
}
data.subList = tableData.value // data.subList = tableData.value //
data.subList.forEach(obj => { data.subList.forEach(obj => {
if(obj.qty == 0){ if(obj.qty == 0){
@ -397,6 +395,12 @@ const submitForm = async (formType, data) => {
} }
try { try {
if (formType === 'create') { if (formType === 'create') {
if(tableData.value.length <= 0){
message.warning(`子表明细不能为空!`)
flag.value = true
formRef.value.formLoading = false
return;
}
await DeliverRequestMainApi.createDeliverRequestMain(data) await DeliverRequestMainApi.createDeliverRequestMain(data)
message.success(t('common.createSuccess')) message.success(t('common.createSuccess'))
} else { } else {

16
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue

@ -257,6 +257,22 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
} }
} else { } else {
const setV = {} const setV = {}
if (formField == 'fromWarehouseCode') {
if(InventorymoveRequestDetail.allSchemas.tableFormColumns.find(item => (item.field == 'fromPackingNumber')).tableForm.searchCondition.find(item => (item.key == 'warehouseCode')) == undefined){
InventorymoveRequestDetail.allSchemas.tableFormColumns.find(item => (item.field == 'fromPackingNumber')).tableForm.searchCondition.push({
key: 'warehouseCode',
value: val[0]["code"],
isMainValue: false
})
} else {
InventorymoveRequestDetail.allSchemas.tableFormColumns.find(item => (item.field == 'fromPackingNumber')).tableForm.searchCondition.find(item => {
if (item.key == 'warehouseCode') {
item.value = val[0]["code"]
}
})
}
// console.log(InventorymoveRequestDetail.allSchemas.tableFormColumns.find(item => (item.field == 'fromPackingNumber')).tableForm.searchCondition.find(item => (item.key == 'warehouseCode')));
}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
formRef.setValues(setV) formRef.setValues(setV)
} }

21
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts

@ -140,15 +140,6 @@ export const InventorymoveRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '从仓库代码',
field: 'fromWarehouseCode',
sort: 'custom',
table: {
width: 150
},
isForm: false,
},
{ {
label: '从库位类型范围', label: '从库位类型范围',
field: 'fromLocationTypes', field: 'fromLocationTypes',
@ -542,7 +533,12 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
searchTitle: '库存余额信息', searchTitle: '库存余额信息',
searchAllSchemas: Balance.allSchemas, searchAllSchemas: Balance.allSchemas,
searchPage: BalanceApi.selectLocationTypeToBalance, searchPage: BalanceApi.selectLocationTypeToBalance,
searchCondition: [{ searchCondition: [
{
key: 'warehouseCode',
value: 'fromWarehouseCode',
isMainValue: true
},{
key: 'locationCode', key: 'locationCode',
value: 'businessType', value: 'businessType',
isMainValue: true isMainValue: true
@ -558,6 +554,11 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
searchAllSchemas: Balance.allSchemas, searchAllSchemas: Balance.allSchemas,
searchPage: BalanceApi.selectLocationTypeToBalance, searchPage: BalanceApi.selectLocationTypeToBalance,
searchCondition: [{ searchCondition: [{
key: 'warehouseCode',
value: 'fromWarehouseCode',
isMainValue: true
},
{
key: 'locationCode', key: 'locationCode',
value: 'businessType', value: 'businessType',
isMainValue: true isMainValue: true

8
src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts

@ -387,11 +387,15 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
searchField: 'itemCode', searchField: 'itemCode',
searchTitle: '供应商物品信息', searchTitle: '供应商物品信息',
searchAllSchemas: Supplieritem.allSchemas, searchAllSchemas: Supplieritem.allSchemas,
searchPage: SupplieritemApi.getSupplieritemPage, searchPage: SupplieritemApi.selectItembasicTypeToSupplieritem,
searchCondition: [{ searchCondition: [{
key:'supplierCode', key:'supplierCode',
value:'supplierCode', value:'supplierCode',
isMainValue: true isMainValue: true
},{
key: 'available',
value: 'TRUE',
isMainValue: false
}] }]
}, },
form: { form: {
@ -402,7 +406,7 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
searchField: 'itemCode', searchField: 'itemCode',
searchTitle: '供应商物品信息', searchTitle: '供应商物品信息',
searchAllSchemas: Supplieritem.allSchemas, searchAllSchemas: Supplieritem.allSchemas,
searchPage: SupplieritemApi.getSupplieritemPage, searchPage: SupplieritemApi.selectItembasicTypeToSupplieritem,
searchCondition: [{ searchCondition: [{
key:'supplierCode', key:'supplierCode',
value:'supplierCode', value:'supplierCode',

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

@ -316,6 +316,27 @@ const openDetail = (row: any, titleName: any, titleValue: any) => {
/// ///
const formRef = ref() const formRef = ref()
const openForm = async (type: string, row?: number) => { const openForm = async (type: string, row?: number) => {
if(type == "update"){
SupplierdeliverRequestMain.allSchemas.formSchema.forEach((item) => {
if(item.field == 'supplierCode'){
item.componentProps.isSearchList = false
item.componentProps.disabled = true
}
if(item.field == 'ppNumber'){
item.componentProps.isSearchList = false
item.componentProps.disabled = true
}
if(item.field == 'asnNumber'){
item.componentProps.disabled = true
}
if(item.field == 'planArriveTime'){
item.componentProps.disabled = true
}
})
}else {
item.componentProps.isSearchList = true
item.componentProps.disabled = true
}
tableData.value = [] // tableData.value = [] //
formRef.value.open(type, row) formRef.value.open(type, row)
} }

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

@ -100,6 +100,11 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
key: 'status', key: 'status',
value: 4, value: 4,
isMainValue: false isMainValue: false
},
{
key: 'available',
value: "TRUE",
isMainValue: false
}] }]
} }
} }

Loading…
Cancel
Save