| 1 |
- {"code":"/*!\n * build: vue-admin-beautiful \n * copyright: chuzhixin 1204505056@qq.com \n * time: 2022-12-12 09:51:32\n */\n(window[\"webpackJsonp\"]=window[\"webpackJsonp\"]||[]).push([[\"chunk-6b6befd2\"],{\"049b\":function(t,e,o){\"use strict\";o.r(e),o.d(e,\"getTempCustomerData\",(function(){return r})),o.d(e,\"updateCustomerCheckStatus\",(function(){return n})),o.d(e,\"addCustomer\",(function(){return d})),o.d(e,\"getCustomerInfo\",(function(){return u})),o.d(e,\"editCustomer\",(function(){return s})),o.d(e,\"CustomerInitialsSearch\",(function(){return i})),o.d(e,\"getAllCustomer\",(function(){return c})),o.d(e,\"customerExport\",(function(){return l})),o.d(e,\"updateCustomerStatus\",(function(){return p})),o.d(e,\"addCustomerTag\",(function(){return m})),o.d(e,\"delCustomerTag\",(function(){return f})),o.d(e,\"addCustomerContact\",(function(){return h})),o.d(e,\"searchCustomer\",(function(){return g})),o.d(e,\"getCustomerLocation\",(function(){return b})),o.d(e,\"batchEditCustomer\",(function(){return C})),o.d(e,\"addShippingAddress\",(function(){return y})),o.d(e,\"deleteShippingAddress\",(function(){return _})),o.d(e,\"updateShippingAddress\",(function(){return j})),o.d(e,\"getShippingAddressInfo\",(function(){return G})),o.d(e,\"getAllShippingAddress\",(function(){return v})),o.d(e,\"query\",(function(){return P})),o.d(e,\"getAllCustomerCommunication\",(function(){return O})),o.d(e,\"addCustomerCommunication\",(function(){return S})),o.d(e,\"delCustomerCommunication\",(function(){return w})),o.d(e,\"updateCustomerCommunication\",(function(){return A})),o.d(e,\"getAllCustomerTagLib\",(function(){return k})),o.d(e,\"addCustomerTagLib\",(function(){return B})),o.d(e,\"delCustomerTagLib\",(function(){return x})),o.d(e,\"getCustomerTagLibInfo\",(function(){return I})),o.d(e,\"editCustomerTagLib\",(function(){return T})),o.d(e,\"getAllCustomerdemand\",(function(){return $})),o.d(e,\"getCustomerdemandInfo\",(function(){return D})),o.d(e,\"updateCustomerTagLibById\",(function(){return M})),o.d(e,\"searchCustomerBuyLog\",(function(){return z})),o.d(e,\"exportsearchCustomerBuyLog\",(function(){return L})),o.d(e,\"getAllCustomerVisitsLog\",(function(){return E})),o.d(e,\"getAllMemberBalanceDetail\",(function(){return N})),o.d(e,\"getAllCustomerIntegralDesc\",(function(){return F})),o.d(e,\"updateCustomerIntegral\",(function(){return R})),o.d(e,\"noOrderCustomer\",(function(){return U})),o.d(e,\"intervalNoOrderCustomer\",(function(){return Q})),o.d(e,\"rechargeMemberBalance\",(function(){return V})),o.d(e,\"recommenderStatic\",(function(){return K})),o.d(e,\"customerImport\",(function(){return W})),o.d(e,\"getAllDriver\",(function(){return q})),o.d(e,\"delDriver\",(function(){return J})),o.d(e,\"addDriver\",(function(){return H})),o.d(e,\"editDriver\",(function(){return X})),o.d(e,\"getDriverInfo\",(function(){return Y})),o.d(e,\"getAllOpenDriver\",(function(){return Z})),o.d(e,\"getAllCustomerVisit\",(function(){return tt})),o.d(e,\"getCustomerCallOnReportForm\",(function(){return et})),o.d(e,\"getCustomerVisitInfo\",(function(){return ot})),o.d(e,\"getAllDepartment\",(function(){return at})),o.d(e,\"getCustomerNoVisit\",(function(){return rt})),o.d(e,\"getCustomerDistributed\",(function(){return nt})),o.d(e,\"setCustomerType\",(function(){return dt})),o.d(e,\"delCustomer\",(function(){return ut}));var a=o(\"b775\");function r(t){return Object(a[\"default\"])({url:\"/Customer/Customer/getTempData\",method:\"get\",data:t})}function n(t){return Object(a[\"default\"])({url:\"/Customer/Customer/updateCustomerCheckStatus\",method:\"post\",data:t})}function d(t){return Object(a[\"default\"])({url:\"/Customer/Customer/addCustomer\",method:\"post\",data:t})}function u(t,e){return Object(a[\"default\"])({url:\"/Customer/Customer/getCustomerInfo/\"+t,method:\"get\",data:e})}function s(t,e){return Object(a[\"default\"])({url:\"/Customer/Customer/editCustomer/\"+t,method:\"post\",data:e})}function i(t){return Object(a[\"default\"])({url:\"/Customer/Customer/initialsSearch\",method:\"post\",data:t})}function c(t){return Object(a[\"default\"])({url:\"/Customer/Customer/getAllCustomer\",method:\"post\",data:t})}function l(t){return Object(a[\"default\"])({url:\"/Customer/Customer/export\",method:\"post\",responseType:\"blob\",data:t})}function p(t){return Object(a[\"default\"])({url:\"/Customer/Customer/updateCustomerStatus\",method:\"post\",data:t})}function m(t){return Object(a[\"default\"])({url:\"/Customer/Customer/addCustomerTag\",method:\"post\",data:t})}function f(t){return Object(a[\"default\"])({url:\"/Customer/Customer/delCustomerTag\",method:\"post\",data:t})}function h(t){return Object(a[\"default\"])({url:\"/Customer/CustomerContact/addCustomerContact\",method:\"post\",data:t})}function g(t){return Object(a[\"default\"])({url:\"/Customer/Customer/search\",method:\"post\",data:t})}function b(t){return Object(a[\"default\"])({url:\"/Customer/Customer/getCustomerLocation\",method:\"post\",data:t})}function C(t){return Object(a[\"default\"])({url:\"/Customer/Customer/batchEditCustomer\",method:\"post\",data:t})}function y(t){return Object(a[\"default\"])({url:\"/Customer/ShippingAddress/addShippingAddress\",method:\"post\",data:t})}function _(t,e){return Object(a[\"default\"])({url:\"/Customer/ShippingAddress/deleteShippingAddress/\"+t,method:\"delete\",data:e})}function j(t){return Object(a[\"default\"])({url:\"/Customer/ShippingAddress/updateShippingAddress\",method:\"put\",data:t})}function G(t,e){return Object(a[\"default\"])({url:\"/Customer/ShippingAddress/getShippingAddressInfo/\"+t,method:\"get\",data:e})}function v(t,e){return Object(a[\"default\"])({url:\"/Customer/ShippingAddress/getAllShippingAddress/\"+t,method:\"post\",data:e})}function P(t){return Object(a[\"default\"])({url:\"/Customer/Customer/query\",method:\"post\",data:t})}function O(t){return Object(a[\"default\"])({url:\"Customer/CustomerCommunication/getAllCustomerCommunication\",method:\"post\",data:t})}function S(t){return Object(a[\"default\"])({url:\"Customer/CustomerCommunication/addCustomerCommunication\",method:\"post\",data:t})}function w(t,e){return Object(a[\"default\"])({url:\"Customer/CustomerCommunication/delCustomerCommunication/\"+t,method:\"delete\",data:e})}function A(t,e){return Object(a[\"default\"])({url:\"Customer/CustomerCommunication/updateCustomerCommunication/\"+t,method:\"put\",data:e})}function k(t){return Object(a[\"default\"])({url:\"Customer/CustomerTagLib/getAllCustomerTagLib\",method:\"get\",data:t})}function B(t){return Object(a[\"default\"])({url:\"Customer/CustomerTagLib/addCustomerTagLib\",method:\"post\",data:t})}function x(t){return Object(a[\"default\"])({url:\"Customer/CustomerTagLib/delCustomerTagLib\",method:\"post\",data:t})}function I(t,e){return Object(a[\"default\"])({url:\"Customer/CustomerTagLib/getCustomerTagLibInfo/\"+t,method:\"post\",data:e})}function T(t){return Object(a[\"default\"])({url:\"Customer/CustomerTagLib/editCustomerTagLib\",method:\"post\",data:t})}function $(t){return Object(a[\"default\"])({url:\"/Customer/CustomerDemand/getAllCustomerdemand\",method:\"post\",data:t})}function D(t,e){return Object(a[\"default\"])({url:\"/Customer/CustomerDemand/getCustomerdemandInfo/\"+t,method:\"get\",data:e})}function M(t){return Object(a[\"default\"])({url:\"Customer/CustomerTagLib/updateCustomerTagLibById\",method:\"post\",data:t})}function z(t){return Object(a[\"default\"])({url:\"Customer/Customer/searchCustomerBuyLog\",method:\"post\",data:t})}function L(t){return Object(a[\"default\"])({url:\"Customer/Customer/searchCustomerBuyLog\",method:\"post\",responseType:\"blob\",data:t})}function E(t){return Object(a[\"default\"])({url:\"Customer/CustomerVisitsLog/getAllCustomerVisitsLog\",method:\"post\",data:t})}function N(t){return Object(a[\"default\"])({url:\"Customer/MemberBalanceDetail/getAllMemberBalanceDetail\",method:\"post\",data:t})}function F(t){return Object(a[\"default\"])({url:\"Customer/Customer/getAllCustomerIntegralDesc\",method:\"post\",data:t})}function R(t){return Object(a[\"default\"])({url:\"Customer/Customer/updateCustomerIntegral\",method:\"post\",data:t})}function U(t){return Object(a[\"default\"])({url:\"Customer/Customer/noOrderCustomer\",method:\"post\",data:t})}function Q(t){return Object(a[\"default\"])({url:\"Customer/Customer/intervalNoOrderCustomer\",method:\"post\",data:t})}function V(t){return Object(a[\"default\"])({url:\"Customer/Customer/rechargeMemberBalance\",method:\"post\",data:t})}function K(t){return Object(a[\"default\"])({url:\"Customer/Customer/recommenderStatic\",method:\"post\",data:t})}function W(t){return Object(a[\"default\"])({url:\"Customer/Customer/customerImport\",method:\"post\",data:t})}function q(t){return Object(a[\"default\"])({url:\"/System/Driver/getAllDriver\",method:\"put\",data:t})}function J(t,e){return Object(a[\"default\"])({url:\"System/Driver/delDriver/\"+t,method:\"put\",data:e})}function H(t){return Object(a[\"default\"])({url:\"System/Driver/addDriver\",method:\"put\",data:t})}function X(t){return Object(a[\"default\"])({url:\"System/Driver/editDriver\",method:\"put\",data:t})}function Y(t,e){return Object(a[\"default\"])({url:\"System/Driver/getDriverInfo/\"+t,method:\"put\",data:e})}function Z(t){return Object(a[\"default\"])({url:\"System/Driver/getAllOpenDriver\",method:\"post\",data:t})}function tt(t){return Object(a[\"default\"])({url:\"Customer/CustomerCommunication/getAllCustomerVisit\",method:\"post\",data:t})}function et(t){return Object(a[\"default\"])({url:\"Customer/CustomerCommunication/getCustomerCallOnReportForm\",method:\"post\",data:t})}function ot(t){return Object(a[\"default\"])({url:\"Customer/CustomerCommunication/getCustomerVisitInfo\",method:\"post\",data:t})}function at(t){return Object(a[\"default\"])({url:\"Department/Department/getAllDepartment\",method:\"post\",data:t})}function rt(t){return Object(a[\"default\"])({url:\"Customer/CustomerCommunication/getCustomerNoVisit\",method:\"post\",data:t})}function nt(t){return Object(a[\"default\"])({url:\"Customer/Customer/getCustomerDistributed\",method:\"post\",data:t})}function dt(t){return Object(a[\"default\"])({url:\"Customer/Customer/setCustomerType\",method:\"post\",data:t})}function ut(t){return Object(a[\"default\"])({url:\"Customer/Customer/delCustomer\",method:\"post\",data:t})}},\"08dc\":function(t,e,o){\"use strict\";o.r(e);var a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o(\"el-dialog\",{attrs:{modal:t.modal,\"close-on-click-modal\":!1,\"close-on-press-escape\":!1,title:\"设置阶梯价\",visible:t.isShow,width:\"50%\"},on:{close:t.cancel}},[o(\"div\",[o(\"div\",{staticClass:\"clearfix view-head\"},[o(\"div\",{staticClass:\"float_left\"},[o(\"el-switch\",{attrs:{\"inactive-value\":0,\"active-value\":1,\"active-color\":\"#36B365\",\"inactive-color\":\"#ff4949\",\"active-text\":\"开\",disabled:t.disabled,\"inactive-text\":\"关\"},on:{change:t.switchChange},model:{value:t.switch_value,callback:function(e){t.switch_value=e},expression:\"switch_value\"}}),o(\"span\",{staticClass:\"label\"},[t._v(\"阶梯价\")]),o(\"span\",{staticClass:\"desc\"},[t._v(\"(购买数量越多价格越低)\")])],1),t.disabled?t._e():o(\"div\",{staticClass:\"float_right\"},[o(\"el-button\",{attrs:{disabled:0===t.switch_value,type:\"primary\"},on:{click:t.addLadderPrice}},[t._v(\" 新增 \")])],1)]),o(\"el-table\",{attrs:{data:t.price_data}},[o(\"el-table-column\",{attrs:{type:\"index\",label:\"序号\",width:\"100\"}}),o(\"el-table-column\",{attrs:{prop:\"from\",label:\"开始数量\"}}),o(\"el-table-column\",{attrs:{prop:\"to\",label:\"结束数量\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[e.$index===t.price_data.length-1?o(\"div\",[t._v(\"∞\")]):o(\"div\",[o(\"el-input-number\",{staticStyle:{width:\"100%\"},attrs:{disabled:0===t.switch_value,controls:!1,placeholder:\"销售价\",size:\"small\",min:e.row.from},on:{blur:function(o){return t.ladderPriceBlur(e.row.to,e.$index)}},model:{value:e.row.to,callback:function(o){t.$set(e.row,\"to\",o)},expression:\"scope.row.to\"}})],1)]}}])}),o(\"el-table-column\",{attrs:{prop:\"price\",label:\"价格\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[o(\"el-input-number\",{staticStyle:{width:\"100%\"},attrs:{disabled:0===t.switch_value,controls:!1,placeholder:\"销售价/元\",size:\"small\"},model:{value:e.row.price,callback:function(o){t.$set(e.row,\"price\",o)},expression:\"scope.row.price\"}})]}}])}),t.disabled?t._e():o(\"el-table-column\",{attrs:{label:\"操作\",width:\"100\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[o(\"el-button\",{attrs:{disabled:0===t.switch_value||t.price_data.length<=2,type:\"text\"},on:{click:function(o){return t.delData(e.$index)}}},[t._v(\" 删除 \")])]}}],null,!1,2939099158)})],1)],1),t.disabled?t._e():o(\"div\",{attrs:{slot:\"footer\"},slot:\"footer\"},[o(\"el-button\",{attrs:{size:\"small\",type:\"primary\"},on:{click:t.confirm}},[t._v(\"确定\")]),o(\"el-button\",{attrs:{size:\"small\"},on:{click:t.cancel}},[t._v(\"取消\")])],1)])},r=[],n={name:\"LadderPrice\",props:{isShow:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},ladderPrice:{type:Array,default:()=>[]},enabledLadder:{type:Number,default:0},disabled:{type:Boolean,default:!1}},data(){return{switch_value:0,price_data:[{from:1,price:0,to:2},{from:3,price:0,to:4},{from:5,price:0,to:999999999}]}},mounted(){this.switch_value=this.enabledLadder,this.ladderPrice.length&&(this.price_data=this.ladderPrice)},methods:{delData(t){const e=this.$_common.deepClone(this.price_data);e.splice(t,1),e[0].from=1,e[e.length-1].from=e[0].to+1,this.price_data=e},confirm(){const t=this.price_data.some(t=>t.price<=0);t?this.$message.warning(\"价格需大于0\"):(this.$emit(\"confirm\",this.switch_value,this.price_data),this.cancel())},cancel(){this.$emit(\"cancel\")},switchChange(){},addLadderPrice(){const t=this.$_common.deepClone(this.price_data);if(t.length){const e=t[0];t.splice(1,\"\",{from:e.to+1,price:\"\",to:e.to+2}),3===t.length&&(t[t.length-1].from=e.to+3)}else t.push({from:1,price:\"\",to:2});this.price_data=t},ladderPriceBlur(t,e){const o=this.$_common.deepClone(this.price_data);o[e+1].from=t+1,0===e&&(o[e+1].to=t+2,o[e+2]&&(o[e+2].from=t+3)),this.price_data=o}}},d=n,u=(o(\"38e3\"),o(\"2877\")),s=Object(u[\"a\"])(d,a,r,!1,null,\"1e3e3ff9\",null);e[\"default\"]=s.exports},\"17b7\":function(t,e,o){\"use strict\";o.r(e);var a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o(\"el-dialog\",{attrs:{modal:t.modal,title:\"设置客户类型价\",visible:t.isShow,width:\"60%\"},on:{close:t.cancel}},[o(\"div\",[o(\"div\",{staticClass:\"clearfix view-head\"},[o(\"div\",{staticClass:\"float_left\"},[o(\"span\",{staticClass:\"label\"},[t._v(\"客户类型价\")]),o(\"span\",{staticClass:\"desc\"},[t._v(\"(不同客户类型不同价格)\")])]),o(\"div\",{staticClass:\"float_right\"},[o(\"el-button\",{attrs:{type:\"primary\"},on:{click:function(e){t.customer_type_show=!0}}},[t._v(\" 选择客户类型 \")])],1)]),o(\"el-table\",{ref:\"goodstabel\",attrs:{data:t.type_data},on:{\"selection-change\":t.selectionChange}},[t.flag?o(\"el-table-column\",{attrs:{fixed:\"left\",type:\"selection\",align:\"center\",width:\"55\"}}):t._e(),o(\"el-table-column\",{attrs:{type:\"index\",label:\"序号\",width:\"60\"}}),o(\"el-table-column\",{attrs:{prop:\"name\",label:\"客户类型\",\"min-width\":\"140\"}}),o(\"el-table-column\",{attrs:{label:\"销售价\",\"min-width\":\"200\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[o(\"el-select\",{staticStyle:{width:\"60px\",display:\"inline-block\"},attrs:{disabled:!!e.row.priceId,size:\"small\",placeholder:\"请选择\"},model:{value:e.row.adjPricetag,callback:function(o){t.$set(e.row,\"adjPricetag\",o)},expression:\"scope.row.adjPricetag\"}},t._l(t.adjPricetag_list,(function(t,e){return o(\"el-option\",{key:e,attrs:{label:t.label,value:t.value}})})),1),o(\"el-input-number\",{staticStyle:{width:\"calc(100% - 80px)\",\"margin-left\":\"5px\"},attrs:{disabled:!!e.row.priceId,controls:!1,min:0,size:\"small\"},model:{value:e.row.price,callback:function(o){t.$set(e.row,\"price\",o)},expression:\"scope.row.price\"}})]}}])}),1===t.enabledLadder?o(\"el-table-column\",{attrs:{label:\"阶梯价\",\"min-width\":\"300\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[o(\"ul\",t._l(e.row.ladderPrice,(function(a,r){return o(\"li\",{key:r,staticClass:\"ladder-li\"},[o(\"span\",{staticClass:\"price-span\"},[t._v(t._s(a.from))]),o(\"span\",{staticStyle:{\"font-size\":\"12px\",margin:\"0 4px\"}},[t._v(\"至\")]),o(\"span\",{staticClass:\"price-span\"},[t._v(\" \"+t._s(r===e.row.ladderPrice.length-1?\"∞\":a.to)+\" \")]),t._v(\" = \"),o(\"span\",{staticClass:\"price-span\",staticStyle:{\"margin-right\":\"5px\"}},[1===parseInt(a.adjPricetag)?o(\"span\",[t._v(\" \"+t._s(t.$NP.minus(a.price,a.adjPrice))+\" \")]):2===parseInt(a.adjPricetag)?o(\"span\",[t._v(\" \"+t._s(t.$NP.plus(a.price,a.adjPrice))+\" \")]):3===parseInt(a.adjPricetag)?o(\"span\",[t._v(\" \"+t._s(t.$NP.times(a.price,a.adjPrice))+\" \")]):o(\"span\",[t._v(\" \"+t._s(a.price)+\" \")])]),o(\"el-select\",{staticStyle:{width:\"60px\",display:\"inline-block\"},attrs:{disabled:!!e.row.priceId,size:\"small\",placeholder:\"请选择\"},model:{value:a.adjPricetag,callback:function(e){t.$set(a,\"adjPricetag\",e)},expression:\"price.adjPricetag\"}},t._l(t.adjPricetag_list,(function(t,e){return o(\"el-option\",{key:e,attrs:{label:t.label,value:t.value}})})),1),o(\"el-input-number\",{staticStyle:{width:\"80px\"},attrs:{controls:!1,disabled:!!e.row.priceId,min:0,max:1===parseInt(a.adjPricetag)?a.price:99999999999,size:\"small\"},model:{value:a.adjPrice,callback:function(e){t.$set(a,\"adjPrice\",e)},expression:\"price.adjPrice\"}})],1)})),0)]}}],null,!1,860089457)}):t._e(),o(\"el-table-column\",{attrs:{label:\"操作\",width:\"140\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[e.row.priceId?t._e():o(\"el-button\",{attrs:{type:\"text\"},on:{click:function(o){return t.delData(e.$index)}}},[t._v(\" 删除 \")]),o(\"el-button\",{attrs:{type:\"text\"},on:{click:function(o){return t.batchSet(e.row)}}},[t._v(\"同步\")]),e.row.priceId?o(\"el-button\",{attrs:{type:\"text\"},on:{click:function(o){return t.delCustomerTypePrice(e.row.priceId,e.$index)}}},[t._v(\" 作废 \")]):t._e()]}}])})],1),t.customerTypePrice.length?t._e():o(\"FooterPage\",{staticStyle:{float:\"left\"},attrs:{\"page-size\":t.pageSize,\"total-page\":t.total,\"current-page\":t.page},on:{\"update:totalPage\":function(e){t.total=e},\"update:total-page\":function(e){t.total=e},\"update:currentPage\":function(e){t.page=e},\"update:current-page\":function(e){t.page=e},pageChange:t.pageChange,sizeChange:t.sizeChange}})],1),o(\"div\",{attrs:{slot:\"footer\"},slot:\"footer\"},[t.flag?o(\"div\",{staticClass:\"float_left\",staticStyle:{\"margin-left\":\"20px\"},attrs:{slot:\"btn-div\"},slot:\"btn-div\"},[o(\"span\",{staticClass:\"batch-checkbox\"},[o(\"el-checkbox\",{on:{change:t.checkAllChange},model:{value:t.checkedAll,callback:function(e){t.checkedAll=e},expression:\"checkedAll\"}})],1),o(\"el-button\",{attrs:{size:\"mini\"},on:{click:t.batchDelCustomerTypePrice}},[t._v(\" 批量作废 \")])],1):t._e(),o(\"el-button\",{attrs:{size:\"small\",type:\"primary\"},on:{click:t.confirm}},[t._v(\"确定\")]),o(\"el-button\",{attrs:{size:\"small\"},on:{click:t.cancel}},[t._v(\"取消\")])],1),t.customer_type_show?o(\"CustomerTypeModel\",{attrs:{modal:!1,\"is-show\":t.customer_type_show},on:{confirm:t.customerTypeConfirm,cancel:function(e){t.customer_type_show=!1}}}):t._e()],1)},r=[],n=o(\"d8dd\"),d=o(\"d5da\"),u=o(\"ab2e\"),s={name:\"CustomerPrice\",components:{CustomerTypeModel:u[\"default\"]},props:{isShow:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},customerTypePrice:{type:Array,default:()=>[]},customerTypePriceOpen:{type:Boolean,default:!1},enabledLadder:{type:[String,Number],default:0},ladderPrice:{type:Array,default:()=>[]},skuId:{type:[String,Number],default:0}},data(){return{batch_price:\"\",customer_type_show:!1,switch_value:!0,type_data:[],adjPricetag:\"2\",adjPricetag_list:[{label:\"+\",value:\"2\"},{label:\"-\",value:\"1\"},{label:\"*\",value:\"3\"}],pageSize:10,page:1,total:0,checkedAll:!1,choose_data:[],flag:!1}},mounted(){this.customerTypePrice.length?(this.type_data=this.customerTypePrice,this.flag=!!this.type_data[0].priceId):this.getAllCustomerSource()},methods:{async getAllCustomerSource(){const t=await Object(n[\"getAllCustomerSource\"])({page:this.page,pageSize:this.pageSize});this.total=t.pageTotal,this.customerTypeConfirm(t.data)},delData(t){this.type_data.splice(t,1)},confirm(){if(!this.type_data)return void this.$message.warning(\"至少设置一条指定价数据\");const t=this.type_data.some(t=>!t.price||t.price<=0);t?this.$message.warning(\"请输入正确的销售价\"):(this.$emit(\"confirm\",this.switch_value,this.type_data),this.cancel())},cancel(){this.$emit(\"cancel\",this.switch_value,this.type_data)},switchChange(){},batchSet(t){this.type_data=this.type_data.map(e=>({...e,price:t.price,adjPricetag:t.adjPricetag,ladderPrice:e.ladderPrice.map((e,o)=>({...e,adjPricetag:t.ladderPrice[o].adjPricetag,adjPrice:t.ladderPrice[o].adjPrice}))}))},customerTypeConfirm(t){const e=t.map(t=>({id:t.id,name:t.name,price:\"\",adjPricetag:\"2\",ladderPrice:this.$_common.deepClone(this.ladderPrice).map(t=>({...t,adjPricetag:\"2\",adjPrice:0}))}));this.type_data=this.$_common.unique(this.type_data.concat(e),[\"id\"])},delCustomerTypePrice(t,e){this.$confirm(\"确认要作废该调价单吗?\",\"提示\",{confirmButtonText:\"确定\",cancelButtonText:\"取消\",type:\"warning\"}).then(async()=>{await Object(d[\"delCustomerTypePrice\"])({skuId:this.skuId,id:[t]});this.$message({type:\"success\",message:\"作废成功!\"}),this.type_data.splice(e,1)})},batchDelCustomerTypePrice(){this.$confirm(\"确认要批量作废该调价单吗?\",\"提示\",{confirmButtonText:\"确定\",cancelButtonText:\"取消\",type:\"warning\"}).then(async()=>{if(!this.choose_data.length)return void this.$message.warning(\"请选择要操作的商品\");const t=this.choose_data.map(t=>t.priceId);await Object(d[\"delCustomerTypePrice\"])({skuId:this.skuId,id:t});this.$message({type:\"success\",message:\"作废成功!\"});let e=this.type_data;t.forEach((t,o)=>{this.type_data.forEach((o,a)=>{o.priceId===t&&e.splice(a,1)})}),this.type_data=e})},sizeChange(t){this.pageSize=t,this.pageChange(1)},pageChange(t){this.page=t,this.getAllCustomerSource()},selectionChange(t){this.checkedAll=t.length===this.type_data.length,this.choose_data=t},checkAllChange(){this.$refs.goodstabel.toggleAllSelection()}}},i=s,c=(o(\"fceb\"),o(\"2877\")),l=Object(c[\"a\"])(i,a,r,!1,null,\"6bdd2e7e\",null);e[\"default\"]=l.exports},\"1f3e\":function(t,e,o){\"use strict\";o(\"bcb0\")},\"38e3\":function(t,e,o){\"use strict\";o(\"d3d2\")},\"716f\":function(t,e,o){\"use strict\";o(\"944f\")},\"7b67\":function(t,e,o){\"use strict\";o.r(e);var a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o(\"el-dialog\",{attrs:{modal:t.modal,title:\"设置指定价\",visible:t.isShow,width:\"60%\"},on:{close:t.cancel}},[o(\"div\",[o(\"div\",{staticClass:\"clearfix view-head\"},[o(\"div\",{staticClass:\"float_left\"},[o(\"span\",{staticClass:\"label\"},[t._v(\"指定价\")]),o(\"span\",{staticClass:\"desc\"},[t._v(\"(指定某个客户订货价)\")])]),o(\"div\",{staticClass:\"float_right\"},[o(\"el-button\",{attrs:{disabled:!t.switch_value,type:\"primary\"},on:{click:function(e){t.customer_show=!0}}},[t._v(\" 选择客户 \")])],1)]),o(\"el-table\",{ref:\"goodstabel\",attrs:{data:t.customer_data},on:{\"selection-change\":t.selectionChange}},[o(\"el-table-column\",{attrs:{fixed:\"left\",type:\"selection\",align:\"center\",width:\"55\"}}),o(\"el-table-column\",{attrs:{type:\"index\",label:\"序号\",width:\"60\"}}),o(\"el-table-column\",{attrs:{prop:\"name\",label:\"客户名称\",\"min-width\":\"140\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[o(\"div\",[t._v(t._s(e.row.name))]),o(\"div\",{staticStyle:{color:\"#999999\",\"margin-top\":\"5px\"}},[t._v(\" \"+t._s(e.row.code)+\" \")])]}}])}),o(\"el-table-column\",{attrs:{label:\"销售价\",\"min-width\":\"200\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[o(\"el-select\",{staticStyle:{width:\"60px\",display:\"inline-block\"},attrs:{size:\"small\",disabled:!!e.row.priceId,placeholder:\"请选择\"},model:{value:e.row.adjPricetag,callback:function(o){t.$set(e.row,\"adjPricetag\",o)},expression:\"scope.row.adjPricetag\"}},t._l(t.adjPricetag_list,(function(t,e){return o(\"el-option\",{key:e,attrs:{label:t.label,value:t.value}})})),1),o(\"el-input-number\",{staticStyle:{width:\"calc(100% - 80px)\",\"margin-left\":\"5px\"},attrs:{controls:!1,disabled:!!e.row.priceId,min:0,size:\"small\"},model:{value:e.row.price,callback:function(o){t.$set(e.row,\"price\",o)},expression:\"scope.row.price\"}})]}}])}),1===t.enabledLadder?o(\"el-table-column\",{attrs:{label:\"阶梯价\",\"min-width\":\"300\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[o(\"ul\",t._l(e.row.ladderPrice,(function(a,r){return o(\"li\",{key:r,staticClass:\"ladder-li\"},[o(\"span\",{staticClass:\"price-span\"},[t._v(t._s(a.from))]),o(\"span\",{staticStyle:{\"font-size\":\"12px\",margin:\"0 4px\"}},[t._v(\"至\")]),o(\"span\",{staticClass:\"price-span\"},[t._v(\" \"+t._s(r===e.row.ladderPrice.length-1?\"∞\":a.to)+\" \")]),t._v(\" = \"),o(\"span\",{staticClass:\"price-span\",staticStyle:{\"margin-right\":\"5px\"}},[1===parseInt(a.adjPricetag)?o(\"span\",[t._v(\" \"+t._s(t.$NP.minus(a.price,a.adjPrice))+\" \")]):2===parseInt(a.adjPricetag)?o(\"span\",[t._v(\" \"+t._s(t.$NP.plus(a.price,a.adjPrice))+\" \")]):3===parseInt(a.adjPricetag)?o(\"span\",[t._v(\" \"+t._s(t.$NP.times(a.price,a.adjPrice))+\" \")]):o(\"span\",[t._v(\" \"+t._s(a.price)+\" \")])]),o(\"el-select\",{staticStyle:{width:\"60px\",display:\"inline-block\"},attrs:{size:\"small\",disabled:!!e.row.priceId,placeholder:\"请选择\"},model:{value:a.adjPricetag,callback:function(e){t.$set(a,\"adjPricetag\",e)},expression:\"price.adjPricetag\"}},t._l(t.adjPricetag_list,(function(t,e){return o(\"el-option\",{key:e,attrs:{label:t.label,value:t.value}})})),1),o(\"el-input-number\",{staticStyle:{width:\"80px\"},attrs:{controls:!1,disabled:!!e.row.priceId,min:0,max:1===parseInt(a.adjPricetag)?a.price:99999999999,size:\"small\"},model:{value:a.adjPrice,callback:function(e){t.$set(a,\"adjPrice\",e)},expression:\"price.adjPrice\"}})],1)})),0)]}}],null,!1,3299712433)}):t._e(),o(\"el-table-column\",{attrs:{label:\"操作\",width:\"140\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[e.row.priceId?t._e():o(\"el-button\",{attrs:{type:\"text\"},on:{click:function(o){return t.delData(e.$index)}}},[t._v(\" 删除 \")]),o(\"el-button\",{attrs:{type:\"text\"},on:{click:function(o){return t.batchSet(e.row)}}},[t._v(\"同步\")]),e.row.priceId?o(\"el-button\",{attrs:{type:\"text\"},on:{click:function(o){return t.delCustomerPrice(e.row.priceId,e.$index)}}},[t._v(\" 作废 \")]):t._e()]}}])})],1)],1),o(\"div\",{attrs:{slot:\"footer\"},slot:\"footer\"},[o(\"div\",{staticClass:\"float_left\",staticStyle:{\"margin-left\":\"20px\"},attrs:{slot:\"btn-div\"},slot:\"btn-div\"},[o(\"span\",{staticClass:\"batch-checkbox\"},[o(\"el-checkbox\",{on:{change:t.checkAllChange},model:{value:t.checkedAll,callback:function(e){t.checkedAll=e},expression:\"checkedAll\"}})],1),o(\"el-button\",{attrs:{size:\"mini\"},on:{click:t.batchDelCustomerTypePrice}},[t._v(\" 批量作废 \")])],1),o(\"el-button\",{attrs:{size:\"small\",type:\"primary\"},on:{click:t.confirm}},[t._v(\"确定\")]),o(\"el-button\",{attrs:{size:\"small\"},on:{click:t.cancel}},[t._v(\"取消\")])],1),t.customer_show?o(\"ClientListModal\",{attrs:{\"is-show\":t.customer_show,\"is-check\":!0,modal:!1,\"is-show-add\":!1},on:{cancel:function(e){t.customer_show=!1},confirm:t.customerSel}}):t._e()],1)},r=[],n=o(\"d5da\"),d=o(\"e3ca\"),u={name:\"CustomerPrice\",components:{ClientListModal:d[\"default\"]},props:{isShow:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},customerPrice:{type:Array,default:()=>[]},customerPriceOpen:{type:Boolean,default:!1},enabledLadder:{type:[String,Number],default:0},ladderPrice:{type:Array,default:()=>[]},skuId:{type:[String,Number],default:0}},data(){return{batch_price:\"\",adjPricetag:\"2\",customer_show:!1,customer_data:[],switch_value:!0,adjPricetag_list:[{label:\"+\",value:\"2\"},{label:\"-\",value:\"1\"},{label:\"*\",value:\"3\"}],checkedAll:!1,choose_data:[]}},mounted(){this.customerPrice.length&&(this.customer_data=this.customerPrice)},methods:{delData(t){this.customer_data.splice(t,1)},confirm(){if(!this.customer_data)return void this.$message.warning(\"至少设置一条指定价数据\");const t=this.customer_data.some(t=>!t.price||t.price<=0);t?this.$message.warning(\"请输入正确的销售价\"):(this.$emit(\"confirm\",this.switch_value,this.customer_data),this.$emit(\"cancel\",this.switch_value,this.customer_data))},cancel(){this.$emit(\"cancel\",this.switch_value,this.customer_data)},switchChange(){},batchSet(t){this.customer_data=this.customer_data.map(e=>({...e,price:t.price,adjPricetag:t.adjPricetag,ladderPrice:e.ladderPrice.map((e,o)=>({...e,adjPricetag:t.ladderPrice[o].adjPricetag,adjPrice:t.ladderPrice[o].adjPrice}))}))},customerSel(t){const e=t.map(t=>({id:t.id,name:t.name,code:t.code,price:\"\",adjPricetag:\"2\",ladderPrice:this.$_common.deepClone(this.ladderPrice).map(t=>({...t,adjPricetag:\"2\",adjPrice:0}))}));this.customer_data=this.$_common.unique(this.customer_data.concat(e),[\"id\"])},delCustomerPrice(t,e){this.$confirm(\"确认要作废该调价单吗?\",\"提示\",{confirmButtonText:\"确定\",cancelButtonText:\"取消\",type:\"warning\"}).then(async()=>{await Object(n[\"delCustomerPrice\"])({skuId:this.skuId,id:[t]});this.$message({type:\"success\",message:\"作废成功!\"}),this.customer_data.splice(e,1)})},checkAllChange(){this.$refs.goodstabel.toggleAllSelection()},selectionChange(t){this.checkedAll=t.length===this.customer_data.length,this.choose_data=t},batchDelCustomerTypePrice(){this.$confirm(\"确认要批量作废调价单吗?\",\"提示\",{confirmButtonText:\"确定\",cancelButtonText:\"取消\",type:\"warning\"}).then(async()=>{if(!this.choose_data.length)return void this.$message.warning(\"请选择要操作的商品\");const t=this.choose_data.map(t=>t.priceId);await Object(n[\"delCustomerPrice\"])({skuId:this.skuId,id:t});this.$message({type:\"success\",message:\"作废成功!\"});let e=this.customer_data;t.forEach((t,o)=>{this.customer_data.forEach((o,a)=>{o.priceId===t&&e.splice(a,1)})}),this.customer_data=e})}}},s=u,i=(o(\"716f\"),o(\"2877\")),c=Object(i[\"a\"])(s,a,r,!1,null,\"b4a0a67a\",null);e[\"default\"]=c.exports},\"8b3e\":function(t,e,o){\"use strict\";o(\"a132\")},\"944f\":function(t,e,o){},a132:function(t,e,o){},ab2e:function(t,e,o){\"use strict\";o.r(e);var a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o(\"el-dialog\",{attrs:{modal:t.modal,title:\"客户类型列表\",visible:t.isShow,width:\"60%\",\"close-on-press-escape\":!1,\"close-on-click-modal\":!1},on:{close:t.cancel}},[o(\"div\",{staticClass:\"search-wrp clearfix\"},[t.isShowAdd?o(\"el-button\",{staticClass:\"float_right btn\",attrs:{type:\"text\"},on:{click:function(e){return t.pageChange(1)}}},[t._v(\" 【刷新】 \")]):t._e()],1),o(\"el-table\",{attrs:{size:\"small\",data:t.type_list},on:{\"selection-change\":t.selectionChange}},[t.isCheck?o(\"el-table-column\",{attrs:{type:\"selection\",align:\"center\",width:\"55\"}}):t._e(),o(\"el-table-column\",{attrs:{label:\"ID\",prop:\"id\",\"min-width\":\"60\"}}),o(\"el-table-column\",{attrs:{prop:\"name\",label:\"客户类型\",\"min-width\":\"160\"}}),o(\"el-table-column\",{attrs:{prop:\"defaultStatus\",label:\"是否默认\",\"min-width\":\"100\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[o(\"span\",{class:[5===e.row.defaultStatus?\"open-span\":\"\"]},[t._v(\" \"+t._s(5===e.row.defaultStatus?\"是\":\"否\")+\" \")])]}}])}),o(\"el-table-column\",{attrs:{prop:\"enableStatus\",label:\"状态\",\"min-width\":\"100\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[o(\"span\",{class:[5===e.row.enableStatus?\"open-span\":\"disabled-span\"]},[t._v(\" \"+t._s(5===e.row.enableStatus?\"启用\":\"禁用\")+\" \")])]}}])}),o(\"el-table-column\",{attrs:{label:\"选择\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[o(\"el-button\",{attrs:{icon:\"el-icon-check\",size:\"mini\",plain:\"\",type:\"primary\"},on:{click:function(o){return t.dbSelect(e.row)}}})]}}])})],1),o(\"FooterPage\",{attrs:{\"page-size\":t.pageSize,\"total-page\":t.total,\"current-page\":t.page},on:{\"update:totalPage\":function(e){t.total=e},\"update:total-page\":function(e){t.total=e},\"update:currentPage\":function(e){t.page=e},\"update:current-page\":function(e){t.page=e},pageChange:t.pageChange,sizeChange:t.sizeChange}},[t.isCheck?o(\"div\",{attrs:{slot:\"btn-div\"},slot:\"btn-div\"},[o(\"el-button\",{attrs:{size:\"small\",type:\"primary\"},on:{click:t.confirm}},[t._v(\"确定\")]),o(\"el-button\",{attrs:{size:\"small\"},on:{click:t.cancel}},[t._v(\"取消\")])],1):t._e()])],1)},r=[],n=o(\"3c48\"),d=o(\"d8dd\"),u={name:\"CustomerTypeModel\",components:{FooterPage:n[\"default\"]},props:{isShow:{type:Boolean,default:!1},isShowAdd:{type:Boolean,default:!1},isCheck:{type:Boolean,default:!0},modal:{type:Boolean,default:!0}},data(){return{choose_data:[],type_list:[],pageSize:10,page:1,selectedIndex:null,total:0,loading:!1,pageLayout:\"total, prev, pager, next\",selectedClient:{}}},created(){this.pageChange(1)},methods:{async getAllCustomerSource(){const t=await Object(d[\"getAllCustomerSource\"])({page:this.page,pageSize:this.pageSize});this.type_list=t.data,this.total=t.pageTotal},dbSelect(t){this.choose_data=[t],this.$emit(\"confirm\",this.choose_data),this.cancel()},selectionChange(t){this.choose_data=t},confirm(){this.$emit(\"confirm\",this.choose_data),this.cancel()},cancel(){this.$emit(\"cancel\")},sizeChange(t){this.pageSize=t,this.pageChange(1)},pageChange(t){this.page=t,this.getAllCustomerSource()}}},s=u,i=(o(\"8b3e\"),o(\"2877\")),c=Object(i[\"a\"])(s,a,r,!1,null,\"5a3286f4\",null);e[\"default\"]=c.exports},bcb0:function(t,e,o){},c40e:function(t,e,o){\"use strict\";o.r(e),o.d(e,\"getAllGoodsBasicBySku\",(function(){return r})),o.d(e,\"goodsImport\",(function(){return n})),o.d(e,\"goodsQuickImport\",(function(){return d})),o.d(e,\"searchBasic\",(function(){return u})),o.d(e,\"exportSearchBasic\",(function(){return s})),o.d(e,\"defineSpec\",(function(){return i})),o.d(e,\"addBasicAndPublishGoods\",(function(){return c})),o.d(e,\"editQuickGoods\",(function(){return l})),o.d(e,\"getQuickGoodsInfo\",(function(){return p})),o.d(e,\"addGoodsBasic\",(function(){return m})),o.d(e,\"getAllGoodsBasic\",(function(){return f})),o.d(e,\"exportGetAllGoodsBasic\",(function(){return h})),o.d(e,\"getGoodsBasicInfoById\",(function(){return g})),o.d(e,\"getGoodsByCategory\",(function(){return b})),o.d(e,\"updateEnableStatus\",(function(){return C})),o.d(e,\"delGoodsBasic\",(function(){return y})),o.d(e,\"editGoodsBasic\",(function(){return _})),o.d(e,\"getGoodsBasicOfShopId\",(function(){return j})),o.d(e,\"updateCategory\",(function(){return G})),o.d(e,\"BatchUnloading\",(function(){return v})),o.d(e,\"setTop\",(function(){return P})),o.d(e,\"setSalesNumBatch\",(function(){return O})),o.d(e,\"setSalesNum\",(function(){return S})),o.d(e,\"getAllUnit\",(function(){return w})),o.d(e,\"addUnit\",(function(){return A})),o.d(e,\"editUnit\",(function(){return k})),o.d(e,\"updateEnablesStatus\",(function(){return B})),o.d(e,\"delUnit\",(function(){return x})),o.d(e,\"SpecManageAdd\",(function(){return I})),o.d(e,\"SpecManageedit\",(function(){return T})),o.d(e,\"SpecManagedel\",(function(){return $})),o.d(e,\"SpecManageinfo\",(function(){return D})),o.d(e,\"SpecManagegetAll\",(function(){return M})),o.d(e,\"getAllGoodsBySku\",(function(){return z})),o.d(e,\"searchGood\",(function(){return L})),o.d(e,\"exportSearchGood\",(function(){return E})),o.d(e,\"addGoods\",(function(){return N})),o.d(e,\"getGoodsInfo\",(function(){return F})),o.d(e,\"delGoods\",(function(){return R})),o.d(e,\"editGoods\",(function(){return U})),o.d(e,\"getAllGoods\",(function(){return Q})),o.d(e,\"getAllGoodsList\",(function(){return V})),o.d(e,\"exportGetAllGoodsList\",(function(){return K})),o.d(e,\"exportGetAllGoods\",(function(){return W})),o.d(e,\"auditGoods\",(function(){return q})),o.d(e,\"getGoodsByCondition\",(function(){return J})),o.d(e,\"GoodsUpdateEnableStatus\",(function(){return H})),o.d(e,\"batchGoodsExpress\",(function(){return X})),o.d(e,\"addBrand\",(function(){return Y})),o.d(e,\"editBrand\",(function(){return Z})),o.d(e,\"getBrandInfoById\",(function(){return tt})),o.d(e,\"updateBrandStatus\",(function(){return et})),o.d(e,\"delBrand\",(function(){return ot})),o.d(e,\"getAllBrand\",(function(){return at})),o.d(e,\"setBrand\",(function(){return rt})),o.d(e,\"setSku\",(function(){return nt})),o.d(e,\"setNoSalesShop\",(function(){return dt})),o.d(e,\"addCategory\",(function(){return ut})),o.d(e,\"updateCategoryStatus\",(function(){return st})),o.d(e,\"getCategoryInfoById\",(function(){return it})),o.d(e,\"getAllCategory\",(function(){return ct})),o.d(e,\"delCategory\",(function(){return lt})),o.d(e,\"editCategory\",(function(){return pt})),o.d(e,\"getAllCategoryPost\",(function(){return mt})),o.d(e,\"getGoodsByBarCode\",(function(){return ft})),o.d(e,\"getRelMap\",(function(){return ht})),o.d(e,\"getPriceTrend\",(function(){return gt})),o.d(e,\"batchSetDistribution\",(function(){return bt})),o.d(e,\"addGoodsSupport\",(function(){return Ct})),o.d(e,\"editGoodsSupport\",(function(){return yt})),o.d(e,\"delGoodsSupport\",(function(){return _t})),o.d(e,\"getAllGoodsSupport\",(function(){return jt})),o.d(e,\"getGoodsSupportInfo\",(function(){return Gt})),o.d(e,\"getAllGoodsGroups\",(function(){return vt})),o.d(e,\"addGoodsGroups\",(function(){return Pt})),o.d(e,\"enableGoodsGroups\",(function(){return Ot})),o.d(e,\"updateGoodsGroups\",(function(){return St})),o.d(e,\"getReservoirInfo\",(function(){return wt})),o.d(e,\"deleteGoodsGroups\",(function(){return At})),o.d(e,\"setSort\",(function(){return kt}));var a=o(\"b775\");function r(t){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBasic/getAllGoodsBasicBySku\",method:\"post\",data:t})}function n(t){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBasic/goodsImport\",method:\"post\",data:t})}function d(t){return Object(a[\"default\"])({url:\"/Goods/QuickGoods/goodsQuickImport\",method:\"post\",data:t})}function u(t){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBasic/search\",method:\"post\",data:t})}function s(t){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBasic/search\",method:\"post\",responseType:\"blob\",data:t})}function i(t){return Object(a[\"default\"])({url:\"/GoodsManage/SpecManage/defineSpec\",method:\"post\",data:t})}function c(t){return Object(a[\"default\"])({url:\"/Goods/QuickGoods/addBasicAndPublishGoods\",method:\"post\",data:t})}function l(t){return Object(a[\"default\"])({url:\"/Goods/QuickGoods/editQuickGoods\",method:\"post\",data:t})}function p(t,e){return Object(a[\"default\"])({url:\"/Goods/QuickGoods/getQuickGoodsInfo/\"+t,method:\"post\",data:e})}function m(t){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBasic/addGoodsBasic\",method:\"post\",data:t})}function f(t){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBasic/getAllGoodsBasic\",method:\"post\",data:t})}function h(t){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBasic/getAllGoodsBasic\",responseType:\"blob\",method:\"post\",data:t})}function g(t,e){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBasic/getGoodsBasicInfoById/\"+t,method:\"post\",data:e})}function b(t){return Object(a[\"default\"])({url:\"/Goods/ApiGoods/getGoodsByCategory\",method:\"post\",data:t})}function C(t){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBasic/updateEnableStatus\",method:\"put\",data:t})}function y(t,e){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBasic/delGoodsBasic/\"+t,method:\"delete\",data:e})}function _(t,e){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBasic/editGoodsBasic/\"+t,method:\"put\",data:e})}function j(t){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBasic/getGoodsBasicOfShopId\",method:\"post\",data:t})}function G(t){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBasic/updateCategory\",method:\"post\",data:t})}function v(t){return Object(a[\"default\"])({url:\"/Goods/Goods/updateEnableStatus\",method:\"post\",data:t})}function P(t,e){return Object(a[\"default\"])({url:\"/Goods/Goods/setTop/\"+t,method:\"get\",data:e})}function O(t){return Object(a[\"default\"])({url:\"/Goods/Goods/setSalesNumBatch\",method:\"post\",data:t})}function S(t){return Object(a[\"default\"])({url:\"/Goods/Goods/setSalesNum\",method:\"post\",data:t})}function w(t){return Object(a[\"default\"])({url:\"/GoodsManage/Units/getAll\",method:\"post\",data:t})}function A(t){return Object(a[\"default\"])({url:\"/GoodsManage/Units/add\",method:\"post\",data:t})}function k(t,e){return Object(a[\"default\"])({url:\"/GoodsManage/Units/edit/\"+t,method:\"put\",data:e})}function B(t){return Object(a[\"default\"])({url:\"/GoodsManage/Units/updateEnablesStatus\",method:\"put\",data:t})}function x(t,e){return Object(a[\"default\"])({url:\"/GoodsManage/Units/del/\"+t,method:\"delete\",data:e})}function I(t){return Object(a[\"default\"])({url:\"/GoodsManage/SpecManage/add\",method:\"post\",data:t})}function T(t,e){return Object(a[\"default\"])({url:\"/GoodsManage/SpecManage/edit/\"+t,method:\"post\",data:e})}function $(t,e){return Object(a[\"default\"])({url:\"/GoodsManage/SpecManage/del/\"+t,method:\"delete\",data:e})}function D(t,e){return Object(a[\"default\"])({url:\"/GoodsManage/SpecManage/info/\"+t,method:\"get\",data:e})}function M(t){return Object(a[\"default\"])({url:\"/GoodsManage/SpecManage/getAll\",method:\"post\",data:t})}function z(t){return Object(a[\"default\"])({url:\"/Goods/Goods/getAllGoodsBySku\",method:\"post\",data:t})}function L(t){return Object(a[\"default\"])({url:\"/Goods/Goods/search\",method:\"post\",data:t})}function E(t){return Object(a[\"default\"])({url:\"/Goods/Goods/search\",responseType:\"blob\",method:\"post\",data:t})}function N(t){return Object(a[\"default\"])({url:\"/Goods/Goods/addGoods\",method:\"post\",data:t})}function F(t,e){return Object(a[\"default\"])({url:\"/Goods/Goods/getGoodsInfo/\"+t,method:\"post\",data:e})}function R(t,e){return Object(a[\"default\"])({url:\"/Goods/Goods/delGoods/\"+t,method:\"get\",data:e})}function U(t,e){return Object(a[\"default\"])({url:\"/Goods/Goods/editGoods/\"+t,method:\"put\",data:e})}function Q(t){return Object(a[\"default\"])({url:\"/Goods/Goods/getAllGoods\",method:\"post\",data:t})}function V(t){return Object(a[\"default\"])({url:\"/Goods/Goods/getAllGoodsList\",method:\"post\",data:t})}function K(t){return Object(a[\"default\"])({url:\"/Goods/Goods/getAllGoodsList\",method:\"post\",responseType:\"blob\",data:t})}function W(t){return Object(a[\"default\"])({url:\"/Goods/Goods/getAllGoods\",method:\"post\",responseType:\"blob\",data:t})}function q(t,e){return Object(a[\"default\"])({url:\"/Goods/Goods/audit/\"+t,method:\"put\",data:e})}function J(t){return Object(a[\"default\"])({url:\"/Goods/Goods/getGoodsByCondition\",method:\"post\",data:t})}function H(t){return Object(a[\"default\"])({url:\"/Goods/Goods/updateEnableStatus\",method:\"post\",data:t})}function X(t){return Object(a[\"default\"])({url:\"/Goods/Goods/batchGoodsExpress\",method:\"post\",data:t})}function Y(t){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBrand/addBrand\",method:\"post\",data:t})}function Z(t,e){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBrand/editBrand/\"+t,method:\"put\",data:e})}function tt(t,e){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBrand/getBrandInfoById/\"+t,method:\"put\",data:e})}function et(t,e){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBrand/updateBrandStatus/\"+t,method:\"put\",data:e})}function ot(t,e){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBrand/delBrand/\"+t,method:\"delete\",data:e})}function at(t){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBrand/getAllBrand\",method:\"post\",data:t})}function rt(t){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBasic/setBrand\",method:\"put\",data:t})}function nt(t){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBasic/setSku\",method:\"put\",data:t})}function dt(t){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBasic/setNoSalesShop\",method:\"put\",data:t})}function ut(t){return Object(a[\"default\"])({url:\"/GoodsCategory/GoodsCategory/addCategory\",method:\"post\",data:t})}function st(t,e){return Object(a[\"default\"])({url:\"/GoodsCategory/GoodsCategory/updateCategoryStatus/\"+t,method:\"put\",data:e})}function it(t,e){return Object(a[\"default\"])({url:\"/GoodsCategory/GoodsCategory/getCategoryInfoById/\"+t,method:\"get\",data:e})}function ct(t){return Object(a[\"default\"])({url:\"/GoodsCategory/GoodsCategory/getAllCategory\",method:\"get\",data:t})}function lt(t,e){return Object(a[\"default\"])({url:\"/GoodsCategory/GoodsCategory/delCategory/\"+t,method:\"delete\",data:e})}function pt(t,e){return Object(a[\"default\"])({url:\"/GoodsCategory/GoodsCategory/editCategory/\"+t,method:\"put\",data:e})}function mt(t){return Object(a[\"default\"])({url:\"/GoodsCategory/GoodsCategory/getAllCategory\",method:\"post\",data:t})}function ft(t){return Object(a[\"default\"])({url:\"/Goods/Goods/getGoodsByBarCode\",method:\"post\",data:t})}function ht(t){return Object(a[\"default\"])({url:\"/Goods/Goods/getRelMap\",method:\"post\",data:t})}function gt(t,e){return Object(a[\"default\"])({url:\"Goods/Goods/getPriceTrend/\"+t,method:\"POST\",data:e})}function bt(t){return Object(a[\"default\"])({url:\"Goods/Goods/batchSetDistribution\",method:\"POST\",data:t})}function Ct(t){return Object(a[\"default\"])({url:\"Goods/GoodsSupport/addGoodsSupport\",method:\"post\",data:t})}function yt(t){return Object(a[\"default\"])({url:\"/Goods/GoodsSupport/editGoodsSupport\",method:\"post\",data:t})}function _t(t,e){return Object(a[\"default\"])({url:\"Goods/GoodsSupport/delGoodsSupport/\"+t,method:\"post\",data:e})}function jt(t){return Object(a[\"default\"])({url:\"Goods/GoodsSupport/getAllGoodsSupport\",method:\"post\",data:t})}function Gt(t,e){return Object(a[\"default\"])({url:\"/Goods/GoodsSupport/getGoodsSupportInfo/\"+t,method:\"post\",data:e})}function vt(t){return Object(a[\"default\"])({url:\"Goods/GoodsGroups/getAllGoodsGroups\",method:\"post\",data:t})}function Pt(t){return Object(a[\"default\"])({url:\"Goods/GoodsGroups/addGoodsGroups\",method:\"post\",data:t})}function Ot(t,e){return Object(a[\"default\"])({url:\"Goods/GoodsGroups/enableGoodsGroups/\"+t,method:\"post\",data:e})}function St(t,e){return Object(a[\"default\"])({url:\"Goods/GoodsGroups/updateGoodsGroups/\"+t,method:\"post\",data:e})}function wt(t,e){return Object(a[\"default\"])({url:\"Goods/GoodsGroups/getReservoirInfo/\"+t,method:\"post\",data:e})}function At(t,e){return Object(a[\"default\"])({url:\"Goods/GoodsGroups/deleteGoodsGroups/\"+t,method:\"post\",data:e})}function kt(t){return Object(a[\"default\"])({url:\"Goods/Goods/setSort\",method:\"post\",data:t})}},ca15:function(t,e,o){\"use strict\";o.r(e);var a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o(\"el-tree\",{ref:\"regionTree\",attrs:{data:t.areaData,props:t.props,\"node-key\":\"codePath\",\"default-expanded-keys\":[\"0-0-0\"],\"show-checkbox\":\"\"},on:{check:t.checkChange}})},r=[],n=o(\"cf0d\"),d=o(\"2934\"),u={name:\"RegionTree\",props:{checkedKey:{type:Array,default:()=>[]},alreadyRegion:{type:Array,default:()=>[]}},data(){return{props:{label:\"label\",children:\"children\",isLeaf:\"leaf\"},areaData:[],province_list:[],city_list:[],district_list:[],province_code:\"\",city_code:\"\"}},watch:{checkedKey(t){this.$refs.regionTree.setCheckedKeys(t),this.areaData=this.setDisabled(this.$_common.deepClone(this.areaData),this.alreadyRegion,t)},alreadyRegion(t){this.areaData=this.setDisabled(this.$_common.deepClone(this.areaData),t)}},created(){this.handelData()},mounted(){this.$refs.regionTree.setCheckedKeys(this.checkedKey),this.areaData=this.setDisabled(this.$_common.deepClone(this.areaData),this.alreadyRegion,this.checkedKey)},methods:{handelData(){const t=n.map(t=>({...t,codePath:t.value+\"-0-0\",children:t.children?t.children.map(e=>({...e,codePath:t.value+\"-\"+e.value+\"-0\",children:e.children?e.children.map(o=>({...o,codePath:t.value+\"-\"+e.value+\"-\"+o.value})):[]})):[]}));this.areaData=[{id:0,label:\"全国\",children:t,expand:\"true\",codePath:\"0-0-0\"}]},setDisabled(t=[],e=[],o=[]){for(let a in t){let r=t[a];r.disabled=!!e.find(t=>t===r.codePath)&&!o.find(t=>t===r.codePath),r.children&&this.setDisabled(r.children,e,o)}return t},async getAllProvince(){const{data:t}=await Object(d[\"getAllProvince\"])();this.areaData=t.map(t=>({...t}))},async getAllCityByProvinceCode(t){const{data:e}=await Object(d[\"getAllCityByProvinceCode\"])(t);this.city_list=e.map(t=>({...t}))},async getAllAreaByCityCode(t){const{data:e}=await Object(d[\"getAllAreaByCityCode\"])(t);this.district_list=e.map(t=>({...t}))},async checkChange(t,e){this.$emit(\"checkChange\",e.checkedNodes)}}},s=u,i=o(\"2877\"),c=Object(i[\"a\"])(s,a,r,!1,null,\"741e1377\",null);e[\"default\"]=c.exports},d3d2:function(t,e,o){},d5da:function(t,e,o){\"use strict\";o.r(e),o.d(e,\"getAllGoodsPrice\",(function(){return r})),o.d(e,\"searchPrice\",(function(){return n})),o.d(e,\"batchPrice\",(function(){return d})),o.d(e,\"getAllSearch\",(function(){return u})),o.d(e,\"PriceAdjustmentAdd\",(function(){return s})),o.d(e,\"PriceAdjustmentGetAll\",(function(){return i})),o.d(e,\"PriceAdjustmentEffective\",(function(){return c})),o.d(e,\"addAndEffective\",(function(){return l})),o.d(e,\"getCustomerPriceByGoodsIds\",(function(){return p})),o.d(e,\"getCustomerTypePriceByGoodsIds\",(function(){return m})),o.d(e,\"delCustomerTypePrice\",(function(){return f})),o.d(e,\"delCustomerPrice\",(function(){return h})),o.d(e,\"addCustomerTypePriceAdjustment\",(function(){return g})),o.d(e,\"getAllCustomerTypePriceAdjustment\",(function(){return b})),o.d(e,\"exportgetAllCustomerTypePriceAdjustment\",(function(){return C})),o.d(e,\"exportPriceAdjustment\",(function(){return y})),o.d(e,\"exportCustomerPriceAdjustment\",(function(){return _})),o.d(e,\"effectiveCustomerTypePriceAdjustment\",(function(){return j})),o.d(e,\"CustomerPriceAdjustmentAdd\",(function(){return G})),o.d(e,\"CustomerPriceAdjustmentGetAll\",(function(){return v})),o.d(e,\"CustomerPriceAdjustmentEffective\",(function(){return P}));var a=o(\"b775\");function r(t){return Object(a[\"default\"])({url:\"/Price/Price/getAllGoodsPrice\",method:\"post\",data:t})}function n(t){return Object(a[\"default\"])({url:\"/Price/Price/search\",method:\"post\",data:t})}function d(t){return Object(a[\"default\"])({url:\"/Price/Price/batchPrice\",method:\"put\",data:t})}function u(t){return Object(a[\"default\"])({url:\"/Price/PriceAdjustment/getAll\",method:\"post\",data:t})}function s(t){return Object(a[\"default\"])({url:\"/Price/PriceAdjustment/add\",method:\"post\",data:t})}function i(t){return Object(a[\"default\"])({url:\"/Price/PriceAdjustment/getAll\",method:\"post\",data:t})}function c(t,e){return Object(a[\"default\"])({url:\"/Price/PriceAdjustment/effective/\"+t,method:\"put\",data:e})}function l(t){return Object(a[\"default\"])({url:\"/Price/PriceAdjustment/addAndEffective\",method:\"post\",data:t})}function p(t){return Object(a[\"default\"])({url:\"/Price/CustomerPriceAdjustment/getCustomerPriceByGoodsIds\",method:\"post\",data:t})}function m(t){return Object(a[\"default\"])({url:\"/Price/CustomerTypePriceAdjustment/getCustomerTypePriceByGoodsIds\",method:\"post\",data:t})}function f(t){return Object(a[\"default\"])({url:\"/Price/CustomerTypePriceAdjustment/delCustomerTypePrice\",method:\"post\",data:t})}function h(t){return Object(a[\"default\"])({url:\"/Price/CustomerPriceAdjustment/delCustomerPrice\",method:\"post\",data:t})}function g(t){return Object(a[\"default\"])({url:\"/Price/CustomerTypePriceAdjustment/add\",method:\"post\",data:t})}function b(t){return Object(a[\"default\"])({url:\"/Price/CustomerTypePriceAdjustment/getAll\",method:\"post\",data:t})}function C(t){return Object(a[\"default\"])({url:\"/Price/CustomerTypePriceAdjustment/getAll\",method:\"post\",responseType:\"blob\",data:t})}function y(t){return Object(a[\"default\"])({url:\"Price/PriceAdjustment/getAll\",method:\"post\",responseType:\"blob\",data:t})}function _(t){return Object(a[\"default\"])({url:\"Price/CustomerPriceAdjustment/getAll\",method:\"post\",responseType:\"blob\",data:t})}function j(t,e){return Object(a[\"default\"])({url:\"/Price/CustomerTypePriceAdjustment/effective/\"+t,method:\"post\",data:e})}function G(t){return Object(a[\"default\"])({url:\"/Price/CustomerPriceAdjustment/add\",method:\"post\",data:t})}function v(t){return Object(a[\"default\"])({url:\"/Price/CustomerPriceAdjustment/getAll\",method:\"post\",data:t})}function P(t,e){return Object(a[\"default\"])({url:\"/Price/CustomerPriceAdjustment/effective/\"+t,method:\"put\",data:e})}},e3ca:function(t,e,o){\"use strict\";o.r(e);var a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o(\"el-dialog\",{attrs:{modal:t.modal,title:\"客户列表\",visible:t.isShow,width:\"60%\",\"close-on-press-escape\":!1,\"close-on-click-modal\":!1},on:{close:t.cancel}},[o(\"div\",{staticClass:\"search-wrp clearfix\"},[o(\"el-input\",{staticStyle:{width:\"300px\"},attrs:{size:\"small\",clearable:\"\",placeholder:\"客户名称/手机号\"},on:{clear:function(e){return t.pageChange(1)}},nativeOn:{keyup:function(e){return!e.type.indexOf(\"key\")&&t._k(e.keyCode,\"enter\",13,e.key,\"Enter\")?null:t.pageChange(1)}},model:{value:t.searchForm.keyWord,callback:function(e){t.$set(t.searchForm,\"keyWord\",e)},expression:\"searchForm.keyWord\"}},[o(\"el-button\",{attrs:{slot:\"append\",type:\"primary\",icon:\"el-icon-search\"},on:{click:function(e){return t.pageChange(1)}},slot:\"append\"})],1),t.isShowAdd?o(\"el-button\",{staticClass:\"float_right btn\",attrs:{type:\"text\"},on:{click:function(e){return t.pageChange(1)}}},[t._v(\" 【刷新】 \")]):t._e()],1),o(\"el-table\",{directives:[{name:\"loading\",rawName:\"v-loading\",value:t.loading,expression:\"loading\"}],attrs:{data:t.clientList,size:\"small\"},on:{\"row-dblclick\":t.dbSelect,\"selection-change\":t.selectionChange}},[t.isCheck?o(\"el-table-column\",{attrs:{type:\"selection\",width:\"55\"}}):t._e(),o(\"el-table-column\",{attrs:{prop:\"name\",label:\"客户名称\"}}),o(\"el-table-column\",{attrs:{prop:\"mobile\",label:\"联系电话\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[t._v(\" \"+t._s(e.row.mobile)+\" \")]}}])}),o(\"el-table-column\",{attrs:{prop:\"customerType\",label:\"客户类型\"}}),o(\"el-table-column\",{attrs:{prop:\"shopName\",label:\"所属商铺\",\"show-overflow-tooltip\":\"\"}}),o(\"el-table-column\",{attrs:{label:\"选择\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[o(\"el-button\",{attrs:{icon:\"el-icon-check\",size:\"mini\",plain:\"\",type:\"primary\"},on:{click:function(o){return t.dbSelect(e.row)}}})]}}])})],1),o(\"FooterPage\",{attrs:{\"page-size\":t.pre_page,\"total-page\":t.total,\"current-page\":t.page},on:{\"update:totalPage\":function(e){t.total=e},\"update:total-page\":function(e){t.total=e},\"update:currentPage\":function(e){t.page=e},\"update:current-page\":function(e){t.page=e},pageChange:t.pageChange,sizeChange:t.sizeChange}},[t.isCheck?o(\"div\",{staticClass:\"foot-btn-div\",attrs:{slot:\"btn-div\"},slot:\"btn-div\"},[o(\"el-button\",{attrs:{size:\"small\",type:\"primary\"},on:{click:t.confirm}},[t._v(\"确定\")]),o(\"el-button\",{attrs:{size:\"small\"},on:{click:t.cancel}},[t._v(\"取消\")])],1):t._e()])],1)},r=[],n=o(\"3c48\"),d=o(\"049b\"),u={name:\"ClientListModal\",components:{FooterPage:n[\"default\"]},props:{isShow:{type:Boolean,default:!1},isShowAdd:{type:Boolean,default:!1},isCheck:{type:Boolean,default:!0},modal:{type:Boolean,default:!0}},data(){return{choose_data:[],clientList:[],pre_page:10,page:1,selectedIndex:null,searchForm:{keyWord:\"\"},total:0,loading:!1,pageLayout:\"total, prev, pager, next\",selectedClient:{}}},created(){this.pageChange(1)},methods:{async getList(){this.loading=!0;const{data:t,pageTotal:e}=await Object(d[\"getAllCustomer\"])({page:this.page,pageSize:this.pre_page,enableStatus:5,status:2,keyword:this.searchForm.keyWord});this.loading=!1,this.clientList=t,this.total=e},dbSelect(t){this.choose_data=[t],this.$emit(\"confirm\",this.choose_data),this.cancel()},selectionChange(t){this.choose_data=t},confirm(){this.$emit(\"confirm\",this.choose_data),this.cancel()},cancel(){this.$emit(\"cancel\")},pageChange(t){this.page=t,this.getList()},sizeChange(t){this.pre_page=t,this.pageChange(1)}}},s=u,i=(o(\"1f3e\"),o(\"2877\")),c=Object(i[\"a\"])(s,a,r,!1,null,\"2951b776\",null);e[\"default\"]=c.exports},ecf0:function(t,e,o){},fceb:function(t,e,o){\"use strict\";o(\"ecf0\")}}]);","extractedComments":[]}
|