You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
15 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1a2275ee"],{"1f65":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:"app-container"},[a("div",{directives:[{name:"show",rawName:"v-show",value:1===e.viewState,expression:"viewState === 1"}]},[a("div",{staticClass:"tab-header webtop"},[a("div",[e._v("排产车")]),a("div",[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.handleCreate()}}},[e._v("新增")]),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.handleUpdate()}}},[e._v("修改")]),a("el-button",{attrs:{type:"danger",size:"small"},on:{click:function(t){return e.handleDelete()}}},[e._v("删除")]),a("el-button",{attrs:{type:"success",size:"small"},on:{click:function(t){return e.handleDaoChu()}}},[e._v("导出")])],1)]),a("br"),a("el-tabs",{staticClass:"my-tabs",attrs:{type:"card","before-leave":e.tagsLeave},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{name:"xianche"}},[a("span",{attrs:{slot:"label"},on:{click:e.xiancheClick},slot:"label"},[e._v("现车")])]),a("el-tab-pane",{attrs:{name:"paichanche"}},[a("span",{attrs:{slot:"label"},on:{click:e.paichancheClick},slot:"label"},[e._v("排产车")])]),a("el-tab-pane",{attrs:{name:"chexingku"}},[a("span",{attrs:{slot:"label"},on:{click:e.chexingkuClick},slot:"label"},[e._v("车型库")])])],1),a("div",{staticClass:"searchcon"},[a("el-button",{staticClass:"searchbtn",attrs:{size:"small"},on:{click:e.clicksearchShow}},[e._v(e._s(e.searchxianshitit))]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.isSearchShow,expression:"isSearchShow"}],staticClass:"search"},[a("el-form",{ref:"listQueryform",staticClass:"tab-header",attrs:{inline:!0,model:e.listQuery,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"品牌"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"300px"},attrs:{clearable:"",placeholder:"请选择品牌"},model:{value:e.listQuery.params.carBrand,callback:function(t){e.$set(e.listQuery.params,"carBrand",t)},expression:"listQuery.params.carBrand"}},e._l(e.brandNameOptions,(function(e,t){return a("el-option",{key:t,attrs:{label:e.brandName,value:e.sid}})})),1)],1),a("el-form-item",{attrs:{label:"功能"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"300px"},attrs:{clearable:"",placeholder:"请选择功能"},model:{value:e.listQuery.params.vehicleType,callback:function(t){e.$set(e.listQuery.params,"vehicleType",t)},expression:"listQuery.params.vehicleType"}},e._l(e.vehicleTypeOptions,(function(e){return a("el-option",{key:e.dictKey,attrs:{label:e.dictValue,value:e.dictKey}})})),1)],1),a("el-form-item",{attrs:{label:"系列"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"300px"},attrs:{clearable:"",placeholder:"请选择系列"},model:{value:e.listQuery.params.productLine,callback:function(t){e.$set(e.listQuery.params,"productLine",t)},expression:"listQuery.params.productLine"}},e._l(e.productLineOptions,(function(e){return a("el-option",{key:e.dictKey,attrs:{label:e.dictValue,value:e.dictKey}})})),1)],1),a("el-form-item",{attrs:{label:"驱动"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"300px"},attrs:{clearable:"",placeholder:"请选择驱动"},model:{value:e.listQuery.params.driveForm,callback:function(t){e.$set(e.listQuery.params,"driveForm",t)},expression:"listQuery.params.driveForm"}},e._l(e.driveFormOptions,(function(e){return a("el-option",{key:e.dictKey,attrs:{label:e.dictValue,value:e.dictKey}})})),1)],1),a("el-form-item",{attrs:{label:"马力"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"300px"},attrs:{clearable:"",placeholder:"请选择马力"},model:{value:e.listQuery.params.power,callback:function(t){e.$set(e.listQuery.params,"power",t)},expression:"listQuery.params.power"}},e._l(e.powerOptions,(function(e){return a("el-option",{key:e.dictKey,attrs:{label:e.dictValue,value:e.dictKey}})})),1)],1),a("el-form-item",{attrs:{label:"版本"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"300px"},attrs:{clearable:"",placeholder:"请选择版本"},model:{value:e.listQuery.params.vehicleVersion,callback:function(t){e.$set(e.listQuery.params,"vehicleVersion",t)},expression:"listQuery.params.vehicleVersion"}},e._l(e.vehicleVersionOptions,(function(e){return a("el-option",{key:e.dictKey,attrs:{label:e.dictValue,value:e.dictKey}})})),1)],1),a("el-form-item",{attrs:{label:"燃料"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"300px"},attrs:{clearable:"",placeholder:"请选择燃料"},model:{value:e.listQuery.params.fuelType,callback:function(t){e.$set(e.listQuery.params,"fuelType",t)},expression:"listQuery.params.fuelType"}},e._l(e.fuelTypeOptions,(function(e){return a("el-option",{key:e.dictKey,attrs:{label:e.dictValue,value:e.dictKey}})})),1)],1),a("el-form-item",{attrs:{label:"变速箱"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"300px"},attrs:{clearable:"",placeholder:"请选择变速箱"},model:{value:e.listQuery.params.gearboxType,callback:function(t){e.$set(e.listQuery.params,"gearboxType",t)},expression:"listQuery.params.gearboxType"}},e._l(e.gearboxTypeOptions,(function(e){return a("el-option",{key:e.dictKey,attrs:{label:e.dictValue,value:e.dictKey}})})),1)],1),a("el-form-item",{attrs:{label:"车型名称"}},[a("el-input",{staticClass:"filter-item",attrs:{placeholder:"请输入车型名称",clearable:""},model:{value:e.listQuery.params.modelName,callback:function(t){e.$set(e.listQuery.params,"modelName",t)},expression:"listQuery.params.modelName"}})],1),a("el-button",{attrs:{type:"primary"},on:{click:e.handleFilter}},[e._v("查询")])],1)],1)],1),a("div",{staticClass:"listtop"},[a("div",{staticClass:"tit"},[e._v("排产车型列表")]),a("pageye",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],staticClass:"pagination",attrs:{total:e.total,page:e.listQuery.current,limit:e.listQuery.size},on:{"update:page":function(t){return e.$set(e.listQuery,"current",t)},"update:limit":function(t){return e.$set(e.listQuery,"size",t)},pagination:e.getList}})],1),a("div",{},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:""},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{width:"50px",type:"selection",align:"center"}}),a("el-table-column",{attrs:{width:"80px",label:"序号",type:"index",index:e.indexMethod,align:"center"}}),a("el-table-column",{attrs:{label:"状态",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.orderStatus))])]}}])}),a("el-table-column",{attrs:{label:"品牌",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandName))])]}}])}),a("el-table-column",{attrs:{label:"车型",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticStyle:{color:"#007FFF"},on:{click:function(a){return e.peizhiList(t.row)}}},[e._v(e._s(t.row.vehicleAlias))])]}}])}),a("el-table-column",{attrs:{label:"版本",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.vehicleVersionValue))])]}}])}),a("el-table-column",{attrs:{label:"燃料",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.fuelTypeValue))])]}}])}),a("el-table-column",{attrs:{label:"变速箱",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.gearboxTypeValue))])]}}])}),a("el-table-column",{attrs:{label:"排产数量",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.actualQuantity))])]}}])}),a("el-table-column",{attrs:{label:"销售指导价",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.salesGuidePrice))])]}}])})],1)],1),a("div",{staticClass:"pages"},[a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],staticClass:"pagination",attrs:{total:e.total,page:e.listQuery.current,limit:e.listQuery.size},on:{"update:page":function(t){return e.$set(e.listQuery,"current",t)},"update:limit":function(t){return e.$set(e.listQuery,"size",t)},pagination:e.getList}})],1)],1)])},s=[],l=a("b775");a("4328");function n(e){return Object(l["a"])({url:"/base/v1/busvehicleorder/selectPage",data:e,method:"post",headers:{"Content-Type":"application/json"}})}function r(e){return Object(l["a"])({url:"/base/v1/basevehiclebrand/namesDown",method:"get",params:e})}var o=a("4d86"),c=a("7042"),u=a("de52"),p={name:"Pinpaiguanli",components:{Pagination:o["a"],pageye:c["a"]},data:function(){return{vehicleType:"vehicleType",vehicleTypeOptions:[],brandNameOptions:[],productLineOptions:[],driveFormOptions:[],powerOptions:[],vehicleVersionOptions:[],fuelTypeOptions:[],gearboxTypeOptions:[],activeName:"paichanche",isSearchShow:!1,viewState:1,searchxianshitit:"显示查询条件",menuState:{add:!1,edit:!1,delete:!1,view:!1,audit:!1,input:!1,output:!1,upload:!1,release:!1},tableKey:0,list:[],total:1,FormLoading:!1,listLoading:!1,listQuery:{params:{},current:1,size:20},selectDate:void 0,temp:{},templook:{},textMap:{update:"编辑",create:"创建"},sids:[],dialogFormVisible:!1,dialogFormShowVisible:!1,dialogStatus:"",typeOptions:[],tureArrys:[{value:1,label:"是"},{value:0,label:"否"}],gearboxType:"gearbox",fuelType:"fuelType",vehicleVersion:"vehicleVersion",power:"horsepower",driveForm:"driver",productLine:"productLine",brandName:""}},created:function(){this.getList(),this.init()},methods:{peizhiList:function(e){this.$router.push({path:"/vehicleModel/vehicleModelConfig",query:{configSid:e.configSid,modelSid:e.modelSid}})},init:function(){var e=this;Object(u["a"])({type:this.vehicleType}).then((function(t){"200"===t.code&&(e.vehicleTypeOptions=t.data)})),r().then((function(t){"200"===t.code&&(e.brandNameOptions=t.data)})),Object(u["a"])({type:this.productLine}).then((function(t){"200"===t.code&&(e.productLineOptions=t.data)})),Object(u["a"])({type:this.driveForm}).then((function(t){"200"===t.code&&(e.driveFormOptions=t.data)})),Object(u["a"])({type:this.power}).then((function(t){"200"===t.code&&(e.powerOptions=t.data)})),Object(u["a"])({type:this.vehicleVersion}).then((function(t){"200"===t.code&&(e.vehicleVersionOptions=t.data)})),Object(u["a"])({type:this.fuelType}).then((function(t){"200"===t.code&&(e.fuelTypeOptions=t.data)})),Object(u["a"])({type:this.gearboxType}).then((function(t){"200"===t.code&&(e.gearboxTypeOptions=t.data)}))},xiancheClick:function(){this.$router.push({path:"/vehicleModel/xianche"})},paichancheClick:function(){this.$router.push({path:"/vehicleModel/paichanche"})},chexingkuClick:function(){this.$router.push({path:"/vehicleModel/chexingku"})},tagsLeave:function(e,t){return 0!=this.countId},handleClick:function(e,t){},clicksearchShow:function(){this.isSearchShow=!this.isSearchShow,this.isSearchShow?this.searchxianshitit="隐藏查询条件":this.searchxianshitit="显示查询条件"},indexMethod:function(e){var t=(this.listQuery.current-1)*this.listQuery.size,a=e+1+t;return a},resetState:function(){this.viewState=1},getList:function(){var e=this;this.listLoading=!0,n({current:this.listQuery.current,size:this.listQuery.size,params:this.listQuery.params}).then((function(t){e.listLoading=!1,"200"===t.code&&t.data&&t.data.total>0?(e.list=t.data.records,e.total=t.data.total):(e.list=[],e.total=0)}))},handleFilter:function(){this.listQuery.current=1,this.getList()},resetTemp:function(){this.temp={}},handleSelectionChange:function(e){var t=[];e.forEach((function(e){t.push(e.sid)})),this.sids=t},handleCreate:function(){this.viewState=2,this.$refs["divadd"].showAdd()},cheLiangXiangXiPeiZhi:function(e){this.viewState=0;var t=e.sid;this.$refs["divpeizhi"].showPei(t)},handleUpdate:function(){if(1===this.sids.length){this.viewState=3;var e=this.sids[0],t=this.row;this.$refs["divadd"].showEdit(e,t)}else{if(!(this.sids.length>1))return void this.$notify({title:"提示",message:"没有选择车型!!",type:"error",duration:2e3});this.$notify({title:"提示",message:"不能选中多个车型修改!!",type:"info",duration:2e3})}},handleCheck:function(e){this.viewState=4;var t=e.sid;this.$refs["divinfo"].showInfo(t,e)},handleDelete:function(){var e=this;this.sids.length>0?deleteBySids(this.sids).then((function(t){"200"===t.code?(e.$notify({title:"提示",message:"删除成功",type:"success",duration:2e3}),e.getList()):e.$notify({title:"失败",message:t.msg,type:"error"})})):this.$notify({title:"提示",message:"没有选择车型!!",type:"error",duration:2e3})},handleDaoChu:function(){var e=this;basefinbankExportExcel(this.sids).then((function(t){var a=new Blob([t],{type:"application/vnd.ms-excel"}),i=URL.createObjectURL(a);window.location.href=i,e.$notify({title:"提示",message:"导出成功",type:"success",duration:2e3})}))}}},d=p,h=(a("e217"),a("2877")),f=Object(h["a"])(d,i,s,!1,null,"3a6effa6",null);t["default"]=f.exports},7042: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 e-pagination",class:{hidden:e.hidden}},[a("el-pagination",e._b({attrs:{background:e.background,"current-page":e.current,"page-size":e.Size,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.current=t},"update:current-page":function(t){e.current=t},"update:pageSize":function(t){e.Size=t},"update:page-size":function(t){e.Size=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},s=[],l={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[5,10,15,20,30,50]}},layout:{type:String,default:"sizes"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{current:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},Size:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{pageNum:this.curren,pageSize:e})},handleCurrentChange:function(e){this.$emit("pagination",{pageNum:e,pageSize:this.Size})}}},n=l,r=(a("be5a"),a("2877")),o=Object(r["a"])(n,i,s,!1,null,null,null);t["a"]=o.exports},be5a:function(e,t,a){"use strict";a("f56b")},d46f:function(e,t,a){},de52:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var i=a("b775");a("4328");function s(e){return Object(i["a"])({url:"/portal/v1/dictcommons/typeValues",method:"get",params:e})}},e217:function(e,t,a){"use strict";a("d46f")},f56b:function(e,t,a){}}]);