1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2365e14d"],{"053e":function(e,t,r){},"1e4b":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"hotel-index"},[r("h3",[e._v("待审批信息")]),r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.orderList,height:"260",border:"","default-sort":{prop:"applicationDate",order:"descending"}}},[r("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-form",{staticClass:"table-expand",attrs:{"label-position":"left"}},[r("el-descriptions",{attrs:{column:4,border:""}},[1!==t.row.orderType?r("el-descriptions-item",{attrs:{label:"资产总原值"}},[r("span",[e._v(e._s(t.row.assetTotalOriginalValue))])]):e._e(),1!==t.row.orderType?r("el-descriptions-item",{attrs:{label:"资产总净值"}},[r("span",[e._v(e._s(t.row.assetTotalNetValue))])]):e._e(),1===t.row.orderType?r("el-descriptions-item",{attrs:{label:"【调整】资产编号"}},[r("span",[e._v(e._s(t.row.adjustmentAssetNumber))])]):e._e(),1===t.row.orderType?r("el-descriptions-item",{attrs:{label:"【调整】资产原信息"}},[r("el-button",{attrs:{type:"text",icon:"el-icon-search"},on:{click:function(r){return e.onSelectOriginalAssetInfo(t.row.adjustmentOriginalAssetInfo)}}},[e._v("查看")])],1):e._e(),1!==t.row.orderType?r("el-descriptions-item",{attrs:{label:"资产明细"}},[r("el-button",{attrs:{type:"text",icon:"el-icon-search"},on:{click:function(r){return e.onSelectopenDetail(t.row)}}},[e._v("查看")])],1):e._e(),2===t.row.orderType?r("el-descriptions-item",{attrs:{label:"【调拨】调出部门"}},[r("span",[e._v(e._s(t.row.allocationCallOutDepartmentName))])]):e._e(),2===t.row.orderType?r("el-descriptions-item",{attrs:{label:"【调拨】调出经办人"}},[r("span",[e._v(e._s(t.row.allocationCallOutBy))])]):e._e(),2===t.row.orderType?r("el-descriptions-item",{attrs:{label:"【调拨】调出日期"}},[r("span",[e._v(e._s(e.parseTime(t.row.allocationCallOutDate,"{y}-{m}-{d}")))])]):e._e(),2===t.row.orderType?r("el-descriptions-item",{attrs:{label:"【调拨】调入部门"}},[r("span",[e._v(e._s(t.row.allocationCallInDepartmentName))])]):e._e(),2===t.row.orderType?r("el-descriptions-item",{attrs:{label:"【调拨】调入经办人"}},[r("span",[e._v(e._s(t.row.allocationCallInBy))])]):e._e(),2===t.row.orderType?r("el-descriptions-item",{attrs:{label:"【调拨】调入日期"}},[r("span",[e._v(e._s(e.parseTime(t.row.allocationCallInDate,"{y}-{m}-{d}")))])]):e._e(),2===t.row.orderType?r("el-descriptions-item",{attrs:{label:"【调拨】新管理人"}},[r("span",[e._v(e._s(t.row.allocationNewResponsiblePerson))])]):e._e(),2===t.row.orderType?r("el-descriptions-item",{attrs:{label:"【调拨】新功能位置编号"}},[r("span",[e._v(e._s(t.row.allocationNewLocationNumber))])]):e._e(),3===t.row.orderType?r("el-descriptions-item",{attrs:{label:"【借出】借出部门"}},[r("span",[e._v(e._s(t.row.lendDepartmentName))])]):e._e(),3===t.row.orderType?r("el-descriptions-item",{attrs:{label:"【借出】经手人"}},[r("span",[e._v(e._s(t.row.lendBySponsor))])]):e._e(),3===t.row.orderType?r("el-descriptions-item",{attrs:{label:"【借出】往来单位"}},[r("span",[e._v(e._s(t.row.lendPassingUnitName))])]):e._e(),r("el-descriptions-item",{attrs:{label:"原因说明"}},[e._v(e._s(t.row.reason))]),r("el-descriptions-item",{attrs:{label:"所属公司"}},[e._v(e._s(t.row.corporationName))])],1)],1)]}}])}),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"}}),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:"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"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["order:order:audit"],expression:"['order:order:audit']"}],attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(r){return e.handleAudit(t.row,2)}}},[e._v("审批")]),r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["order:order:audit"],expression:"['order:order:audit']"}],attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(r){return e.handleAudit(t.row,0)}}},[e._v("撤销")])]}}])})],1),r("h3",[e._v("待盘点信息")]),r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.inventoryList,height:"260",border:"","default-sort":{prop:"applicationDate",order:"descending"}}},[r("el-table-column",{attrs:{width:"55",align:"center"}}),r("el-table-column",{attrs:{label:"资产盘点记录编号",align:"center",prop:"id"}}),r("el-table-column",{attrs:{label:"单据编号",align:"center",prop:"orderNumber"}}),r("el-table-column",{attrs:{label:"任务名称",align:"center",prop:"name"}}),r("el-table-column",{attrs:{label:"盘点部门",align:"center",prop:"deptName"}}),r("el-table-column",{attrs:{label:"盘点人",align:"center",prop:"inventoryBy"}}),r("el-table-column",{attrs:{label:"盘点日期",align:"center",prop:"inventoryDate",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(e.parseTime(t.row.inventoryDate,"{y}-{m}-{d}")))])]}}])}),r("el-table-column",{attrs:{label:"盘点位置",align:"center",prop:"inventoryLocationName"}}),r("el-table-column",{attrs:{label:"备注",align:"center",prop:"remark"}})],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.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}}):e._e()],1)],1)},o=[],a=(r("d3b7"),r("3ca3"),r("ddb0"),r("99af"),r("dea0")),l=r("a67f"),i=r("c0c7"),s={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-5bb73842"),r.e("chunk-30f55eda"),r.e("chunk-3cf07bfc"),r.e("chunk-2d2106ba")]).then(r.bind(null,"daa0"))}},data:function(){return{user:{},form:{},orderList:[],inventoryList:[],openAdjustment:!1,adjustmentOriginalAssetInfo:null,openDetail:!1,orderInfo:null,queryParams:{pageNum:1,pageSize:10,recordStatus:1,inventoryResult:0,inventoryBy:""}}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(i["g"])().then((function(t){e.user=t.data,e.queryParams.inventoryBy=e.user.userName,Object(l["e"])(e.queryParams).then((function(t){e.inventoryList=t.rows}))})),Object(a["f"])(this.queryParams).then((function(t){e.orderList=t.rows,e.total=t.total,e.loading=!1}))},onSelectOriginalAssetInfo:function(e){var t=JSON.parse(e);this.adjustmentOriginalAssetInfo=t,this.openAdjustment=!0},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}},onSelectopenDetail:function(e){this.orderInfo=e("单据信息:",e),this.openDetail=!0},handleAudit:function(e,t){var r=this,n="是否".concat(t>0?"通过审核":"确认撤销"," ").concat(e.orderNumber,"单据?");this.$modal.confirm(n).then((function(){r.reset(),r.form.id=e.id,r.form.orderNumber=e.orderNumber,r.form.orderType=e.orderType,r.form.recordStatus=t,Object(a["c"])(r.form).then((function(e){r.$modal.msgSuccess("操作成功"),r.getList()}))})).catch((function(){}))}}},u=s,c=(r("7cef"),r("2877")),d=Object(c["a"])(u,n,o,!1,null,"3d1bb62d",null);t["default"]=d.exports},"7cef":function(e,t,r){"use strict";r("053e")},a67f:function(e,t,r){"use strict";r.d(t,"d",(function(){return o})),r.d(t,"e",(function(){return a})),r.d(t,"c",(function(){return l})),r.d(t,"a",(function(){return i})),r.d(t,"g",(function(){return s})),r.d(t,"b",(function(){return u})),r.d(t,"f",(function(){return c}));r("99af");var n=r("b775");function o(e){return Object(n["a"])({url:"/inventory/inventory/list",method:"get",params:e})}function a(e){return Object(n["a"])({url:"/inventory/inventory/listDTO",method:"get",params:e})}function l(e){return Object(n["a"])({url:"/inventory/inventory/"+e,method:"get"})}function i(e){return Object(n["a"])({url:"/inventory/inventory",method:"post",data:e})}function s(e){return Object(n["a"])({url:"/inventory/inventory",method:"put",data:e})}function u(e){return Object(n["a"])({url:"/inventory/inventory/"+e,method:"delete"})}function c(e,t){return"/inventory/inventory/code/".concat(e,"?v=").concat(t)}},c0c7:function(e,t,r){"use strict";r.d(t,"k",(function(){return a})),r.d(t,"i",(function(){return l})),r.d(t,"f",(function(){return i})),r.d(t,"a",(function(){return s})),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 b})),r.d(t,"p",(function(){return y})),r.d(t,"e",(function(){return h})),r.d(t,"l",(function(){return _})),r.d(t,"d",(function(){return v})),r.d(t,"h",(function(){return w}));var n=r("b775"),o=r("c38a");function a(e){return Object(n["a"])({url:"/system/user/search",method:"post",data:e})}function l(e){return Object(n["a"])({url:"/system/user/list",method:"get",params:e})}function i(e){return Object(n["a"])({url:"/system/user/"+Object(o["e"])(e),method:"get"})}function s(e){return Object(n["a"])({url:"/system/user",method:"post",data:e})}function u(e){return Object(n["a"])({url:"/system/user",method:"put",data:e})}function c(e){return Object(n["a"])({url:"/system/user/"+e,method:"delete"})}function d(e,t){var r={userId:e,password:t};return Object(n["a"])({url:"/system/user/resetPwd",method:"put",data:r})}function p(e,t){var r={userId:e,status:t};return Object(n["a"])({url:"/system/user/changeStatus",method:"put",data:r})}function m(){return Object(n["a"])({url:"/system/user/profile",method:"get"})}function f(e){return Object(n["a"])({url:"/system/user/profile",method:"put",data:e})}function b(e,t){var r={oldPassword:e,newPassword:t};return Object(n["a"])({url:"/system/user/profile/updatePwd",method:"put",params:r})}function y(e){return Object(n["a"])({url:"/system/user/profile/avatar",method:"post",data:e})}function h(e){return Object(n["a"])({url:"/system/user/authRole/"+e,method:"get"})}function _(e){return Object(n["a"])({url:"/system/user/authRole",method:"put",params:e})}function v(){return Object(n["a"])({url:"/system/user/deptTree",method:"get"})}function w(e){return Object(n["a"])({url:"/system/user/exists/".concat(e),method:"get"})}},dea0:function(e,t,r){"use strict";r.d(t,"f",(function(){return o})),r.d(t,"e",(function(){return a})),r.d(t,"a",(function(){return l})),r.d(t,"g",(function(){return i})),r.d(t,"c",(function(){return s})),r.d(t,"b",(function(){return u})),r.d(t,"h",(function(){return c})),r.d(t,"d",(function(){return d}));var n=r("b775");function o(e){return Object(n["a"])({url:"/order/order/list",method:"get",params:e})}function a(e){return Object(n["a"])({url:"/order/order/"+e,method:"get"})}function l(e){return Object(n["a"])({url:"/order/order",method:"post",data:e})}function i(e){return Object(n["a"])({url:"/order/order",method:"put",data:e})}function s(e){return Object(n["a"])({url:"/order/order/audit",method:"put",data:e})}function u(e){return Object(n["a"])({url:"/order/order/auditMore",method:"put",data:e})}function c(e){return Object(n["a"])({url:"/order/order/withdraw",method:"put",data:e})}function d(e){return Object(n["a"])({url:"/order/order/"+e,method:"delete"})}}}]);
|