|
@@ -0,0 +1,602 @@
|
|
|
|
+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: '交易编号',
|
|
|
|
+ align:"center",
|
|
|
|
+ dataIndex: 'transactionId'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '客户号',
|
|
|
|
+ align:"center",
|
|
|
|
+ dataIndex: 'buyerTnId'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '客户名称',
|
|
|
|
+ align:"center",
|
|
|
|
+ dataIndex: 'buyerName'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '供应商号',
|
|
|
|
+ align:"center",
|
|
|
|
+ dataIndex: 'supplierTnId'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '供应商名称',
|
|
|
|
+ align:"center",
|
|
|
|
+ dataIndex: 'supplierName'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '优先级',
|
|
|
|
+ align:"center",
|
|
|
|
+ dataIndex: 'priority'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '币种',
|
|
|
|
+ align:"center",
|
|
|
|
+ dataIndex: 'currencyCode'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '编号',
|
|
|
|
+ align:"center",
|
|
|
|
+ dataIndex: 'referenceNumber'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '请求交货日期',
|
|
|
|
+ align:"center",
|
|
|
|
+ dataIndex: 'requestedDeliveryDate',
|
|
|
|
+ customRender:({text}) =>{
|
|
|
|
+ text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text);
|
|
|
|
+ return text;
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '建议截止日期',
|
|
|
|
+ align:"center",
|
|
|
|
+ dataIndex: 'adviseBeforeDate',
|
|
|
|
+ customRender:({text}) =>{
|
|
|
|
+ text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text);
|
|
|
|
+ return text;
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '提交日期',
|
|
|
|
+ align:"center",
|
|
|
|
+ dataIndex: 'submittedDate'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '内容',
|
|
|
|
+ align:"center",
|
|
|
|
+ dataIndex: 'content'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '同步状态(0-未同步,1-同步成功,2-同步失败)',
|
|
|
|
+ align:"center",
|
|
|
|
+ dataIndex: 'sync'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '同步信息',
|
|
|
|
+ align:"center",
|
|
|
|
+ dataIndex: 'syncInfo'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '同步人',
|
|
|
|
+ align:"center",
|
|
|
|
+ dataIndex: 'syncBy'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '同步时间',
|
|
|
|
+ align:"center",
|
|
|
|
+ dataIndex: 'syncTime'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '同步单号',
|
|
|
|
+ align:"center",
|
|
|
|
+ dataIndex: 'syncCode'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: 'subject',
|
|
|
|
+ align:"center",
|
|
|
|
+ dataIndex: 'subject'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: 'comment',
|
|
|
|
+ align:"center",
|
|
|
|
+ dataIndex: 'comment'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: 'requisitionId',
|
|
|
|
+ align:"center",
|
|
|
|
+ dataIndex: 'requisitionId'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: 'requestForQuoteId',
|
|
|
|
+ align:"center",
|
|
|
|
+ dataIndex: 'requestForQuoteId'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: 'quoteId',
|
|
|
|
+ align:"center",
|
|
|
|
+ dataIndex: 'quoteId'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: 'offeredQuality',
|
|
|
|
+ align:"center",
|
|
|
|
+ dataIndex: 'offeredQuality'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: 'taxStatus',
|
|
|
|
+ align:"center",
|
|
|
|
+ dataIndex: 'taxStatus'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: 'paymentTerms',
|
|
|
|
+ align:"center",
|
|
|
|
+ dataIndex: 'paymentTerms'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: 'vesselCode',
|
|
|
|
+ align:"center",
|
|
|
|
+ dataIndex: 'vesselCode'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: 'vesselImo',
|
|
|
|
+ align:"center",
|
|
|
|
+ dataIndex: 'vesselImo'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: 'buyerContactName',
|
|
|
|
+ align:"center",
|
|
|
|
+ dataIndex: 'buyerContactName'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: 'buyerContactJob',
|
|
|
|
+ align:"center",
|
|
|
|
+ dataIndex: 'buyerContactJob'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: 'buyerTelephone',
|
|
|
|
+ align:"center",
|
|
|
|
+ dataIndex: 'buyerTelephone'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: 'buyerFax',
|
|
|
|
+ align:"center",
|
|
|
|
+ dataIndex: 'buyerFax'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: 'buyerEmail',
|
|
|
|
+ align:"center",
|
|
|
|
+ dataIndex: 'buyerEmail'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: 'status',
|
|
|
|
+ align:"center",
|
|
|
|
+ dataIndex: 'status'
|
|
|
|
+ },
|
|
|
|
+];
|
|
|
|
+//查询数据
|
|
|
|
+export const searchFormSchema: FormSchema[] = [
|
|
|
|
+ {
|
|
|
|
+ label: "客户号",
|
|
|
|
+ field: "buyerTnId",
|
|
|
|
+ component: 'Input',
|
|
|
|
+ //colProps: {span: 6},
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: "客户名称",
|
|
|
|
+ field: "buyerName",
|
|
|
|
+ component: 'Input',
|
|
|
|
+ //colProps: {span: 6},
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: "提交日期",
|
|
|
|
+ field: "submittedDate",
|
|
|
|
+ component: 'RangePicker',
|
|
|
|
+ componentProps: {
|
|
|
|
+ valueType: 'Date',
|
|
|
|
+ showTime:true
|
|
|
|
+ },
|
|
|
|
+ //colProps: {span: 6},
|
|
|
|
+ },
|
|
|
|
+];
|
|
|
|
+//表单数据
|
|
|
|
+export const formSchema: FormSchema[] = [
|
|
|
|
+ {
|
|
|
|
+ label: '交易编号',
|
|
|
|
+ field: 'transactionId',
|
|
|
|
+ component: 'Input',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '客户号',
|
|
|
|
+ field: 'buyerTnId',
|
|
|
|
+ component: 'Input',
|
|
|
|
+ dynamicRules: ({model,schema}) => {
|
|
|
|
+ return [
|
|
|
|
+ { required: true, message: '请输入客户号!'},
|
|
|
|
+ ];
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '客户名称',
|
|
|
|
+ field: 'buyerName',
|
|
|
|
+ component: 'Input',
|
|
|
|
+ dynamicRules: ({model,schema}) => {
|
|
|
|
+ return [
|
|
|
|
+ { required: true, message: '请输入客户名称!'},
|
|
|
|
+ ];
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '供应商号',
|
|
|
|
+ field: 'supplierTnId',
|
|
|
|
+ component: 'Input',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '供应商名称',
|
|
|
|
+ field: 'supplierName',
|
|
|
|
+ component: 'Input',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '优先级',
|
|
|
|
+ field: 'priority',
|
|
|
|
+ component: 'Input',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '币种',
|
|
|
|
+ field: 'currencyCode',
|
|
|
|
+ component: 'Input',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '编号',
|
|
|
|
+ field: 'referenceNumber',
|
|
|
|
+ component: 'Input',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '请求交货日期',
|
|
|
|
+ field: 'requestedDeliveryDate',
|
|
|
|
+ component: 'DatePicker',
|
|
|
|
+ componentProps:{
|
|
|
|
+ valueFormat: 'YYYY-MM-DD'
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '建议截止日期',
|
|
|
|
+ field: 'adviseBeforeDate',
|
|
|
|
+ component: 'DatePicker',
|
|
|
|
+ componentProps:{
|
|
|
|
+ valueFormat: 'YYYY-MM-DD'
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '提交日期',
|
|
|
|
+ field: 'submittedDate',
|
|
|
|
+ component: 'DatePicker',
|
|
|
|
+ componentProps: {
|
|
|
|
+ showTime:true,
|
|
|
|
+ valueFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '内容',
|
|
|
|
+ field: 'content',
|
|
|
|
+ component: 'InputTextArea',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '同步状态(0-未同步,1-同步成功,2-同步失败)',
|
|
|
|
+ field: 'sync',
|
|
|
|
+ component: 'InputNumber',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '同步信息',
|
|
|
|
+ field: 'syncInfo',
|
|
|
|
+ component: 'Input',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '同步人',
|
|
|
|
+ field: 'syncBy',
|
|
|
|
+ component: 'Input',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '同步时间',
|
|
|
|
+ field: 'syncTime',
|
|
|
|
+ component: 'DatePicker',
|
|
|
|
+ componentProps: {
|
|
|
|
+ showTime:true,
|
|
|
|
+ valueFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '同步单号',
|
|
|
|
+ field: 'syncCode',
|
|
|
|
+ component: 'Input',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: 'subject',
|
|
|
|
+ field: 'subject',
|
|
|
|
+ component: 'Input',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: 'comment',
|
|
|
|
+ field: 'comment',
|
|
|
|
+ component: 'Input',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: 'requisitionId',
|
|
|
|
+ field: 'requisitionId',
|
|
|
|
+ component: 'Input',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: 'requestForQuoteId',
|
|
|
|
+ field: 'requestForQuoteId',
|
|
|
|
+ component: 'Input',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: 'quoteId',
|
|
|
|
+ field: 'quoteId',
|
|
|
|
+ component: 'Input',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: 'offeredQuality',
|
|
|
|
+ field: 'offeredQuality',
|
|
|
|
+ component: 'Input',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: 'taxStatus',
|
|
|
|
+ field: 'taxStatus',
|
|
|
|
+ component: 'Input',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: 'paymentTerms',
|
|
|
|
+ field: 'paymentTerms',
|
|
|
|
+ component: 'Input',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: 'vesselCode',
|
|
|
|
+ field: 'vesselCode',
|
|
|
|
+ component: 'Input',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: 'vesselImo',
|
|
|
|
+ field: 'vesselImo',
|
|
|
|
+ component: 'Input',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: 'buyerContactName',
|
|
|
|
+ field: 'buyerContactName',
|
|
|
|
+ component: 'Input',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: 'buyerContactJob',
|
|
|
|
+ field: 'buyerContactJob',
|
|
|
|
+ component: 'Input',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: 'buyerTelephone',
|
|
|
|
+ field: 'buyerTelephone',
|
|
|
|
+ component: 'Input',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: 'buyerFax',
|
|
|
|
+ field: 'buyerFax',
|
|
|
|
+ component: 'Input',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: 'buyerEmail',
|
|
|
|
+ field: 'buyerEmail',
|
|
|
|
+ component: 'Input',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: 'status',
|
|
|
|
+ field: 'status',
|
|
|
|
+ component: 'Input',
|
|
|
|
+ },
|
|
|
|
+ // TODO 主键隐藏字段,目前写死为ID
|
|
|
|
+ {
|
|
|
|
+ label: '',
|
|
|
|
+ field: 'id',
|
|
|
|
+ component: 'Input',
|
|
|
|
+ show: false
|
|
|
|
+ },
|
|
|
|
+];
|
|
|
|
+//子表单数据
|
|
|
|
+//子表表格配置
|
|
|
|
+export const saleInterfaceItemColumns: JVxeColumn[] = [
|
|
|
|
+ {
|
|
|
|
+ title: 'headId',
|
|
|
|
+ key: 'headId',
|
|
|
|
+ type: JVxeTypes.input,
|
|
|
|
+ width:"200px",
|
|
|
|
+ placeholder: '请输入${title}',
|
|
|
|
+ defaultValue:'',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '同步状态(0-未同步,1-同步成功,2-同步失败)',
|
|
|
|
+ key: 'sync',
|
|
|
|
+ type: JVxeTypes.inputNumber,
|
|
|
|
+ width:"200px",
|
|
|
|
+ placeholder: '请输入${title}',
|
|
|
|
+ defaultValue:'',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '同步信息',
|
|
|
|
+ key: 'syncInfo',
|
|
|
|
+ type: JVxeTypes.input,
|
|
|
|
+ width:"200px",
|
|
|
|
+ placeholder: '请输入${title}',
|
|
|
|
+ defaultValue:'',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '同步人',
|
|
|
|
+ key: 'syncBy',
|
|
|
|
+ type: JVxeTypes.input,
|
|
|
|
+ width:"200px",
|
|
|
|
+ placeholder: '请输入${title}',
|
|
|
|
+ defaultValue:'',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '同步时间',
|
|
|
|
+ key: 'syncTime',
|
|
|
|
+ type: JVxeTypes.datetime,
|
|
|
|
+ width:"200px",
|
|
|
|
+ placeholder: '请输入${title}',
|
|
|
|
+ defaultValue:'',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '同步单号',
|
|
|
|
+ key: 'syncCode',
|
|
|
|
+ type: JVxeTypes.input,
|
|
|
|
+ width:"200px",
|
|
|
|
+ placeholder: '请输入${title}',
|
|
|
|
+ defaultValue:'',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '同步后的产品编码',
|
|
|
|
+ key: 'syncItemCode',
|
|
|
|
+ type: JVxeTypes.input,
|
|
|
|
+ width:"200px",
|
|
|
|
+ placeholder: '请输入${title}',
|
|
|
|
+ defaultValue:'',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '内容',
|
|
|
|
+ key: 'content',
|
|
|
|
+ type: JVxeTypes.textarea,
|
|
|
|
+ width:"200px",
|
|
|
|
+ placeholder: '请输入${title}',
|
|
|
|
+ defaultValue:'',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: 'number',
|
|
|
|
+ key: 'number',
|
|
|
|
+ type: JVxeTypes.inputNumber,
|
|
|
|
+ width:"200px",
|
|
|
|
+ placeholder: '请输入${title}',
|
|
|
|
+ defaultValue:'',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: 'description',
|
|
|
|
+ key: 'description',
|
|
|
|
+ type: JVxeTypes.input,
|
|
|
|
+ width:"200px",
|
|
|
|
+ placeholder: '请输入${title}',
|
|
|
|
+ defaultValue:'',
|
|
|
|
+ validateRules: [
|
|
|
|
+ { required: true, message: '${title}不能为空' },
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: 'supplierPartNumber',
|
|
|
|
+ key: 'supplierPartNumber',
|
|
|
|
+ type: JVxeTypes.input,
|
|
|
|
+ width:"200px",
|
|
|
|
+ placeholder: '请输入${title}',
|
|
|
|
+ defaultValue:'',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: 'quantity',
|
|
|
|
+ key: 'quantity',
|
|
|
|
+ type: JVxeTypes.input,
|
|
|
|
+ width:"200px",
|
|
|
|
+ placeholder: '请输入${title}',
|
|
|
|
+ defaultValue:'',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: 'unitOfMeasure',
|
|
|
|
+ key: 'unitOfMeasure',
|
|
|
|
+ type: JVxeTypes.input,
|
|
|
|
+ width:"200px",
|
|
|
|
+ placeholder: '请输入${title}',
|
|
|
|
+ defaultValue:'',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: 'unitPrice',
|
|
|
|
+ key: 'unitPrice',
|
|
|
|
+ type: JVxeTypes.inputNumber,
|
|
|
|
+ width:"200px",
|
|
|
|
+ placeholder: '请输入${title}',
|
|
|
|
+ defaultValue:'',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: 'comment',
|
|
|
|
+ key: 'comment',
|
|
|
|
+ type: JVxeTypes.input,
|
|
|
|
+ width:"200px",
|
|
|
|
+ placeholder: '请输入${title}',
|
|
|
|
+ defaultValue:'',
|
|
|
|
+ },
|
|
|
|
+ ]
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+// 高级查询数据
|
|
|
|
+export const superQuerySchema = {
|
|
|
|
+ transactionId: {title: '交易编号',order: 0,view: 'text', type: 'string',},
|
|
|
|
+ buyerTnId: {title: '客户号',order: 1,view: 'text', type: 'string',},
|
|
|
|
+ buyerName: {title: '客户名称',order: 2,view: 'text', type: 'string',},
|
|
|
|
+ supplierTnId: {title: '供应商号',order: 3,view: 'text', type: 'string',},
|
|
|
|
+ supplierName: {title: '供应商名称',order: 4,view: 'text', type: 'string',},
|
|
|
|
+ priority: {title: '优先级',order: 5,view: 'text', type: 'string',},
|
|
|
|
+ currencyCode: {title: '币种',order: 6,view: 'text', type: 'string',},
|
|
|
|
+ referenceNumber: {title: '编号',order: 7,view: 'text', type: 'string',},
|
|
|
|
+ requestedDeliveryDate: {title: '请求交货日期',order: 8,view: 'date', type: 'string',},
|
|
|
|
+ adviseBeforeDate: {title: '建议截止日期',order: 9,view: 'date', type: 'string',},
|
|
|
|
+ submittedDate: {title: '提交日期',order: 10,view: 'datetime', type: 'string',},
|
|
|
|
+ content: {title: '内容',order: 11,view: 'textarea', type: 'string',},
|
|
|
|
+ sync: {title: '同步状态(0-未同步,1-同步成功,2-同步失败)',order: 12,view: 'number', type: 'number',},
|
|
|
|
+ syncInfo: {title: '同步信息',order: 13,view: 'text', type: 'string',},
|
|
|
|
+ syncBy: {title: '同步人',order: 14,view: 'text', type: 'string',},
|
|
|
|
+ syncTime: {title: '同步时间',order: 15,view: 'datetime', type: 'string',},
|
|
|
|
+ syncCode: {title: '同步单号',order: 16,view: 'text', type: 'string',},
|
|
|
|
+ subject: {title: 'subject',order: 18,view: 'text', type: 'string',},
|
|
|
|
+ comment: {title: 'comment',order: 19,view: 'text', type: 'string',},
|
|
|
|
+ requisitionId: {title: 'requisitionId',order: 20,view: 'text', type: 'string',},
|
|
|
|
+ requestForQuoteId: {title: 'requestForQuoteId',order: 21,view: 'text', type: 'string',},
|
|
|
|
+ quoteId: {title: 'quoteId',order: 22,view: 'text', type: 'string',},
|
|
|
|
+ offeredQuality: {title: 'offeredQuality',order: 23,view: 'text', type: 'string',},
|
|
|
|
+ taxStatus: {title: 'taxStatus',order: 24,view: 'text', type: 'string',},
|
|
|
|
+ paymentTerms: {title: 'paymentTerms',order: 25,view: 'text', type: 'string',},
|
|
|
|
+ vesselCode: {title: 'vesselCode',order: 26,view: 'text', type: 'string',},
|
|
|
|
+ vesselImo: {title: 'vesselImo',order: 27,view: 'text', type: 'string',},
|
|
|
|
+ buyerContactName: {title: 'buyerContactName',order: 28,view: 'text', type: 'string',},
|
|
|
|
+ buyerContactJob: {title: 'buyerContactJob',order: 29,view: 'text', type: 'string',},
|
|
|
|
+ buyerTelephone: {title: 'buyerTelephone',order: 30,view: 'text', type: 'string',},
|
|
|
|
+ buyerFax: {title: 'buyerFax',order: 31,view: 'text', type: 'string',},
|
|
|
|
+ buyerEmail: {title: 'buyerEmail',order: 32,view: 'text', type: 'string',},
|
|
|
|
+ status: {title: 'status',order: 33,view: 'text', type: 'string',},
|
|
|
|
+ //子表高级查询
|
|
|
|
+ saleInterfaceItem: {
|
|
|
|
+ title: '询价单-接口同步-子表',
|
|
|
|
+ view: 'table',
|
|
|
|
+ fields: {
|
|
|
|
+ headId: {title: 'headId',order: 0,view: 'text', type: 'string',},
|
|
|
|
+ sync: {title: '同步状态(0-未同步,1-同步成功,2-同步失败)',order: 2,view: 'number', type: 'number',},
|
|
|
|
+ syncInfo: {title: '同步信息',order: 3,view: 'text', type: 'string',},
|
|
|
|
+ syncBy: {title: '同步人',order: 4,view: 'text', type: 'string',},
|
|
|
|
+ syncTime: {title: '同步时间',order: 5,view: 'datetime', type: 'string',},
|
|
|
|
+ syncCode: {title: '同步单号',order: 6,view: 'text', type: 'string',},
|
|
|
|
+ syncItemCode: {title: '同步后的产品编码',order: 7,view: 'text', type: 'string',},
|
|
|
|
+ content: {title: '内容',order: 8,view: 'textarea', type: 'string',},
|
|
|
|
+ number: {title: 'number',order: 9,view: 'number', type: 'number',},
|
|
|
|
+ description: {title: 'description',order: 10,view: 'text', type: 'string',},
|
|
|
|
+ supplierPartNumber: {title: 'supplierPartNumber',order: 11,view: 'text', type: 'string',},
|
|
|
|
+ quantity: {title: 'quantity',order: 12,view: 'text', type: 'string',},
|
|
|
|
+ unitOfMeasure: {title: 'unitOfMeasure',order: 13,view: 'text', type: 'string',},
|
|
|
|
+ unitPrice: {title: 'unitPrice',order: 14,view: 'number', type: 'number',},
|
|
|
|
+ comment: {title: 'comment',order: 15,view: 'text', type: 'string',},
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+* 流程表单调用这个方法获取formSchema
|
|
|
|
+* @param param
|
|
|
|
+*/
|
|
|
|
+export function getBpmFormSchema(_formData): FormSchema[]{
|
|
|
|
+// 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema
|
|
|
|
+ return formSchema;
|
|
|
|
+}
|