shop-php/public/static/js/pages-product-addGoods-mulSpecification.1cf959b9.js
2024-01-31 17:09:20 +08:00

1 line
15 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-product-addGoods-mulSpecification"],{"0130":function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return a})),i.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"container_input"},e._l(e.platformClassification,(function(t,n){return t.DoNotShow?e._e():i("v-uni-view",{key:n,staticClass:"container_input_item",on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.selectItem(t)}}},["select"==t.type||"input"==t.type||"switch"==t.type||"number"==t.type||"digit"==t.type?i("v-uni-view",{staticClass:"select_and_input"},[i("v-uni-view",{staticClass:"container_input_item_label"},[-1!=Object.keys(t).indexOf("select")?i("v-uni-text",{staticClass:"select_check",class:{select:t.select},on:{click:function(i){i.stopPropagation(),arguments[0]=i=e.$handleEvent(i),e.selectRadio(t)}}},[t.select?i("v-uni-text",{staticClass:"iconfont"},[e._v("")]):e._e()],1):e._e(),i("v-uni-text",{staticClass:"select_label line1"},[e._v(e._s(t.label))])],1),"select"==t.type?i("v-uni-view",{staticClass:"container_input_item_value greyColor"},[t.value?i("v-uni-text",{staticClass:"text"},[e._v(e._s(t.value))]):i("v-uni-text",[e._v(e._s(t.holder))]),i("v-uni-text",{staticClass:"iconfont"},[e._v("")])],1):e._e(),"number"==t.type?i("v-uni-view",{staticClass:"container_input_item_value"},[i("v-uni-input",{attrs:{type:"number",value:"",placeholder:t.holder,"placeholder-class":"inputPlaceHolder"},model:{value:e.formData[t.model],callback:function(i){e.$set(e.formData,t.model,i)},expression:"formData[item.model]"}})],1):e._e(),"digit"==t.type?i("v-uni-view",{staticClass:"container_input_item_value"},[i("v-uni-input",{attrs:{type:"digit",value:"",placeholder:t.holder,"placeholder-class":"inputPlaceHolder"},model:{value:e.formData[t.model],callback:function(i){e.$set(e.formData,t.model,i)},expression:"formData[item.model]"}})],1):e._e(),"input"==t.type?i("v-uni-view",{staticClass:"container_input_item_value"},[i("v-uni-input",{attrs:{type:"text",value:"",placeholder:t.holder,"placeholder-class":"inputPlaceHolder"},model:{value:e.formData[t.model],callback:function(i){e.$set(e.formData,t.model,i)},expression:"formData[item.model]"}})],1):e._e(),"switch"==t.type?i("v-uni-view",{staticClass:"container_input_item_value"},[i("v-uni-switch",{staticStyle:{transform:"scale(0.8)"},attrs:{checked:1==e.formData[t.model],color:"#E93323"},on:{change:function(i){arguments[0]=i=e.$handleEvent(i),e.switchChange(i,t)}}})],1):e._e()],1):e._e(),"radio"==t.type||"check"==t.type?i("v-uni-view",{staticClass:"radio"},[i("v-uni-view",{staticClass:"container_input_item_label"},[e._v(e._s(t.label))]),"radio"==t.type?i("v-uni-view",{staticClass:"container_input_item_value flex_start"},[i("v-uni-radio-group",{staticClass:"select_group",on:{change:function(i){arguments[0]=i=e.$handleEvent(i),e.radioChange(i,t)}}},e._l(t.radioList,(function(n,a){return i("v-uni-label",{key:n.value,staticClass:"container_input_item_value_select"},[i("v-uni-view",[i("v-uni-radio",{attrs:{value:n.value,checked:n.value==t.inforValue}})],1),i("v-uni-view",[e._v(e._s(n.name))])],1)})),1)],1):e._e(),"check"==t.type?i("v-uni-view",{staticClass:"container_input_item_value flex_start"},[i("v-uni-checkbox-group",{staticClass:"select_group",on:{change:function(i){arguments[0]=i=e.$handleEvent(i),e.checkChange(i,t)}}},e._l(t.checkList,(function(n,a){return i("v-uni-label",{key:n.value,staticClass:"container_input_item_value_select"},[i("v-uni-view",[i("v-uni-checkbox",{staticClass:"chenk_list",attrs:{value:n.value,checked:n.value==t.inforValue}})],1),i("v-uni-view",[e._v(e._s(n.name))])],1)})),1)],1):e._e()],1):e._e()],1)})),1)},a=[]},"0765":function(e,t,i){"use strict";var n=i("a765"),a=i.n(n);a.a},2039:function(e,t,i){var n=i("24fb");t=n(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.container_input[data-v-2b1a8ea2]{background:#fff;padding:0 %?20?%;width:%?710?%;margin:auto;margin-top:%?31?%;border-radius:%?10?%}.container_input_item .select_and_input[data-v-2b1a8ea2]{height:%?106?%;display:flex;align-items:center;justify-content:space-between}.container_input_item .select_and_input .greyColor[data-v-2b1a8ea2]{color:#bbb}.container_input_item .radio[data-v-2b1a8ea2]{padding:%?30?% 0}.container_input_item_label[data-v-2b1a8ea2]{padding-left:%?10?%;color:#333;font-size:%?30?%;display:flex;align-items:center}.container_input_item_label .select_label[data-v-2b1a8ea2]{max-width:%?520?%}.container_input_item_label .select_check[data-v-2b1a8ea2]{display:flex;align-items:center;justify-content:center;width:%?40?%;height:%?40?%;border:1px solid #ccc;border-radius:50%;margin-right:%?20?%}.container_input_item_label .select_check .iconfont[data-v-2b1a8ea2]{font-size:%?24?%}.container_input_item_label .select[data-v-2b1a8ea2]{background:#e93323;border:none}.container_input_item_label .select .iconfont[data-v-2b1a8ea2]{color:#fff}.container_input_item_value[data-v-2b1a8ea2]{padding-right:%?10?%;flex:1;display:flex;align-items:center;justify-content:flex-end}.container_input_item_value > span[data-v-2b1a8ea2]:nth-child(1){display:inline-block;margin-right:%?15?%}.container_input_item_value .text[data-v-2b1a8ea2]{color:#000;display:inline-block;max-width:%?400?%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.container_input_item_value uni-input[data-v-2b1a8ea2]{text-align:right}.container_input_item_value .select_group[data-v-2b1a8ea2]{display:flex}.container_input_item_value_select[data-v-2b1a8ea2]{display:flex;margin-right:%?110?%}.container_input_item .flex_start[data-v-2b1a8ea2]{padding:0 %?10?%;margin-top:%?40?%;justify-content:flex-start}.container_input > uni-view[data-v-2b1a8ea2]:not(:last-child){border-bottom:1px solid #eee}.inputPlaceHolder[data-v-2b1a8ea2]{color:#bbb}',""]),e.exports=t},"41da":function(e,t,i){"use strict";i.r(t);var n=i("0130"),a=i("d6ab");for(var c in a)["default"].indexOf(c)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(c);i("83e1");var l=i("f0c5"),s=Object(l["a"])(a["default"],n["b"],n["c"],!1,null,"2b1a8ea2",null,!1,n["a"],void 0);t["default"]=s.exports},5088:function(e,t,i){var n=i("2039");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("4f06").default;a("3c189ce8",n,!0,{sourceMap:!1,shadowMode:!1})},"606a":function(e,t,i){"use strict";i.r(t);var n=i("95ed"),a=i("a25d");for(var c in a)["default"].indexOf(c)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(c);i("0765");var l=i("f0c5"),s=Object(l["a"])(a["default"],n["b"],n["c"],!1,null,"eaf9466c",null,!1,n["a"],void 0);t["default"]=s.exports},"83e1":function(e,t,i){"use strict";var n=i("5088"),a=i.n(n);a.a},8986:function(e,t,i){var n=i("24fb");t=n(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.container[data-v-eaf9466c]{padding-bottom:%?130?%}.title[data-v-eaf9466c]{background:#fff;display:flex;align-items:center;justify-content:space-between;padding:%?30?% %?40?% %?30?% %?35?%}.title .search_box[data-v-eaf9466c]{flex:1;margin-right:%?35?%}.administration[data-v-eaf9466c]{color:#000;font-size:%?30?%}.handle[data-v-eaf9466c]{position:fixed;left:0;bottom:0;display:flex;align-items:center;justify-content:center;width:%?750?%;height:%?126?%;background:#fff}.handle_button[data-v-eaf9466c]{display:flex;align-items:center;justify-content:center;color:#fff;font-size:%?32?%;width:%?690?%;height:%?86?%;background:#e93323;border-radius:%?43?%}.finish[data-v-eaf9466c]{display:flex;justify-content:space-between;align-items:center;padding:0 %?30?%;box-sizing:border-box;position:fixed;left:0;bottom:0;width:100%;height:%?126?%;background:#fff}.finish > uni-view[data-v-eaf9466c]:nth-child(1){display:flex;align-items:center}.finish > uni-view:nth-child(1) > span[data-v-eaf9466c]:nth-child(1){width:%?38?%;height:%?38?%;border:1px solid #ccc;border-radius:50%;display:inline-block;margin-right:%?24?%;display:flex;align-items:center;justify-content:center}.finish > uni-view[data-v-eaf9466c]:nth-child(2){width:%?180?%;height:%?70?%;border:1px solid #e93323;border-radius:35px;display:flex;align-items:center;justify-content:center;color:#e93323}.select[data-v-eaf9466c]{background:#e93323;border:none!important}.select .iconfont[data-v-eaf9466c]{color:#fff;font-size:%?24?%}',""]),e.exports=t},"95ed":function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return a})),i.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"container"},[i("v-uni-view",{staticClass:"title"},[i("v-uni-view",{staticClass:"search_box"},[i("search",{attrs:{holder:"请输入规格名称"},on:{getList:function(t){arguments[0]=t=e.$handleEvent(t),e.getSpecList.apply(void 0,arguments)}}})],1),i("v-uni-view",{staticClass:"administration",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.handleAdministration.apply(void 0,arguments)}}},[e._v(e._s(e.administrationFlag?"完成":"管理"))])],1),i("select-form",{attrs:{platformClassification:e.selectFormList},on:{handleJumpLogic:function(t){arguments[0]=t=e.$handleEvent(t),e.handleJumpLogic.apply(void 0,arguments)}}}),e.administrationFlag?i("v-uni-view",{staticClass:"finish"},[i("v-uni-view",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.selectAll.apply(void 0,arguments)}}},[i("span",{class:{select:e.allSelect}},[e.allSelect?i("span",{staticClass:"iconfont"},[e._v("")]):e._e()]),i("span",[e._v("全选("+e._s(e.selectNum)+")")])]),i("v-uni-view",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.subDel.apply(void 0,arguments)}}},[e._v("删除")])],1):i("v-uni-view",{staticClass:"handle"},[i("v-uni-view",{staticClass:"handle_button",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.newSpecifications.apply(void 0,arguments)}}},[e._v("新增规格")])],1)],1)},a=[]},a25d:function(e,t,i){"use strict";i.r(t);var n=i("eddf"),a=i.n(n);for(var c in n)["default"].indexOf(c)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(c);t["default"]=a.a},a765:function(e,t,i){var n=i("8986");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("4f06").default;a("7bd5a132",n,!0,{sourceMap:!1,shadowMode:!1})},c393:function(e,t,i){"use strict";i("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("d3b7"),i("159b");var n={props:{platformClassification:{type:Array,default:function(){return[]}},form:{type:Object,default:function(){return{}}}},data:function(){return{value:"",formData:this.form}},watch:{formData:{handler:function(e){this.$emit("input",e)},deep:!0},form:{handler:function(e){this.formData=e},deep:!0}},created:function(){var e=this;this.platformClassification.forEach((function(t){t.inforValue&&e.$emit("formInitData",t.inforValue,t.model)}))},methods:{selectItem:function(e){e.jumpLogic?this.$emit("handleJumpLogic",e):this.$emit("handleSelectItem",e)},radioChange:function(e,t){this.$emit("radioChange",e.detail.value,t)},switchChange:function(e,t){this.$emit("switchChange",e.detail.value,t)},selectRadio:function(e){e.select=!e.select},checkChange:function(e,t){this.$emit("checkChange",e.detail.value,t)}}};t.default=n},d6ab:function(e,t,i){"use strict";i.r(t);var n=i("c393"),a=i.n(n);for(var c in n)["default"].indexOf(c)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(c);t["default"]=a.a},eddf:function(e,t,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(i("5530"));i("4de4"),i("d3b7"),i("99af"),i("159b"),i("14d9");i("f89e");var c=n(i("ea37")),l=n(i("41da")),s=i("fe63"),o={components:{search:c.default,selectForm:l.default},data:function(){return{allSelect:!1,administrationFlag:!1,selectNum:0,mer_id:"",where:{page:1,limit:999},selectFormList:[]}},watch:{selectFormList:{handler:function(e){this.selectNum=e.filter((function(e){return e.select})).length,this.selectNum==e.length?this.allSelect=!0:this.allSelect=!1},deep:!0}},onLoad:function(e){this.mer_id=e.mer_id,this.getSpecList("")},methods:{handleJumpLogic:function(e){uni.navigateTo({url:"/pages/product/addGoods/specificationProperties?mer_id=".concat(e.mer_id,"&template_id=").concat(e.attr_template_id)})},newSpecifications:function(){uni.navigateTo({url:"/pages/product/addGoods/specificationProperties?mer_id=".concat(this.mer_id)})},selectAll:function(){var e=this;this.allSelect=!this.allSelect,this.allSelect?this.selectFormList.forEach((function(t){e.$set(t,"select",!0)})):this.selectFormList.forEach((function(t){e.$set(t,"select")}))},handleAdministration:function(){var e=this;this.administrationFlag=!this.administrationFlag,this.administrationFlag?this.selectFormList.forEach((function(t){e.$set(t,"select",!1)})):this.selectFormList.forEach((function(t){e.$delete(t,"select")}))},subDel:function(){var e=this,t=[];if(e.selectFormList.forEach((function(e){e.select&&t.push(e.attr_template_id)})),0==t.length)return e.$util.Tips({title:"请选择规格"});(0,s.specificationDel)(e.mer_id,{ids:t}).then((function(t){e.$util.Tips({title:t.message,icon:"success"}),e.where.page=1,e.selectFormList=[],e.getSpecList("")})).catch((function(t){return e.$util.Tips({title:t})}))},getSpecList:function(e){var t=this;uni.showLoading({title:"加载中",mask:!0}),(0,s.specificationLst)(t.mer_id,(0,a.default)((0,a.default)({},t.where),{},{keyword:e})).then((function(e){uni.hideLoading(),t.selectFormList=e.data.list,t.selectFormList.forEach((function(e,i){t.$set(e,"label",e.template_name),t.$set(e,"id",e.attr_template_id),t.$set(e,"mer_id",e.mer_id),t.$set(e,"jumpLogic",!0),t.$set(e,"type","select"),t.$set(e,"select",!1),t.administrationFlag||t.$delete(e,"select")}))}),(function(e){t.$util.Tips({title:e.msg})}))}}};t.default=o}}]);