Browse Source

导出参数

master
zhang_li 1 year ago
parent
commit
78d6c3a75f
  1. 24
      src/components/BasicForm/src/BasicForm.vue
  2. 3
      src/views/wms/basicDataManage/itemManage/itembasic/index.vue
  3. 10
      src/views/wms/basicDataManage/orderManage/shift/shift.data.ts

24
src/components/BasicForm/src/BasicForm.vue

@ -240,31 +240,7 @@ const submitForm = async () => {
//
formLoading.value = true
try {
// const data = unref(formRef)?.formModel as ItempackagingApi.ItempackagingVO
const data = unref(formRef)?.formModel
// if(props.masterParmas.masterId){
// data.masterId = props.masterParmas.masterId
// data.number = props.masterParmas.number
// }
// console.log(props.formAllSchemas.formSchema)
// var isHave = props.formAllSchemas.formSchema.some(function (item) {
// return item.field === 'activeTime' || item.field === 'expireTime';
// });
// if(isHave){
// if(data.activeTime && data.expireTime && data.activeTime >=data.expireTime){
// message.error('')
// return;
// }
// }
// if (formType.value === 'create') {
// await props.apiCreate(data)
// message.success(t('common.createSuccess'))
// } else {
// await props.apiUpdate(data)
// message.success(t('common.updateSuccess'))
// }
// dialogVisible.value = false
//
emit('success',formType.value,data)
} finally {
formLoading.value = false

3
src/views/wms/basicDataManage/itemManage/itembasic/index.vue

@ -205,7 +205,8 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const data = await ItembasicApi.exportItembasic(setSearchParams)
console.log(tableObject.params)
const data = await ItembasicApi.exportItembasic(tableObject.params)
download.excel(data, '物品基本信息.xls')
} catch {
} finally {

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

@ -45,6 +45,15 @@ export const Shift = useCrudSchemas(reactive<CrudSchema[]>([
valueFormat: 'x',
}
},
isSearch: true,
search: {
show: true,
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
}
}
},
{
label: '结束时间',
@ -83,7 +92,6 @@ export const Shift = useCrudSchemas(reactive<CrudSchema[]>([
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isTable: true,
isSearch: true,
sort: 'custom',
table: {
width: 150

Loading…
Cancel
Save