(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-16a1dbdb"],{"47f4":function(e,t,a){"use strict";function r(e){return null==e||""===e}function n(...e){for(const t of e)if(null!=t&&""!==t)return!1;return!1}function l(...e){for(const t of e)if(null==t||""===t)return!0;return!1}const i={isEmpty:r,isAllEmpty:n,hasEmpty:l};t["a"]=i},d36f:function(e,t,a){"use strict";a.r(t),a.d(t,"crudOptions",(function(){return i}));var r=a("5530"),n=a("47f4"),l=[],i=function(e){return{pageOptions:{compact:!0},options:{tableType:"vxe-table",rowKey:!0,rowId:"id",height:"100%",highlightCurrentRow:!0,events:{"sort-change":function(t){var a=t.field,n=t.order,l="desc"===n?"-":"",i=l+a,o=e.getSearch().getForm(),s=Object(r["a"])({ordering:i},o);e.doSearch(s)}}},rowHandle:{fixed:"right",align:"center",width:"170px",view:{thin:!0,text:""},edit:{thin:!0,text:""},remove:{thin:!0,text:""}},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:"project_name",fixed:"left",resizable:!0,minWidth:150,align:"center",search:{width:160,component:{props:{clearable:!0}}},type:"input",form:{rules:[{required:!0,message:"项目名称必填"}],component:{props:{clearable:!0},placeholder:"请输入项目名称"},itemProps:{class:{yxtInput:!0}}}},{title:"物料编码",key:"material_code",resizable:!0,minWidth:130,align:"center",search:{width:160,component:{props:{clearable:!0}}},type:"input",form:{rules:[{required:!0,message:"物料编码必填"}],component:{props:{clearable:!0},placeholder:"请输入物料编码"},itemProps:{class:{yxtInput:!0}}}},{title:"物料名称",key:"material_name",resizable:!0,minWidth:130,align:"center",search:{width:160,component:{props:{clearable:!0}}},type:"input",form:{rules:[{required:!0,message:"物料名称必填"}],component:{props:{clearable:!0},placeholder:"请输入物料名称"},itemProps:{class:{yxtInput:!0}}}},{title:"型号/规格",key:"model_spec",resizable:!0,minWidth:180,align:"center",className:"col-model-spec",component:{render:function(e,t){var a=null==t.value?"":String(t.value);return e("el-tooltip",{props:{content:a,placement:"top",effect:"dark",openDelay:200,disabled:!a}},[e("span",{class:"col-model-spec-text"},a)])}},search:{disabled:!1,width:160,component:{props:{clearable:!0}}},type:"input",form:{component:{props:{clearable:!0},placeholder:"请输入型号/规格"},itemProps:{class:{yxtInput:!0}}}},{title:"数量",key:"quantity",align:"center",minWidth:100,resizable:!0,type:"number",form:{value:1,rules:[{required:!0,message:"请输入数量"}],component:{props:{clearable:!0,min:1},placeholder:"请输入数量"},itemProps:{class:{yxtInput:!0}}}},{title:"单位",key:"unit",align:"center",minWidth:80,resizable:!0,type:"input",form:{value:"PCS",component:{props:{clearable:!0},placeholder:"请输入单位"},itemProps:{class:{yxtInput:!0}}}},{title:"需求日期",key:"demand_date",sortable:!0,align:"center",minWidth:170,resizable:!0,type:"datetime",search:{disabled:!1,width:370,component:{name:"el-date-picker",props:{type:"datetimerange","range-separator":"至","start-placeholder":"开始","end-placeholder":"结束",valueFormat:"yyyy-MM-dd HH:mm:ss"}}},form:{component:{props:{clearable:!0,format:"yyyy-MM-dd HH:mm:ss",valueFormat:"yyyy-MM-dd HH:mm:ss"},placeholder:"请选择需求日期"},itemProps:{class:{yxtInput:!0}}}},{title:"品牌/制造商",key:"brand_manufacturer",resizable:!0,minWidth:150,align:"center",search:{disabled:!1,width:160,component:{props:{clearable:!0}}},type:"input",form:{component:{props:{clearable:!0},placeholder:"请输入品牌/制造商"},itemProps:{class:{yxtInput:!0}}}},{title:"更新时间",key:"daterange",sortable:!0,type:"daterange",show:!1,search:{disabled:!1,width:390},form:{disabled:!0,component:{props:{"time-arrow-control":!1,"picker-options":{shortcuts:l},format:"yyyy-MM-dd HH:mm:ss",valueFormat:"yyyy-MM-dd HH:mm:ss"}}},valueBuilder:function(e,t){n["a"].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:"update_datetime",minWidth:170,align:"center",show:!0,type:"datetime",sortable:!0,form:{disabled:!0}},{title:"创建时间",key:"create_datetime",align:"center",minWidth:170,search:{disabled:!0},show:!0,type:"datetime",sortable:!0,form:{disabled:!0}}]}}}}]);