Browse Source

BUG修改

master
yejiaxing 12 months ago
parent
commit
05126e571e
  1. 5
      src/api/wms/purchasePlanDetail/index.ts
  2. 1
      src/api/wms/supplierdeliverRequestMain/index.ts
  3. 7
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue
  4. 13
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts

5
src/api/wms/purchasePlanDetail/index.ts

@ -21,6 +21,11 @@ export const getPurchasePlanDetailPage = async (params) => {
return await request.get({ url: `/wms/purchase-plan-detail/page`, params }) return await request.get({ url: `/wms/purchase-plan-detail/page`, params })
} }
// 查询采购收货记录子列表
export const getPurchasePlanDetailList = async (params) => {
return await request.get({ url: `/wms/purchase-plan-detail/allList`, params })
}
// 查询要货计划子详情 // 查询要货计划子详情
export const getPurchasePlanDetail = async (id: number) => { export const getPurchasePlanDetail = async (id: number) => {
return await request.get({ url: `/wms/purchase-plan-detail/get?id=` + id }) return await request.get({ url: `/wms/purchase-plan-detail/get?id=` + id })

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

@ -100,3 +100,4 @@ export const exportSupplierdeliverRequestMain = async (params) => {
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/wms/supplierdeliver-request-main/get-import-template' }) return request.download({ url: '/wms/supplierdeliver-request-main/get-import-template' })
} }

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

@ -75,6 +75,7 @@
import { SupplierdeliverRequestMain, SupplierdeliverRequestMainRules, SupplierdeliverRequestDetail, SupplierdeliverRequestDetailRules } from './supplierdeliverRequestMain.data' import { SupplierdeliverRequestMain, SupplierdeliverRequestMainRules, SupplierdeliverRequestDetail, SupplierdeliverRequestDetailRules } from './supplierdeliverRequestMain.data'
import * as SupplierdeliverRequestMainApi from '@/api/wms/supplierdeliverRequestMain' import * as SupplierdeliverRequestMainApi from '@/api/wms/supplierdeliverRequestMain'
import * as SupplierdeliverRequestDetailApi from '@/api/wms/supplierdeliverRequestDetail' import * as SupplierdeliverRequestDetailApi from '@/api/wms/supplierdeliverRequestDetail'
import * as PurchasePlanDetailApi from '@/api/wms/purchasePlanDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import point from '@/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/point.vue' import point from '@/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/point.vue'
// import * as PackageApi from '@/api/wms/package' // import * as PackageApi from '@/api/wms/package'
@ -105,6 +106,12 @@
} else { } else {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
if(formField=='ppNumber'){
// getBomDisassemble
PurchasePlanDetailApi.getPurchasePlanDetailList({ poNumber: val[0]['number']}).then(res => { if (res) tableData.value = res; tableData.value.forEach(item=>{ item.batch = item.toBatch }) }).catch(err => { console.log(err) })
}
formRef.setValues(setV) formRef.setValues(setV)
} }
}) })

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

@ -75,7 +75,18 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
searchField: 'number', // 查询弹窗赋值字段 searchField: 'number', // 查询弹窗赋值字段
searchTitle: '要货计划信息', // 查询弹窗标题 searchTitle: '要货计划信息', // 查询弹窗标题
searchAllSchemas: PurchasePlanMain.allSchemas, // 查询弹窗所需类 searchAllSchemas: PurchasePlanMain.allSchemas, // 查询弹窗所需类
searchPage: PurchasePlanMainApi.getPurchasePlanMainPage // 查询弹窗所需分页方法 searchPage: PurchasePlanMainApi.getPurchasePlanMainPage, // 查询弹窗所需分页方法
searchCondition: [
{
key: 'supplierCode',
value: 'supplierCode',
isMainValue: true
},
{
key: 'status',
value: 4,
isMainValue: false
}]
} }
} }
}, },

Loading…
Cancel
Save