箱管 调整

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

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

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

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

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

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

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

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

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

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

@ -458,17 +458,31 @@ export const formSchema: FormSchema[] = [
colProps: { span: 6 }, colProps: { span: 6 },
}, },
{ {
label: '',
field: 'ctnall', field: 'ctnall',
component: 'Input',
defaultValue: '',
show: false,
},
{
field: 'ctnCode',
label: '箱型', label: '箱型',
component: 'ApiSelect', component: 'ApiSelect',
colProps: { span: 6 }, colProps: { span: 6 },
required: true, componentProps: ({ formModel }) => {
componentProps: () => {
return { return {
api: GetCtnSelectList, api: GetCtnSelectList,
labelField: 'ctnName', labelField: 'ctnName',
valueField: 'ediCode', valueField: 'ediCode',
resultField: 'data', 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, required: true,
component: 'Select', component: 'Select',
colProps: { span: 12 }, colProps: { span: 12 },
defaultValue: '',
componentProps: { componentProps: {
options: shipperTypeList, options: shipperTypeList,
allowClear: true, allowClear: true,

Loading…
Cancel
Save