text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-07d3eeae"],{1:function(e,t){},1587:function(e,t,a){"use strict";a.d(t,"l",(function(){return r})),a.d(t,"e",(function(){return o})),a.d(t,"d",(function(){return i})),a.d(t,"k",(function(){return u})),a.d(t,"i",(function(){return c})),a.d(t,"j",(function(){return l})),a.d(t,"h",(function(){return s})),a.d(t,"g",(function(){return d})),a.d(t,"f",(function(){return p})),a.d(t,"a",(function(){return m})),a.d(t,"b",(function(){return h})),a.d(t,"c",(function(){return f}));var n=a("b775");function r(e){return Object(n["a"])({url:"/oldCrmData/queryZhuanXiangData",method:"post",data:e})}function o(e){return Object(n["a"])({url:"/oldCrmData/queryPeiXunData",method:"post",data:e})}function i(e){return Object(n["a"])({url:"/oldCrmData/queryHuiFangData",method:"post",data:e})}function u(e){return Object(n["a"])({url:"/oldCrmData/queryWeiXiuData",method:"post",data:e})}function c(e){return Object(n["a"])({url:"/oldCrmData/queryNewZhuanXiangData",method:"post",data:e})}function l(e){return Object(n["a"])({url:"/oldCrmData/queryNewPeiXunData",method:"post",data:e})}function s(e){return Object(n["a"])({url:"/oldCrmData/queryNewHuiFangData",method:"post",data:e})}function d(e){return Object(n["a"])({url:"/oldCrmData/queryNewWeiXiuData",method:"post",data:e})}function p(e){return Object(n["a"])({url:"/oldCrmData/queryArchivesByCustomerID",method:"post",data:e})}function m(e){return Object(n["a"])({url:"/oldCrmData/queryArchivesInfoByAssignId",method:"post",data:e})}function h(e){return Object(n["a"])({url:"/oldCrmData/queryWeiXiuInfoByAssignId",method:"post",data:e})}function f(e){return Object(n["a"])({url:"/oldCrmData/queryHuiFangInfoByAssignId",method:"post",data:e})}},2:function(e,t){},2934:function(e,t,a){"use strict";a.d(t,"e",(function(){return r})),a.d(t,"b",(function(){return o})),a.d(t,"n",(function(){return i})),a.d(t,"m",(function(){return u})),a.d(t,"o",(function(){return c})),a.d(t,"c",(function(){return l})),a.d(t,"f",(function(){return s})),a.d(t,"g",(function(){return d})),a.d(t,"h",(function(){return p})),a.d(t,"k",(function(){return m})),a.d(t,"i",(function(){return h})),a.d(t,"j",(function(){return f})),a.d(t,"a",(function(){return y})),a.d(t,"l",(function(){return g})),a.d(t,"d",(function(){return b}));var n=a("b775");function r(e){return Object(n["a"])({url:"/dicCode/queryAdminDicByType?type=".concat(e),method:"post"})}function o(e){return Object(n["a"])({url:"/dicCode/addDicCode",method:"post",data:e})}function i(e){return Object(n["a"])({url:"/dicCode/queryDicValueByType",method:"post",data:e})}function u(e){return Object(n["a"])({url:"/dicCode/queryDicById",method:"post",data:e})}function c(e){return Object(n["a"])({url:"/dicCode/updateDicCode",method:"post",data:e})}function l(e){return Object(n["a"])({url:"/dicCode/deleteDicCode",method:"post",data:e})}function s(e){return Object(n["a"])({url:"/dicCode/queryAdminDicByType?type=CITY&parentId=".concat(e),method:"post"})}function d(e){return Object(n["a"])({url:"/dicCode/queryAdminDicByType?type=district&parentId=".concat(e),method:"post"})}function p(e){return Object(n["a"])({url:"/dicCode/queryAdminDicByType?type=EQUI_MODEL&parentId=".concat(e),method:"post"})}function m(e){return Object(n["a"])({url:"/dicCode/queryAdminDicByType?type=PARTS_TYPE_TWO&parentId=".concat(e),method:"post"})}function h(e){return Object(n["a"])({url:"/dicCode/queryAdminDicByType?type=PARTS_TYPE_THREE&parentId=".concat(e),method:"post"})}function f(e){return Object(n["a"])({url:"/dicCode/getList?types=".concat(e),method:"post"})}function y(e){return Object(n["a"])({url:"/applyJob/addApplyRecord",method:"post",data:e})}function g(e){return Object(n["a"])({url:"/applyJob/queryApplyJobGroup",method:"post",data:e})}function b(e){return Object(n["a"])({url:"/excel/uploadExcel",method:"post",data:e})}},3:function(e,t){},a930:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"pageContainer",staticClass:"pageContainer"},[a("div",{ref:"pageSearch",staticClass:"pageSearch"},[a("el-collapse",{model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[a("el-collapse-item",{attrs:{title:"结果筛选",name:"1"}},[a("div",{staticClass:"searchRow"},[a("span",[a("span",[e._v("客户：")]),a("span",{staticClass:"searchItem"},[a("el-input",{attrs:{size:"small",clearable:""},model:{value:e.pageQuery.customerName,callback:function(t){e.$set(e.pageQuery,"customerName",t)},expression:"pageQuery.customerName"}})],1)]),a("span",[a("span",[e._v("产品线：")]),a("span",{staticClass:"searchItem"},[a("el-select",{attrs:{placeholder:"请选择",size:"small",clearable:""},model:{value:e.pageQuery.productLine,callback:function(t){e.$set(e.pageQuery,"productLine",t)},expression:"pageQuery.productLine"}},e._l(e.productLines,(function(e){return a("el-option",{key:e.id,attrs:{label:e.lable,value:e.lable}})})),1)],1)]),a("span",[a("span",[e._v("拥有者：")]),a("span",{staticClass:"searchItem"},[a("el-input",{attrs:{size:"small",clearable:""},model:{value:e.pageQuery.owner,callback:function(t){e.$set(e.pageQuery,"owner",t)},expression:"pageQuery.owner"}})],1)]),a("span",[a("span",[e._v("派工单号：")]),a("span",{staticClass:"searchItem"},[a("el-input",{attrs:{size:"small",clearable:""},model:{value:e.pageQuery.orderNum,callback:function(t){e.$set(e.pageQuery,"orderNum",t)},expression:"pageQuery.orderNum"}})],1)]),a("span",[a("span",[e._v("产品名称：")]),a("span",{staticClass:"searchItem"},[a("el-input",{attrs:{size:"small",clearable:""},model:{value:e.pageQuery.productName,callback:function(t){e.$set(e.pageQuery,"productName",t)},expression:"pageQuery.productName"}})],1)]),a("span",[a("span",[e._v("型号：")]),a("span",{staticClass:"searchItem"},[a("el-input",{attrs:{size:"small",clearable:""},model:{value:e.pageQuery.model,callback:function(t){e.$set(e.pageQuery,"model",t)},expression:"pageQuery.model"}})],1)]),a("transition",{attrs:{name:"fade"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.advancedSearch,expression:"advancedSearch"}],staticClass:"searchRow",attrs:{transiton:"fade"}},[a("span",[a("span",[e._v("开始时间：")]),a("span",[a("el-date-picker",{attrs:{type:"date","value-format":"yyyy-MM-dd",placeholder:"开始时间",size:"small"},model:{value:e.pageQuery.startTime,callback:function(t){e.$set(e.pageQuery,"startTime",t)},expression:"pageQuery.startTime"}})],1)]),a("span",[a("span",[e._v("结束时间：")]),a("span",[a("el-date-picker",{attrs:{type:"date","value-format":"yyyy-MM-dd",placeholder:"结束时间",size:"small"},model:{value:e.pageQuery.endTime,callback:function(t){e.$set(e.pageQuery,"endTime",t)},expression:"pageQuery.endTime"}})],1)])])]),a("span",[a("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"small"},on:{click:function(t){return e.commonSearch()}}},[e._v("筛选")]),a("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"small"},on:{click:function(t){e.advancedSearch=!e.advancedSearch}}},[e._v("更多")]),a("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"small"},on:{click:function(t){return e.excelBtn()}}},[e._v("批量导出")])],1)],1)])],1)],1),a("div",{staticClass:"tableRow"},[e._m(0),a("div",[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"zhuanxiangList",attrs:{"element-loading-text":"Loading",data:e.zhuanxiangList,fit:"","highlight-current-row":""},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",align:"center",width:"30"}}),a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"60"}}),a("el-table-column",{attrs:{property:"customerName",label:"客户",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"workOrder",on:{click:function(a){return e.toCustomerdetails(t.row)}}},[e._v(e._s(t.row.customerName))])]}}])},[e._v(" }, ")]),a("el-table-column",{attrs:{property:"productLine",label:"产品线",align:"center"}}),a("el-table-column",{attrs:{property:"productName",label:"产品",align:"center"}}),a("el-table-column",{attrs:{property:"model",label:"型号",align:"center"}}),a("el-table-column",{attrs:{property:"orderNum",label:"派工单号",align:"center"}}),a("el-table-column",{attrs:{property:"specialNum",label:"专项台数",align:"center"}}),a("el-table-column",{attrs:{property:"shuttleDate",label:"专线日期",align:"center"}}),a("el-table-column",{attrs:{property:"note",label:"备注",align:"center"}}),a("el-table-column",{attrs:{property:"owner",label:"拥有者",align:"center"}}),a("el-table-column",{attrs:{property:"createDate",label:"创建时间",align:"center"}})],1)],1),a("div",{staticClass:"tableBottom"},[a("div",[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.allSelect()}}},[e._v("全选")]),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.reverseSelect(e.zhuanxiangList)}}},[e._v("反选")]),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.cancelSelect()}}},[e._v("取消选择")])],1),a("div",{ref:"paginationContainer",staticClass:"paginationContainer"},[a("el-pagination",{attrs:{small:"",background:"","prev-text":"上一页","next-text":"下一页","current-page":e.pageQuery.page,"page-sizes":e.pageSizes,"page-size":e.pageQuery.rows,layout:"prev, pager, next, total, sizes, jumper",total:e.pageQuery.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)])])])},r=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"tableTitle"},[a("span",[a("i",{staticClass:"el-icon-news"}),a("span",[e._v("专项记录列表")])])])}],o=(a("ac6a"),a("2934")),i=a("1587"),u=a("1146"),c=a.n(u),l={data:function(){return{advancedSearch:!1,activeNames:["1"],productLines:[],zhuanxiangList:[],multipleSelection:[],pageQuery:{customerName:"",productLine:"",owner:"",orderNum:"",productName:"",model:"",totalCount:0,page:1,rows:10,startTime:"",endTime:""},listLoading:!0,tableHeight:250,pageSizes:[10,20,30]}},mounted:function(){this.fetchAllDict(),this.fetchListData()},methods:{fetchAllDict:function(){var e=this,t="PRODUCT_LINE";Object(o["e"])(t).then((function(t){e.productLines=t.data.PRODUCT_LINE}))},fetchListData:function(){var e=this;this.listLoading=!0;var t=this.pageQuery;Object(i["l"])(t).then((function(t){e.zhuanxiangList=t.data.list,e.pageQuery.totalCount=t.data.total,e.listLoading=!1}))},handleSizeChange:function(e){this.pageQuery.page=1,this.pageQuery.rows=e,this.fetchListData()},handleCurrentChange:function(e){this.pageQuery.page=e,this.fetchListData()},commonSearch:function(){var e=this;this.listLoading=!0;var t=this.pageQuery;Object(i["l"])(t).then((function(t){e.zhuanxiangList=t.data.list,e.pageQuery.totalCount=t.data.total,e.listLoading=!1}))},handleSelectionChange:function(e){this.multipleSelection=e},allSelect:function(){this.$refs.zhuanxiangList.toggleAllSelection()},cancelSelect:function(){this.$refs.zhuanxiangList.clearSelection()},reverseSelect:function(e){var t=this;e&&e.forEach((function(e){t.$refs.zhuanxiangList.toggleRowSelection(e)}))},excelBtn:function(){var e=this,t=[["客户","产品线","产品","型号","派工单号","专项台数","专项日期","备注","拥有者","创建时间"]];if(0==this.multipleSelection.length)this.pageQuery.rows=1e5,Object(i["l"])(this.pageQuery).then((function(a){e.pageQuery.rows=10,a.data.list.map((function(e){var a=[];a.push(e.customerName),a.push(e.productLine),a.push(e.productName),a.push(e.model),a.push(e.orderNum),a.push(e.specialNum),a.push(e.shuttleDate),a.push(e.note),a.push(e.owner),a.push(e.createDate),t.push(a)}));var n=c.a.utils.book_new(),r=c.a.utils.aoa_to_sheet(t);c.a.utils.book_append_sheet(n,r,"专项记录列表"),c.a.writeFile(n,"专项记录列表.xlsx")}));else{this.multipleSelection.map((function(e){var a=[];a.push(e.customerName),a.push(e.productLine),a.push(e.productName),a.push(e.model),a.push(e.orderNum),a.push(e.specialNum),a.push(e.shuttleDate),a.push(e.note),a.push(e.owner),a.push(e.createDate),t.push(a)}));var a=c.a.utils.book_new(),n=c.a.utils.aoa_to_sheet(t);c.a.utils.book_append_sheet(a,n,"专项记录列表"),c.a.writeFile(a,"专项记录列表.xlsx")}},toCustomerdetails:function(e){this.$router.push({name:"customerdetail",query:{id:e.customerId}})}},destroyed:function(){window.onresize=null}},s=l,d=a("2877"),p=Object(d["a"])(s,n,r,!1,null,null,null);t["default"]=p.exports}}]);