chunk-2d0b9f85.cf64734a.js 8.2 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b9f85"],{"34e3":function(t,e,r){"use strict";r.r(e);var a=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("saveform",{ref:"searchForm",staticStyle:{"margin-top":"20px"},attrs:{model:t.searchForm,inline:""},on:{"update:model":function(e){t.searchForm=e}}},[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:function(e){e.target.blur(),t.$refs.searchForm.save(),t.search()}(e)}},model:{value:t.searchForm.transNo,callback:function(e){t.$set(t.searchForm,"transNo","string"===typeof e?e.trim():e)},expression:"searchForm.transNo"}})],1),t._v(" "),r("el-form-item",{attrs:{prop:"organId"}},[r("el-select",{staticClass:"multiple",attrs:{filterable:"",multiple:"","collapse-tags":"",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",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择申请类型"},model:{value:t.searchForm.type,callback:function(e){t.$set(t.searchForm,"type","string"===typeof e?e.trim():e)},expression:"searchForm.type"}},t._l(t.orderServerList,(function(t,e){return r("el-option",{key:e,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),r("el-form-item",[r("el-select",{staticClass:"multiple",attrs:{placeholder:"请选择审核状态"},model:{value:t.searchForm.auditStatus,callback:function(e){t.$set(t.searchForm,"auditStatus","string"===typeof e?e.trim():e)},expression:"searchForm.auditStatus"}},t._l(t.orderAuditTypeList,(function(t,e){return r("el-option",{key:e,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"danger"},on:{click:t.search}},[t._v("搜索")]),t._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:t.onReSet}},[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:"transNo",label:"交易流水号"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"organ.name",label:"分部"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"cooperationOrgan.name",label:"学校名称"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"serviceAmount",label:"服务收入"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"saleAmount",label:"销售收入"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"operator.username",label:"申请人"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"auditStatus",label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[e.row.auditStatus?r("p",[t._v(t._s(t._f("orderAuditType")(e.row.auditStatus)))]):r("p",[t._v(t._s("审核通过"))])])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"payTime",label:"交易日期"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v("\n "+t._s(t._f("dateForMinFormat")(e.row.payTime))+"\n ")])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"createTime",label:"申请时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v("\n "+t._s(t._f("dateForMinFormat")(e.row.createTime))+"\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("auth",{attrs:{auths:"ING"==e.row.auditStatus?"routeOrder/auditOutOrder/shenghetaoqi":"routeOrder/query/taoqi"}},[r("el-button",{attrs:{type:"text"},on:{click:function(r){return t.lookDetail(e.row)}}},[t._v(t._s("ING"==e.row.auditStatus?"审核":"查看"))])],1),t._v(" "),"REJECT"==e.row.auditStatus?r("auth",{attrs:{auths:"routeOrder/update/taoqi"}},[r("el-button",{attrs:{type:"text"},on:{click:function(r){return t.resetDetail(e.row)}}},[t._v("修改")])],1):t._e()],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),t._v(" "),r("el-dialog",{attrs:{title:"审核详情",visible:t.orderVisible,width:"600px"},on:{"update:visible":function(e){t.orderVisible=e}}},[t.orderVisible?r("orderAuditDetail",{ref:"orderAuditDetail",attrs:{orderId:t.activceId,shopList:t.shopList,organList:t.organList,isLook:t.isLook},on:{getList:t.getList}}):t._e(),t._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t.activeRow&&"ING"==t.activeRow.auditStatus?r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"routeOrder/auditOutOrder/REJECTtaoqi",expression:"'routeOrder/auditOutOrder/REJECTtaoqi'"}],on:{click:function(e){return t.submit("REJECT")}}},[t._v("驳回")]):t._e(),t._v(" "),t.activeRow&&"ING"==t.activeRow.auditStatus?r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"routeOrder/auditOutOrder/PASStaoqi",expression:"'routeOrder/auditOutOrder/PASStaoqi'"}],attrs:{type:"primary"},on:{click:function(e){return t.submit("PASS")}}},[t._v("审核通过")]):t._e(),t._v(" "),t.activeRow&&"REJECT"==t.activeRow.auditStatus&&!t.isLook?r("el-button",{on:{click:function(e){t.orderVisible=!1}}},[t._v("取 消")]):t._e(),t._v(" "),t.activeRow&&"REJECT"==t.activeRow.auditStatus&&!t.isLook?r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"routeOrder/update/taoqi",expression:"'routeOrder/update/taoqi'"}],attrs:{type:"primary"},on:{click:t.submitReaet}},[t._v("确 定")]):t._e()],1)],1)],1)},i=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("h2",[r("div",{staticClass:"squrt"}),t._v("订单审核(含淘器)\n ")])}],o=r("db72"),s=(r("386d"),r("333d")),n=(r("1cc7"),r("92e3")),l=r("f707"),u=r("3de3"),c=r("2543"),d=r("a5b0"),p=r("adb2"),m={components:{pagination:s["a"],orderAuditDetail:l["a"],Tooltip:d["a"],saveform:p["a"]},data:function(){return{searchForm:{transNo:null,organId:[],auditStatus:"ING",type:null},tableList:[],organList:[],orderServerList:n["K"],orderAuditTypeList:n["J"],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},orderVisible:!1,activceId:null,activeRow:null,isLook:null}},created:function(){},mounted:function(){var t=this;this.$store.dispatch("setBranchs"),Object(c["k"])({rows:99999,noOrganSearch:1}).then((function(e){200===e.code&&(t.shopList=e.data.rows)})),this.init()},activated:function(){this.init()},methods:{init:function(){this.getList()},search:function(){this.$refs.searchForm.save(this.searchForm),this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={transNo:null,organId:[],auditStatus:"ING",type:null},this.search()},getList:function(){var t=this,e=Object(o["a"])({},this.searchForm);e.rows=this.rules.limit,e.page=this.rules.page,e.organId=this.searchForm.organId.join(","),Object(u["i"])(e).then((function(e){200==e.code&&(t.tableList=e.data.rows,t.rules.total=e.data.total,t.orderVisible=!1)}))},lookDetail:function(t){this.activceId=t.id,this.activeRow=t,this.isLook=!0,this.orderVisible=!0},resetDetail:function(t){this.activceId=t.id,this.activeRow=t,this.isLook=!1,this.orderVisible=!0},submit:function(t){var e,r=this;e="REJECT"==t?"驳回":"同意",this.$confirm("是否".concat(e,"审核"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){r.$refs.orderAuditDetail.auditOutOrder(t)})).catch((function(){}))},submitReaet:function(){var t=this;this.$confirm("是否提交修改","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.$refs.orderAuditDetail.submitReaet()})).catch((function(){}))}}},v=m,f=r("2877"),h=Object(f["a"])(v,a,i,!1,null,"43d7f554",null);e["default"]=h.exports}}]);