箱管 调整

szh-new
张同海 3 months ago
parent 77766796a8
commit 5c6ed3d735

@ -287,7 +287,7 @@ export const formSchema: FormSchema[] = [
label: '会计期间',
component: 'MonthPicker',
colProps: { span: 6 },
defaultValue: moment(new Date().toLocaleDateString(), 'YYYY-MM-DD'),
defaultValue: moment(new Date().toLocaleDateString(), 'YYYY-MM'),
componentProps: {
showTime: true,
allowClear: true,

@ -144,7 +144,7 @@ export const formSchema: FormSchema[] = [
label: '会计期间',
component: 'MonthPicker',
colProps: { span: 6 },
defaultValue: moment(new Date().toLocaleDateString(), 'YYYY-MM-DD'),
defaultValue: moment(new Date().toLocaleDateString(), 'YYYY-MM'),
componentProps: {
showTime: true,
allowClear: true,

@ -118,7 +118,7 @@
}
function handleAudit(record: Recordable) {
openInfoModal(true, {
id: record.id,
cntrno: record.cntrno,
})
}
function handleSuccess() {

@ -17,10 +17,10 @@
import { BasicModal, useModalInner } from '/@/components/Modal'
import { InfoColumns } from './columns'
import { formatParams } from '/@/hooks/web/common'
const rowId = ref('')
const cntrno = ref('')
const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => {
setModalProps({ confirmLoading: false, loading: true })
rowId.value = data.id
cntrno.value = data.cntrno
reload()
setModalProps({ loading: false })
})
@ -50,8 +50,8 @@
}
let condition: API.ConditionItem[] = []
condition.push({
FieldName: 'id',
FieldValue: rowId.value,
FieldName: 'cntrno',
FieldValue: cntrno.value,
ConditionalType: 0,
})
postParam.queryCondition = JSON.stringify(condition)

@ -335,7 +335,7 @@ export const formSchema: FormSchema[] = [
label: '会计期间',
component: 'MonthPicker',
colProps: { span: 6 },
defaultValue: moment(new Date().toLocaleDateString(), 'YYYY-MM-DD'),
defaultValue: moment(new Date().toLocaleDateString(), 'YYYY-MM'),
componentProps: {
showTime: true,
allowClear: true,

@ -453,7 +453,7 @@ export const formSchema: FormSchema[] = [
label: '会计期间',
component: 'MonthPicker',
colProps: { span: 6 },
defaultValue: moment(new Date().toLocaleDateString(), 'YYYY-MM-DD'),
defaultValue: moment().format('YYYY-MM'),
componentProps: {
showTime: true,
allowClear: true,

@ -429,7 +429,7 @@ export const formSchema: FormSchema[] = [
label: '会计期间',
component: 'MonthPicker',
colProps: { span: 6 },
defaultValue: moment(new Date().toLocaleDateString(), 'YYYY-MM-DD'),
defaultValue: moment(new Date().toLocaleDateString(), 'YYYY-MM'),
componentProps: {
showTime: true,
allowClear: true,

@ -462,7 +462,7 @@ export const formSchema: FormSchema[] = [
label: '会计期间',
component: 'MonthPicker',
colProps: { span: 6 },
defaultValue: moment(new Date().toLocaleDateString(), 'YYYY-MM-DD'),
defaultValue: moment(new Date().toLocaleDateString(), 'YYYY-MM'),
componentProps: {
showTime: true,
allowClear: true,

@ -222,7 +222,7 @@ export const formSchema: FormSchema[] = [
label: '会计期间',
component: 'MonthPicker',
colProps: { span: 6 },
defaultValue: moment(new Date().toLocaleDateString(), 'YYYY-MM-DD'),
defaultValue: moment(new Date().toLocaleDateString(), 'YYYY-MM'),
componentProps: {
showTime: true,
allowClear: true,

@ -458,17 +458,31 @@ export const formSchema: FormSchema[] = [
colProps: { span: 6 },
},
{
label: '',
field: 'ctnall',
component: 'Input',
defaultValue: '',
show: false,
},
{
field: 'ctnCode',
label: '箱型',
component: 'ApiSelect',
colProps: { span: 6 },
required: true,
componentProps: () => {
componentProps: ({ formModel }) => {
return {
api: GetCtnSelectList,
labelField: 'ctnName',
valueField: 'ediCode',
resultField: 'data',
onChange: (e, obj) => {
if (e && obj) {
formModel.ctnall = obj.label
}
if (!e && !obj) {
formModel.ctnall = ''
}
},
}
},
},

@ -160,7 +160,6 @@ export const formSchema: FormSchema[] = [
required: true,
component: 'Select',
colProps: { span: 12 },
defaultValue: '',
componentProps: {
options: shipperTypeList,
allowClear: true,

Loading…
Cancel
Save