chunk-6a1562ab.78d2321d.js 9.0 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6a1562ab"],{"09f4":function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),Math.easeInOutQuad=function(t,e,n,r){return t/=r/2,t<1?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e)};var r=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,n){var s=o(),u=t-s,c=20,i=0;e="undefined"===typeof e?500:e;var l=function t(){i+=c;var o=Math.easeInOutQuad(i,s,u,e);a(o),i<e?r(t):n&&"function"===typeof n&&n()};l()}},2543:function(t,e,n){"use strict";n.d(e,"k",(function(){return u})),n.d(e,"l",(function(){return c})),n.d(e,"o",(function(){return i})),n.d(e,"i",(function(){return l})),n.d(e,"m",(function(){return d})),n.d(e,"j",(function(){return p})),n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return m})),n.d(e,"c",(function(){return g})),n.d(e,"h",(function(){return h})),n.d(e,"n",(function(){return b})),n.d(e,"f",(function(){return v})),n.d(e,"d",(function(){return y})),n.d(e,"e",(function(){return _})),n.d(e,"g",(function(){return w}));var r=n("b775"),a=n("4328"),o=n.n(a),s="/api-web";function u(t){return Object(r["a"])({url:s+"/goods/queryPage",method:"get",params:t})}function c(t){return Object(r["a"])({url:s+"/goods/get/".concat(t),method:"get"})}function i(t){return Object(r["a"])({url:s+"/goods/updateGoodsStatus",method:"post",data:o.a.stringify(t)})}function l(t){return Object(r["a"])({url:s+"/goods/add",method:"post",data:o.a.stringify(t)})}function d(t){return Object(r["a"])({url:s+"/goods/update",method:"post",data:o.a.stringify(t)})}function p(t){return Object(r["a"])({url:s+"/goods/del/".concat(t),method:"post"})}function f(t){return Object(r["a"])({url:s+"/category/queryPage",method:"get",params:t})}function m(t){return Object(r["a"])({url:s+"/category/upset",method:"post",data:t})}function g(t){return Object(r["a"])({url:s+"/category/del",method:"post",data:o.a.stringify(t)})}function h(t){return Object(r["a"])({url:s+"/subjectChange/queryPage",method:"get",params:t})}function b(t){return Object(r["a"])({url:s+"/subjectChange/updateCostMargin",method:"post",data:o.a.stringify(t)})}function v(t){return Object(r["a"])({url:s+"/goodsProcurement/queryGoodsProcurements",method:"get",params:t})}function y(t){return Object(r["a"])({url:s+"/goods/addGoodsProcurement",method:"post",params:t})}function _(t){return Object(r["a"])({url:s+"/swTempJc/queryPageForCourseSchedule",method:"get",params:t})}function w(t){return Object(r["a"])({url:s+"/swTempJc/queryPageForExtensionOrder",method:"get",params:t})}},"95ae":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"m-container"},[t._m(0),t._v(" "),n("div",{staticClass:"m-core"},[n("save-form",{ref:"searchForm",attrs:{inline:!0,model:t.searchForm},on:{submit:t.search,reset:t.onReSet}},[n("el-form-item",{attrs:{prop:"search"}},[n("el-input",{attrs:{clearable:"",placeholder:"学生姓名/编号/电话"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:function(e){e.target.blur(),t.$refs.searchForm.save(),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(" "),n("el-form-item",{attrs:{prop:"organId"}},[n("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 n("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),n("el-form-item",{attrs:{prop:"goodsCategoryId"}},[n("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 n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),n("el-form-item",{attrs:{prop:"status"}},[n("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"}},[n("el-option",{attrs:{value:"0",label:"否"}}),t._v(" "),n("el-option",{attrs:{value:"1",label:"是"}})],1)],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{"native-type":"submit",type:"primary"}},[t._v("搜索")]),t._v(" "),n("el-button",{attrs:{"native-type":"reset",type:"danger"}},[t._v("重置")])],1)],1),t._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:t.tableList}},[n("el-table-column",{attrs:{align:"center",prop:"id",label:"维护编号"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("copy-text",[t._v(t._s(e.row.id))])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("copy-text",[t._v(t._s(e.row.organName))])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"studentId",label:"学员编号"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("copy-text",[t._v(t._s(e.row.studentId))])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"studentName",label:"学员姓名"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("copy-text",[t._v(t._s(e.row.studentName))])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"phone",label:"联系电话"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("copy-text",[t._v(t._s(e.row.phone))])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"goodsName",label:"乐器名称"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"goodsCategoryName",label:"乐器种类"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"goodsId",label:"乐器编号"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"studentId",label:"有效期"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v("\n "+t._s(t._f("formatTimer")(e.row.startTime))+"~"+t._s(t._f("formatTimer")(e.row.endTime))+"\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"studentId",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("auth",{attrs:{auths:["musicalManager/lookMusicalManager","/repairList"],mulit:""}},[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.lookRepair(e.row)}}},[t._v("查看维修单")])],1)]}}])})],1),t._v(" "),n("pagination",{attrs:{sync:"",total:t.pageInfo.total,page:t.pageInfo.page,limit:t.pageInfo.limit,"page-sizes":t.pageInfo.page_size},on:{"update:total":function(e){return t.$set(t.pageInfo,"total",e)},"update:page":function(e){return t.$set(t.pageInfo,"page",e)},"update:limit":function(e){return t.$set(t.pageInfo,"limit",e)},pagination:t.getList}})],1)],1)])},a=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h2",[n("div",{staticClass:"squrt"}),t._v("\n 乐器维护\n ")])}],o=(n("7f7f"),n("ac6a"),n("c80c")),s=n("db72"),u=(n("96cf"),n("3b8d")),c=(n("bc3a"),n("5f87"),n("333d")),i=n("2543"),l=n("1cc7"),d=(n("3908"),{components:{pagination:c["a"]},data:function(){return{searchForm:{search:null,organId:"",goodsCategoryId:"",status:""},soundLists:[],organList:[],tableList:[],pageInfo:{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.pageInfo.page=1,this.getList()},onReSet:function(){this.pageInfo.page=1,this.getList()},getList:function(){var t=Object(u["a"])(Object(o["a"])().mark((function t(){var e;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(l["mb"])(Object(s["a"])(Object(s["a"])({},this.searchForm),{},{rows:this.pageInfo.limit,page:this.pageInfo.page}));case 3:e=t.sent,this.tableList=e.data.rows,this.pageInfo.total=e.data.total,t.next=10;break;case 8:t.prev=8,t.t0=t["catch"](0);case 10:case"end":return t.stop()}}),t,this,[[0,8]])})));function e(){return t.apply(this,arguments)}return e}(),getCategory:function(){var t=this,e={delFlag:0,rows:9999};Object(i["a"])(e).then((function(e){var n=e.data;if(200==e.code){var r=[];n.rows.forEach((function(t){r.push({label:t.name,value:t.id})})),t.categoryList=r}}))},lookRepair:function(t){this.$router.push({path:"/otherManager/repairList",query:{hasExemptionAmount:"1",studentInstrumentId:t.id}})}}}),p=d,f=n("2877"),m=Object(f["a"])(p,r,a,!1,null,"76f25068",null);e["default"]=m.exports}}]);