1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2f527770"],{"11f0":function(t,e,a){},1918:function(t,e,a){},"24d2":function(t,e,a){"use strict";a.d(e,"g",(function(){return r})),a.d(e,"a",(function(){return o})),a.d(e,"i",(function(){return i})),a.d(e,"e",(function(){return u})),a.d(e,"c",(function(){return c})),a.d(e,"h",(function(){return l})),a.d(e,"b",(function(){return s})),a.d(e,"j",(function(){return d})),a.d(e,"f",(function(){return f})),a.d(e,"d",(function(){return m}));var n=a("b775");function r(t){return Object(n["a"])({url:"/project/category/search",method:"post",data:t})}function o(t){return Object(n["a"])({url:"/project/category/create",method:"post",data:t})}function i(t){return Object(n["a"])({url:"/project/category/update",method:"post",data:t})}function u(t){return Object(n["a"])({url:"/project/category/info",method:"post",data:t})}function c(t){return Object(n["a"])({url:"/project/category/delete",method:"post",data:t})}function l(t){return Object(n["a"])({url:"/project/search",method:"post",data:t})}function s(t){return Object(n["a"])({url:"/project/create",method:"post",data:t})}function d(t){return Object(n["a"])({url:"/project/update",method:"post",data:t})}function f(t){return Object(n["a"])({url:"/project/info",method:"post",data:t})}function m(t){return Object(n["a"])({url:"/project/delete",method:"post",data:t})}},"2fe2":function(t,e,a){"use strict";a("11f0")},"4b0a":function(t,e,a){"use strict";a("feeb")},"513c":function(t,e,a){"use strict";a("1918")},"869e":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"project-search"},[a("dataSearch",{on:{bindSetQuery:t.setQuery}}),a("dataList",{attrs:{queryForm:t.queryForm}})],1)},r=[],o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"data-search"},[a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:t.queryForm}},[a("el-form-item",{attrs:{label:"客户名称:"}},[a("el-input",{attrs:{placeholder:"请选择客户名称"},model:{value:t.queryForm.name,callback:function(e){t.$set(t.queryForm,"name",e)},expression:"queryForm.name"}})],1),a("el-form-item",{attrs:{label:"状态:"}},[a("el-select",{staticClass:"m-2",attrs:{placeholder:"请选择状态",size:"large"},model:{value:t.queryForm.status,callback:function(e){t.$set(t.queryForm,"status",e)},expression:"queryForm.status"}},t._l(t.statusOptions,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[a("svg-icon",{attrs:{"icon-class":"search"}}),t._v(" 搜索")],1),a("el-button",{attrs:{type:"primary"},on:{click:t.onSync}},[a("svg-icon",{attrs:{"icon-class":"search"}}),t._v(" 同步客户数据")],1)],1)],1)],1)},i=[],u=a("f6b0"),c={props:{queryForm:{type:Object,default:function(){return{page:1,pageSize:10,name:"",status:""}}}},data:function(){return{statusOptions:[{value:"",label:"请选择状态"},{value:5,label:"启用"},{value:6,label:"停用"}],dialogVisible:!1}},created:function(){},methods:{onSync:function(t){Object(u["b"])().then((function(t){console.log("res",t)}))},onCreate:function(t){this.dialogVisible=!0},onSubmit:function(){this.$emit("bindSetQuery",this.$props.queryForm)}}},l=c,s=(a("2fe2"),a("2877")),d=Object(s["a"])(l,o,i,!1,null,null,null),f=d.exports,m=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"data-list"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.dataList,"header-row-class-name":"headerBg","empty-text":"没有客户信息"}},[a("el-table-column",{attrs:{prop:"id",label:"ID",align:"center",width:"80"}}),a("el-table-column",{attrs:{prop:"name",label:"客户名称",align:"left","min-width":"180"}}),a("el-table-column",{attrs:{prop:"enName",label:"英文名称",align:"left","min-width":"180"}}),a("el-table-column",{attrs:{prop:"createTime",label:"创建时间",align:"center",width:"180"}}),a("el-table-column",{attrs:{prop:"status",label:"客户状态",align:"center",width:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[5==e.row.status?a("div",[t._v("启用")]):t._e(),6==e.row.status?a("div",[t._v("停用")]):t._e()]}}])})],1),a("div",{staticClass:"page-info"},[a("el-pagination",{attrs:{"page-size":t.queryForm.pageSize,total:t.recordCount,"page-count":t.pageTotal,background:"",layout:"prev, pager, next"},on:{"current-change":t.ChangePage},model:{value:t.queryForm.page,callback:function(e){t.$set(t.queryForm,"page",e)},expression:"queryForm.page"}})],1),a("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{visible:t.dialogVisible,"append-to-body":"",width:"80%","custom-class":"prod-verify",title:"创建项目信息"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("dataInfo")],1)],1)},p=[],g=(a("ac1f"),a("841c"),function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"data-info"},[a("el-card",[a("el-form",{attrs:{model:t.dataForm,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"客户名称:"}}),a("el-form-item",{attrs:{label:"客户联系人:"}}),a("el-form-item",{attrs:{label:"联系电话:"}}),a("el-form-item",{attrs:{label:"手机号码:"}}),a("el-form-item",{attrs:{label:"联系地址:"}})],1)],1),a("div",{staticStyle:{"text-align":"right","margin-top":"20px"}},[a("el-button",{attrs:{type:"warning"},on:{click:t.btnSave}},[t._v("确认关闭")])],1)],1)}),b=[],h=(a("a9e3"),a("8256")),y=(a("24d2"),{components:{Tinymce:h["default"]},props:{id:{type:Number,default:0}},watch:{id:{handler:function(t){var e=this;null==t||t<0||e.getInfo(t)},immediate:!0,deep:!0}},data:function(){return{activeName:"base",currentCategory:[],allCategories:[],dataForm:{prod:{items:[]}},statusOptions:[{status:5,name:"待审核"},{status:6,name:"已审核"},{status:7,name:"已拒绝"},{status:8,name:"草稿箱"},{status:9,name:"已下架"}]}},mounted:function(){var t=this;t.initAllCategory()},methods:{btnSave:function(t){var e=this;if(""!=e.dataForm.title)e.dataForm.id,e.dataForm.title,e.dataForm.status,e.dataForm.categoryId,e.dataForm.sku;else e.$alert("产品标题不能为空")},getInfo:function(t){},onChangeStatus:function(t){this.dataForm.status=t},onChangeCategory:function(t){var e=this;e.dataForm.categoryId=t},initAllCategory:function(){}}}),v=y,j=(a("513c"),Object(s["a"])(v,g,b,!1,null,null,null)),F=j.exports,w=a("a888"),q={components:{dataInfo:F},directives:{elDragDialog:w["a"]},props:{queryForm:{type:Object,default:function(){return{page:1,pageSize:10,name:"",status:""}}}},watch:{queryForm:{handler:function(t){this.search()},deep:!0}},data:function(){return{dialogVisible:!1,currentDataId:0,recordCount:0,pageTotal:1,dataList:[],currentData:{}}},mounted:function(){this.search()},methods:{onFocusVal:function(t){var e=this;e.currentDataId=t.target.dataset.id},onChangeVal:function(t){var e=this;e.currentDataId},searchData:function(){var t=this;t.dialogVisible=!1,t.search()},btnEdit:function(t){var e=this;e.currentDataId=t.id,e.dialogVisible=!0},onClose:function(){var t=this;t.currentDataId=0,t.dialogVisible=!1},search:function(){var t=this;Object(u["a"])(t.queryForm).then((function(e){t.dataList=e.data.dataList,t.recordCount=e.data.totalRecord,t.pageTotal=e.data.totalPage}))},ChangePage:function(t){var e=this;e.queryForm.page=t,e.search()}}},C=q,O=(a("4b0a"),Object(s["a"])(C,m,p,!1,null,null,null)),S=O.exports,x={components:{dataSearch:f,dataList:S},data:function(){return{queryForm:{page:1,pageSize:10,name:"",status:""}}},methods:{setQuery:function(t){this.queryForm=t}}},_=x,k=(a("de30"),Object(s["a"])(_,n,r,!1,null,null,null));e["default"]=k.exports},a888:function(t,e,a){"use strict";a("99af"),a("caad"),a("ac1f"),a("2532"),a("5319");var n={bind:function(t,e,a){var n=t.querySelector(".el-dialog__header"),r=t.querySelector(".el-dialog");n.style.cssText+=";cursor:move;",r.style.cssText+=";top:0px;";var o=function(){return window.document.currentStyle?function(t,e){return t.currentStyle[e]}:function(t,e){return getComputedStyle(t,!1)[e]}}();n.onmousedown=function(t){var e=t.clientX-n.offsetLeft,i=t.clientY-n.offsetTop,u=r.offsetWidth,c=r.offsetHeight,l=document.body.clientWidth,s=document.body.clientHeight,d=r.offsetLeft,f=l-r.offsetLeft-u,m=r.offsetTop,p=s-r.offsetTop-c,g=o(r,"left"),b=o(r,"top");g.includes("%")?(g=+document.body.clientWidth*(+g.replace(/\%/g,"")/100),b=+document.body.clientHeight*(+b.replace(/\%/g,"")/100)):(g=+g.replace(/\px/g,""),b=+b.replace(/\px/g,"")),document.onmousemove=function(t){var n=t.clientX-e,o=t.clientY-i;-n>d?n=-d:n>f&&(n=f),-o>m?o=-m:o>p&&(o=p),r.style.cssText+=";left:".concat(n+g,"px;top:").concat(o+b,"px;"),a.child.$emit("dragDialog")},document.onmouseup=function(t){document.onmousemove=null,document.onmouseup=null}}}},r=function(t){t.directive("el-drag-dialog",n)};window.Vue&&(window["el-drag-dialog"]=n,Vue.use(r)),n.install=r;e["a"]=n},de30:function(t,e,a){"use strict";a("ecfa")},ecfa:function(t,e,a){},f6b0:function(t,e,a){"use strict";a.d(e,"a",(function(){return r})),a.d(e,"b",(function(){return o}));var n=a("b775");function r(t){return Object(n["a"])({url:"/customer/search",method:"post",data:t})}function o(){return Object(n["a"])({url:"/customer/sync",method:"post"})}},feeb:function(t,e,a){}}]);
|