From 8d4b56157769628e837c39707fec0d38fccbcdc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ZR20090193-=E9=99=88=E6=95=AC=E5=8B=87?= Date: Sat, 15 Oct 2022 16:53:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/yard/book/BookModal.vue | 59 ++++++++++ yardbook-web/src/views/yard/book/columns.tsx | 104 ++++++++++++++++++ yardbook-web/src/views/yard/book/index.vue | 21 ++-- 3 files changed, 171 insertions(+), 13 deletions(-) create mode 100644 yardbook-web/src/views/yard/book/BookModal.vue diff --git a/yardbook-web/src/views/yard/book/BookModal.vue b/yardbook-web/src/views/yard/book/BookModal.vue new file mode 100644 index 0000000..9b8f108 --- /dev/null +++ b/yardbook-web/src/views/yard/book/BookModal.vue @@ -0,0 +1,59 @@ + + diff --git a/yardbook-web/src/views/yard/book/columns.tsx b/yardbook-web/src/views/yard/book/columns.tsx index 0f4ac2a..2cc65f9 100644 --- a/yardbook-web/src/views/yard/book/columns.tsx +++ b/yardbook-web/src/views/yard/book/columns.tsx @@ -158,3 +158,107 @@ export const searchFormSchema: FormSchema[] = [ // }, // }, ]; +export const formSchema: FormSchema[] = [ + { + field: 'divider-selects', + component: 'Divider', + label: '基本信息', + }, + { + label: '', + field: 'gid', + component: 'Input', + defaultValue: '', + show: false, + }, + { + field: 'customername', + label: '委托单位', + component: 'Input', + required: true, + colProps: { + span: 8, + }, + }, + { + field: 'businessType', + label: '业务类型', + component: 'Select', + required: true, + colProps: { + span: 8, + }, + }, + { + field: 'enterdate', + label: '预计日期', + component: 'DatePicker', + required: true, + colProps: { + span: 8, + }, + }, + { + field: 'truckno', + label: '承运车号', + component: 'Input', + required: true, + colProps: { span: 8 }, + }, + { + field: 'boxCode', + label: '箱号', + component: 'Input', + colProps: { span: 8 }, + }, + { + field: 'goodname', + label: '货物名称', + component: 'Input', + colProps: { span: 8 }, + }, + { + field: 'boxType', + label: '箱型', + component: 'Select', + required: true, + colProps: { span: 8 }, + }, + { + field: 'linkTel', + label: '联系电话', + component: 'Input', + colProps: { span: 8 }, + }, + { + field: 'boxWeigth', + label: '车重(kg)', + component: 'InputNumber', + colProps: { span: 8 }, + helpMessage: ['存箱请填写车重+货重'], + }, + { + field: 'isTwoBox', + label: '是否双背', + component: 'Switch', + colProps: { span: 8 }, + helpMessage: ['只有在董家镇卸两个箱才勾选,卸一个箱不勾选'], + }, + { + field: 'bsno', + label: '流水号', + component: 'Input', + colProps: { span: 8 }, + }, + { + field: 'divider-selects', + component: 'Divider', + label: '装箱资料', + helpMessage: ['只能上传jpg/png/bmp/jpeg/bmp文件,且不超过3M'], + }, + // { + // field: 'remark', + // label: '备注', + // component: 'InputTextArea', + // }, +]; diff --git a/yardbook-web/src/views/yard/book/index.vue b/yardbook-web/src/views/yard/book/index.vue index a723a79..26a2baa 100644 --- a/yardbook-web/src/views/yard/book/index.vue +++ b/yardbook-web/src/views/yard/book/index.vue @@ -16,22 +16,21 @@ /> +