11 lines
3.0 KiB
JavaScript
11 lines
3.0 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/selectProduct/index"],{"3e36":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("76dd"),u=n("0c59"),s={props:{showProduct:{type:Boolean,default:!1},showNumber:{type:Boolean,default:!0}},data:function(){return{BASE_IMG_URL:u.BASE_IMG_URL,name:"",list:[],isAll:!1,selectArr:[]}},methods:{queryList:function(t){this.name=t.detail.value,this.init()},init:function(){this.$refs.popup.open(),this.list=[],this.getProductList()},getProductList:function(){var t=this,e={name:this.name};(0,i.netContractProduct)(e).then((function(e){var n=e.data;n.forEach((function(t){t.number=1,t.select=!1})),t.list=n}))},changeNumber:function(t,e){var n=this.list[e];t>1&&(n.select=!0),n.number=t,this.$set(this.list,e,n),this.handleSelect()},changeSelect:function(t){var e=this.list[t];e.select=!e.select,this.$set(this.list,t,e),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,e=[];t.forEach((function(t){t.select&&e.push(t.id)})),this.selectArr=e},sureSelectData:function(){var t=this.list,e=[];t.forEach((function(t){t.select&&e.push(t)})),this.closePopup(),this.$emit("selectList",e)}}};e.default=s},"48f2":function(t,e,n){"use strict";var i=n("8b14"),u=n.n(i);u.a},"8b14":function(t,e,n){},a99f:function(t,e,n){"use strict";n.r(e);var i=n("bf68"),u=n("cd4c");for(var s in u)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return u[t]}))}(s);n("48f2");var c=n("f0c5"),o=Object(c["a"])(u["default"],i["b"],i["c"],!1,null,"07b00d04",null,!1,i["a"],void 0);e["default"]=o.exports},bf68:function(t,e,n){"use strict";n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return i}));var i={uniPopup:function(){return n.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(n.bind(null,"6f9d"))},uniNumberBox:function(){return n.e("uni_modules/uni-number-box/components/uni-number-box/uni-number-box").then(n.bind(null,"2e8f"))},uEmpty:function(){return n.e("uview-ui/components/u-empty/u-empty").then(n.bind(null,"38b8"))}},u=function(){var t=this.$createElement,e=(this._self._c,this.list.length),n=this.selectArr.length;this.$mp.data=Object.assign({},{$root:{g0:e,g1:n}})},s=[]},cd4c:function(t,e,n){"use strict";n.r(e);var i=n("3e36"),u=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=u.a}}]);
|
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
|
'components/selectProduct/index-create-component',
|
|
{
|
|
'components/selectProduct/index-create-component':(function(module, exports, __webpack_require__){
|
|
__webpack_require__('543d')['createComponent'](__webpack_require__("a99f"))
|
|
})
|
|
},
|
|
[['components/selectProduct/index-create-component']]
|
|
]);
|