1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6a1562ab"],{"09f4":function(t,e,r){"use strict";r.d(e,"a",(function(){return s})),Math.easeInOutQuad=function(t,e,r,n){return t/=n/2,t<1?r/2*t*t+e:(t--,-r/2*(t*(t-2)-1)+e)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function a(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(t,e,r){var s=o(),u=t-s,l=20,i=0;e="undefined"===typeof e?500:e;var c=function t(){i+=l;var o=Math.easeInOutQuad(i,s,u,e);a(o),i<e?n(t):r&&"function"===typeof r&&r()};c()}},2543:function(t,e,r){"use strict";r.d(e,"i",(function(){return u})),r.d(e,"j",(function(){return l})),r.d(e,"m",(function(){return i})),r.d(e,"g",(function(){return c})),r.d(e,"k",(function(){return d})),r.d(e,"h",(function(){return m})),r.d(e,"a",(function(){return p})),r.d(e,"b",(function(){return f})),r.d(e,"c",(function(){return g})),r.d(e,"f",(function(){return b})),r.d(e,"l",(function(){return h})),r.d(e,"e",(function(){return v})),r.d(e,"d",(function(){return y}));var n=r("b775"),a=r("4328"),o=r.n(a),s="/api-web";function u(t){return Object(n["a"])({url:s+"/goods/queryPage",method:"get",params:t})}function l(t){return Object(n["a"])({url:s+"/goods/get/".concat(t),method:"get"})}function i(t){return Object(n["a"])({url:s+"/goods/updateGoodsStatus",method:"post",data:o.a.stringify(t)})}function c(t){return Object(n["a"])({url:s+"/goods/add",method:"post",data:o.a.stringify(t)})}function d(t){return Object(n["a"])({url:s+"/goods/update",method:"post",data:o.a.stringify(t)})}function m(t){return Object(n["a"])({url:s+"/goods/del/".concat(t),method:"post"})}function p(t){return Object(n["a"])({url:s+"/category/queryPage",method:"get",params:t})}function f(t){return Object(n["a"])({url:s+"/category/upset",method:"post",data:t})}function g(t){return Object(n["a"])({url:s+"/category/del",method:"post",data:o.a.stringify(t)})}function b(t){return Object(n["a"])({url:s+"/subjectChange/queryPage",method:"get",params:t})}function h(t){return Object(n["a"])({url:s+"/subjectChange/updateCostMargin",method:"post",data:o.a.stringify(t)})}function v(t){return Object(n["a"])({url:s+"/goodsProcurement/queryGoodsProcurements",method:"get",params:t})}function y(t){return Object(n["a"])({url:s+"/goods/addGoodsProcurement",method:"post",params:t})}},"95ae":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"m-container"},[t._m(0),t._v(" "),r("div",{staticClass:"m-core"},[r("save-form",{attrs:{inline:!0,model:t.searchForm},on:{submit:t.search,reset:t.onReSet}},[r("el-form-item",[r("el-input",{attrs:{clearable:"",placeholder:"学生姓名、编号、电话"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.search(e)}},model:{value:t.searchForm.search,callback:function(e){t.$set(t.searchForm,"search","string"===typeof e?e.trim():e)},expression:"searchForm.search"}})],1),t._v(" "),r("el-form-item",[r("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},model:{value:t.searchForm.organId,callback:function(e){t.$set(t.searchForm,"organId","string"===typeof e?e.trim():e)},expression:"searchForm.organId"}},t._l(t.selects.branchs,(function(t,e){return r("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),r("el-form-item",[r("el-select",{attrs:{placeholder:"请选择乐器分类",clearable:"",filterable:""},model:{value:t.searchForm.goodsCategoryId,callback:function(e){t.$set(t.searchForm,"goodsCategoryId",e)},expression:"searchForm.goodsCategoryId"}},t._l(t.categoryList,(function(t){return r("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),r("el-form-item",{attrs:{prop:"status"}},[r("el-select",{attrs:{filterable:"",clearable:"",placeholder:"是否乐保"},model:{value:t.searchForm.status,callback:function(e){t.$set(t.searchForm,"status","string"===typeof e?e.trim():e)},expression:"searchForm.status"}},[r("el-option",{attrs:{value:"0",label:"否"}}),t._v(" "),r("el-option",{attrs:{value:"1",label:"是"}})],1)],1),t._v(" "),r("el-form-item",[r("el-button",{attrs:{"native-type":"submit",type:"primary"}},[t._v("搜索")]),t._v(" "),r("el-button",{attrs:{"native-type":"reset",type:"danger"}},[t._v("重置")])],1)],1),t._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:t.tableList}},[r("el-table-column",{attrs:{align:"center",prop:"id",label:"维护编号"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentId",label:"学员编号"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentName",label:"学员姓名"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"phone",label:"联系电话"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"goodsName",label:"乐器名称"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"goodsCategoryName",label:"乐器种类"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"goodsId",label:"乐器编号"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentId",label:"有效期"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v("\n "+t._s(t._f("formatTimer")(e.row.startTime))+"~"+t._s(t._f("formatTimer")(e.row.endTime))+"\n ")])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentId",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[r("el-button",{attrs:{type:"text"},on:{click:function(r){return t.lookRepair(e.row)}}},[t._v("查看维修单")])],1)]}}])})],1),t._v(" "),r("pagination",{attrs:{sync:"",total:t.rules.total,page:t.rules.page,limit:t.rules.limit,"page-sizes":t.rules.page_size},on:{"update:total":function(e){return t.$set(t.rules,"total",e)},"update:page":function(e){return t.$set(t.rules,"page",e)},"update:limit":function(e){return t.$set(t.rules,"limit",e)},pagination:t.getList}})],1)],1)])},a=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("h2",[r("div",{staticClass:"squrt"}),t._v("\n 乐器维护\n ")])}],o=(r("7f7f"),r("ac6a"),r("5530")),s=(r("96cf"),r("1da1")),u=(r("bc3a"),r("5f87"),r("333d")),l=r("2543"),i=r("1cc7"),c=(r("3908"),{components:{pagination:u["a"]},data:function(){return{searchForm:{search:null,organId:"",goodsCategoryId:"",status:""},soundLists:[],organList:[],tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},categoryList:[]}},created:function(){},mounted:function(){this.$store.dispatch("setBranchs"),this.init(),this.getList()},methods:{init:function(){this.getCategory()},search:function(){this.rules.page=1,this.getList()},onReSet:function(){},getList:function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(i["hb"])(Object(o["a"])(Object(o["a"])({},this.searchForm),{},{rows:this.rules.limit,page:this.rules.page}));case 3:e=t.sent,this.tableList=e.data.rows,t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),console.log(t.t0);case 10:case"end":return t.stop()}}),t,this,[[0,7]])})));function e(){return t.apply(this,arguments)}return e}(),getCategory:function(){var t=this,e={delFlag:0,rows:9999};Object(l["a"])(e).then((function(e){var r=e.data;if(200==e.code){var n=[];r.rows.forEach((function(t){n.push({label:t.name,value:t.id})})),t.categoryList=n}}))},lookRepair:function(t){this.$router.push({path:"/business/repairList",query:{hasExemptionAmount:"1",studentInstrumentId:t.id}})}}}),d=c,m=r("2877"),p=Object(m["a"])(d,n,a,!1,null,"866444e0",null);e["default"]=p.exports}}]);
|