(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c73c0"],{"506e":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,size:"small",inline:!0,"label-width":"68px"}},[a("el-form-item",{attrs:{label:"单据编号",prop:"orderNumber"}},[a("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),a("el-form-item",{attrs:{label:"资产总原值",prop:"assetTotalOriginalValue"}},[a("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.assetTotalOriginalValue,callback:function(t){e.$set(e.queryParams,"assetTotalOriginalValue",t)},expression:"queryParams.assetTotalOriginalValue"}})],1),a("el-form-item",{attrs:{label:"资产总净值",prop:"assetTotalNetValue"}},[a("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.assetTotalNetValue,callback:function(t){e.$set(e.queryParams,"assetTotalNetValue",t)},expression:"queryParams.assetTotalNetValue"}})],1),a("el-form-item",{attrs:{label:"申请日期",prop:"applicationDate"}},[a("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),a("el-form-item",{attrs:{label:"申请部门",prop:"applicationDepartment"}},[a("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.applicationDepartment,callback:function(t){e.$set(e.queryParams,"applicationDepartment",t)},expression:"queryParams.applicationDepartment"}})],1),a("el-form-item",{attrs:{label:"原因说明",prop:"reason"}},[a("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.reason,callback:function(t){e.$set(e.queryParams,"reason",t)},expression:"queryParams.reason"}})],1),a("el-form-item",{attrs:{label:"制单人",prop:"preparedBy"}},[a("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),a("el-form-item",{attrs:{label:"制单部门",prop:"preparedDepartment"}},[a("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.preparedDepartment,callback:function(t){e.$set(e.queryParams,"preparedDepartment",t)},expression:"queryParams.preparedDepartment"}})],1),a("el-form-item",{attrs:{label:"所属公司",prop:"corporation"}},[a("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.corporation,callback:function(t){e.$set(e.queryParams,"corporation",t)},expression:"queryParams.corporation"}})],1),a("el-form-item",{attrs:{label:"记录状态",prop:"recordStatus"}},[a("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 a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-form-item",{attrs:{label:"单据类型",prop:"orderType"}},[a("el-select",{attrs:{placeholder:"请选择单据类型",clearable:""},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 a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-form-item",[a("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),a("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),a("el-row",{staticClass:"mb8",attrs:{gutter:10}},[a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["change:order:add"],expression:"['change:order:add']"}],attrs:{type:"primary",plain:"",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAdd}},[e._v("新增")])],1),a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["change:order:edit"],expression:"['change:order:edit']"}],attrs:{type:"success",plain:"",icon:"el-icon-edit",size:"mini",disabled:e.single},on:{click:e.handleUpdate}},[e._v("修改")])],1),a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["change:order:remove"],expression:"['change:order:remove']"}],attrs:{type:"danger",plain:"",icon:"el-icon-delete",size:"mini",disabled:e.multiple},on:{click:e.handleDelete}},[e._v("删除")])],1),a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["change:order:export"],expression:"['change:order:export']"}],attrs:{type:"warning",plain:"",icon:"el-icon-download",size:"mini"},on:{click:e.handleExport}},[e._v("导出")])],1),a("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),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.orderList},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),a("el-table-column",{attrs:{label:"编号",align:"center",prop:"id"}}),a("el-table-column",{attrs:{label:"单据编号",align:"center",prop:"orderNumber"}}),a("el-table-column",{attrs:{label:"资产总原值",align:"center",prop:"assetTotalOriginalValue"}}),a("el-table-column",{attrs:{label:"资产总净值",align:"center",prop:"assetTotalNetValue"}}),a("el-table-column",{attrs:{label:"申请日期",align:"center",prop:"applicationDate",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e.parseTime(t.row.applicationDate,"{y}-{m}-{d}")))])]}}])}),a("el-table-column",{attrs:{label:"申请部门",align:"center",prop:"applicationDepartment"}}),a("el-table-column",{attrs:{label:"原因说明",align:"center",prop:"reason"}}),a("el-table-column",{attrs:{label:"制单人",align:"center",prop:"preparedBy"}}),a("el-table-column",{attrs:{label:"制单部门",align:"center",prop:"preparedDepartment"}}),a("el-table-column",{attrs:{label:"所属公司",align:"center",prop:"corporation"}}),a("el-table-column",{attrs:{label:"记录状态",align:"center",prop:"recordStatus"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("dict-tag",{attrs:{options:e.dict.type.asset_record_status,value:t.row.recordStatus}})]}}])}),a("el-table-column",{attrs:{label:"单据类型",align:"center",prop:"orderType"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("dict-tag",{attrs:{options:e.dict.type.asset_order_type,value:t.row.orderType}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["change:order:edit"],expression:"['change:order:edit']"}],attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(a){return e.handleUpdate(t.row)}}},[e._v("修改")]),a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["change:order:remove"],expression:"['change:order:remove']"}],attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(a){return e.handleDelete(t.row)}}},[e._v("删除")])]}}])})],1),a("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}}),a("el-dialog",{attrs:{title:e.title,visible:e.open,width:"500px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"单据编号",prop:"orderNumber"}},[a("el-input",{attrs:{placeholder:"请输入单据编号"},model:{value:e.form.orderNumber,callback:function(t){e.$set(e.form,"orderNumber",t)},expression:"form.orderNumber"}})],1),a("el-form-item",{attrs:{label:"资产总原值",prop:"assetTotalOriginalValue"}},[a("el-input",{attrs:{placeholder:"请输入资产总原值"},model:{value:e.form.assetTotalOriginalValue,callback:function(t){e.$set(e.form,"assetTotalOriginalValue",t)},expression:"form.assetTotalOriginalValue"}})],1),a("el-form-item",{attrs:{label:"资产总净值",prop:"assetTotalNetValue"}},[a("el-input",{attrs:{placeholder:"请输入资产总净值"},model:{value:e.form.assetTotalNetValue,callback:function(t){e.$set(e.form,"assetTotalNetValue",t)},expression:"form.assetTotalNetValue"}})],1),a("el-form-item",{attrs:{label:"申请日期",prop:"applicationDate"}},[a("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),a("el-form-item",{attrs:{label:"申请部门",prop:"applicationDepartment"}},[a("el-input",{attrs:{placeholder:"请输入申请部门"},model:{value:e.form.applicationDepartment,callback:function(t){e.$set(e.form,"applicationDepartment",t)},expression:"form.applicationDepartment"}})],1),a("el-form-item",{attrs:{label:"原因说明",prop:"reason"}},[a("el-input",{attrs:{placeholder:"请输入原因说明"},model:{value:e.form.reason,callback:function(t){e.$set(e.form,"reason",t)},expression:"form.reason"}})],1),a("el-form-item",{attrs:{label:"制单人",prop:"preparedBy"}},[a("el-input",{attrs:{placeholder:"请输入制单人"},model:{value:e.form.preparedBy,callback:function(t){e.$set(e.form,"preparedBy",t)},expression:"form.preparedBy"}})],1),a("el-form-item",{attrs:{label:"制单部门",prop:"preparedDepartment"}},[a("el-input",{attrs:{placeholder:"请输入制单部门"},model:{value:e.form.preparedDepartment,callback:function(t){e.$set(e.form,"preparedDepartment",t)},expression:"form.preparedDepartment"}})],1),a("el-form-item",{attrs:{label:"所属公司",prop:"corporation"}},[a("el-input",{attrs:{placeholder:"请输入所属公司"},model:{value:e.form.corporation,callback:function(t){e.$set(e.form,"corporation",t)},expression:"form.corporation"}})],1),a("el-form-item",{attrs:{label:"记录状态",prop:"recordStatus"}},[a("el-select",{attrs:{placeholder:"请选择记录状态"},model:{value:e.form.recordStatus,callback:function(t){e.$set(e.form,"recordStatus",t)},expression:"form.recordStatus"}},e._l(e.dict.type.asset_record_status,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:parseInt(e.value)}})})),1)],1),a("el-form-item",{attrs:{label:"单据类型",prop:"orderType"}},[a("el-select",{attrs:{placeholder:"请选择单据类型"},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 a("el-option",{key:e.value,attrs:{label:e.label,value:parseInt(e.value)}})})),1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]),a("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)],1)},l=[],n=a("5530"),o=(a("d81d"),a("b775"));function i(e){return Object(o["a"])({url:"/change/order/list",method:"get",params:e})}function s(e){return Object(o["a"])({url:"/change/order/"+e,method:"get"})}function p(e){return Object(o["a"])({url:"/change/order",method:"post",data:e})}function u(e){return Object(o["a"])({url:"/change/order",method:"put",data:e})}function c(e){return Object(o["a"])({url:"/change/order/"+e,method:"delete"})}var d={name:"Order",dicts:["asset_order_type","asset_record_status"],data:function(){return{loading:!0,ids:[],single:!0,multiple:!0,showSearch:!0,total:0,orderList:[],title:"",open:!1,queryParams:{pageNum:1,pageSize:10,orderNumber:null,assetTotalOriginalValue:null,assetTotalNetValue:null,applicationDate:null,applicationDepartment:null,reason:null,preparedBy:null,preparedDepartment:null,corporation:null,recordStatus:null,orderType:null},form:{},rules:{orderNumber:[{required:!0,message:"单据编号不能为空",trigger:"blur"}],preparedBy:[{required:!0,message:"制单人不能为空",trigger:"blur"}],recordStatus:[{required:!0,message:"记录状态不能为空",trigger:"change"}],orderType:[{required:!0,message:"单据类型不能为空",trigger:"change"}]}}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,i(this.queryParams).then((function(t){e.orderList=t.rows,e.total=t.total,e.loading=!1}))},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={id:null,orderNumber:null,assetTotalOriginalValue:null,assetTotalNetValue:null,applicationDate:null,applicationDepartment:null,reason:null,preparedBy:null,preparedDepartment:null,corporation:null,recordStatus:null,orderType:null},this.resetForm("form")},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.id})),this.single=1!==e.length,this.multiple=!e.length},handleAdd:function(){this.reset(),this.open=!0,this.title="添加资产单据"},handleUpdate:function(e){var t=this;this.reset();var a=e.id||this.ids;s(a).then((function(e){t.form=e.data,t.open=!0,t.title="修改资产单据"}))},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){t&&(null!=e.form.id?u(e.form).then((function(t){e.$modal.msgSuccess("修改成功"),e.open=!1,e.getList()})):p(e.form).then((function(t){e.$modal.msgSuccess("新增成功"),e.open=!1,e.getList()})))}))},handleDelete:function(e){var t=this,a=e.id||this.ids;this.$modal.confirm('是否确认删除资产单据编号为"'+a+'"的数据项?').then((function(){return c(a)})).then((function(){t.getList(),t.$modal.msgSuccess("删除成功")})).catch((function(){}))},handleExport:function(){this.download("change/order/export",Object(n["a"])({},this.queryParams),"order_".concat((new Date).getTime(),".xlsx"))}}},m=d,f=a("2877"),y=Object(f["a"])(m,r,l,!1,null,null,null);t["default"]=y.exports}}]);