(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7a9855a5","chunk-5f61d295","chunk-2d2106ba"],{"2fac":function(e,t,r){},b88f:function(e,t,r){"use strict";r.d(t,"e",(function(){return n})),r.d(t,"h",(function(){return l})),r.d(t,"f",(function(){return o})),r.d(t,"d",(function(){return s})),r.d(t,"a",(function(){return i})),r.d(t,"k",(function(){return u})),r.d(t,"b",(function(){return c})),r.d(t,"g",(function(){return d})),r.d(t,"j",(function(){return p})),r.d(t,"c",(function(){return m})),r.d(t,"i",(function(){return f}));var a=r("b775");function n(e){return Object(a["a"])({url:"/asset/information/list",method:"get",params:e})}function l(e){return Object(a["a"])({url:"/asset/information/select",method:"get",params:e})}function o(){return Object(a["a"])({url:"/visitor/asset/list",method:"get"})}function s(e){return Object(a["a"])({url:"/asset/information/"+e,method:"get"})}function i(e){return Object(a["a"])({url:"/asset/information",method:"post",data:e})}function u(e){return Object(a["a"])({url:"/asset/information",method:"put",data:e})}function c(e){return Object(a["a"])({url:"/asset/information/"+e,method:"delete"})}function d(e){return Object(a["a"])({url:"/asset/information/print",method:"post",data:e})}function p(e){return Object(a["a"])({url:"/asset/information/print/single",method:"post",data:e})}function m(){return Object(a["a"])({url:"/asset/information/getDiy",method:"get"})}function f(e){return Object(a["a"])({url:"/asset/information/setDiy",method:"post",data:e})}},c0c7:function(e,t,r){"use strict";r.d(t,"k",(function(){return l})),r.d(t,"i",(function(){return o})),r.d(t,"f",(function(){return s})),r.d(t,"a",(function(){return i})),r.d(t,"m",(function(){return u})),r.d(t,"c",(function(){return c})),r.d(t,"j",(function(){return d})),r.d(t,"b",(function(){return p})),r.d(t,"g",(function(){return m})),r.d(t,"n",(function(){return f})),r.d(t,"o",(function(){return y})),r.d(t,"p",(function(){return h})),r.d(t,"e",(function(){return b})),r.d(t,"l",(function(){return g})),r.d(t,"d",(function(){return v})),r.d(t,"h",(function(){return k}));var a=r("b775"),n=r("c38a");function l(e){return Object(a["a"])({url:"/system/user/search",method:"post",data:e})}function o(e){return Object(a["a"])({url:"/system/user/list",method:"get",params:e})}function s(e){return Object(a["a"])({url:"/system/user/"+Object(n["e"])(e),method:"get"})}function i(e){return Object(a["a"])({url:"/system/user",method:"post",data:e})}function u(e){return Object(a["a"])({url:"/system/user",method:"put",data:e})}function c(e){return Object(a["a"])({url:"/system/user/"+e,method:"delete"})}function d(e,t){var r={userId:e,password:t};return Object(a["a"])({url:"/system/user/resetPwd",method:"put",data:r})}function p(e,t){var r={userId:e,status:t};return Object(a["a"])({url:"/system/user/changeStatus",method:"put",data:r})}function m(){return Object(a["a"])({url:"/system/user/profile",method:"get"})}function f(e){return Object(a["a"])({url:"/system/user/profile",method:"put",data:e})}function y(e,t){var r={oldPassword:e,newPassword:t};return Object(a["a"])({url:"/system/user/profile/updatePwd",method:"put",params:r})}function h(e){return Object(a["a"])({url:"/system/user/profile/avatar",method:"post",data:e})}function b(e){return Object(a["a"])({url:"/system/user/authRole/"+e,method:"get"})}function g(e){return Object(a["a"])({url:"/system/user/authRole",method:"put",params:e})}function v(){return Object(a["a"])({url:"/system/user/deptTree",method:"get"})}function k(e){return Object(a["a"])({url:"/system/user/exists/".concat(e),method:"get"})}},c1bf:function(e,t,r){"use strict";r("2fac")},cc11:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",staticClass:"queryForm",attrs:{model:e.queryParams,size:"small",inline:!0,"label-width":"140px"}},[r("el-form-item",{attrs:{label:"单据类型",prop:"orderType"}},[r("el-select",{attrs:{placeholder:"请选择单据类型"},on:{change:e.onQueryTypeChange},model:{value:e.queryParams.orderType,callback:function(t){e.$set(e.queryParams,"orderType",t)},expression:"queryParams.orderType"}},e._l(e.dict.type.asset_order_type,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),r("el-form-item",{attrs:{label:"单据编号",prop:"orderNumber"}},[r("el-input",{attrs:{placeholder:"请输入单据编号",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.orderNumber,callback:function(t){e.$set(e.queryParams,"orderNumber",t)},expression:"queryParams.orderNumber"}})],1),r("el-form-item",{attrs:{label:"申请日期",prop:"applicationDate"}},[r("el-date-picker",{attrs:{clearable:"",type:"date","value-format":"yyyy-MM-dd",placeholder:"请选择申请日期"},model:{value:e.queryParams.applicationDate,callback:function(t){e.$set(e.queryParams,"applicationDate",t)},expression:"queryParams.applicationDate"}})],1),r("el-form-item",{attrs:{label:"申请部门",prop:"applicationDepartment"}},[r("treeselect",{attrs:{options:e.deptOptions,placeholder:"请选择申请部门"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.applicationDepartment,callback:function(t){e.$set(e.queryParams,"applicationDepartment",t)},expression:"queryParams.applicationDepartment"}})],1),"1"===e.queryParams.orderType?r("el-form-item",{attrs:{label:"【调整】资产编号",prop:"adjustmentAssetNumber"}},[[r("el-select",{attrs:{filterable:"",placeholder:"请输入资产编号"},model:{value:e.queryParams.adjustmentAssetNumber,callback:function(t){e.$set(e.queryParams,"adjustmentAssetNumber",t)},expression:"queryParams.adjustmentAssetNumber"}},e._l(e.informationList,(function(t){return r("el-option",{key:t.number,attrs:{label:t.name,value:t.number}},[r("span",{staticStyle:{float:"left"}},[e._v(e._s(t.name))]),r("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(t.number))])])})),1)]],2):e._e(),"2"===e.queryParams.orderType?r("el-form-item",{attrs:{label:"【调拨】调出部门",prop:"allocationCallOutDepartment"}},[r("treeselect",{attrs:{options:e.deptOptions,placeholder:"请选择【调拨】调出部门"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.allocationCallOutDepartment,callback:function(t){e.$set(e.queryParams,"allocationCallOutDepartment",t)},expression:"queryParams.allocationCallOutDepartment"}})],1):e._e(),"2"===e.queryParams.orderType?r("el-form-item",{attrs:{label:"【调拨】调出经办人",prop:"allocationCallOutBy"}},[r("el-input",{attrs:{placeholder:"请输入【调拨】调出经办人",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.allocationCallOutBy,callback:function(t){e.$set(e.queryParams,"allocationCallOutBy",t)},expression:"queryParams.allocationCallOutBy"}})],1):e._e(),"2"===e.queryParams.orderType?r("el-form-item",{attrs:{label:"【调拨】调出日期",prop:"allocationCallOutDate"}},[r("el-date-picker",{attrs:{clearable:"",type:"date","value-format":"yyyy-MM-dd",placeholder:"请选择【调拨】调出日期"},model:{value:e.queryParams.allocationCallOutDate,callback:function(t){e.$set(e.queryParams,"allocationCallOutDate",t)},expression:"queryParams.allocationCallOutDate"}})],1):e._e(),"2"===e.queryParams.orderType?r("el-form-item",{attrs:{label:"【调拨】调入部门",prop:"allocationCallInDepartment"}},[r("treeselect",{attrs:{options:e.deptOptions,placeholder:"请选择【调拨】调入部门"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.allocationCallInDepartment,callback:function(t){e.$set(e.queryParams,"allocationCallInDepartment",t)},expression:"queryParams.allocationCallInDepartment"}})],1):e._e(),"2"===e.queryParams.orderType?r("el-form-item",{attrs:{label:"【调拨】调入经办人",prop:"allocationCallInBy"}},[r("el-input",{attrs:{placeholder:"请输入【调拨】调入经办人",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.allocationCallInBy,callback:function(t){e.$set(e.queryParams,"allocationCallInBy",t)},expression:"queryParams.allocationCallInBy"}})],1):e._e(),"2"===e.queryParams.orderType?r("el-form-item",{attrs:{label:"【调拨】调入日期",prop:"allocationCallInDate"}},[r("el-date-picker",{attrs:{clearable:"",type:"date","value-format":"yyyy-MM-dd",placeholder:"请选择【调拨】调入日期"},model:{value:e.queryParams.allocationCallInDate,callback:function(t){e.$set(e.queryParams,"allocationCallInDate",t)},expression:"queryParams.allocationCallInDate"}})],1):e._e(),"3"===e.queryParams.orderType?r("el-form-item",{attrs:{label:"【借出】借出部门",prop:"lendDepartment"}},[r("treeselect",{attrs:{options:e.deptOptions,placeholder:"请选择【借出】借出部门"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.lendDepartment,callback:function(t){e.$set(e.queryParams,"lendDepartment",t)},expression:"queryParams.lendDepartment"}})],1):e._e(),"3"===e.queryParams.orderType?r("el-form-item",{attrs:{label:"【借出】经手人",prop:"lendBySponsor"}},[r("el-input",{attrs:{placeholder:"请输入【借出】经手人",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.lendBySponsor,callback:function(t){e.$set(e.queryParams,"lendBySponsor",t)},expression:"queryParams.lendBySponsor"}})],1):e._e(),"3"===e.queryParams.orderType?r("el-form-item",{attrs:{label:"【借出】往来单位",prop:"lendPassingUnit"}},[r("el-input",{attrs:{placeholder:"请输入【借出】往来单位",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.lendPassingUnit,callback:function(t){e.$set(e.queryParams,"lendPassingUnit",t)},expression:"queryParams.lendPassingUnit"}})],1):e._e(),r("el-form-item",{attrs:{label:"制单人",prop:"preparedBy"}},[r("el-input",{attrs:{placeholder:"请输入制单人",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.preparedBy,callback:function(t){e.$set(e.queryParams,"preparedBy",t)},expression:"queryParams.preparedBy"}})],1),r("el-form-item",{attrs:{label:"制单部门",prop:"preparedDepartment"}},[r("treeselect",{attrs:{options:e.deptOptions,placeholder:"请选择制单部门"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.preparedDepartment,callback:function(t){e.$set(e.queryParams,"preparedDepartment",t)},expression:"queryParams.preparedDepartment"}})],1),r("el-form-item",{attrs:{label:"所属公司",prop:"corporation"}},[r("treeselect",{attrs:{options:e.deptOptions,placeholder:"请选择所属公司"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.corporation,callback:function(t){e.$set(e.queryParams,"corporation",t)},expression:"queryParams.corporation"}})],1),r("el-form-item",{attrs:{label:"记录状态",prop:"recordStatus"}},[r("el-select",{attrs:{placeholder:"请选择记录状态",clearable:""},model:{value:e.queryParams.recordStatus,callback:function(t){e.$set(e.queryParams,"recordStatus",t)},expression:"queryParams.recordStatus"}},e._l(e.dict.type.asset_record_status,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),r("el-form-item",[r("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),r("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),r("el-row",{staticClass:"mb8",attrs:{gutter:10}},[r("el-col",{attrs:{span:1.5}},[r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["order:order:add"],expression:"['order:order:add']"}],attrs:{type:"primary",plain:"",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAdd}},[e._v("新增")])],1),r("el-col",{attrs:{span:1.5}},[r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["order:order:edit"],expression:"['order:order:edit']"}],attrs:{type:"success",plain:"",icon:"el-icon-edit",size:"mini",disabled:e.single},on:{click:e.handleUpdate}},[e._v("修改")])],1),r("el-col",{attrs:{span:1.5}},[r("el-dropdown",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["order:order:aduit"],expression:"['order:order:aduit']"}],attrs:{size:"mini","split-button":"",type:"primary"},on:{click:e.handleAudit,command:e.handleCommand}},[e._v(" 审批 "),r("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[r("el-dropdown-item",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["order:order:audit"],expression:"['order:order:audit']"}],attrs:{command:"a"},on:{click:e.handleWithdraw}},[e._v("撤回")])],1)],1)],1),r("el-col",{attrs:{span:1.5}},[r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["order:order:remove"],expression:"['order:order:remove']"}],attrs:{type:"danger",plain:"",icon:"el-icon-delete",size:"mini",disabled:e.multiple},on:{click:e.handleDelete}},[e._v("删除")])],1),r("el-col",{attrs:{span:1.5}},[r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["order:order:export"],expression:"['order:order:export']"}],attrs:{type:"warning",plain:"",icon:"el-icon-download",size:"mini"},on:{click:e.handleExport}},[e._v("导出")])],1),r("right-toolbar",{attrs:{showSearch:e.showSearch},on:{"update:showSearch":function(t){e.showSearch=t},"update:show-search":function(t){e.showSearch=t},queryTable:e.getList}})],1),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"table",attrs:{data:e.orderList},on:{"selection-change":e.handleSelectionChange}},[r("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),r("el-table-column",{attrs:{label:"序号",type:"index",width:"50"}}),r("el-table-column",{attrs:{label:"单据编号",align:"center",prop:"orderNumber"}}),r("el-table-column",{attrs:{label:"单据类型",align:"center",prop:"orderType"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("dict-tag",{attrs:{options:e.dict.type.asset_order_type,value:t.row.orderType}})]}}])}),r("el-table-column",{attrs:{label:"申请日期",align:"center",prop:"applicationDate",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(e.parseTime(t.row.applicationDate,"{y}-{m}-{d}")))])]}}])}),r("el-table-column",{attrs:{label:"申请部门",align:"center",prop:"applicationDepartmentName"}}),"1"!==e.queryParams.orderType?r("el-table-column",{attrs:{label:"资产总原值",align:"center",prop:"assetTotalOriginalValue"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(t.row.assetTotalOriginalValue))])]}}],null,!1,2599453617)}):e._e(),"1"!==e.queryParams.orderType?r("el-table-column",{attrs:{label:"资产总净值",align:"center",prop:"assetTotalNetValue"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(t.row.assetTotalNetValue))])]}}],null,!1,1117195319)}):e._e(),"1"===e.queryParams.orderType?r("el-table-column",{attrs:{label:"【调整】资产编号",align:"center",prop:"adjustmentAssetNumber"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(null!=t.row.adjustmentAssetNumber?e.getAssetName(t.row.adjustmentAssetNumber):""))])]}}],null,!1,157898500)}):e._e(),"1"===e.queryParams.orderType?r("el-table-column",{attrs:{label:"【调整】资产原信息",align:"center",prop:"adjustmentOriginalAssetInfo"},scopedSlots:e._u([{key:"default",fn:function(t){return["1"===e.queryParams.orderType?r("el-button",{attrs:{type:"text",icon:"el-icon-search"},on:{click:function(r){return e.onSelectOriginalAssetInfo(t.row)}}},[e._v("查看")]):e._e()]}}],null,!1,1361288989)}):e._e(),"2"===e.queryParams.orderType?r("el-table-column",{attrs:{label:"【调拨】调出部门",align:"center",prop:"allocationCallOutDepartmentName"}}):e._e(),"2"===e.queryParams.orderType?r("el-table-column",{attrs:{label:"【调拨】调出经办人",align:"center",prop:"allocationCallOutBy"}}):e._e(),"2"===e.queryParams.orderType?r("el-table-column",{attrs:{label:"【调拨】调出日期",align:"center",prop:"allocationCallOutDate",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(e.parseTime(t.row.allocationCallOutDate,"{y}-{m}-{d}")))])]}}],null,!1,1390989365)}):e._e(),"2"===e.queryParams.orderType?r("el-table-column",{attrs:{label:"【调拨】调入部门",align:"center",prop:"allocationCallInDepartmentName"}}):e._e(),"2"===e.queryParams.orderType?r("el-table-column",{attrs:{label:"【调拨】调入经办人",align:"center",prop:"allocationCallInBy"}}):e._e(),"2"===e.queryParams.orderType?r("el-table-column",{attrs:{label:"【调拨】调入日期",align:"center",prop:"allocationCallInDate",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(e.parseTime(t.row.allocationCallInDate,"{y}-{m}-{d}")))])]}}],null,!1,1869589436)}):e._e(),"3"===e.queryParams.orderType?r("el-table-column",{attrs:{label:"【借出】借出部门",align:"center",prop:"lendDepartmentName"}}):e._e(),"3"===e.queryParams.orderType?r("el-table-column",{attrs:{label:"【借出】经手人",align:"center",prop:"lendBySponsor"}}):e._e(),"3"===e.queryParams.orderType?r("el-table-column",{attrs:{label:"【借出】往来单位",align:"center",prop:"lendPassingUnitName"}}):e._e(),r("el-table-column",{attrs:{label:"原因说明",align:"center",prop:"reason"}}),r("el-table-column",{attrs:{label:"制单人",align:"center",prop:"preparedBy"}}),r("el-table-column",{attrs:{label:"制单部门",align:"center",prop:"preparedDepartmentName"}}),r("el-table-column",{attrs:{label:"所属公司",align:"center",prop:"corporationName"}}),r("el-table-column",{attrs:{label:"记录状态",align:"center",prop:"recordStatus"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("dict-tag",{attrs:{options:e.dict.type.asset_record_status,value:t.row.recordStatus}})]}}])}),r("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return["1"!==e.queryParams.orderType?r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["order:order:edit"],expression:"['order:order:edit']"}],attrs:{size:"mini",type:"text",icon:"el-icon-document"},on:{click:function(r){return e.onSelectopenDetail(t.row)}}},[e._v("明细")]):e._e(),r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["order:order:edit"],expression:"['order:order:edit']"}],attrs:{disabled:t.row.recordStatus>0,size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(r){return e.handleUpdate(t.row)}}},[e._v("修改")]),r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["order:order:remove"],expression:"['order:order:remove']"}],attrs:{disabled:t.row.recordStatus>0,size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(r){return e.handleDelete(t.row)}}},[e._v("删除")])]}}])})],1),r("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}}),r("el-dialog",{attrs:{title:e.title,visible:e.open,width:"800px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[r("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"150px"}},[r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"单据编号",prop:"orderNumber"}},[r("el-input",{attrs:{placeholder:"单据编号(系统自动生成)",disabled:""},model:{value:e.form.orderNumber,callback:function(t){e.$set(e.form,"orderNumber",t)},expression:"form.orderNumber"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"单据类型",prop:"orderType"}},[r("el-select",{attrs:{placeholder:"请选择单据类型"},on:{change:e.onFormTypeChange},model:{value:e.form.orderType,callback:function(t){e.$set(e.form,"orderType",t)},expression:"form.orderType"}},e._l(e.dict.type.asset_order_type,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:parseInt(e.value)}})})),1)],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"申请日期",prop:"applicationDate"}},[r("el-date-picker",{attrs:{clearable:"",type:"date","value-format":"yyyy-MM-dd",placeholder:"请选择申请日期"},model:{value:e.form.applicationDate,callback:function(t){e.$set(e.form,"applicationDate",t)},expression:"form.applicationDate"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"申请部门",prop:"applicationDepartment"}},[r("treeselect",{attrs:{options:e.deptOptions,placeholder:"请选择申请部门"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.form.applicationDepartment,callback:function(t){e.$set(e.form,"applicationDepartment",t)},expression:"form.applicationDepartment"}})],1)],1)],1),1===e.form.orderType?r("el-form-item",{attrs:{label:"【调整】资产编号",prop:"adjustmentAssetNumber"}},[[r("el-select",{attrs:{filterable:"",placeholder:"请输入资产编号"},model:{value:e.form.adjustmentAssetNumber,callback:function(t){e.$set(e.form,"adjustmentAssetNumber",t)},expression:"form.adjustmentAssetNumber"}},e._l(e.informationList,(function(t){return r("el-option",{key:t.number,attrs:{label:t.name,value:t.number}},[r("span",{staticStyle:{float:"left"}},[e._v(e._s(t.name))]),r("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(t.number))])])})),1)]],2):e._e(),r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:12}},[2===e.form.orderType?r("el-form-item",{attrs:{label:"【调拨】调出部门",prop:"allocationCallOutDepartment"}},[r("treeselect",{attrs:{options:e.deptOptions,placeholder:"请选择【调拨】调出部门"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.form.allocationCallOutDepartment,callback:function(t){e.$set(e.form,"allocationCallOutDepartment",t)},expression:"form.allocationCallOutDepartment"}})],1):e._e()],1),r("el-col",{attrs:{span:12}},[2===e.form.orderType?r("el-form-item",{attrs:{label:"【调拨】调出日期",prop:"allocationCallOutDate"}},[r("el-date-picker",{attrs:{clearable:"",type:"date","value-format":"yyyy-MM-dd",placeholder:"请选择【调拨】调出日期"},model:{value:e.form.allocationCallOutDate,callback:function(t){e.$set(e.form,"allocationCallOutDate",t)},expression:"form.allocationCallOutDate"}})],1):e._e()],1)],1),r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:12}},[2===e.form.orderType?r("el-form-item",{attrs:{label:"【调拨】调出经办人",prop:"allocationCallOutBy"}},[r("el-input",{attrs:{placeholder:"请输入【调拨】调出经办人"},model:{value:e.form.allocationCallOutBy,callback:function(t){e.$set(e.form,"allocationCallOutBy",t)},expression:"form.allocationCallOutBy"}})],1):e._e()],1)],1),r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:12}},[2===e.form.orderType?r("el-form-item",{attrs:{label:"【调拨】调入部门",prop:"allocationCallInDepartment"}},[r("treeselect",{attrs:{options:e.deptOptions,placeholder:"请选择【调拨】调入部门"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.form.allocationCallInDepartment,callback:function(t){e.$set(e.form,"allocationCallInDepartment",t)},expression:"form.allocationCallInDepartment"}})],1):e._e()],1),r("el-col",{attrs:{span:12}},[2===e.form.orderType?r("el-form-item",{attrs:{label:"【调拨】调入日期",prop:"allocationCallInDate"}},[r("el-date-picker",{attrs:{clearable:"",type:"date","value-format":"yyyy-MM-dd",placeholder:"请选择【调拨】调入日期"},model:{value:e.form.allocationCallInDate,callback:function(t){e.$set(e.form,"allocationCallInDate",t)},expression:"form.allocationCallInDate"}})],1):e._e()],1)],1),r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:12}},[2===e.form.orderType?r("el-form-item",{attrs:{label:"【调拨】调入经办人",prop:"allocationCallInBy"}},[r("el-input",{attrs:{placeholder:"请输入【调拨】调入经办人"},model:{value:e.form.allocationCallInBy,callback:function(t){e.$set(e.form,"allocationCallInBy",t)},expression:"form.allocationCallInBy"}})],1):e._e()],1)],1),r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:12}},[3===e.form.orderType?r("el-form-item",{attrs:{label:"【借出】借出部门",prop:"lendDepartment"}},[r("treeselect",{attrs:{options:e.deptOptions,placeholder:"请选择【借出】借出部门"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.form.lendDepartment,callback:function(t){e.$set(e.form,"lendDepartment",t)},expression:"form.lendDepartment"}})],1):e._e()],1),r("el-col",{attrs:{span:12}},[3===e.form.orderType?r("el-form-item",{attrs:{label:"【借出】往来单位",prop:"lendPassingUnit"}},[r("treeselect",{attrs:{options:e.deptOptions,placeholder:"请选择【调拨】调入部门"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.form.lendPassingUnit,callback:function(t){e.$set(e.form,"lendPassingUnit",t)},expression:"form.lendPassingUnit"}})],1):e._e()],1)],1),r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:12}},[3===e.form.orderType?r("el-form-item",{attrs:{label:"【借出】经手人",prop:"lendBySponsor"}},[r("el-input",{attrs:{placeholder:"请输入【借出】经手人"},model:{value:e.form.lendBySponsor,callback:function(t){e.$set(e.form,"lendBySponsor",t)},expression:"form.lendBySponsor"}})],1):e._e()],1)],1),r("el-form-item",{attrs:{label:"原因说明",prop:"reason"}},[r("el-input",{attrs:{type:"textarea",placeholder:"请输入原因说明"},model:{value:e.form.reason,callback:function(t){e.$set(e.form,"reason",t)},expression:"form.reason"}})],1)],1),1!==e.form.orderType?r("p",{staticClass:"msg"},[r("i",{staticClass:"el-icon-info"}),e._v(" 保存生成单据后,记得完善单据明细后再提交哦")]):e._e(),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[1===e.form.orderType||e.form.existDetail?r("el-button",{attrs:{type:"warning"},on:{click:function(t){return e.submitForm(1)}}},[e._v("提 交")]):e._e(),r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm(0)}}},[e._v("保 存")]),r("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1),r("el-dialog",{attrs:{title:"资产调整信息",visible:e.openAdjustment,width:"900px","append-to-body":""},on:{"update:visible":function(t){e.openAdjustment=t}}},[r("AssetInfo",{attrs:{title:"现资产信息",assetInfo:e.adjustmentAssetInformation}}),r("div",{staticStyle:{height:"20px"}}),r("AssetInfo",{attrs:{title:"资产原信息",assetInfo:e.adjustmentOriginalAssetInfo}})],1),r("el-dialog",{attrs:{title:"单据详细信息",visible:e.openDetail,width:"1300px","append-to-body":""},on:{"update:visible":function(t){e.openDetail=t}}},[e.openDetail?r("OrderDetail",{attrs:{orderInfo:e.orderInfo},on:{cancelByOrder:e.cancelByOrder}}):e._e()],1)],1)},n=[],l=r("5530"),o=r("ade3"),s=(r("d3b7"),r("3ca3"),r("ddb0"),r("4de4"),r("b0c0"),r("a9e3"),r("159b"),r("14d9"),r("dea0")),i=r("c0c7"),u=r("ca17"),c=r.n(u),d=(r("542c"),r("b88f")),p={name:"Order",dicts:["asset_order_type","asset_record_status"],components:{AssetInfo:function(){return r.e("chunk-2d221a45").then(r.bind(null,"cae6"))},OrderDetail:function(){return Promise.all([r.e("chunk-30f55eda"),r.e("chunk-3cf07bfc")]).then(r.bind(null,"daa0"))},Treeselect:c.a},data:function(){var e;return e={loading:!0,ids:[],single:!0,multiple:!0,showSearch:!0,total:0,informationList:[],orderList:[],orderType:1,openAdjustment:!1,adjustmentOriginalAssetInfo:null,adjustmentAssetInformation:null,openDetail:!1,orderInfo:null,deptOptions:[],title:"",open:!1,queryParams:{pageNum:1,pageSize:10,orderNumber:null,orderType:"1",applicationDate:null,applicationDepartment:null,adjustmentAssetNumber:null,allocationCallOutDepartment:null,allocationCallOutBy:null,allocationCallOutDate:null,allocationCallInDepartment:null,allocationCallInBy:null,allocationCallInDate:null,lendDepartment:null,lendBySponsor:null,lendPassingUnit:null,reason:null,preparedBy:null,preparedDepartment:null,corporation:null,recordStatus:null}},Object(o["a"])(e,"orderType",null),Object(o["a"])(e,"form",{}),Object(o["a"])(e,"rules",{orderType:[{required:!0,message:"单据类型不能为空",trigger:"change"}],applicationDate:[{required:!0,message:"申请日期不能为空",trigger:"change"}],applicationDepartment:[{required:!0,message:"申请部门不能为空",trigger:"change"}],adjustmentAssetNumber:[{required:!0,message:"【调整】资产编号不能为空",trigger:"change"}],allocationCallOutDepartment:[{required:!0,message:"【调拨】调出部门不能为空",trigger:"change"}],allocationCallOutBy:[{required:!0,message:"【调拨】调出经办人不能为空",trigger:"blur"}],allocationCallOutDate:[{required:!0,message:"【调拨】调出日期不能为空",trigger:"change"}],allocationCallInDepartment:[{required:!0,message:"【调拨】调入部门不能为空",trigger:"change"}],allocationCallInBy:[{required:!0,message:"【调拨】调入经办人不能为空",trigger:"blur"}],allocationCallInDate:[{required:!0,message:"【调拨】调入日期不能为空",trigger:"change"}],lendDepartment:[{required:!0,message:"【借出】借出部门不能为空",trigger:"change"}],lendBySponsor:[{required:!0,message:"【借出】经手人不能为空",trigger:"blur"}],lendPassingUnit:[{required:!0,message:"【借出】往来单位不能为空",trigger:"change"}],reason:[{required:!0,message:"原因说明不能为空",trigger:"blur"}]}),e},created:function(){this.orderType=1,this.getDeptTree(),this.getList()},beforeDestroy:function(){this.$off("cancelByOrder")},methods:{getList:function(){var e=this;this.loading=!0,Object(d["f"])().then((function(t){e.informationList=t.data})),Object(s["f"])(this.queryParams).then((function(t){e.orderList=t.rows,e.total=t.total,e.loading=!1}))},getDeptTree:function(){var e=this;Object(i["d"])().then((function(t){e.deptOptions=t.data}))},getAssetName:function(e){var t=this.informationList.filter((function(t){return t.number===e}));return t[0].name},cancel:function(){this.open=!1,this.reset()},onSelectOriginalAssetInfo:function(e){this.adjustmentAssetInformation=e.adjustmentAssetInformation;var t=JSON.parse(e.adjustmentOriginalAssetInfo);this.adjustmentOriginalAssetInfo=t,this.openAdjustment=!0},onSelectopenDetail:function(e){this.orderInfo=e,this.openDetail=!0},onQueryTypeChange:function(){this.orderType=Number(this.queryParams.orderType),this.queryParams.assetTotalOriginalValue=null,this.queryParams.assetTotalNetValue=null,this.queryParams.adjustmentAssetNumber=null,this.queryParams.adjustmentOriginalAssetInfo=null,this.queryParams.allocationCallOutDepartment=null,this.queryParams.allocationCallOutBy=null,this.queryParams.allocationCallOutDate=null,this.queryParams.allocationCallInDepartment=null,this.queryParams.allocationCallInBy=null,this.queryParams.allocationCallInDate=null,this.queryParams.allocationNewResponsiblePerson=null,this.queryParams.allocationNewLocationNumber=null,this.queryParams.lendDepartment=null,this.queryParams.lendBySponsor=null,this.queryParams.lendPassingUnit=null,this.handleQuery()},onFormTypeChange:function(){this.form.assetTotalOriginalValue=null,this.form.assetTotalNetValue=null,this.form.adjustmentAssetNumber=null,this.form.adjustmentOriginalAssetInfo=null,this.form.allocationCallOutDepartment=null,this.form.allocationCallOutBy=null,this.form.allocationCallOutDate=null,this.form.allocationCallInDepartment=null,this.form.allocationCallInBy=null,this.form.allocationCallInDate=null,this.form.allocationNewResponsiblePerson=null,this.form.allocationNewLocationNumber=null,this.form.lendDepartment=null,this.form.lendBySponsor=null,this.form.lendPassingUnit=null},reset:function(){this.form={id:null,orderNumber:null,orderType:null,assetTotalOriginalValue:null,assetTotalNetValue:null,applicationDate:null,applicationDepartment:null,adjustmentAssetNumber:null,adjustmentOriginalAssetInfo:null,allocationCallOutDepartment:null,allocationCallOutBy:null,allocationCallOutDate:null,allocationCallInDepartment:null,allocationCallInBy:null,allocationCallInDate:null,allocationNewResponsiblePerson:null,allocationNewLocationNumber:null,lendDepartment:null,lendBySponsor:null,lendPassingUnit:null,reason:null,preparedBy:null,preparedDepartment:null,corporation:null,recordStatus:null},this.resetForm("form")},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(e){var t=this;e.forEach((function(e){e.recordStatus>0&&(t.$modal.msgWarning("已提交单据 "+e.orderNumber+" 不可修改/删除"),t.$refs.table.toggleRowSelection(e,!1))})),e=e.filter((function(e){return e.recordStatus<1})),e.forEach((function(e){e.recordStatus<1&&t.ids.push(e.id)})),0===e.length&&(this.ids=[]),this.single=1!==e.length,this.multiple=!e.length},handleAdd:function(){this.reset(),this.form.orderType=this.orderType,this.form.recordStatus=0,this.open=!0,this.title="添加资产单据"},handleUpdate:function(e){var t=this;this.reset()("修改表单信息:",e);var r=e.id||this.ids;Object(s["e"])(r).then((function(e){t.form=e.data,e.data.recordStatus>0?t.$modal.msgWarning("已提交单据不可修改"):(t.open=!0,t.title="修改资产单据")}))},handleAudit:function(){var e=this;this.reset(),Object(s["b"])(this.ids).then((function(t){e.$modal.msgSuccess("审批通过"),e.getList()}))},handleWithdraw:function(){var e=this;this.reset()(this.ids),Object(s["h"])(this.ids).then((function(t){e.$modal.msgSuccess("撤回成功"),e.getList()}))},handleCommand:function(e){"a"===e&&this.handleWithdraw()},submitForm:function(e){var t=this;this.$refs["form"].validate((function(r){r&&(null!=t.form.id?(t.form.recordStatus=e,Object(s["g"])(t.form).then((function(r){0===e?t.$modal.msgSuccess("保存成功"):t.$modal.msgSuccess("提交成功"),t.open=!1,t.getList()}))):(t.form.recordStatus=e,Object(s["a"])(t.form).then((function(r){t.open=!1,t.getList(),1!==r.data.orderType&&(t.onSelectopenDetail(r.data),0===e?t.$modal.msgSuccess("保存成功"):t.$modal.msgSuccess("提交成功"))}))))}))},handleDelete:function(e){var t=this,r=e.id||this.ids;this.$modal.confirm('是否确认删除资产单据编号为"'+r+'"的数据项?').then((function(){return Object(s["d"])(r)})).then((function(){t.getList(),t.$modal.msgSuccess("删除成功")})).catch((function(){}))},handleExport:function(){this.download("order/order/export",Object(l["a"])({},this.queryParams),"order_".concat((new Date).getTime(),".xlsx"))},cancelByOrder:function(e){this.openDetail=!1}}},m=p,f=(r("c1bf"),r("2877")),y=Object(f["a"])(m,a,n,!1,null,"b67d00d0",null);t["default"]=y.exports},dea0:function(e,t,r){"use strict";r.d(t,"f",(function(){return n})),r.d(t,"e",(function(){return l})),r.d(t,"a",(function(){return o})),r.d(t,"g",(function(){return s})),r.d(t,"c",(function(){return i})),r.d(t,"b",(function(){return u})),r.d(t,"h",(function(){return c})),r.d(t,"d",(function(){return d}));var a=r("b775");function n(e){return Object(a["a"])({url:"/order/order/list",method:"get",params:e})}function l(e){return Object(a["a"])({url:"/order/order/"+e,method:"get"})}function o(e){return Object(a["a"])({url:"/order/order",method:"post",data:e})}function s(e){return Object(a["a"])({url:"/order/order",method:"put",data:e})}function i(e){return Object(a["a"])({url:"/order/order/audit",method:"put",data:e})}function u(e){return Object(a["a"])({url:"/order/order/auditMore",method:"put",data:e})}function c(e){return Object(a["a"])({url:"/order/order/withdraw",method:"put",data:e})}function d(e){return Object(a["a"])({url:"/order/order/"+e,method:"delete"})}}}]);