zhaoxuebing 9 months ago
parent
commit
9ed99e2fb5
  1. 6
      src/api/wms/demandforecastingMain/index.ts
  2. 30
      src/views/wms/basicDataManage/orderManage/shift/shift.data.ts
  3. 9
      src/views/wms/deliversettlementManage/deliver/deliverRecordMain/deliverRecordMain.data.ts
  4. 17
      src/views/wms/deliversettlementManage/deliver/deliverRecordMain/index.vue
  5. 28
      src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/demandforecastingMain.data.ts

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

@ -50,8 +50,14 @@ export const deleteDemandforecastingMain = async (id: number) => {
// 导出要货预测主 Excel // 导出要货预测主 Excel
export const exportDemandforecastingMain = async (params) => { export const exportDemandforecastingMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/demandforecasting-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/demandforecasting-main/export-excel`, params }) return await request.download({ url: `/wms/demandforecasting-main/export-excel`, params })
} }
}
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {

30
src/views/wms/basicDataManage/orderManage/shift/shift.data.ts

@ -32,28 +32,28 @@ export const Shift = useCrudSchemas(reactive<CrudSchema[]>([
isTable: true, isTable: true,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'HH:mm:ss'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 180,
}, },
form: { form: {
component: 'DatePicker', component: 'TimePicker',
componentProps: { componentProps: {
style: {width:'100%'}, style: {width:'100%'},
type: 'datetime', type: 'time',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
isSearch: true, isSearch: true,
search: { search: {
show: true, show: true,
component: 'DatePicker', component: 'TimePicker',
componentProps: { componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'HH:mm:ss',
type: 'daterange', type: 'timeSelect',
} }
} }
}, },
@ -63,28 +63,28 @@ export const Shift = useCrudSchemas(reactive<CrudSchema[]>([
isTable: true, isTable: true,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'HH:mm:ss',
}, },
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 180
}, },
form: { form: {
component: 'DatePicker', component: 'TimePicker',
componentProps: { componentProps: {
style: {width:'100%'}, style: {width:'100%'},
type: 'datetime', type: 'time',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
isSearch: true, isSearch: true,
search: { search: {
show: true, show: true,
component: 'DatePicker', component: 'TimePicker',
componentProps: { componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'HH:mm:ss',
type: 'daterange', type: 'timeSelect',
} }
} }
}, },

9
src/views/wms/deliversettlementManage/deliver/deliverRecordMain/deliverRecordMain.data.ts

@ -338,6 +338,15 @@ export const DeliverRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '操作',
field: 'action',
isForm: false,
table: {
width: 150,
fixed: 'right'
}
}
])) ]))
//表单校验 //表单校验

17
src/views/wms/deliversettlementManage/deliver/deliverRecordMain/index.vue

@ -62,6 +62,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { getAccessToken } from '@/utils/auth'
import { DeliverRecordMain,DeliverRecordMainRules,DeliverRecordDetail,DeliverRecordDetailRules } from './deliverRecordMain.data' import { DeliverRecordMain,DeliverRecordMainRules,DeliverRecordDetail,DeliverRecordDetailRules } from './deliverRecordMain.data'
import * as DeliverRecordMainApi from '@/api/wms/deliverRecordMain' import * as DeliverRecordMainApi from '@/api/wms/deliverRecordMain'
import * as DeliverRecordDetailApi from '@/api/wms/deliverRecordDetail' import * as DeliverRecordDetailApi from '@/api/wms/deliverRecordDetail'
@ -125,12 +126,15 @@ const buttonBaseClick = (val, item) => {
} }
// - // -
const butttondata = (row) => { const butttondata = (row) => [
return [] defaultButtons.mainListPointBtn(null), //
} ]
// - // -
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'point') { //
handlePoint(row)
}
} }
/** 详情操作 */ /** 详情操作 */
@ -155,6 +159,13 @@ const handleExport = async () => {
} }
} }
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const src = ref(BASE_URL + '/jmreport/view/929209659733770240?token=' + getAccessToken())
//
const handlePoint = async (row) => {
window.open(src.value+'&id='+row.id)
}
// //
const searchFormClick = (searchData) => { const searchFormClick = (searchData) => {
tableObject.params = { tableObject.params = {

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

@ -251,6 +251,20 @@ export const DemandforecastingMainRules = reactive({
* @returns {Array} * @returns {Array}
*/ */
export const DemandforecastingDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const DemandforecastingDetail = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '单据号',
field: 'number',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
form: {
componentProps: {
disbaled: true
}
}
},
{ {
label: '预测时间类型', label: '预测时间类型',
field: 'predictTimeType', field: 'predictTimeType',
@ -387,20 +401,6 @@ export const DemandforecastingDetail = useCrudSchemas(reactive<CrudSchema[]>([
}] }]
} }
}, },
{
label: '单据号',
field: 'number',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
form: {
componentProps: {
disbaled: true
}
}
},
{ {
label: '物料代码', label: '物料代码',
field: 'itemCode', field: 'itemCode',

Loading…
Cancel
Save