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 formLoading.value = true
try { try {
// const data = unref(formRef)?.formModel as ItempackagingApi.ItempackagingVO
const data = unref(formRef)?.formModel 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) emit('success',formType.value,data)
} finally { } finally {
formLoading.value = false formLoading.value = false

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

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

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

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

Loading…
Cancel
Save