|
@@ -1,23 +1,16 @@
|
|
|
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';
|
|
|
+import { defHttp } from '/@/utils/http/axios';
|
|
|
//列表数据
|
|
|
export const columns: BasicColumn[] = [
|
|
|
- {
|
|
|
- title: '历史主键',
|
|
|
- align:"center",
|
|
|
- dataIndex: 'hisId'
|
|
|
- },
|
|
|
- {
|
|
|
- title: '状态(1-已提交,0-未提交)',
|
|
|
+ {
|
|
|
+ title: '单据编码(bill code)',
|
|
|
align:"center",
|
|
|
- dataIndex: 'status'
|
|
|
+ dataIndex: 'billCode'
|
|
|
},
|
|
|
{
|
|
|
- title: '单据日期',
|
|
|
+ title: '单据日期(bill date)',
|
|
|
align:"center",
|
|
|
sorter: true,
|
|
|
dataIndex: 'billDate',
|
|
@@ -27,35 +20,15 @@ export const columns: BasicColumn[] = [
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
- title: '单据编码',
|
|
|
- align:"center",
|
|
|
- dataIndex: 'billCode'
|
|
|
- },
|
|
|
- {
|
|
|
- title: '报价项目',
|
|
|
- align:"center",
|
|
|
- dataIndex: 'quotationProject'
|
|
|
- },
|
|
|
- {
|
|
|
- title: '报价项目名称',
|
|
|
+ title: '项目(Project)',
|
|
|
align:"center",
|
|
|
dataIndex: 'quotationProjectName'
|
|
|
},
|
|
|
{
|
|
|
- title: '报价客户',
|
|
|
- align:"center",
|
|
|
- dataIndex: 'quotationCustomer'
|
|
|
- },
|
|
|
- {
|
|
|
- title: '报价客户名称',
|
|
|
+ title: '客户(Customer)',
|
|
|
align:"center",
|
|
|
dataIndex: 'quotationCustomerName'
|
|
|
},
|
|
|
- {
|
|
|
- title: '业务类型(busyness type)',
|
|
|
- align:"center",
|
|
|
- dataIndex: 'busynessType'
|
|
|
- },
|
|
|
{
|
|
|
title: '优先级(priority)',
|
|
|
align:"center",
|
|
@@ -77,188 +50,194 @@ export const columns: BasicColumn[] = [
|
|
|
dataIndex: 'maker'
|
|
|
},
|
|
|
{
|
|
|
- title: '币种(currency)',
|
|
|
- align:"center",
|
|
|
- dataIndex: 'currency'
|
|
|
- },
|
|
|
- {
|
|
|
- title: '交货条款(delivery terms)',
|
|
|
- align:"center",
|
|
|
- dataIndex: 'deliveryTerms'
|
|
|
- },
|
|
|
- {
|
|
|
- title: '付款条件(payment terms)',
|
|
|
- align:"center",
|
|
|
- dataIndex: 'paymentTerms'
|
|
|
- },
|
|
|
- {
|
|
|
- title: '付款条件2',
|
|
|
+ title: '业务类型(busyness type)',
|
|
|
align:"center",
|
|
|
- dataIndex: 'paymentInfo'
|
|
|
+ dataIndex: 'busynessType',
|
|
|
+ // width:250,
|
|
|
},
|
|
|
{
|
|
|
title: '销售部门(sale department)',
|
|
|
align:"center",
|
|
|
- dataIndex: 'saleDepartment_dictText'
|
|
|
+ dataIndex: 'saleDepartment'
|
|
|
},
|
|
|
{
|
|
|
title: '业务员(salesman)',
|
|
|
align:"center",
|
|
|
- dataIndex: 'salesman_dictText'
|
|
|
- },
|
|
|
- {
|
|
|
- title: '汇率(exchange rate)',
|
|
|
- align:"center",
|
|
|
- dataIndex: 'exchangeRate'
|
|
|
+ dataIndex: 'salesman'
|
|
|
},
|
|
|
{
|
|
|
- title: '备注(notes)',
|
|
|
+ title: '关闭(close)',
|
|
|
align:"center",
|
|
|
- dataIndex: 'notes'
|
|
|
+ dataIndex: 'isClose_dictText'
|
|
|
},
|
|
|
{
|
|
|
- title: '附件(attachs)',
|
|
|
+ title: '提交(submit)',
|
|
|
align:"center",
|
|
|
- dataIndex: 'attachs'
|
|
|
+ dataIndex: 'status_dictText'
|
|
|
},
|
|
|
{
|
|
|
title: '版本号',
|
|
|
align:"center",
|
|
|
dataIndex: 'version'
|
|
|
},
|
|
|
- {
|
|
|
- title: '关闭(1-是,0-否)',
|
|
|
- align:"center",
|
|
|
- dataIndex: 'isClose'
|
|
|
- },
|
|
|
];
|
|
|
//查询数据
|
|
|
export const searchFormSchema: FormSchema[] = [
|
|
|
- {
|
|
|
- label: "状态(1-已提交,0-未提交)",
|
|
|
- field: "status",
|
|
|
- component: 'InputNumber',
|
|
|
- //colProps: {span: 6},
|
|
|
- },
|
|
|
- {
|
|
|
- label: "单据日期",
|
|
|
+ {
|
|
|
+ label: "单据编码(bill code)",
|
|
|
+ field: "billCode",
|
|
|
+ component: 'Input',
|
|
|
+ labelWidth: 150,
|
|
|
+ //colProps: {span: 6},
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "单据日期(bill date)",
|
|
|
field: "billDate",
|
|
|
component: 'RangePicker',
|
|
|
+ labelWidth: 150,
|
|
|
componentProps: {
|
|
|
valueType: 'Date',
|
|
|
},
|
|
|
//colProps: {span: 6},
|
|
|
},
|
|
|
+ {
|
|
|
+ label: "业务类型(busyness type)",
|
|
|
+ field: "busynessType",
|
|
|
+ labelWidth: 180,
|
|
|
+ component: 'JDictSelectTag',
|
|
|
+ componentProps:{
|
|
|
+ dictCode:"busyness_type"
|
|
|
+ },
|
|
|
+ //colProps: {span: 6},
|
|
|
+ },
|
|
|
+
|
|
|
{
|
|
|
- label: "单据编码",
|
|
|
- field: "billCode",
|
|
|
- component: 'Input',
|
|
|
- //colProps: {span: 6},
|
|
|
- },
|
|
|
- {
|
|
|
- label: "报价项目名称",
|
|
|
- field: "quotationProjectName",
|
|
|
- component: 'Input',
|
|
|
- //colProps: {span: 6},
|
|
|
- },
|
|
|
- {
|
|
|
- label: "报价客户名称",
|
|
|
+ label: "客户(Customer)",
|
|
|
field: "quotationCustomerName",
|
|
|
+ labelWidth: 150,
|
|
|
component: 'Input',
|
|
|
//colProps: {span: 6},
|
|
|
},
|
|
|
- {
|
|
|
- label: "业务类型(busyness type)",
|
|
|
- field: "busynessType",
|
|
|
- component: 'Input',
|
|
|
- //colProps: {span: 6},
|
|
|
- },
|
|
|
+ {
|
|
|
+ label: "项目(Project)",
|
|
|
+ field: "quotationProjectName",
|
|
|
+ labelWidth: 150,
|
|
|
+ component: 'Input',
|
|
|
+ //colProps: {span: 6},
|
|
|
+ },
|
|
|
+
|
|
|
{
|
|
|
label: "优先级(priority)",
|
|
|
field: "priority",
|
|
|
- component: 'Input',
|
|
|
+ labelWidth: 150,
|
|
|
+ component: 'JDictSelectTag',
|
|
|
+ componentProps:{
|
|
|
+ dictCode:"priority"
|
|
|
+ },
|
|
|
//colProps: {span: 6},
|
|
|
},
|
|
|
{
|
|
|
label: "产品分类(production class)",
|
|
|
field: "productionClass",
|
|
|
- component: 'Input',
|
|
|
+ labelWidth: 180,
|
|
|
+ component: 'ApiSelect',
|
|
|
+ componentProps: {
|
|
|
+ // mode: 'multiple',//multiple: 多选;不填写为单选
|
|
|
+ //请求api,返回结果{ result: { records: [{'id':'1',name:'scott'},{'id':'2',name:'小张'}] }}
|
|
|
+ api: ()=> defHttp.get({ url: 'baseCode/baseProductClass/list?pageSize=-1' }),
|
|
|
+ //数值转成String
|
|
|
+ numberToString: false,
|
|
|
+ //标题字段
|
|
|
+ labelField: 'name',
|
|
|
+ //值字段
|
|
|
+ valueField: 'id',
|
|
|
+ //请求参数
|
|
|
+ params:{},
|
|
|
+ //返回结果字段
|
|
|
+ resultField:'records'
|
|
|
+ },
|
|
|
//colProps: {span: 6},
|
|
|
},
|
|
|
{
|
|
|
label: "机型(model)",
|
|
|
field: "model",
|
|
|
- component: 'Input',
|
|
|
+ labelWidth: 150,
|
|
|
+ component: 'JDictSelectTag',
|
|
|
+ componentProps:{
|
|
|
+ dictCode:"model_typer"
|
|
|
+ },
|
|
|
//colProps: {span: 6},
|
|
|
},
|
|
|
{
|
|
|
label: "厂家(maker)",
|
|
|
field: "maker",
|
|
|
+ labelWidth: 150,
|
|
|
component: 'Input',
|
|
|
- //colProps: {span: 6},
|
|
|
- },
|
|
|
- {
|
|
|
- label: "销售部门(sale department)",
|
|
|
- field: "saleDepartment",
|
|
|
- component: 'JSelectDept',
|
|
|
- componentProps:{
|
|
|
- },
|
|
|
//colProps: {span: 6},
|
|
|
},
|
|
|
{
|
|
|
label: "业务员(salesman)",
|
|
|
field: "salesman",
|
|
|
+ labelWidth: 150,
|
|
|
component: 'JSelectUser',
|
|
|
- componentProps:{
|
|
|
- },
|
|
|
+ componentProps:{
|
|
|
+ },
|
|
|
//colProps: {span: 6},
|
|
|
},
|
|
|
+ {
|
|
|
+ label: "销售部门(sale department)",
|
|
|
+ field: "saleDepartment",
|
|
|
+ labelWidth: 180,
|
|
|
+ component: 'JSelectDept',
|
|
|
+ componentProps:{
|
|
|
+ },
|
|
|
+ //colProps: {span: 6},
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "提交(submit)",
|
|
|
+ field: "status",
|
|
|
+ labelWidth: 150,
|
|
|
+ component: 'JDictSelectTag',
|
|
|
+ componentProps:{
|
|
|
+ dictCode:"yes_or_no"
|
|
|
+ },
|
|
|
+ //colProps: {span: 6},
|
|
|
+ },
|
|
|
{
|
|
|
- label: "关闭(1-是,0-否)",
|
|
|
- field: "isClose",
|
|
|
- component: 'InputNumber',
|
|
|
+ label: "关闭(close)",
|
|
|
+ field: "isClose",
|
|
|
+ labelWidth: 150,
|
|
|
+ component: 'JDictSelectTag',
|
|
|
+ componentProps:{
|
|
|
+ dictCode:"yes_or_no"
|
|
|
+ },
|
|
|
//colProps: {span: 6},
|
|
|
},
|
|
|
];
|
|
|
//表单数据
|
|
|
export const formSchema: FormSchema[] = [
|
|
|
{
|
|
|
- label: '历史主键',
|
|
|
- field: 'hisId',
|
|
|
- component: 'Input',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '状态(1-已提交,0-未提交)',
|
|
|
- field: 'status',
|
|
|
- component: 'InputNumber',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '单据日期',
|
|
|
+ label: '单据日期(bill date)',
|
|
|
field: 'billDate',
|
|
|
component: 'DatePicker',
|
|
|
- componentProps:{
|
|
|
- valueFormat: 'YYYY-MM-DD'
|
|
|
- },
|
|
|
- dynamicRules: ({model,schema}) => {
|
|
|
- return [
|
|
|
- { required: true, message: '请输入单据日期!'},
|
|
|
- ];
|
|
|
- },
|
|
|
+ componentProps: {
|
|
|
+ valueFormat: 'YYYY-MM-DD',
|
|
|
+ },
|
|
|
+ dynamicDisabled:true,
|
|
|
+ labelWidth: 200,
|
|
|
},
|
|
|
{
|
|
|
- label: '单据编码',
|
|
|
+ label: '合同编号(bill code)',
|
|
|
field: 'billCode',
|
|
|
+ labelWidth: 200,
|
|
|
component: 'Input',
|
|
|
},
|
|
|
{
|
|
|
- label: '报价项目',
|
|
|
- field: 'quotationProject',
|
|
|
- component: 'Input',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '报价项目名称',
|
|
|
+ label: '报价项目(quotation project)',
|
|
|
+ labelWidth: 200,
|
|
|
field: 'quotationProjectName',
|
|
|
- component: 'Input',
|
|
|
+ component: 'InputSearch',
|
|
|
+ slot: 'quotationProjectName',
|
|
|
dynamicRules: ({model,schema}) => {
|
|
|
return [
|
|
|
{ required: true, message: '请输入报价项目名称!'},
|
|
@@ -266,312 +245,297 @@ export const formSchema: FormSchema[] = [
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
- label: '报价客户',
|
|
|
- field: 'quotationCustomer',
|
|
|
- component: 'Input',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '报价客户名称',
|
|
|
+ label: '客户(customer)',
|
|
|
+ labelWidth: 200,
|
|
|
field: 'quotationCustomerName',
|
|
|
component: 'Input',
|
|
|
+ dynamicDisabled:true,
|
|
|
},
|
|
|
{
|
|
|
label: '业务类型(busyness type)',
|
|
|
+ labelWidth: 200,
|
|
|
field: 'busynessType',
|
|
|
- component: 'Input',
|
|
|
+ component: 'JDictSelectTag',
|
|
|
+ componentProps:{
|
|
|
+ dictCode:"busyness_type"
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
label: '优先级(priority)',
|
|
|
+ labelWidth: 200,
|
|
|
field: 'priority',
|
|
|
- component: 'Input',
|
|
|
+ component: 'JDictSelectTag',
|
|
|
+ componentProps:{
|
|
|
+ dictCode:"priority"
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
label: '产品分类(production class)',
|
|
|
+ labelWidth: 200,
|
|
|
field: 'productionClass',
|
|
|
+ slot: 'productionClass',
|
|
|
component: 'Input',
|
|
|
},
|
|
|
{
|
|
|
label: '机型(model)',
|
|
|
field: 'model',
|
|
|
- component: 'Input',
|
|
|
+ labelWidth: 200,
|
|
|
+ component: 'JDictSelectTag',
|
|
|
+ componentProps:{
|
|
|
+ dictCode:"model_typer"
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
label: '厂家(maker)',
|
|
|
+ labelWidth: 200,
|
|
|
field: 'maker',
|
|
|
component: 'Input',
|
|
|
},
|
|
|
{
|
|
|
label: '币种(currency)',
|
|
|
+ labelWidth: 200,
|
|
|
field: 'currency',
|
|
|
- component: 'Input',
|
|
|
+ component: 'JDictSelectTag',
|
|
|
+ componentProps:{
|
|
|
+ dictCode:"currency"
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
label: '交货条款(delivery terms)',
|
|
|
+ labelWidth: 200,
|
|
|
field: 'deliveryTerms',
|
|
|
- component: 'Input',
|
|
|
+ component: 'JDictSelectTag',
|
|
|
+ componentProps:{
|
|
|
+ dictCode:"delivery_terms"
|
|
|
+ },
|
|
|
},
|
|
|
+
|
|
|
{
|
|
|
label: '付款条件(payment terms)',
|
|
|
field: 'paymentTerms',
|
|
|
- component: 'Input',
|
|
|
+ labelWidth: 200,
|
|
|
+ component: 'JDictSelectTag',
|
|
|
+ componentProps:{
|
|
|
+ dictCode:"payment_terms"
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
label: '付款条件2',
|
|
|
field: 'paymentInfo',
|
|
|
+ labelWidth: 200,
|
|
|
component: 'Input',
|
|
|
},
|
|
|
{
|
|
|
label: '销售部门(sale department)',
|
|
|
field: 'saleDepartment',
|
|
|
- component: 'JSelectDept',
|
|
|
- componentProps:{
|
|
|
- },
|
|
|
+ labelWidth: 200,
|
|
|
+ component: 'Input',
|
|
|
+ dynamicDisabled:true,
|
|
|
+ componentProps:{
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
label: '业务员(salesman)',
|
|
|
field: 'salesman',
|
|
|
- component: 'JSelectUser',
|
|
|
- componentProps:{
|
|
|
- },
|
|
|
+ labelWidth: 200,
|
|
|
+ component: 'Input',
|
|
|
+ dynamicDisabled:true,
|
|
|
+ componentProps:{
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
label: '汇率(exchange rate)',
|
|
|
field: 'exchangeRate',
|
|
|
+ labelWidth: 200,
|
|
|
component: 'Input',
|
|
|
},
|
|
|
{
|
|
|
label: '备注(notes)',
|
|
|
field: 'notes',
|
|
|
+ labelWidth: 200,
|
|
|
component: 'Input',
|
|
|
},
|
|
|
{
|
|
|
label: '附件(attachs)',
|
|
|
field: 'attachs',
|
|
|
- component: 'Input',
|
|
|
+ labelWidth: 200,
|
|
|
+ component: 'JUpload',
|
|
|
},
|
|
|
{
|
|
|
- label: '版本号',
|
|
|
- field: 'version',
|
|
|
- component: 'Input',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '关闭(1-是,0-否)',
|
|
|
- field: 'isClose',
|
|
|
- component: 'InputNumber',
|
|
|
- },
|
|
|
- // TODO 主键隐藏字段,目前写死为ID
|
|
|
- {
|
|
|
label: '',
|
|
|
field: 'id',
|
|
|
component: 'Input',
|
|
|
show: false
|
|
|
},
|
|
|
+ {
|
|
|
+ label: '',
|
|
|
+ field: 'quotationCustomer',
|
|
|
+ component: 'Input',
|
|
|
+ show: false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '',
|
|
|
+ field: 'quotationProject',
|
|
|
+ component: 'Input',
|
|
|
+ show: false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '',
|
|
|
+ field: 'status',
|
|
|
+ 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: '船名',
|
|
|
+ title: '船名(ship name)',
|
|
|
key: 'shipName',
|
|
|
- type: JVxeTypes.input,
|
|
|
- width:"200px",
|
|
|
+ type: JVxeTypes.normal,
|
|
|
placeholder: '请输入${title}',
|
|
|
defaultValue:'',
|
|
|
},
|
|
|
{
|
|
|
- title: '主机号',
|
|
|
+ title: '主机号(hostN number)',
|
|
|
key: 'hostNumber',
|
|
|
type: JVxeTypes.input,
|
|
|
- width:"200px",
|
|
|
placeholder: '请输入${title}',
|
|
|
defaultValue:'',
|
|
|
},
|
|
|
{
|
|
|
- title: '工程编号',
|
|
|
+ title: '工程编号(project No)',
|
|
|
key: 'projectNo',
|
|
|
type: JVxeTypes.input,
|
|
|
- width:"200px",
|
|
|
placeholder: '请输入${title}',
|
|
|
defaultValue:'',
|
|
|
},
|
|
|
{
|
|
|
- title: '船厂',
|
|
|
+ title: '船厂(ship factory)',
|
|
|
key: 'shipFactory',
|
|
|
- type: JVxeTypes.input,
|
|
|
+ type: JVxeTypes.normal,
|
|
|
width:"200px",
|
|
|
placeholder: '请输入${title}',
|
|
|
defaultValue:'',
|
|
|
},
|
|
|
{
|
|
|
- title: '船东',
|
|
|
+ title: '船东(shipowner)',
|
|
|
key: 'shipowner',
|
|
|
- type: JVxeTypes.input,
|
|
|
- width:"200px",
|
|
|
- placeholder: '请输入${title}',
|
|
|
- defaultValue:'',
|
|
|
- },
|
|
|
- ]
|
|
|
-export const saleContractProductColumns: JVxeColumn[] = [
|
|
|
- {
|
|
|
- title: '状态(1-启用,0-停用)',
|
|
|
- key: 'status',
|
|
|
- type: JVxeTypes.inputNumber,
|
|
|
- width:"200px",
|
|
|
+ type: JVxeTypes.normal,
|
|
|
placeholder: '请输入${title}',
|
|
|
defaultValue:'',
|
|
|
},
|
|
|
{
|
|
|
- title: '表头主键(销售报价单)',
|
|
|
- key: 'headId',
|
|
|
- type: JVxeTypes.input,
|
|
|
- width:"200px",
|
|
|
- placeholder: '请输入${title}',
|
|
|
- defaultValue:'',
|
|
|
+ title: '操作(operation)',
|
|
|
+ key: 'action',
|
|
|
+ width:"400px",
|
|
|
+ // 固定在右侧
|
|
|
+ fixed: 'right',
|
|
|
+ // 对齐方式为居中
|
|
|
+ align: 'center',
|
|
|
+ // 组件类型定义为【插槽】
|
|
|
+ type: JVxeTypes.slot,
|
|
|
+ // slot 的名称,对应 v-slot 冒号后面和等号前面的内容
|
|
|
+ slotName: 'action',
|
|
|
},
|
|
|
+ ]
|
|
|
+export const saleContractProductColumns: JVxeColumn[] = [
|
|
|
{
|
|
|
- title: '交期',
|
|
|
+ title: '交期(delivery time)',
|
|
|
key: 'deliveryTime',
|
|
|
- type: JVxeTypes.datetime,
|
|
|
- width:"200px",
|
|
|
- placeholder: '请输入${title}',
|
|
|
- defaultValue:'',
|
|
|
- },
|
|
|
- {
|
|
|
- title: '产品id',
|
|
|
- key: 'productId',
|
|
|
- type: JVxeTypes.input,
|
|
|
+ type: JVxeTypes.date,
|
|
|
width:"200px",
|
|
|
placeholder: '请输入${title}',
|
|
|
defaultValue:'',
|
|
|
},
|
|
|
{
|
|
|
- title: '产品分类',
|
|
|
+ title: '产品分类(product class)',
|
|
|
key: 'productClass',
|
|
|
- type: JVxeTypes.input,
|
|
|
+ type: JVxeTypes.normal,
|
|
|
width:"200px",
|
|
|
placeholder: '请输入${title}',
|
|
|
defaultValue:'',
|
|
|
},
|
|
|
{
|
|
|
- title: '产品编码',
|
|
|
+ title: '产品编码(product code)',
|
|
|
key: 'productCode',
|
|
|
- type: JVxeTypes.input,
|
|
|
+ type: JVxeTypes.normal,
|
|
|
width:"200px",
|
|
|
placeholder: '请输入${title}',
|
|
|
defaultValue:'',
|
|
|
},
|
|
|
{
|
|
|
- title: '产品中文名',
|
|
|
+ title: '产品中文名chinese name)',
|
|
|
key: 'chineseName',
|
|
|
- type: JVxeTypes.input,
|
|
|
+ type: JVxeTypes.normal,
|
|
|
width:"200px",
|
|
|
placeholder: '请输入${title}',
|
|
|
defaultValue:'',
|
|
|
},
|
|
|
{
|
|
|
- title: '产品英文名',
|
|
|
+ title: '产品英文名(english name)',
|
|
|
key: 'englishName',
|
|
|
- type: JVxeTypes.input,
|
|
|
- width:"200px",
|
|
|
- placeholder: '请输入${title}',
|
|
|
- defaultValue:'',
|
|
|
- },
|
|
|
- {
|
|
|
- title: '规格',
|
|
|
- key: 'specifications',
|
|
|
- type: JVxeTypes.input,
|
|
|
+ type: JVxeTypes.normal,
|
|
|
width:"200px",
|
|
|
placeholder: '请输入${title}',
|
|
|
defaultValue:'',
|
|
|
},
|
|
|
{
|
|
|
- title: '型号',
|
|
|
+ title: '型号(model)',
|
|
|
key: 'model',
|
|
|
- type: JVxeTypes.input,
|
|
|
+ type: JVxeTypes.normal,
|
|
|
width:"200px",
|
|
|
placeholder: '请输入${title}',
|
|
|
defaultValue:'',
|
|
|
},
|
|
|
{
|
|
|
- title: '备件号',
|
|
|
+ title: '备件号(partno)',
|
|
|
key: 'partno',
|
|
|
- type: JVxeTypes.input,
|
|
|
+ type: JVxeTypes.normal,
|
|
|
width:"200px",
|
|
|
placeholder: '请输入${title}',
|
|
|
defaultValue:'',
|
|
|
},
|
|
|
{
|
|
|
- title: '图号',
|
|
|
+ title: '图号(drawingno)',
|
|
|
key: 'drawingno',
|
|
|
- type: JVxeTypes.input,
|
|
|
+ type: JVxeTypes.normal,
|
|
|
width:"200px",
|
|
|
placeholder: '请输入${title}',
|
|
|
defaultValue:'',
|
|
|
},
|
|
|
{
|
|
|
- title: '订货号',
|
|
|
+ title: '订货号(orderno)',
|
|
|
key: 'orderno',
|
|
|
- type: JVxeTypes.input,
|
|
|
+ type: JVxeTypes.normal,
|
|
|
width:"200px",
|
|
|
placeholder: '请输入${title}',
|
|
|
defaultValue:'',
|
|
|
},
|
|
|
{
|
|
|
- title: '厂家',
|
|
|
+ title: '厂家(factory)',
|
|
|
key: 'factory',
|
|
|
- type: JVxeTypes.input,
|
|
|
+ type: JVxeTypes.normal,
|
|
|
width:"200px",
|
|
|
placeholder: '请输入${title}',
|
|
|
defaultValue:'',
|
|
|
},
|
|
|
{
|
|
|
- title: '质量等级',
|
|
|
+ title: '质量等级(quality grade)',
|
|
|
key: 'qualityGrade',
|
|
|
- type: JVxeTypes.input,
|
|
|
+ type: JVxeTypes.normal,
|
|
|
width:"200px",
|
|
|
placeholder: '请输入${title}',
|
|
|
defaultValue:'',
|
|
|
},
|
|
|
{
|
|
|
- title: '数量',
|
|
|
+ title: '数量(quantity)',
|
|
|
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',
|
|
@@ -599,7 +563,7 @@ export const saleContractProductColumns: JVxeColumn[] = [
|
|
|
{
|
|
|
title: '含税金额(tax amount)',
|
|
|
key: 'taxAmount',
|
|
|
- type: JVxeTypes.inputNumber,
|
|
|
+ type: JVxeTypes.normal,
|
|
|
width:"200px",
|
|
|
placeholder: '请输入${title}',
|
|
|
defaultValue:'',
|
|
@@ -612,6 +576,19 @@ export const saleContractProductColumns: JVxeColumn[] = [
|
|
|
placeholder: '请输入${title}',
|
|
|
defaultValue:'',
|
|
|
},
|
|
|
+ {
|
|
|
+ title: '操作(operation)',
|
|
|
+ key: 'action',
|
|
|
+ width:"200px",
|
|
|
+ // 固定在右侧
|
|
|
+ fixed: 'right',
|
|
|
+ // 对齐方式为居中
|
|
|
+ align: 'center',
|
|
|
+ // 组件类型定义为【插槽】
|
|
|
+ type: JVxeTypes.slot,
|
|
|
+ // slot 的名称,对应 v-slot 冒号后面和等号前面的内容
|
|
|
+ slotName: 'action',
|
|
|
+ },
|
|
|
]
|
|
|
|
|
|
|