crm_second_opening_mini/components/selectProductConfig/index.js

11 lines
3.1 KiB
JavaScript

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/selectProductConfig/index"],{"55ad":function(t,n,e){"use strict";e.r(n);var i=e("b377"),u=e("edb3");for(var s in u)["default"].indexOf(s)<0&&function(t){e.d(n,t,(function(){return u[t]}))}(s);e("d473");var c=e("f0c5"),o=Object(c["a"])(u["default"],i["b"],i["c"],!1,null,"08c26e06",null,!1,i["a"],void 0);n["default"]=o.exports},b377:function(t,n,e){"use strict";e.d(n,"b",(function(){return u})),e.d(n,"c",(function(){return s})),e.d(n,"a",(function(){return i}));var i={uniPopup:function(){return e.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(e.bind(null,"6f9d"))},uniNumberBox:function(){return e.e("uni_modules/uni-number-box/components/uni-number-box/uni-number-box").then(e.bind(null,"2e8f"))},uEmpty:function(){return e.e("uview-ui/components/u-empty/u-empty").then(e.bind(null,"38b8"))}},u=function(){var t=this.$createElement,n=(this._self._c,this.list.length),e=this.selectArr.length;this.$mp.data=Object.assign({},{$root:{g0:n,g1:e}})},s=[]},c798:function(t,n,e){},d473:function(t,n,e){"use strict";var i=e("c798"),u=e.n(i);u.a},edb3:function(t,n,e){"use strict";e.r(n);var i=e("fd2a"),u=e.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(s);n["default"]=u.a},fd2a:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e("dc92"),u=e("0c59"),s={props:{showConfig:{type:Boolean,default:!1}},data:function(){return{BASE_IMG_URL:u.BASE_IMG_URL,name:"",product_id:"",list:[],isAll:!1,selectArr:[]}},methods:{queryList:function(t){this.name=t.detail.value,this.init(this.product_id)},init:function(t){this.$refs.popup.open(),this.product_id=t,this.list=[],this.getConfigList()},getConfigList:function(){var t=this,n={product_id:this.product_id,name:this.name};(0,i.netProductConfig)(n).then((function(n){var e=n.data;e.forEach((function(t){t.part_id=t.id,t.number=1,t.select=!1})),t.list=e}))},changeNumber:function(t,n){var e=this.list[n];t>1&&(e.select=!0),e.number=t,this.$set(this.list,n,e),this.handleSelect()},changeSelect:function(t){var n=this.list[t];n.select=!n.select,this.$set(this.list,t,n),this.handleSelect()},selectAll:function(){this.isAll=!this.isAll;var t=this.list;this.isAll?t.forEach((function(t){t.select=!0})):t.forEach((function(t){t.select=!1})),this.list=t,this.handleSelect()},closePopup:function(){this.$refs.popup.close()},handleSelect:function(){var t=this.list,n=[];t.forEach((function(t){t.select&&n.push(t.id)})),this.selectArr=n},sureSelectData:function(){var t=this.list,n=[];t.forEach((function(t){t.select&&n.push(t)})),this.closePopup(),this.$emit("selectList",n)}}};n.default=s}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'components/selectProductConfig/index-create-component',
{
'components/selectProductConfig/index-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('543d')['createComponent'](__webpack_require__("55ad"))
})
},
[['components/selectProductConfig/index-create-component']]
]);