1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-64118aa1"],{"07cb":function(e,t,a){},"09f4":function(e,t,a){"use strict";a.d(t,"a",function(){return r}),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 s(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function l(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function r(e,t,a){var r=l(),o=e-r,n=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=n;var l=Math.easeInOutQuad(c,r,o,t);s(l),c<t?i(e):a&&"function"===typeof a&&a()};u()}},"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,inline:!0}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"维修单号:"}},[e.activeRow?a("p",{staticClass:"visibleCell"},[e._v(e._s(e.activeRow.transNo))]):e._e()])],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"乐器编号:"}},[e.activeRow?a("p",{staticClass:"visibleCell"},[e._v(e._s(e.activeRow.instrumentNo))]):e._e()])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"学生姓名:"}},[e.activeRow?a("p",{staticClass:"visibleCell"},[e._v(e._s(e.activeRow.studentName))]):e._e()])],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"归属乐团:"}},[e.activeRow?a("p",{staticClass:"visibleCell"},[e._v(e._s(e.activeRow.studentSchool))]):e._e()])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"联系人:"}},[e.activeRow?a("p",{staticClass:"visibleCell"},[e._v(e._s(e.activeRow.contactName))]):e._e()])],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"联系方式:"}},[e.activeRow?a("p",{staticClass:"visibleCell"},[e._v(e._s(e.activeRow.contactMobile))]):e._e()])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"邮寄地址:"}},[e.activeRow?a("p",{staticClass:"visibleCell"},[e._v(e._s(e.activeRow.address))]):e._e()])],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"取件方式:"}},[e.activeRow?a("p",{staticClass:"visibleCell"},[e._v(e._s("0"==e.activeRow.sendType?"自取":"邮寄"))]):e._e()])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"维修服务费:"}},[e.activeRow?a("p",{staticClass:"visibleCell"},[e._v(e._s(e._f("moneyFormat")(e.activeRow.amount))+"元")]):e._e()])],1)],1),e._v(" "),a("el-form-item",{staticStyle:{width:"100%","margin-bottom":"0"},attrs:{label:"问题描述及解决方案:"}}),e._v(" "),e.activeRow?a("el-input",{staticStyle:{width:"100%"},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(" "),e.activeRow&&e.activeRow.feeList?a("el-form-item",{staticStyle:{width:"100%","margin-bottom":"0"},attrs:{label:"收费组成:"}}):e._e(),e._v(" "),e.activeRow&&e.activeRow.feeList?a("el-input",{staticStyle:{width:"100%"},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(),e._v(" "),a("el-form-item",{staticStyle:{width:"100%","margin-bottom":"0"},attrs:{label:"商品列表:"}}),e._v(" "),e.activeRow?a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.activeRow.goodsList}},[a("el-table-column",{attrs:{align:"center",prop:"name",label:"商品名"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"groupPurchasePrice",label:"商品价格(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.groupPurchasePrice))+"\n ")])]}}],null,!1,1653195074)})],1):e._e()],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)},s=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h2",[a("div",{staticClass:"squrt"}),e._v("维修单列表\n ")])}],l=(a("386d"),a("bc3a"),a("5f87"),a("333d")),r=(a("3908"),a("1cc7")),o=a("a488"),n={components:{pagination:l["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(o["a"])().then(function(t){200==t.code&&(e.employeeList=t.data)}),Object(r["U"])().then(function(t){200==t.code&&(e.organList=t.data)}),Object(r["lb"])({tenantId:1,rows:9999}).then(function(t){200==t.code&&200==t.code&&(e.soundList=t.data.rows,e.getSound())}),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(o["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){var t=e.goodsJson?JSON.parse(e.goodsJson):[];e.goodsList=t,this.activeRow=e,console.log(e),this.repairVisible=!0},repairEnd:function(e,t){var a=this,i=null;e&&"end"==e&&(i=1),Object(o["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=n,u=(a("c817"),a("2877")),m=Object(u["a"])(c,i,s,!1,null,"fc631c8c",null);t["default"]=m.exports},a488:function(e,t,a){"use strict";a.d(t,"a",function(){return o}),a.d(t,"c",function(){return n}),a.d(t,"b",function(){return c});var i=a("b775"),s=a("4328"),l=a.n(s),r="/api-web";function o(e){return Object(i["a"])({url:r+"/employee/findTechnician",method:"get",params:e})}function n(e){return Object(i["a"])({url:r+"/studentRepair/queryPage",method:"get",params:e})}function c(e){return Object(i["a"])({url:r+"/studentRepair/repairSuccess",method:"post",data:l.a.stringify(e)})}},c817:function(e,t,a){"use strict";var i=a("07cb"),s=a.n(i);s.a}}]);
|