1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d210058"],{b5b1:function(e,t,r){"use strict";r.r(t),r.d(t,"crudOptions",(function(){return d}));var a=r("5530");function i(e){return null==e||""===e}function s(...e){for(const t of e)if(null!=t&&""!==t)return!1;return!1}function o(...e){for(const t of e)if(null==t||""===t)return!0;return!1}const n={isEmpty:i,isAllEmpty:s,hasEmpty:o};var l=n,p=[],d=function(e){return{pageOptions:{compact:!0},options:{size:"medium",tableType:"vxe-table",rowKey:!0,rowId:"id",height:"100%",highlightCurrentRow:!0,events:{"sort-change":function(t){var r=t.field,i=t.order,s="desc"===i?"-":"",o=s+r,n=e.getSearch().getForm(),l=Object(a["a"])({ordering:o},n);e.doSearch(l)}}},rowHandle:{fixed:"right",align:"center",width:"170px",view:{thin:!0,text:"",disabled:function(){return!e.hasPermissions("Retrieve")}},edit:{thin:!0,text:"",disabled:function(){return!e.hasPermissions("Update")}},remove:{thin:!0,text:"",disabled:function(){return!e.hasPermissions("Delete")}}},indexRow:{title:"序号",align:"center",resizable:!0,fixed:"left",width:90},viewOptions:{componentType:"form"},formOptions:{defaultSpan:24,width:"35%"},columns:[{title:"ID",key:"id",show:!1,disabled:!0,width:70,form:{disabled:!0}},{title:"序列号",key:"sn",fixed:"left",resizable:!0,width:"auto",align:"center",search:{component:{props:{clearable:!0}}},type:"input",form:{editDisabled:!0,rules:[{required:!0,message:"序列号必填"}],component:{props:{clearable:!0},placeholder:"请输入序列号"},itemProps:{class:{yxtInput:!0}}}},{title:"产品型号",key:"product_model",resizable:!0,align:"center",width:"auto",search:{component:{props:{clearable:!0}}},type:"input",form:{editDisabled:!0,rules:[{required:!0,message:"产品型号必填"}],component:{props:{clearable:!0},placeholder:"请输入产品型号"},itemProps:{class:{yxtInput:!0}}}},{title:"板号",key:"board_no",resizable:!0,align:"center",width:"auto",search:{component:{props:{clearable:!0}}},type:"input",form:{editDisabled:!0,rules:[{required:!0,message:"板号必填"}],component:{props:{clearable:!0},placeholder:"请输入板号"},itemProps:{class:{yxtInput:!0}}}},{title:"箱号",key:"case_no",align:"center",resizable:!0,width:"auto",search:{component:{props:{clearable:!0}}},type:"input",form:{editDisabled:!0,rules:[{required:!0,message:"箱号必填"}],component:{props:{clearable:!0},placeholder:"请输入箱号"},itemProps:{class:{yxtInput:!0}}}},{title:"进货发票号",key:"purchase_invoice_no",width:"auto",align:"center",resizable:!0,type:"input",form:{editDisabled:!0,rules:[{required:!0,message:"进货发票号必填"}],component:{props:{clearable:!0},placeholder:"请输入进货发票号"},itemProps:{class:{yxtInput:!0}}}},{title:"进货日期",key:"purchase_date",sortable:!0,align:"center",width:"auto",resizable:!0,type:"input",form:{editDisabled:!0,rules:[{required:!0,message:"进货日期必填"}],component:{props:{clearable:!0},placeholder:"请输入进货日期"},itemProps:{class:{yxtInput:!0}}}},{title:"出货单号",key:"shipping_no",align:"center",width:"auto",resizable:!0,search:{component:{props:{clearable:!0}}},type:"input",form:{editDisabled:!0,rules:[{required:!0,message:"出货单号必填"}],component:{props:{clearable:!0},placeholder:"请输入出货单号"},itemProps:{class:{yxtInput:!0}}}},{title:"数量",key:"num",sortable:!0,align:"center",resizable:!0,width:"auto",type:"input",form:{editDisabled:!0,rules:[{required:!0,message:"数量必填"}],component:{props:{clearable:!0},placeholder:"请输入数量"},itemProps:{class:{yxtInput:!0}}}},{title:"仓位",key:"freight_space",align:"center",width:"auto",resizable:!0,search:{component:{props:{clearable:!0}}},type:"input",form:{editDisabled:!0,rules:[{required:!0,message:"仓位必填"}],component:{props:{clearable:!0},placeholder:"请输入仓位"},itemProps:{class:{yxtInput:!0}}}},{title:"扫描类型",key:"scan_type",align:"center",width:"auto",resizable:!0,search:{component:{props:{clearable:!0}}},type:"input",form:{editDisabled:!0,rules:[{required:!0,message:"扫描类型必填"}],component:{props:{clearable:!0},placeholder:"请输入扫描类型"},itemProps:{class:{yxtInput:!0}}}},{title:"状态",key:"status",align:"center",width:"auto",resizable:!0,search:{disabled:!1},type:"select",dict:{data:e.dictionary("hdd_status")},form:{show:!1,value:0,component:{span:12},itemProps:{class:{yxtInput:!0}}}},{title:"更新时间",key:"daterange",sortable:!0,type:"daterange",show:!1,search:{disabled:!1,width:380},form:{disabled:!0,component:{props:{"time-arrow-control":!1,"picker-options":{shortcuts:p},format:"yyyy-MM-dd HH:mm:ss",valueFormat:"yyyy-MM-dd HH:mm:ss"}}},valueBuilder:function(e,t){l.hasEmpty(e.daterangeStart,e.daterangeEnd)||(e.daterange=[new Date(e.daterangeStart),new Date(e.daterangeEnd)])},valueResolve:function(e,t){null!=e.daterange&&e.daterange.length>1?(e.start_time=e.daterange[0],e.stop_time=e.daterange[1]):(e.start_time=null,e.stop_time=null)}},{title:"备注",key:"remark",align:"center",width:"200px",resizable:!0,showOverflowTooltip:!0,type:"input",form:{editDisabled:!0,component:{props:{clearable:!0},placeholder:"请输入备注"},itemProps:{class:{yxtInput:!0}}}},{title:"更新时间",key:"update_datetime",width:160,align:"center",show:!0,type:"datetime",sortable:!0,form:{disabled:!0}},{title:"创建时间",key:"create_datetime",align:"center",width:"auto",search:{disabled:!0,width:360,component:{name:"el-date-picker",props:{type:"daterange","range-separator":"至","start-placeholder":"开始","end-placeholder":"结束",valueFormat:"yyyy-MM-dd"}}},show:!0,type:"datetime",sortable:!0,form:{disabled:!0}}]}}}}]);
|