Browse Source

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

hella_online_20240904
gaojs 2 months ago
parent
commit
83df0428a3
  1. 4
      src/api/wms/demandforecastingDetail/index.ts
  2. 2
      src/api/wms/demandforecastingMain/index.ts
  3. 4
      src/views/wms/inventoryManage/balanceSummary/balanceSummary.data.ts
  4. 1
      src/views/wms/inventoryManage/balanceSummary/index.vue
  5. 2
      src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/demandforecastingMain.data.ts
  6. 1
      src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue

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

@ -35,11 +35,12 @@ const getPageParams = (params)=>{
params.endDate = params.dueDate[1].format('YYYY-MM-DD') params.endDate = params.dueDate[1].format('YYYY-MM-DD')
} }
} }
console.log(params.dueDate)
if (!params.dueDate || params.dueDate.length == 0) { if (!params.dueDate || params.dueDate.length == 0) {
params.startDate = '' params.startDate = ''
params.endDate = '' params.endDate = ''
} }
params.dueDate = '' // params.dueDate = ''
//计划员 //计划员
if(params.planerId&&params.planerId.length>0){ if(params.planerId&&params.planerId.length>0){
@ -83,7 +84,6 @@ export const getDemandforecastingDetailPage = async (params) => {
return await request.post({ url: '/wms/demandforecasting-detail/senior', data }) return await request.post({ url: '/wms/demandforecasting-detail/senior', data })
} else { } else {
params = getPageParams(params) params = getPageParams(params)
console.log('params',params)
return await request.get({ url: `/wms/demandforecasting-detail/page`, params }) return await request.get({ url: `/wms/demandforecasting-detail/page`, params })
} }
} }

2
src/api/wms/demandforecastingMain/index.ts

@ -89,7 +89,7 @@ const getPageParams = (params)=>{
params.startDate = '' params.startDate = ''
params.endDate = '' params.endDate = ''
} }
params.dueDate = '' // params.dueDate = ''
//计划员 //计划员
if(params.planerId&&params.planerId.length>0){ if(params.planerId&&params.planerId.length>0){

4
src/views/wms/inventoryManage/balanceSummary/balanceSummary.data.ts

@ -63,6 +63,10 @@ export const BalanceSummary = useCrudSchemas(
label: ' ', label: ' ',
field: 'name', field: 'name',
sort: 'custom', sort: 'custom',
align: 'left',
table:{
width: 350
}
}, },
{ {
label: '总数', label: '总数',

1
src/views/wms/inventoryManage/balanceSummary/index.vue

@ -26,6 +26,7 @@
</el-table> </el-table>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
//
import * as BalanceApi from '@/api/wms/balance' import * as BalanceApi from '@/api/wms/balance'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { formatDate } from '@/utils/formatTime' import { formatDate } from '@/utils/formatTime'

2
src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/demandforecastingMain.data.ts

@ -265,7 +265,7 @@ export const DemandforecastingMain = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false, isForm: false,
search: { search: {
component: 'DatePicker', component: 'DatePicker',
// value: [dayjs(), dayjs().subtract(-3,'month')], value: [dayjs(), dayjs().subtract(-3,'month')],
componentProps: { componentProps: {
valueFormat: 'YYYY-MM-DD', valueFormat: 'YYYY-MM-DD',
type: 'daterange', type: 'daterange',

1
src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue

@ -171,7 +171,6 @@ const onSearchChange = (field, value)=>{
} }
} }
const searchClick = async (data)=>{ const searchClick = async (data)=>{
console.log('3444',tableObject.params)
await setSearchParamsHead(data) await setSearchParamsHead(data)
// updateDateTableColumns() // updateDateTableColumns()
setSearchParams(data) setSearchParams(data)

Loading…
Cancel
Save