|
@@ -0,0 +1,300 @@
|
|
|
+import {BasicColumn} from '/@/components/Table';
|
|
|
+import {FormSchema} from '/@/components/Table';
|
|
|
+import { rules} from '/@/utils/helper/validator';
|
|
|
+import { render } from '/@/utils/common/renderUtils';
|
|
|
+import {JVxeTypes,JVxeColumn} from '/@/components/jeecg/JVxeTable/types'
|
|
|
+import { getWeekMonthQuarterYear } from '/@/utils';
|
|
|
+//列表数据
|
|
|
+export const columns: BasicColumn[] = [
|
|
|
+ {
|
|
|
+ title: '提交(submit)1是0否',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'submit_dictText'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '单据日期',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'billDate',
|
|
|
+ customRender:({text}) =>{
|
|
|
+ text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text);
|
|
|
+ return text;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '单据编码',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'billCode'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '项目(project)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'project'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '项目名称',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'projectName'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '客户',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'customer'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '客户名称',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'customerName'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '仓库(warehouse)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'warehouse'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '货位(goods allocation)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'goodsAllocation'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '备注(notes)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'notes'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '附件(attachs)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'attachs'
|
|
|
+ },
|
|
|
+];
|
|
|
+
|
|
|
+//子表表格配置
|
|
|
+export const storeConsignmentInDetailsColumns: JVxeColumn[] = [
|
|
|
+ {
|
|
|
+ title: '产品id',
|
|
|
+ key: 'productId',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '产品分类',
|
|
|
+ key: 'productClass',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '产品编码',
|
|
|
+ key: 'productCode',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '产品中文名',
|
|
|
+ key: 'chineseName',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '产品英文名',
|
|
|
+ key: 'englishName',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '型号',
|
|
|
+ key: 'model',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '备件号',
|
|
|
+ key: 'partno',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '图号',
|
|
|
+ key: 'drawingno',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '质量等级',
|
|
|
+ key: 'qualityGrade',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '件数',
|
|
|
+ key: 'quantity',
|
|
|
+ type: JVxeTypes.inputNumber,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '重量',
|
|
|
+ key: 'weight',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '备注(notes)',
|
|
|
+ key: 'notes',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '供应商(supplier)',
|
|
|
+ key: 'supplier',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '供应商名称',
|
|
|
+ key: 'supplierName',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '附件',
|
|
|
+ key: 'attachs',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ ]
|
|
|
+export const storeConsignmentInShipColumns: JVxeColumn[] = [
|
|
|
+ {
|
|
|
+ title: '表头主键(寄存代发入库)',
|
|
|
+ key: 'headId',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '船id',
|
|
|
+ key: 'shipId',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '船名',
|
|
|
+ key: 'shipName',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '主机号',
|
|
|
+ key: 'hostNumber',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '工程编号',
|
|
|
+ key: 'projectNo',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '船厂',
|
|
|
+ key: 'shipFactory',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '船东',
|
|
|
+ key: 'shipowner',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ ]
|
|
|
+
|
|
|
+// 高级查询数据
|
|
|
+export const superQuerySchema = {
|
|
|
+ submit: {title: '提交(submit)1是0否',order: 0,view: 'list', type: 'string',dictCode: 'yes_or_no',},
|
|
|
+ billDate: {title: '单据日期',order: 1,view: 'date', type: 'string',},
|
|
|
+ billCode: {title: '单据编码',order: 2,view: 'text', type: 'string',},
|
|
|
+ project: {title: '项目(project)',order: 3,view: 'text', type: 'string',},
|
|
|
+ projectName: {title: '项目名称',order: 4,view: 'text', type: 'string',},
|
|
|
+ customer: {title: '客户',order: 5,view: 'text', type: 'string',},
|
|
|
+ customerName: {title: '客户名称',order: 6,view: 'text', type: 'string',},
|
|
|
+ warehouse: {title: '仓库(warehouse)',order: 7,view: 'text', type: 'string',},
|
|
|
+ goodsAllocation: {title: '货位(goods allocation)',order: 8,view: 'text', type: 'string',},
|
|
|
+ notes: {title: '备注(notes)',order: 9,view: 'textarea', type: 'string',},
|
|
|
+ attachs: {title: '附件(attachs)',order: 10,view: 'text', type: 'string',},
|
|
|
+ //子表高级查询
|
|
|
+ storeConsignmentInDetails: {
|
|
|
+ title: '寄存代发入库-子表产品明细',
|
|
|
+ view: 'table',
|
|
|
+ fields: {
|
|
|
+ productId: {title: '产品id',order: 0,view: 'text', type: 'string',},
|
|
|
+ productClass: {title: '产品分类',order: 1,view: 'text', type: 'string',},
|
|
|
+ productCode: {title: '产品编码',order: 2,view: 'text', type: 'string',},
|
|
|
+ chineseName: {title: '产品中文名',order: 3,view: 'text', type: 'string',},
|
|
|
+ englishName: {title: '产品英文名',order: 4,view: 'text', type: 'string',},
|
|
|
+ model: {title: '型号',order: 5,view: 'text', type: 'string',},
|
|
|
+ partno: {title: '备件号',order: 6,view: 'text', type: 'string',},
|
|
|
+ drawingno: {title: '图号',order: 7,view: 'text', type: 'string',},
|
|
|
+ qualityGrade: {title: '质量等级',order: 8,view: 'text', type: 'string',},
|
|
|
+ quantity: {title: '件数',order: 9,view: 'number', type: 'number',},
|
|
|
+ weight: {title: '重量',order: 10,view: 'text', type: 'string',},
|
|
|
+ notes: {title: '备注(notes)',order: 11,view: 'text', type: 'string',},
|
|
|
+ supplier: {title: '供应商(supplier)',order: 12,view: 'text', type: 'string',},
|
|
|
+ supplierName: {title: '供应商名称',order: 13,view: 'text', type: 'string',},
|
|
|
+ attachs: {title: '附件',order: 14,view: 'text', type: 'string',},
|
|
|
+ }
|
|
|
+ },
|
|
|
+ storeConsignmentInShip: {
|
|
|
+ title: '寄存代发入库-子表船明细',
|
|
|
+ view: 'table',
|
|
|
+ fields: {
|
|
|
+ headId: {title: '表头主键(寄存代发入库)',order: 0,view: 'text', type: 'string',},
|
|
|
+ shipId: {title: '船id',order: 1,view: 'text', type: 'string',},
|
|
|
+ shipName: {title: '船名',order: 2,view: 'text', type: 'string',},
|
|
|
+ hostNumber: {title: '主机号',order: 3,view: 'text', type: 'string',},
|
|
|
+ projectNo: {title: '工程编号',order: 4,view: 'text', type: 'string',},
|
|
|
+ shipFactory: {title: '船厂',order: 5,view: 'text', type: 'string',},
|
|
|
+ shipowner: {title: '船东',order: 6,view: 'text', type: 'string',},
|
|
|
+ }
|
|
|
+ },
|
|
|
+};
|