123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- 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: '盘点单号(bill code)',
- align:"center",
- dataIndex: 'billCode'
- },
- {
- title: '盘点日期(bill date)',
- align:"center",
- dataIndex: 'billDate',
- customRender:({text}) =>{
- text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text);
- return text;
- },
- },
- {
- title: '仓库(warehouse)',
- align:"center",
- dataIndex: 'warehouse'
- },
- {
- title: '货位(goods allocation)',
- align:"center",
- dataIndex: 'goodsAllocation',
- width:'250'
- },
- {
- title: '提交(submit)',
- align:"center",
- dataIndex: 'submit_dictText',
- },
- ];
- export const stockDetailColumns: JVxeColumn[] = [
- {
- title: '产品分类(product class)',
- key: 'productClass',
- type: JVxeTypes.normal,
- placeholder: '请输入${title}',
- width:"200px",
- defaultValue:'',
- },
- {
- title: '产品编码(product code)',
- key: 'productCode',
- type: JVxeTypes.normal,
- placeholder: '请输入${title}',
- width:"200px",
- defaultValue:'',
- },
- {
- title: '产品中文名(chineseName)',
- key: 'chineseName',
- type: JVxeTypes.normal,
- placeholder: '请输入${title}',
- width:"200px",
- defaultValue:'',
- },
- {
- title: '产品英文名(englishName)',
- key: 'englishName',
- type: JVxeTypes.normal,
- placeholder: '请输入${title}',
- width:"200px",
- defaultValue:'',
- },
- {
- title: '型号(model)',
- key: 'model',
- type: JVxeTypes.normal,
- placeholder: '请输入${title}',
- width:"200px",
- defaultValue:'',
- },
- {
- title: '备件号(partno)',
- key: 'partno',
- type: JVxeTypes.normal,
- placeholder: '请输入${title}',
- width:"200px",
- defaultValue:'',
- },
- {
- title: '订货号(orderno)',
- key: 'orderno',
- type: JVxeTypes.normal,
- placeholder: '请输入${title}',
- width:"200px",
- defaultValue:'',
- },
- {
- title: '图号(drawingno)',
- key: 'drawingno',
- type: JVxeTypes.normal,
- placeholder: '请输入${title}',
- width:"200px",
- defaultValue:'',
- },
- {
- title: '厂家(factory)',
- key: 'factory',
- placeholder: '请输入${title}',
- width:"200px",
- defaultValue:'',
- type: JVxeTypes.normal,
- },
-
- {
- title: '质量等级(quality grade)',
- key: 'qualityGrade',
- type: JVxeTypes.normal,
- placeholder: '请输入${title}',
- width:"200px",
- defaultValue:'',
- },
- {
- title: '编号(batch code)',
- key: 'batchCode',
- placeholder: '请输入${title}',
- width:"200px",
- defaultValue:'',
- type: JVxeTypes.normal,
- },
- {
- title: '库存数量(inventory quantity)',
- key: 'inventoryQuantity',
- type: JVxeTypes.normal,
- placeholder: '请输入${title}',
- defaultValue:'',
- width:"200px",
- },
- {
- title: '盘点数量(counted quantity)',
- key: 'countedQuantity',
- type: JVxeTypes.inputNumber,
- validateRules: [{ required: true, message: '' }],
- placeholder: '请输入${title}',
- defaultValue:'',
- width:"200px",
- },
- {
- title: '盘盈/盘亏(inventory profit/loss)',
- key: 'inventory',
- width:"200px",
- placeholder: '请输入${title}',
- defaultValue:'',
- type: JVxeTypes.inputNumber,
- validateRules: [{ required: true, message: '' }],
- },
- {
- title: '备注(notes)',
- key: 'notes',
- type: JVxeTypes.input,
- width:"200px",
- placeholder: '请输入${title}',
- defaultValue:'',
- },
- {
- title: '操作(operation)',
- key: 'action',
- width:"200px",
-
- fixed: 'right',
-
- align: 'center',
-
- type: JVxeTypes.slot,
-
- slotName: 'action',
- },
- ]
|