webpackJsonp([4],{"/Tmc":function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o("Xxa5"),r=o.n(n),s=o("exGp"),a=o.n(s),i=o("Dd8w"),d=o.n(i),l=o("NYxO"),u=o("jQQ7"),c=o("Oa05"),p=o("dO7o"),m=o("hky6"),_=o("dClm"),f=(o("CIZm"),o("Pfph")),v={name:"goodsInventoryAdd",data:function(){return{adminList:[],dialogVisible:!1,warehouseList:[],deptList:[],deptListAll:[],roleSplit:[],id:"",type:"",goodsInventoryAddForm:{product_list:[]},goodsInventoryAddFormRule:{warehouse_id:{required:!0,message:"请选择报仓库",trigger:"change"},damage_type_value:{required:!0,message:"请选择报损类型",trigger:"change"},dept_id:{required:!0,message:"请选择所属部门",trigger:"change"},creator_id:{required:!0,message:"请选择制单人",trigger:"change"}},warehouseProduct:null,scanDialogVisible:!1,sn_code:"",sku:"",sn_code_list:[],index:"",scanGoodsForm:{}}},computed:d()({},Object(l.b)(["user"])),mounted:function(){"goodsInventoryLossEdit"===this.$route.name?(console.log(112),this.type="edit"):"goodsInventoryLossAudit"===this.$route.name?this.type="audit":"goodsInventoryLossReturn"===this.$route.name?this.type="return":"goodsInventoryLossAdd"===this.$route.name?(this.type="add",this.goodsInventoryAddForm.creator_id=this.user.uid,this.goodsInventoryAddForm.dept_id=this.user.dept_id,this.GET_WarehouseList({dept_id:this.user.dept_id})):"goodsInventoryLossDetail"===this.$route.name&&(this.type="detail"),this.$route.params.id&&(this.id=this.$route.params.id,this.GET_goodsInventoryAddDetail()),this.GET_DeptList(),this.GET_DictDataInfo(),this.GET_WarehouseList({dept_id:this.user.dept_id}),this.GET_AdministratorList()},methods:{scanCode:function(){var t=this;this.scanDialogVisible=!0,this.$nextTick(function(){t.$refs.input.focus()})},toSearch:function(){var t=this;p.k(this.goodsInventoryAddForm.warehouse_id,this.scanGoodsForm.bar_code.replace(/\s+/g,"")).then(function(e){e.sn_code_list=[],t.sku=e.product_vo.sku;var o=t.goodsInventoryAddForm.product_list.findIndex(function(t){return t.goods_vo.id===e.goods_id&&t.product_id===e.product_id&&t.product_vo.sku===e.product_vo.sku});if(-1===o){if(!t.goodsInventoryAddForm.product_list.find(function(t){return t.goods_vo.id===e.goods_id&&t.product_id===e.product_id&&t.product_vo.sku===e.product_vo.sku}))return t.$message.error("订单内没有该商品,请重新录入"),void t.$nextTick(function(){t.$refs.input.focus()});t.index=t.goodsInventoryAddForm.product_list.length,t.goodsInventoryAddForm.product_list.push(e)}else t.index=o;e.product_vo.have_sn?t.$nextTick(function(){t.$refs.sn_input.focus()}):(t.goodsInventoryAddForm.product_list[t.index].report_num+=1,t.goodsInventoryAddForm.product_list[t.index].report_num==t.goodsInventoryAddForm.product_list[t.index].num&&(t.scanDialogVisible=!1))})},toSnCode:function(){var t=this;if(""==this.sku)return this.$message.error("请录入正确的sku");p.l("out",this.sku,this.sn_code.replace(/\s+/g,"")).then(function(e){t.sn_code="",t.goodsInventoryAddForm.product_list[t.index].sn_code_list.find(function(t){return t.sn_code===e.sn_code&&t.sku===e.sku})||t.goodsInventoryAddForm.product_list[t.index].sn_code_list.push(e),t.goodsInventoryAddForm.product_list[t.index].report_num=t.goodsInventoryAddForm.product_list[t.index].sn_code_list.length;var o=t.product_list.findIndex(function(t){return t.goods_id===e.goods_id&&t.product_id===e.product_id&&t.product_vo.sku===e.sku});t.goodsInventoryAddForm.product_list[t.index].id=t.product_list[o].id,t.goodsInventoryAddForm.product_list[t.index].report_num==t.product_list[o].report_num?(t.scanGoodsForm.bar_code="",t.scanDialogVisible=!1):(t.scanGoodsForm.bar_code="",t.$nextTick(function(){t.$refs.input.focus()}))})},submitcont:function(){var t=this;this.$refs.goodsInventoryAddForm.validate(function(e){if(e){var o=t.goodsInventoryAddForm.id,n=t.MixinClone(t.goodsInventoryAddForm);n.dept_id&&(n.dept_name=t.deptListAll.find(function(t){return t.id===n.dept_id}).name),n.warehouse_id&&(n.warehouse_name=t.warehouseList.find(function(t){return t.id===n.warehouse_id}).name),n.damage_type_value&&(n.damage_type_key=t.roleSplit.find(function(t){return t.value===n.damage_type_value}).label),n.creator_id&&(n.creator=t.adminList.find(function(t){return t.id===n.creator_id}).real_name),n.product_list=n.product_list.map(function(t){return{report_num:t.report_num,product_id:t.product_id,product_stock_id:t.product_stock_id}}),c.i(o,n).then(function(e){t.$message.success("确认成功!");var o=t.$route.params.callback;"function"==typeof o&&o(),t.$store.dispatch("delCurrentViews",{view:t.$route,$router:t.$router}),t.$router.push({name:"goodsInventoryLoss"})})}})},getadminList:function(t){var e=this.adminList.find(function(e){return e.id===t});return e?e.real_name:"未知类型"},getRoleSplit:function(t){var e=this.roleSplit.find(function(e){return e.value===t});return e?e.label:"未知类型"},getWarehouse:function(t){var e=this.warehouseList.find(function(e){return e.id===t});return e?e.name:"未知类型"},printIng:function(){},changeCreator:function(t){this.$forceUpdate()},cleanGoodsList:function(){this.goodsInventoryAddForm.product_list=[]},GET_AdministratorList:function(){var t=this;f.i({page_no:1,page_size:9999,user_state:0}).then(function(e){t.adminList=e.data})},GET_DictDataInfo:function(){var t=this;m.p("es_stock_damage_report").then(function(e){t.roleSplit=e})},handlePassGoodsInventoryLoss:function(){var t=this;this.$confirm("确定通过吗?","提示",{type:"warning"}).then(function(){c.c(t.id,{status:"PASS"}).then(function(){t.$message.success("已通过!");var e=t.$route.params.callback;"function"==typeof e&&e(),t.$store.dispatch("delCurrentViews",{view:t.$route,$router:t.$router}),t.$router.push({name:"goodsInventoryLoss"})})}).catch(function(){})},handleRejectGoodsInventoryLoss:function(){var t=this;this.$confirm("确定拒绝吗?","提示",{type:"warning"}).then(function(){c.c(t.id,{status:"REJECT",reject_reason:t.goodsInventoryAddForm.reject_reason}).then(function(){t.$message.success("已拒绝!");var e=t.$route.params.callback;"function"==typeof e&&e(),t.$store.dispatch("delCurrentViews",{view:t.$route,$router:t.$router}),t.$router.push({name:"goodsInventoryLoss"})})}).catch(function(){})},changewarehouseList:function(t){this.$set(this.goodsInventoryAddForm,"warehouse_id",""),this.GET_WarehouseList({dept_id:t}),this.cleanGoodsList()},GET_WarehouseList:function(t){var e=this;_.G().then(function(t){e.warehouseList=t})},submitGoodsInventoryAddForm:function(){var t=this;this.$refs.goodsInventoryAddForm.validate(function(e){if(e){var o=t.goodsInventoryAddForm.id,n=t.MixinClone(t.goodsInventoryAddForm);n.dept_id&&(n.dept_name=t.deptListAll.find(function(t){return t.id===n.dept_id}).name),n.warehouse_id&&(n.warehouse_name=t.warehouseList.find(function(t){return t.id===n.warehouse_id}).name),n.damage_type_value&&(n.damage_type_key=t.roleSplit.find(function(t){return t.value===n.damage_type_value}).label),n.creator_id&&(n.creator=t.adminList.find(function(t){return t.id===n.creator_id}).real_name),n.product_list=n.product_list.map(function(t){return{report_num:t.num,product_id:t.product_id,product_stock_id:t.id}}),o?c.f(o,n).then(function(e){t.$message.success("修改成功!");var o=t.$route.params.callback;"function"==typeof o&&o(),t.$store.dispatch("delCurrentViews",{view:t.$route,$router:t.$router}),t.$router.push({name:"goodsInventoryLoss"})}):c.b(n).then(function(){t.$message.success("添加成功!");var e=t.$route.params.callback;"function"==typeof e&&e(),t.$store.dispatch("delCurrentViews",{view:t.$route,$router:t.$router}),t.$router.push({name:"goodsInventoryLoss"})})}})},handleSelectWarehouseEntryBatch:function(){var t=this;return a()(r.a.mark(function e(){var o;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.goodsInventoryAddForm.warehouse_id){e.next=3;break}return t.$message.error("请先选择仓库!"),e.abrupt("return");case 3:return e.next=5,t.$EnwarehouseEntryBatch({goodsApi:"/admin/erp/warehouseOut/getGoodByWarehouse/"+t.goodsInventoryAddForm.warehouse_id,warehouseList:t.warehouseList,selectedIds:t.id?t.goodsInventoryAddForm.product_list&&t.goodsInventoryAddForm.product_list.map(function(t){return t.id}):t.goodsInventoryAddForm.product_list.map(function(t){return t.id}),purchasePlanApiParams:{warehouse_id:t.goodsInventoryAddForm.warehouse_id}});case 5:o=e.sent,t.goodsInventoryAddForm.warehouse_id=o.warehouse_id,t.goodsInventoryAddForm.product_list=o.purchasePlans;case 8:case"end":return e.stop()}},e,t)}))()},GET_DeptList:function(){var t=this;m.o().then(function(e){t.deptList=u.Foundation.buildTree(e,"0"),t.deptListAll=e})},GET_goodsInventoryAddDetail:function(){var t=this;c.g(this.id).then(function(e){e.product_list.map(function(e){e.num=e.report_num,"edit"==t.type&&(e.report_num=0)}),t.goodsInventoryAddForm=e,t.goodsInventoryAddForm.distribution_name=e.staff_name})}}},g=o("XyMi");var h=function(t){o("XhBE")},y=Object(g.a)(v,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"bg-in-stock"},[o("el-form",{ref:"goodsInventoryAddForm",staticClass:"change-form",attrs:{model:t.goodsInventoryAddForm,rules:t.goodsInventoryAddFormRule,"label-width":"120px",inline:""}},[o("h3",{staticStyle:{width:"100%"}},[t._v("库存报损")]),t._v(" "),o("el-form-item",{staticClass:"change-form-item",attrs:{label:"报损时间",prop:"report_time"}},["detail"==t.type?o("span",[t._v(t._s(t.goodsInventoryAddForm.report_time))]):o("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",disabled:"detail"===t.type||"audit"===t.type,placeholder:"选择日期时间"},model:{value:t.goodsInventoryAddForm.report_time,callback:function(e){t.$set(t.goodsInventoryAddForm,"report_time",e)},expression:"goodsInventoryAddForm.report_time"}})],1),t._v(" "),o("el-form-item",{staticClass:"change-form-item",attrs:{label:"仓库",prop:"warehouse_id"}},["detail"==t.type?o("span",[t._v(t._s(t.getWarehouse(t.goodsInventoryAddForm.warehouse_id)))]):o("el-select",{attrs:{disabled:"detail"===t.type||"audit"===t.type},on:{change:t.cleanGoodsList},model:{value:t.goodsInventoryAddForm.warehouse_id,callback:function(e){t.$set(t.goodsInventoryAddForm,"warehouse_id",e)},expression:"goodsInventoryAddForm.warehouse_id"}},t._l(t.warehouseList,function(t){return o("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}),1)],1),t._v(" "),o("el-form-item",{staticClass:"change-form-item",attrs:{label:"报损类型",prop:"damage_type_value"}},["detail"==t.type?o("span",[t._v(t._s(t.getRoleSplit(t.goodsInventoryAddForm.damage_type_value)))]):o("el-select",{attrs:{disabled:"detail"===t.type||"audit"===t.type},model:{value:t.goodsInventoryAddForm.damage_type_value,callback:function(e){t.$set(t.goodsInventoryAddForm,"damage_type_value",e)},expression:"goodsInventoryAddForm.damage_type_value"}},t._l(t.roleSplit,function(t){return o("el-option",{key:t.label,attrs:{label:t.label,value:t.value}})}),1)],1),t._v(" "),o("el-form-item",{staticClass:"change-form-item",attrs:{label:"制单人",prop:"creator_id"}},["detail"==t.type?o("span",[t._v(t._s(t.getadminList(t.goodsInventoryAddForm.creator_id)))]):o("el-select",{attrs:{disabled:"detail"===t.type||"audit"===t.type},on:{change:t.changeCreator},model:{value:t.goodsInventoryAddForm.creator_id,callback:function(e){t.$set(t.goodsInventoryAddForm,"creator_id",e)},expression:"goodsInventoryAddForm.creator_id"}},t._l(t.adminList,function(t){return o("el-option",{key:t.id,attrs:{label:t.real_name,value:t.id}})}),1)],1),t._v(" "),o("el-form-item",{staticClass:"change-form-item",staticStyle:{width:"61%"},attrs:{label:"报损说明",prop:"report_desc"}},["detail"==t.type?o("span",[t._v(t._s(t.goodsInventoryAddForm.report_desc))]):o("el-input",{staticStyle:{flex:"1"},attrs:{type:"textarea",disabled:"detail"===t.type||"audit"===t.type,autosize:{minRows:3,maxRows:4},placeholder:"请输入报损说明"},model:{value:t.goodsInventoryAddForm.report_desc,callback:function(e){t.$set(t.goodsInventoryAddForm,"report_desc",e)},expression:"goodsInventoryAddForm.report_desc"}})],1),t._v(" "),o("div",{staticClass:"mx"},[o("h3",[t._v("报损商品明细")]),t._v(" "),"edit"==t.type?o("el-button",{staticClass:"button",attrs:{size:"mini",type:"primary"},on:{click:t.scanCode}},[t._v("录入SKU")]):t._e(),t._v(" "),"detail"!==t.type?o("el-button",{staticClass:"button",attrs:{size:"mini",type:"primary"},on:{click:t.handleSelectWarehouseEntryBatch}},[t._v("选择")]):t._e()],1),t._v(" "),o("div",{staticStyle:{width:"100%",display:"block"}},[o("el-form-item",{staticStyle:{width:"100%"}},[o("el-table",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{data:t.goodsInventoryAddForm.product_list,border:"","cell-style":{textAlign:"center"},"header-cell-style":{textAlign:"center"}}},[o("el-table-column",{attrs:{label:"商品编号"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.id?o("span",[t._v(" "+t._s(e.row.goods_vo.sn))]):o("span",[t._v(t._s(e.row.goods_vo.sn))])]}}])}),t._v(" "),o("el-table-column",{attrs:{label:"商品名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[(t.id,o("span",[t._v(t._s(e.row.goods_vo.name))]))]}}])}),t._v(" "),o("el-table-column",{attrs:{label:"sku"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("span",[t._v(t._s(e.row.product_vo.sku))])]}}])}),t._v(" "),t.sn_code_list?o("el-table-column",{attrs:{label:"序列号"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("div",{staticClass:"sn-code-container"},t._l(e.row.sn_code_list,function(e){return o("span",{key:e.id},[o("p",[t._v(t._s(e.sn_code))])])}),0)]}}],null,!1,1818486804)}):t._e(),t._v(" "),o("el-table-column",{attrs:{prop:"product_vo.spec_name",label:"规格型号"}}),t._v(" "),o("el-table-column",{attrs:{label:"单位"},scopedSlots:t._u([{key:"default",fn:function(e){return[(t.id,o("span",[t._v(" "+t._s(e.row.product_vo.unit))]))]}}])}),t._v(" "),o("el-table-column",{attrs:{label:"库存数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.usable_stock)+"\n ")]}}])}),t._v(" "),o("el-table-column",{attrs:{label:"报损数量"},scopedSlots:t._u([{key:"default",fn:function(e){return["edit"==t.type?o("span",[t._v(t._s(e.row.num))]):o("el-input",{attrs:{type:"number",min:0,maxlength:20,disabled:"detail"===t.type||"audit"===t.type},model:{value:e.row.num,callback:function(o){t.$set(e.row,"num",o)},expression:"scope.row.num"}})]}}])}),t._v(" "),"edit"==t.type?o("el-table-column",{attrs:{label:"录入数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("span",[t._v(t._s(e.row.report_num))])]}}],null,!1,426147585)}):t._e(),t._v(" "),"detail"!==t.type&&"audit"!==t.type?o("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(o){return t.goodsInventoryAddForm.product_list.splice(e.$index,1)}}},[t._v("删除")])]}}],null,!1,2952986069)}):t._e()],1)],1)],1)],1),t._v(" "),o("div",{staticClass:"footer"},["edit"!==t.type&&"audit"!==t.type&&"detail"!==t.type?o("el-button",{attrs:{type:"primary"},on:{click:t.submitGoodsInventoryAddForm}},[t._v("保存\n ")]):t._e(),t._v(" "),"edit"===t.type?o("el-button",{attrs:{type:"primary"},on:{click:t.submitcont}},[t._v("确认\n ")]):t._e(),t._v(" "),"detail"==t.type?o("el-button",{on:{click:t.printIng}},[t._v("打印")]):t._e(),t._v(" "),o("el-button",{on:{click:function(e){return t.$router.back()}}},[t._v("返回\n ")])],1),t._v(" "),o("el-dialog",{attrs:{title:"扫码出库",visible:t.scanDialogVisible,width:"30%","close-on-click-modal":!1},on:{"update:visible":function(e){t.scanDialogVisible=e}}},[o("el-form",{ref:"scanGoodsForm",attrs:{model:t.scanGoodsForm,inline:""}},[o("el-form-item",{attrs:{label:"sku",prop:"bar_code"}},[o("el-input",{ref:"input",attrs:{minlength:0,maxlength:100},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.toSearch()}},model:{value:t.scanGoodsForm.bar_code,callback:function(e){t.$set(t.scanGoodsForm,"bar_code",e)},expression:"scanGoodsForm.bar_code"}})],1),t._v(" "),o("el-form-item",{attrs:{label:"序列号",prop:"sn_code"}},[o("el-input",{ref:"sn_input",attrs:{minlength:0,maxlength:100},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.toSnCode()}},model:{value:t.sn_code,callback:function(e){t.sn_code=e},expression:"sn_code"}})],1)],1),t._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"})],1),t._v(" "),o("el-dialog",{attrs:{title:"提示",visible:t.dialogVisible,width:"30%"},on:{"update:visible":function(e){t.dialogVisible=e}}},[o("el-form",{ref:"goodsInventoryAddForm",staticStyle:{width:"900px"},attrs:{model:t.goodsInventoryAddForm,"label-width":"120px",inline:""}},[o("el-form-item",{attrs:{label:"驳回原因",prop:"reject_reason"}},[o("el-input",{attrs:{type:"textarea",minlength:0,maxlength:100},model:{value:t.goodsInventoryAddForm.reject_reason,callback:function(e){t.$set(t.goodsInventoryAddForm,"reject_reason",e)},expression:"goodsInventoryAddForm.reject_reason"}})],1)],1),t._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),t._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.handleRejectGoodsInventoryLoss()}}},[t._v("确 定")])],1)],1)],1)},[],!1,h,"data-v-00aa75bc",null);e.default=y.exports},DyRc:function(t,e,o){(t.exports=o("FZ+f")(!1)).push([t.i,'\n@charset "UTF-8";\n/** 底部步骤 */\n.footer[data-v-00aa75bc] {\n width: 100%;\n padding: 10px;\n bottom: 0px;\n text-align: center;\n z-index: 999;\n}\n.mx[data-v-00aa75bc] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n width: 100%;\n}\n.mx .button[data-v-00aa75bc] {\n margin-left: 10px;\n}\n.change-form[data-v-00aa75bc] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n min-width: 900px;\n}\n.change-form .change-form-item[data-v-00aa75bc] {\n width: 30%;\n margin: 0 10px 20px 0;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap;\n}\n.change-form[data-v-00aa75bc] .el-form-item__content {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n width: 100%;\n}\n.change-form[data-v-00aa75bc] .el-date-editor,\n .change-form[data-v-00aa75bc] .el-cascader,\n .change-form[data-v-00aa75bc] .el-select {\n width: 100%;\n}\n.bg-in-stock[data-v-00aa75bc] {\n background-color: #fff;\n margin: 10px;\n padding: 25px;\n}\n.goods-info[data-v-00aa75bc] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.goods-info .goods-name-box[data-v-00aa75bc] {\n text-align: left;\n}\n.goods-info .goods-name-box .goods-name[data-v-00aa75bc] {\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n line-height: 16px;\n}\n.goods-info .goods-name-box .specs[data-v-00aa75bc] {\n color: #999999;\n}\n[data-v-00aa75bc] .el-input--suffix .el-input__inner {\n padding-right: 10px;\n}\n[data-v-00aa75bc] .error-input .el-input__inner {\n border: 1px solid red;\n}\n',""])},Oa05:function(t,e,o){"use strict";e.a=function(t){return Object(n.a)({url:"admin/stock/damage/report/confirm/"+t,method:"post"})},e.f=function(t,e){return Object(n.a)({url:"admin/stock/damage/report/"+t,method:"post",headers:{"Content-Type":"application/json"},data:e})},e.b=function(t){return Object(n.a)({url:"admin/stock/damage/report",method:"post",headers:{"Content-Type":"application/json"},data:t})},e.d=function(t){return Object(n.a)({url:"admin/stock/damage/report/cancel/"+t,method:"post"})},e.c=function(t,e){return Object(n.a)({url:"admin/stock/damage/report/audit/"+t,method:"post",data:e})},e.g=function(t){return Object(n.a)({url:"admin/stock/damage/report/"+t,method:"get",loaidng:!1})},e.h=function(t){return Object(n.a)({url:"admin/stock/damage/report",method:"get",loaidng:!1,params:t})},e.e=function(t){return Object(n.a)({url:"admin/stock/damage/report/"+t,method:"delete"})},e.i=function(t,e){return Object(n.a)({url:"/admin/stock/damage/report/submit/"+t,method:"post",headers:{"Content-Type":"application/json"},data:e})};var n=o("vLgD")},XhBE:function(t,e,o){var n=o("DyRc");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);o("rjj0")("a1abd686",n,!0)}});