|
@@ -0,0 +1,696 @@
|
|
|
+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: 'hisId'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '状态(1-已提交,0-未提交)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'status'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '单据日期',
|
|
|
+ align:"center",
|
|
|
+ sorter: true,
|
|
|
+ dataIndex: 'billDate',
|
|
|
+ customRender:({text}) =>{
|
|
|
+ text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text);
|
|
|
+ return text;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '单据编码',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'billCode'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '报价项目',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'quotationProject'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '报价项目名称',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'quotationProjectName'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '报价客户',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'quotationCustomer'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '报价客户名称',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'quotationCustomerName'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '业务类型(busyness type)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'busynessType'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '优先级(priority)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'priority'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '产品分类(production class)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'productionClass'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '机型(model)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'model'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '厂家(maker)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'maker'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '币种(currency)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'currency'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '交货条款(delivery terms)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'deliveryTerms'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '付款条件(payment terms)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'paymentTerms'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '付款条件2',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'paymentInfo'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '销售部门(sale department)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'saleDepartment_dictText'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '业务员(salesman)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'salesman_dictText'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '汇率(exchange rate)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'exchangeRate'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '备注(notes)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'notes'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '附件(attachs)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'attachs'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '版本号',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'version'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '关闭(1-是,0-否)',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'isClose'
|
|
|
+ },
|
|
|
+];
|
|
|
+
|
|
|
+export const searchFormSchema: FormSchema[] = [
|
|
|
+ {
|
|
|
+ label: "状态(1-已提交,0-未提交)",
|
|
|
+ field: "status",
|
|
|
+ component: 'InputNumber',
|
|
|
+
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "单据日期",
|
|
|
+ field: "billDate",
|
|
|
+ component: 'RangePicker',
|
|
|
+ componentProps: {
|
|
|
+ valueType: 'Date',
|
|
|
+ },
|
|
|
+
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "单据编码",
|
|
|
+ field: "billCode",
|
|
|
+ component: 'Input',
|
|
|
+
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "报价项目名称",
|
|
|
+ field: "quotationProjectName",
|
|
|
+ component: 'Input',
|
|
|
+
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "报价客户名称",
|
|
|
+ field: "quotationCustomerName",
|
|
|
+ component: 'Input',
|
|
|
+
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "业务类型(busyness type)",
|
|
|
+ field: "busynessType",
|
|
|
+ component: 'Input',
|
|
|
+
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "优先级(priority)",
|
|
|
+ field: "priority",
|
|
|
+ component: 'Input',
|
|
|
+
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "产品分类(production class)",
|
|
|
+ field: "productionClass",
|
|
|
+ component: 'Input',
|
|
|
+
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "机型(model)",
|
|
|
+ field: "model",
|
|
|
+ component: 'Input',
|
|
|
+
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "厂家(maker)",
|
|
|
+ field: "maker",
|
|
|
+ component: 'Input',
|
|
|
+
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "销售部门(sale department)",
|
|
|
+ field: "saleDepartment",
|
|
|
+ component: 'JSelectDept',
|
|
|
+ componentProps:{
|
|
|
+ },
|
|
|
+
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "业务员(salesman)",
|
|
|
+ field: "salesman",
|
|
|
+ component: 'JSelectUser',
|
|
|
+ componentProps:{
|
|
|
+ },
|
|
|
+
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "关闭(1-是,0-否)",
|
|
|
+ field: "isClose",
|
|
|
+ component: 'InputNumber',
|
|
|
+
|
|
|
+ },
|
|
|
+];
|
|
|
+
|
|
|
+export const formSchema: FormSchema[] = [
|
|
|
+ {
|
|
|
+ label: '历史主键',
|
|
|
+ field: 'hisId',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '状态(1-已提交,0-未提交)',
|
|
|
+ field: 'status',
|
|
|
+ component: 'InputNumber',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '单据日期',
|
|
|
+ field: 'billDate',
|
|
|
+ component: 'DatePicker',
|
|
|
+ componentProps:{
|
|
|
+ valueFormat: 'YYYY-MM-DD'
|
|
|
+ },
|
|
|
+ dynamicRules: ({model,schema}) => {
|
|
|
+ return [
|
|
|
+ { required: true, message: '请输入单据日期!'},
|
|
|
+ ];
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '单据编码',
|
|
|
+ field: 'billCode',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '报价项目',
|
|
|
+ field: 'quotationProject',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '报价项目名称',
|
|
|
+ field: 'quotationProjectName',
|
|
|
+ component: 'Input',
|
|
|
+ dynamicRules: ({model,schema}) => {
|
|
|
+ return [
|
|
|
+ { required: true, message: '请输入报价项目名称!'},
|
|
|
+ ];
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '报价客户',
|
|
|
+ field: 'quotationCustomer',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '报价客户名称',
|
|
|
+ field: 'quotationCustomerName',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '业务类型(busyness type)',
|
|
|
+ field: 'busynessType',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '优先级(priority)',
|
|
|
+ field: 'priority',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '产品分类(production class)',
|
|
|
+ field: 'productionClass',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '机型(model)',
|
|
|
+ field: 'model',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '厂家(maker)',
|
|
|
+ field: 'maker',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '币种(currency)',
|
|
|
+ field: 'currency',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '交货条款(delivery terms)',
|
|
|
+ field: 'deliveryTerms',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '付款条件(payment terms)',
|
|
|
+ field: 'paymentTerms',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '付款条件2',
|
|
|
+ field: 'paymentInfo',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '销售部门(sale department)',
|
|
|
+ field: 'saleDepartment',
|
|
|
+ component: 'JSelectDept',
|
|
|
+ componentProps:{
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '业务员(salesman)',
|
|
|
+ field: 'salesman',
|
|
|
+ component: 'JSelectUser',
|
|
|
+ componentProps:{
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '汇率(exchange rate)',
|
|
|
+ field: 'exchangeRate',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '备注(notes)',
|
|
|
+ field: 'notes',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '附件(attachs)',
|
|
|
+ field: 'attachs',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '版本号',
|
|
|
+ field: 'version',
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '关闭(1-是,0-否)',
|
|
|
+ field: 'isClose',
|
|
|
+ component: 'InputNumber',
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
+ label: '',
|
|
|
+ field: 'id',
|
|
|
+ component: 'Input',
|
|
|
+ show: false
|
|
|
+ },
|
|
|
+];
|
|
|
+
|
|
|
+
|
|
|
+export const saleContractShipColumns: JVxeColumn[] = [
|
|
|
+ {
|
|
|
+ title: '状态(1-启用,0-停用)',
|
|
|
+ key: 'status',
|
|
|
+ type: JVxeTypes.inputNumber,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ 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 saleContractProductColumns: JVxeColumn[] = [
|
|
|
+ {
|
|
|
+ title: '状态(1-启用,0-停用)',
|
|
|
+ key: 'status',
|
|
|
+ type: JVxeTypes.inputNumber,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '表头主键(销售报价单)',
|
|
|
+ key: 'headId',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '交期',
|
|
|
+ key: 'deliveryTime',
|
|
|
+ type: JVxeTypes.datetime,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ 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: 'specifications',
|
|
|
+ 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: 'orderno',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '厂家',
|
|
|
+ key: 'factory',
|
|
|
+ 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: 'unit',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '税率(tax rate)',
|
|
|
+ key: 'taxRate',
|
|
|
+ type: JVxeTypes.inputNumber,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '折扣(discount)',
|
|
|
+ key: 'discount',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '含税单价(tax price)',
|
|
|
+ key: 'taxPrice',
|
|
|
+ type: JVxeTypes.inputNumber,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '含税金额(tax amount)',
|
|
|
+ key: 'taxAmount',
|
|
|
+ type: JVxeTypes.inputNumber,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '备注(notes)',
|
|
|
+ key: 'notes',
|
|
|
+ type: JVxeTypes.input,
|
|
|
+ width:"200px",
|
|
|
+ placeholder: '请输入${title}',
|
|
|
+ defaultValue:'',
|
|
|
+ },
|
|
|
+ ]
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+export const superQuerySchema = {
|
|
|
+ hisId: {title: '历史主键',order: 0,view: 'text', type: 'string',},
|
|
|
+ status: {title: '状态(1-已提交,0-未提交)',order: 1,view: 'number', type: 'number',},
|
|
|
+ billDate: {title: '单据日期',order: 2,view: 'date', type: 'string',},
|
|
|
+ billCode: {title: '单据编码',order: 3,view: 'text', type: 'string',},
|
|
|
+ quotationProject: {title: '报价项目',order: 4,view: 'text', type: 'string',},
|
|
|
+ quotationProjectName: {title: '报价项目名称',order: 5,view: 'text', type: 'string',},
|
|
|
+ quotationCustomer: {title: '报价客户',order: 6,view: 'text', type: 'string',},
|
|
|
+ quotationCustomerName: {title: '报价客户名称',order: 7,view: 'text', type: 'string',},
|
|
|
+ busynessType: {title: '业务类型(busyness type)',order: 8,view: 'text', type: 'string',},
|
|
|
+ priority: {title: '优先级(priority)',order: 9,view: 'text', type: 'string',},
|
|
|
+ productionClass: {title: '产品分类(production class)',order: 10,view: 'text', type: 'string',},
|
|
|
+ model: {title: '机型(model)',order: 11,view: 'text', type: 'string',},
|
|
|
+ maker: {title: '厂家(maker)',order: 12,view: 'text', type: 'string',},
|
|
|
+ currency: {title: '币种(currency)',order: 13,view: 'text', type: 'string',},
|
|
|
+ deliveryTerms: {title: '交货条款(delivery terms)',order: 14,view: 'text', type: 'string',},
|
|
|
+ paymentTerms: {title: '付款条件(payment terms)',order: 15,view: 'text', type: 'string',},
|
|
|
+ paymentInfo: {title: '付款条件2',order: 16,view: 'text', type: 'string',},
|
|
|
+ saleDepartment: {title: '销售部门(sale department)',order: 17,view: 'sel_depart', type: 'string',},
|
|
|
+ salesman: {title: '业务员(salesman)',order: 18,view: 'sel_user', type: 'string',},
|
|
|
+ exchangeRate: {title: '汇率(exchange rate)',order: 19,view: 'text', type: 'string',},
|
|
|
+ notes: {title: '备注(notes)',order: 20,view: 'text', type: 'string',},
|
|
|
+ attachs: {title: '附件(attachs)',order: 21,view: 'text', type: 'string',},
|
|
|
+ version: {title: '版本号',order: 22,view: 'text', type: 'string',},
|
|
|
+ isClose: {title: '关闭(1-是,0-否)',order: 23,view: 'number', type: 'number',},
|
|
|
+
|
|
|
+ saleContractShip: {
|
|
|
+ title: '销售合同-船明细',
|
|
|
+ view: 'table',
|
|
|
+ fields: {
|
|
|
+ status: {title: '状态(1-启用,0-停用)',order: 0,view: 'number', type: 'number',},
|
|
|
+ headId: {title: '表头主键(销售合同)',order: 2,view: 'text', type: 'string',},
|
|
|
+ shipId: {title: '船id',order: 3,view: 'text', type: 'string',},
|
|
|
+ shipName: {title: '船名',order: 4,view: 'text', type: 'string',},
|
|
|
+ hostNumber: {title: '主机号',order: 5,view: 'text', type: 'string',},
|
|
|
+ projectNo: {title: '工程编号',order: 6,view: 'text', type: 'string',},
|
|
|
+ shipFactory: {title: '船厂',order: 7,view: 'text', type: 'string',},
|
|
|
+ shipowner: {title: '船东',order: 8,view: 'text', type: 'string',},
|
|
|
+ }
|
|
|
+ },
|
|
|
+ saleContractProduct: {
|
|
|
+ title: '销售合同-产品明细',
|
|
|
+ view: 'table',
|
|
|
+ fields: {
|
|
|
+ status: {title: '状态(1-启用,0-停用)',order: 0,view: 'number', type: 'number',},
|
|
|
+ headId: {title: '表头主键(销售报价单)',order: 2,view: 'text', type: 'string',},
|
|
|
+ deliveryTime: {title: '交期',order: 3,view: 'datetime', type: 'string',},
|
|
|
+ productId: {title: '产品id',order: 4,view: 'text', type: 'string',},
|
|
|
+ productClass: {title: '产品分类',order: 5,view: 'text', type: 'string',},
|
|
|
+ productCode: {title: '产品编码',order: 6,view: 'text', type: 'string',},
|
|
|
+ chineseName: {title: '产品中文名',order: 7,view: 'text', type: 'string',},
|
|
|
+ englishName: {title: '产品英文名',order: 8,view: 'text', type: 'string',},
|
|
|
+ specifications: {title: '规格',order: 9,view: 'text', type: 'string',},
|
|
|
+ model: {title: '型号',order: 10,view: 'text', type: 'string',},
|
|
|
+ partno: {title: '备件号',order: 11,view: 'text', type: 'string',},
|
|
|
+ drawingno: {title: '图号',order: 12,view: 'text', type: 'string',},
|
|
|
+ orderno: {title: '订货号',order: 13,view: 'text', type: 'string',},
|
|
|
+ factory: {title: '厂家',order: 14,view: 'text', type: 'string',},
|
|
|
+ qualityGrade: {title: '质量等级',order: 15,view: 'text', type: 'string',},
|
|
|
+ quantity: {title: '数量',order: 16,view: 'number', type: 'number',},
|
|
|
+ unit: {title: '单位',order: 17,view: 'text', type: 'string',},
|
|
|
+ taxRate: {title: '税率(tax rate)',order: 18,view: 'number', type: 'number',},
|
|
|
+ discount: {title: '折扣(discount)',order: 19,view: 'text', type: 'string',},
|
|
|
+ taxPrice: {title: '含税单价(tax price)',order: 20,view: 'number', type: 'number',},
|
|
|
+ taxAmount: {title: '含税金额(tax amount)',order: 21,view: 'number', type: 'number',},
|
|
|
+ notes: {title: '备注(notes)',order: 22,view: 'text', type: 'string',},
|
|
|
+ }
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
+* 流程表单调用这个方法获取formSchema
|
|
|
+* @param param
|
|
|
+*/
|
|
|
+export function getBpmFormSchema(_formData): FormSchema[]{
|
|
|
+
|
|
|
+ return formSchema;
|
|
|
+}
|