1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-04ba33be"],{"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 s})),a.d(e,"h",(function(){return l})),a.d(e,"b",(function(){return c})),a.d(e,"j",(function(){return d})),a.d(e,"f",(function(){return m})),a.d(e,"d",(function(){return f}));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 s(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 c(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 m(t){return Object(n["a"])({url:"/project/info",method:"post",data:t})}function f(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"),s={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=s,c=(a("2fe2"),a("2877")),d=Object(c["a"])(l,o,i,!1,null,null,null),m=d.exports,f=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=[],b=(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)}),h=[],g=(a("a9e3"),a("8256")),y=(a("24d2"),{components:{Tinymce:g["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(c["a"])(v,b,h,!1,null,null,null)),F=j.exports,O=a("a888"),C={components:{dataInfo:F},directives:{elDragDialog:O["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()}}},q=C,w=(a("4b0a"),Object(c["a"])(q,f,p,!1,null,null,null)),S=w.exports,_={components:{dataSearch:m,dataList:S},data:function(){return{queryForm:{page:1,pageSize:10,name:"",status:""}}},methods:{setQuery:function(t){this.queryForm=t}}},k=_,x=(a("de30"),Object(c["a"])(k,n,r,!1,null,null,null));e["default"]=x.exports},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){}}]);
|