1 line
15 KiB
JavaScript
1 line
15 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-product-addGoods-freightTemplate"],{3108:function(e,t,i){"use strict";i.r(t);var n=i("b5437"),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},"3d51":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.getShippingList.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("v-uni-view",[e.selectFormList.length?i("v-uni-view",[i("select-form",{attrs:{platformClassification:e.selectFormList},on:{handleJumpLogic:function(t){arguments[0]=t=e.$handleEvent(t),e.handleJumpLogic.apply(void 0,arguments)}}})],1):e._e()],1),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=[]},"51c2":function(e,t,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(i("9b1b"));i("8f71"),i("bf0f"),i("2797"),i("c223"),i("aa9c");i("c25d");var c=n(i("4c4c")),s=n(i("eea6")),l=i("12ea"),o={components:{search:c.default,selectForm:s.default},data:function(){return{mer_id:"",allSelect:!1,administrationFlag:!1,selectNum:0,loaded:!1,loading:!1,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},onShow:function(){this.getShippingList("")},onReachBottom:function(){this.getShippingList("")},methods:{getShippingList:function(e){var t=this;uni.showLoading({title:"加载中",mask:!0}),(0,l.templateList)(t.mer_id,(0,a.default)((0,a.default)({},t.where),{},{name:e})).then((function(e){uni.hideLoading(),t.selectFormList=e.data.list,t.selectFormList.length>0&&e.data.list.forEach((function(e){t.$set(e,"type","select"),t.$set(e,"label",e.name),t.$set(e,"jumpLogic",!0),t.$set(e,"select",!1),t.administrationFlag||t.$delete(e,"select")}))}),(function(e){t.$util.Tips({title:e.msg})}))},handleJumpLogic:function(e){uni.navigateTo({url:"/pages/product/addGoods/addFreightTemplate?mer_id=".concat(this.mer_id,"&shipping_id=").concat(e.shipping_template_id)})},newSpecifications:function(){uni.navigateTo({url:"/pages/product/addGoods/addFreightTemplate?mer_id=".concat(this.mer_id)})},subDel:function(){var e=this,t=[];if(e.selectFormList.forEach((function(e){e.select&&t.push(e.shipping_template_id)})),0==t.length)return e.$util.Tips({title:"请选择规格"});(0,l.templateDelete)(e.mer_id,{ids:t}).then((function(t){e.$util.Tips({title:t.message,icon:"success"}),e.where.page=1,e.selectFormList=[],e.getShippingList("")})).catch((function(t){return e.$util.Tips({title:t})}))},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",!1)}))},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")}))}}};t.default=o},"6b9e":function(e,t,i){var n=i("8018");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("967d").default;a("4a56bb32",n,!0,{sourceMap:!1,shadowMode:!1})},8018:function(e,t,i){var n=i("c86c");t=n(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.container[data-v-373f7ce8]{padding-bottom:%?150?%}.title[data-v-373f7ce8]{background:#fff;display:flex;align-items:center;justify-content:space-between;padding:%?30?% %?40?% %?30?% %?35?%}.title .search_box[data-v-373f7ce8]{flex:1;margin-right:%?35?%}.administration[data-v-373f7ce8]{color:#000;font-size:%?30?%}.handle[data-v-373f7ce8]{position:fixed;left:0;bottom:0;display:flex;align-items:center;justify-content:center;width:%?750?%;height:%?126?%;background:#fff}.handle_button[data-v-373f7ce8]{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-373f7ce8]{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-373f7ce8]:nth-child(1){display:flex;align-items:center}.finish > uni-view:nth-child(1) > span[data-v-373f7ce8]: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-373f7ce8]: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-373f7ce8]{background:#e93323;border:none!important}.select .iconfont[data-v-373f7ce8]{color:#fff;font-size:%?24?%}',""]),e.exports=t},"806d":function(e,t,i){var n=i("fa82");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("967d").default;a("0bf659b8",n,!0,{sourceMap:!1,shadowMode:!1})},"88b8":function(e,t,i){"use strict";var n=i("6b9e"),a=i.n(n);a.a},b285:function(e,t,i){"use strict";i.r(t);var n=i("3d51"),a=i("cb89");for(var c in a)["default"].indexOf(c)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(c);i("88b8");var s=i("828b"),l=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"373f7ce8",null,!1,n["a"],void 0);t["default"]=l.exports},b5437:function(e,t,i){"use strict";i("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("bf0f"),i("2797");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},baa4: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?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(),"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=[]},cb89:function(e,t,i){"use strict";i.r(t);var n=i("51c2"),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},d67a:function(e,t,i){"use strict";var n=i("806d"),a=i.n(n);a.a},eea6:function(e,t,i){"use strict";i.r(t);var n=i("baa4"),a=i("3108");for(var c in a)["default"].indexOf(c)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(c);i("d67a");var s=i("828b"),l=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"4e6351e8",null,!1,n["a"],void 0);t["default"]=l.exports},fa82:function(e,t,i){var n=i("c86c");t=n(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.container_input[data-v-4e6351e8]{background:#fff;padding:0 %?20?%;width:%?710?%;margin:auto;margin-top:%?31?%;border-radius:%?10?%}.container_input_item .select_and_input[data-v-4e6351e8]{height:%?106?%;display:flex;align-items:center;justify-content:space-between}.container_input_item .select_and_input .greyColor[data-v-4e6351e8]{color:#bbb}.container_input_item .radio[data-v-4e6351e8]{padding:%?30?% 0}.container_input_item_label[data-v-4e6351e8]{padding-left:%?10?%;color:#333;font-size:%?30?%;display:flex;align-items:center}.container_input_item_label .select_label[data-v-4e6351e8]{max-width:%?520?%}.container_input_item_label .select_check[data-v-4e6351e8]{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-4e6351e8]{font-size:%?24?%}.container_input_item_label .select[data-v-4e6351e8]{background:#e93323;border:none}.container_input_item_label .select .iconfont[data-v-4e6351e8]{color:#fff}.container_input_item_value[data-v-4e6351e8]{padding-right:%?10?%;flex:1;display:flex;align-items:center;justify-content:flex-end}.container_input_item_value > span[data-v-4e6351e8]:nth-child(1){display:inline-block;margin-right:%?15?%}.container_input_item_value .text[data-v-4e6351e8]{color:#000;display:inline-block;max-width:%?400?%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.container_input_item_value uni-input[data-v-4e6351e8]{text-align:right}.container_input_item_value .select_group[data-v-4e6351e8]{display:flex}.container_input_item_value_select[data-v-4e6351e8]{display:flex;margin-right:%?110?%}.container_input_item .flex_start[data-v-4e6351e8]{padding:0 %?10?%;margin-top:%?40?%;justify-content:flex-start}.container_input > uni-view[data-v-4e6351e8]:not(:last-child){border-bottom:1px solid #eee}.inputPlaceHolder[data-v-4e6351e8]{color:#bbb}',""]),e.exports=t}}]); |