1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d01dac0"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),Math.easeInOutQuad=function(e,t,a,i){return e/=i/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var i=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function n(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,a){var s=n(),l=e-s,o=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=o;var n=Math.easeInOutQuad(c,s,l,t);r(n),c<t?i(e):a&&"function"===typeof a&&a()};u()}},"333d":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[a("el-pagination",e._b({attrs:{"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},r=[],n=(a("c5f6"),a("09f4")),s={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:10},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total,sizes,prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&Object(n["a"])(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&Object(n["a"])(0,800)}}},l=s,o=(a("c0b9"),a("2877")),c=Object(o["a"])(l,i,r,!1,null,"31cb099a",null);t["a"]=c.exports},5286:function(e,t,a){"use strict";var i=a("b5eb"),r=a.n(i);r.a},"673a":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[e._m(0),e._v(" "),a("div",{staticClass:"m-core"},[a("el-form",{attrs:{inline:!0,model:e.searchForm}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"维修单号/学生姓名/编号"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{placeholder:"维修技师",clearable:"",filterable:""},model:{value:e.searchForm.employeeId,callback:function(t){e.$set(e.searchForm,"employeeId",t)},expression:"searchForm.employeeId"}},e._l(e.employeeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.userName,value:e.userId}})})),1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{placeholder:"请选择分部",clearable:""},model:{value:e.searchForm.organIdList,callback:function(t){e.$set(e.searchForm,"organIdList",t)},expression:"searchForm.organIdList"}},e._l(e.organList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{placeholder:"请选择乐器类型",clearable:"",filterable:""},model:{value:e.searchForm.subjectId,callback:function(t){e.$set(e.searchForm,"subjectId",t)},expression:"searchForm.subjectId"}},e._l(e.soundLists,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{placeholder:"维修状态",clearable:""},model:{value:e.searchForm.repairStatus,callback:function(t){e.$set(e.searchForm,"repairStatus",t)},expression:"searchForm.repairStatus"}},[a("el-option",{attrs:{label:"已完成",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"维修中",value:"0"}})],1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{placeholder:"维修类型",clearable:""},model:{value:e.searchForm.type,callback:function(t){e.$set(e.searchForm,"type",t)},expression:"searchForm.type"}},[a("el-option",{attrs:{label:"线上",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"线下",value:"0"}})],1)],1),e._v(" "),a("br"),e._v(" "),a("el-form-item",{attrs:{label:"送修日期"}},[a("el-date-picker",{staticStyle:{width:"400px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd","picker-options":{firstDayOfWeek:1},"range-separator":"至","start-placeholder":"送修开始日期","end-placeholder":"送修结束日期"},model:{value:e.searchForm.timer,callback:function(t){e.$set(e.searchForm,"timer","string"===typeof t?t.trim():t)},expression:"searchForm.timer"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"transNo",label:"维修单号",width:"160"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentName",label:"学生姓名"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentId",label:"学生编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"employeeName",label:"维修技师"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"subjectName",label:"乐器种类"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"type",label:"维修类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.type?"线上":"线下"))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"instrumentNo",label:"乐器编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"createTime",label:"送修日期"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("formatTimer")(t.row.createTime)))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"finishTime",label:"完成日期"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("formatTimer")(t.row.finishTime)))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"repairStatus",label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.repairStatus?"已完成":"维修中"))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.showDetail(t.row)}}},[e._v("详情")])]}}])})],1),e._v(" "),a("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"维修单详情","close-on-click-modal":!1,visible:e.repairVisible,width:"600px"},on:{"update:visible":function(t){e.repairVisible=t}}},[a("el-form",{attrs:{model:e.visibleForm}},[a("el-form-item",{attrs:{label:"维修单号:"}},[e.activeRow?a("p",{staticClass:"visibleCell"},[e._v(e._s(e.activeRow.transNo))]):e._e()]),e._v(" "),a("el-form-item",{attrs:{label:"乐器编号:"}},[e.activeRow?a("p",{staticClass:"visibleCell"},[e._v(e._s(e.activeRow.instrumentNo))]):e._e()]),e._v(" "),a("el-form-item",{attrs:{label:"学生姓名:"}},[e.activeRow?a("p",{staticClass:"visibleCell"},[e._v(e._s(e.activeRow.studentName))]):e._e()]),e._v(" "),a("el-form-item",{attrs:{label:"归属乐团:"}},[e.activeRow?a("p",{staticClass:"visibleCell"},[e._v(e._s(e.activeRow.studentSchool))]):e._e()]),e._v(" "),a("el-form-item",{attrs:{label:"联系人:"}},[e.activeRow?a("p",{staticClass:"visibleCell"},[e._v(e._s(e.activeRow.contactName))]):e._e()]),e._v(" "),a("el-form-item",{attrs:{label:"联系方式:"}},[e.activeRow?a("p",{staticClass:"visibleCell"},[e._v(e._s(e.activeRow.contactMobile))]):e._e()]),e._v(" "),a("el-form-item",{attrs:{label:"邮寄地址:"}},[e.activeRow?a("p",{staticClass:"visibleCell"},[e._v(e._s(e.activeRow.address))]):e._e()]),e._v(" "),a("el-form-item",{attrs:{label:"取件方式:"}},[e.activeRow?a("p",{staticClass:"visibleCell"},[e._v(e._s("0"==e.activeRow.sendType?"自取":"邮寄"))]):e._e()]),e._v(" "),a("el-form-item",{staticStyle:{"margin-bottom":"5px"},attrs:{label:"问题描述及解决方案:"}}),e._v(" "),e.activeRow?a("el-input",{attrs:{type:"textarea",rows:3,disabled:e.activeRow&&Boolean(e.activeRow.finishTime)},model:{value:e.activeRow.description,callback:function(t){e.$set(e.activeRow,"description",t)},expression:"activeRow.description"}}):e._e(),e._v(" "),a("el-form-item",{staticStyle:{"margin-bottom":"5px"},attrs:{label:"收费组成:"}},[e.activeRow?a("el-input",{attrs:{type:"textarea",rows:3,disabled:!0},model:{value:e.activeRow.feeList,callback:function(t){e.$set(e.activeRow,"feeList",t)},expression:"activeRow.feeList"}}):e._e()],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.activeRow&&Boolean(e.activeRow.finishTime)?e._e():a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"studentRepair/repairSuccess",expression:"'studentRepair/repairSuccess'"}],attrs:{type:"danger"},on:{click:function(t){return e.repairEnd("save",e.activeRow)}}},[e._v("保存")]),e._v(" "),e.activeRow&&e.activeRow.finishTime?e._e():a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"studentRepair/repairSuccess",expression:"'studentRepair/repairSuccess'"}],attrs:{type:"primary"},on:{click:function(t){return e.repairEnd("end",e.activeRow)}}},[e._v("完成维修")])],1)],1)],1)},r=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h2",[a("div",{staticClass:"squrt"}),e._v("维修单列表\n ")])}],n=(a("386d"),a("bc3a"),a("5f87"),a("333d")),s=(a("3908"),a("1cc7")),l=a("a488"),o={components:{pagination:n["a"]},data:function(){return{searchForm:{search:null,employeeId:null,organIdList:null,repairStatus:null,subjectId:null,time:[]},repairVisible:!1,employeeList:[],tableList:[],organList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},soundLists:[],soundList:[],isInit:!1,visibleForm:{},activeRow:null}},created:function(){},mounted:function(){var e=this;Object(l["a"])().then((function(t){200==t.code&&(e.employeeList=t.data)})),Object(s["R"])().then((function(t){200==t.code&&(e.organList=t.data)})),Object(s["jb"])({tenantId:1,rows:9999}).then((function(t){200==t.code&&200==t.code&&(e.soundList=t.data.rows,e.getSound())})),this.isInit||this.init()},activated:function(){this.init()},methods:{init:function(){this.isInit=!0,this.getList()},getList:function(){var e=this,t=JSON.parse(JSON.stringify(this.searchForm));t.page=this.rules.page,t.rows=this.rules.limit,this.searchForm.timer&&this.searchForm.timer.length>0&&(t.startTime=this.searchForm.timer[0],t.endTime=this.searchForm.timer[1]),delete t.timer,Object(l["c"])(t).then((function(t){200==t.code&&(e.isInit=!1,e.tableList=t.data.rows,e.rules.total=t.data.total)}))},getSound:function(){for(var e in this.soundLists=[],this.soundList)this.soundList[e].subjects.length>0&&(this.soundLists=this.soundLists.concat(this.soundList[e].subjects))},onReSet:function(){this.searchForm={search:null,employeeId:null,organIdList:null,repairStatus:null,subjectId:null,time:[]},this.search()},search:function(){this.rules.page=1,this.getList()},showDetail:function(e){this.activeRow=e,this.repairVisible=!0},repairEnd:function(e,t){var a=this,i=null;e&&"end"==e&&(i=1),Object(l["b"])({repairStatus:i,id:t.id,description:t.description}).then((function(t){200==t.code&&(e&&"end"==e?a.$message.success("完成维修"):a.$message.success("保存成功"),a.repairVisible=!1,a.getList())}))}},watch:{repairVisible:function(e){e||(this.activeRow=null)}}},c=o,u=(a("5286"),a("2877")),p=Object(u["a"])(c,i,r,!1,null,"c38fbe8c",null);t["default"]=p.exports},a488:function(e,t,a){"use strict";a.d(t,"a",(function(){return l})),a.d(t,"c",(function(){return o})),a.d(t,"b",(function(){return c}));var i=a("b775"),r=a("4328"),n=a.n(r),s="/api-web";function l(e){return Object(i["a"])({url:s+"/employee/findTechnician",method:"get",params:e})}function o(e){return Object(i["a"])({url:s+"/studentRepair/queryPage",method:"get",params:e})}function c(e){return Object(i["a"])({url:s+"/studentRepair/repairSuccess",method:"post",data:n.a.stringify(e)})}},b5eb:function(e,t,a){},c0b9:function(e,t,a){"use strict";var i=a("de4e"),r=a.n(i);r.a},de4e:function(e,t,a){}}]);
|