export const availableFields = [ { label:'', value: '', type: 'input' }, { label: '货主', value: 'store_id', type: 'select', multiple: true, options: [] }, { label: '状态', value: 'order_status', type: 'select', options: [ { label: '已创建', value: 'CREATED' }, { label: '待入库', value: 'PENDING' }, { label: '入库中', value: 'PARTIAL' }, { label: '部分收货', value: 'PARTIAL_RECEIVED' }, { label: '已完成', value: 'COMPLETED' }, { label: '已取消', value: 'CANCELLED' }, ]}, { label: '入库单类型', value: 'order_type', type: 'select', options: [ { label: '采购入库', value: 'CGRK' }, { label: '退货入库', value: 'THRK' }, { label: '其他入库', value: 'QTRK' }, { label: '盘点入库', value: 'PDRK' }, { label: '生产入库', value: 'SCRK' }, { label: '领用入库', value: 'LYRK' }, { label: '拆解入库', value: 'CCRK' }, { label: '调拨入库', value: 'DBRK' }, { label: 'B2B入库', value: 'B2BRK' }, { label: '虚拟入库', value: 'XNRK' }, ]}, { label: '同步状态', value: 'sync_status', type: 'select', options: [ { label: '待推送', value: 'PENDING' }, { label: '推送中', value: 'SYNCING' }, { label: '成功', value: 'SUCCESS' }, { label: '失败', value: 'FAIL' }, ]}, { label: '费用是否记录',value: 'expense_record', type: 'select', options: [ { label: '是', value: true }, { label: '否', value: false }, ]}, { label: '批次',value: 'batch',type: 'text' }, { label: '编号',value: 'number',type: 'text' }, { label: '备注',value: 'remark',type: 'text' }, { label: 'ERP备注',value: 'erp_remark',type: 'text' }, { label: '操作员ID',value: 'operator_id',type: 'text' }, { label: '申请起始日期',value: 'start_date',type: 'daterange' }, { label: '申请结束日期',value: 'end_date',type: 'daterange' }, { label: '',value: ''}, { label: '',value: ''}, { label: '',value: ''}, { label: '',value: ''}, ] export const entryColums = [ { prop: 'id',label:'ID',width:'50' }, { prop: 'entry_order_code',label:'入库单号',width:'160',}, { prop: 'store_name',label:'货主',width:'140', }, { prop: 'order_type',label:'类型',width:'160' }, { prop: 'purchase_order_code',label:'单据编号 ',width:'160' }, { prop: 'total_order_lines',label:'商品数',width:'160', sortable: 'custom' }, { prop: 'order_status',label:'订单状态',width:'160' }, { prop: 'sync_status',label:'同步状态',width:'160' }, { prop: 'supplier_code',label:'供应商编码',width:'160' }, { prop: 'supplier_name',label:'供应商名称',width:'160' }, { prop: '',label:'',width:'160' }, { prop: 'express_code',label:'运单号',width:'160' }, { prop: 'logistics_code',label:'物流公司编码',width:'160' }, { prop: 'logistics_name',label:'物流公司名称',width:'160' }, { prop: '',label:'',width:'160',fixed: 'left' }, { prop: '',label:'',width:'160',fixed: 'left' }, { prop: 'order_create_time',label:'单据创建时间',width:'160' }, { prop: 'expect_start_time',label:'预计开始时间',width:'160' }, { prop: 'expect_end_time',label:'预计结束时间',width:'160' }, { prop: '',label:'',width:'160',fixed: 'left' }, { prop: 'source_type',label:'数据来源',width:'160' }, { prop: '',label:'',width:'160',fixed: 'left' }, { prop: '',label:'',width:'160',fixed: 'left' }, ] export const entrydetail = [ { prop: 'id', label: 'ID', width: '160' }, { prop: 'out_biz_code', label: '外部业务编码', width: '160' }, { prop: 'order_line_no', label: '订单行号', width: '160' }, { prop: 'owner_code', label: '货主编码', width: '160' }, { prop: 'item_code', label: '商品编码', width: '160' }, { prop: 'item_id', label: '商品 ID', width: '160' }, { prop: 'count', label: '应收数量', width: '160' }, { prop: 'inventory_type', label: '库存类型', width: '160' }, { prop: 'stock_id', label: '库存记录 ID', width: '160' }, { prop: 'received_quantity', label: '实收数量', width: '160' }, { prop: 'confirm_quantity', label: '确认数量', width: '160' }, { prop: '', label: '', width: '160' }, ] export const detailpanel = [ { label: '入库单号', prop: 'entry_order_code', disabled: true }, { label: '货主名称', prop: 'store_name', disabled: true }, { label: '订单状态', prop: 'order_status', type: 'select' }, { label: '入库类型', prop: 'order_type', type: 'select' }, { label: '单据编号', prop: 'purchase_order_code' }, { label: '同步状态', prop: 'sync_status', type: 'select' }, { label: '供应商编码', prop: 'supplier_code' }, { label: '供应商名称', prop: 'supplier_name' }, { label: '运单号', prop: 'express_code' }, { label: '物流公司', prop: 'logistics_name' }, { label: '备注', prop: 'remark' } ] export const addEntryFields = [ { label: '业务类型', prop: 'order_type', type: 'select', options: [ { label: '生产入库', value: 'SCRK' }, { label: '领用入库', value: 'LYRK' }, { label: '拆解入库', value: 'CCRK' }, { label: '采购入库', value: 'CGRK' }, { label: '调拨入库', value: 'DBRK' }, { label: '其他入库', value: 'QTRK' }, { label: 'B2B入库', value: 'B2BRK' }, { label: '虚拟入库', value: 'XNRK' }, ]}, { label: '货主', prop: 'store_id', type: 'select', options: [] }, { label: '入库单号', prop: 'entry_order_code' }, { label: '采购单号', prop: 'purchase_order_code' }, { label: '备注', prop: 'remark', type: 'textarea' } ]