text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-subpage-machineCallback-machineCallback"],{3106:function(t,e,a){"use strict";var n=a("74af"),i=a.n(n);i.a},"38e0":function(t,e,a){"use strict";var n=a("4ea4");a("4de4"),a("d81d"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("96cf");var i=n(a("1da1")),c={data:function(){return{callbackInfo:{},callbackSnData:[],superiorName:{},allChecked:!1}},onLoad:function(t){this.callbackInfo=JSON.parse(t.callbackInfo),this.getCallbackSnData(),this.getCallbackSuperior()},methods:{getCallbackSnData:function(){var t=this;return(0,i.default)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$u.api.getCallbackSnData({cate_id:t.callbackInfo.id});case 2:a=e.sent,a.data.map((function(t){t.checked=!1})),t.callbackSnData=a.data;case 5:case"end":return e.stop()}}),e)})))()},getCallbackSuperior:function(){var t=this;return(0,i.default)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$u.api.getCallbackSuperior();case 2:a=e.sent,t.superiorName=a.data[0];case 4:case"end":return e.stop()}}),e)})))()},itemCheckbox:function(t){var e=this.callbackSnData;e[t].checked=!e[t].checked;var a=e.filter((function(t){return t.checked}));a.length>0&&a.length===e.length?this.allChecked=!0:this.allChecked=!1},checkedAll:function(){var t=this;this.allChecked=!this.allChecked;var e=this.callbackSnData;e.map((function(e){e.checked=t.allChecked}))},handleNextStep:function(){var t={},e=this.callbackSnData.filter((function(t){return t.checked}));t.sn=e,t.totals=e.length,t.agentInfo=this.superiorName,uni.navigateTo({url:"/pages/index/subpage/confirmCallback/confirmCallback?infoData="+encodeURIComponent(JSON.stringify(t))})}}};e.default=c},"3ed0":function(t,e,a){"use strict";a.r(e);var n=a("38e0"),i=a.n(n);for(var c in n)"default"!==c&&function(t){a.d(e,t,(function(){return n[t]}))}(c);e["default"]=i.a},5949:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,"uni-page-body[data-v-a892a80a],\r\nbody[data-v-a892a80a]{background-color:#f5f6f9}body.?%PAGE?%[data-v-a892a80a]{background-color:#f5f6f9}",""]),t.exports=e},"5e89":function(t,e,a){"use strict";a("d81d"),a("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"u-checkbox",props:{name:{type:[String,Number],default:""},shape:{type:String,default:""},value:{type:Boolean,default:!1},disabled:{type:[String,Boolean],default:""},labelDisabled:{type:[String,Boolean],default:""},activeColor:{type:String,default:""},iconSize:{type:[String,Number],default:""},labelSize:{type:[String,Number],default:""},size:{type:[String,Number],default:""}},data:function(){return{parentDisabled:!1,newParams:{}}},created:function(){this.parent=this.$u.$parent.call(this,"u-checkbox-group"),this.parent&&this.parent.children.push(this)},computed:{isDisabled:function(){return""!==this.disabled?this.disabled:!!this.parent&&this.parent.disabled},isLabelDisabled:function(){return""!==this.labelDisabled?this.labelDisabled:!!this.parent&&this.parent.labelDisabled},checkboxSize:function(){return this.size?this.size:this.parent?this.parent.size:34},checkboxIconSize:function(){return this.iconSize?this.iconSize:this.parent?this.parent.iconSize:20},elActiveColor:function(){return this.activeColor?this.activeColor:this.parent?this.parent.activeColor:"primary"},elShape:function(){return this.shape?this.shape:this.parent?this.parent.shape:"square"},iconStyle:function(){var t={};return this.elActiveColor&&this.value&&!this.isDisabled&&(t.borderColor=this.elActiveColor,t.backgroundColor=this.elActiveColor),t.width=this.$u.addUnit(this.checkboxSize),t.height=this.$u.addUnit(this.checkboxSize),t},iconColor:function(){return this.value?"#ffffff":"transparent"},iconClass:function(){var t=[];return t.push("u-checkbox__icon-wrap--"+this.elShape),1==this.value&&t.push("u-checkbox__icon-wrap--checked"),this.isDisabled&&t.push("u-checkbox__icon-wrap--disabled"),this.value&&this.isDisabled&&t.push("u-checkbox__icon-wrap--disabled--checked"),t.join(" ")},checkboxStyle:function(){var t={};return this.parent&&this.parent.width&&(t.width=this.parent.width,t.flex="0 0 ".concat(this.parent.width)),this.parent&&this.parent.wrap&&(t.width="100%",t.flex="0 0 100%"),t}},methods:{onClickLabel:function(){this.isLabelDisabled||this.isDisabled||this.setValue()},toggle:function(){this.isDisabled||this.setValue()},emitEvent:function(){var t=this;this.$emit("change",{value:!this.value,name:this.name}),setTimeout((function(){t.parent&&t.parent.emitEvent&&t.parent.emitEvent()}),80)},setValue:function(){var t=0;if(this.parent&&this.parent.children&&this.parent.children.map((function(e){e.value&&t++})),1==this.value)this.emitEvent(),this.$emit("input",!this.value);else{if(this.parent&&t>=this.parent.max)return this.$u.toast("最多可选".concat(this.parent.max,"项"));this.emitEvent(),this.$emit("input",!this.value)}}}};e.default=n},"63d0":function(t,e,a){"use strict";var n=a("a9fa"),i=a.n(n);i.a},6799:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return c})),a.d(e,"a",(function(){return n}));var n={uCheckbox:a("d99c").default},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[a("v-uni-view",{staticClass:"content_top u-flex"},[a("v-uni-view",{staticClass:"top_img"},[a("v-uni-image",{attrs:{src:t.callbackInfo.img}})],1),a("v-uni-view",{staticClass:"top_info"},[a("v-uni-view",{staticClass:"item_info"},[t._v("机具型号:"),a("v-uni-text",{staticClass:"active"},[t._v(t._s(t.callbackInfo.model))])],1),a("v-uni-view",{staticClass:"item_info"},[t._v("当前库存:"),a("v-uni-text",{staticClass:"active"},[t._v(t._s(t.callbackSnData.length))])],1)],1)],1),a("v-uni-view",{staticClass:"content_main"},[a("v-uni-view",{staticClass:"item_main u-flex"},[a("v-uni-view",{staticClass:"item_title"},[t._v("回拨上级")]),t.superiorName.name?a("v-uni-view",{staticClass:"item_name",staticStyle:{color:"#232529"}},[t._v(t._s(t.superiorName.name))]):a("v-uni-view",{staticClass:"item_name"},[t._v("已是一级代理商无需回拨")])],1),a("v-uni-view",{staticClass:"line"})],1),t.callbackSnData.length&&t.superiorName.name?a("v-uni-view",{staticClass:"select_all u-flex u-row-between"},[a("v-uni-view",{staticClass:"select_item"},[a("v-uni-view",{staticClass:"item_title"},[t._v("请选择需要回拨的SN")])],1),a("v-uni-view",{staticClass:"select_item2"},[a("u-checkbox",{attrs:{shape:"circle"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.checkedAll.apply(void 0,arguments)}},model:{value:t.allChecked,callback:function(e){t.allChecked=e},expression:"allChecked"}},[t._v("全选")])],1)],1):t._e(),t.callbackSnData.length&&t.superiorName.name?a("v-uni-view",{staticClass:"sn_checkbox"},[a("v-uni-view",t._l(t.callbackSnData,(function(e,n){return a("v-uni-view",{key:n,staticClass:"sn_checkbox_item"},[a("v-uni-view",[a("v-uni-view",{staticClass:"sn"},[t._v("sn: "+t._s(e.sn))])],1),a("v-uni-view",[a("u-checkbox",{attrs:{shape:"circle"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.itemCheckbox(n)}},model:{value:e.checked,callback:function(a){t.$set(e,"checked",a)},expression:"item.checked"}})],1)],1)})),1)],1):t._e(),t.superiorName.name?a("v-uni-view",{staticClass:"confirm-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleNextStep.apply(void 0,arguments)}}},[t._v("下一步")]):t._e()],1)},c=[]},"74af":function(t,e,a){var n=a("a398");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("519aa8b6",n,!0,{sourceMap:!1,shadowMode:!1})},"7db7":function(t,e,a){"use strict";a.r(e);var n=a("6799"),i=a("3ed0");for(var c in i)"default"!==c&&function(t){a.d(e,t,(function(){return i[t]}))}(c);a("63d0"),a("a490");var r,o=a("f0c5"),s=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"a892a80a",null,!1,n["a"],r);e["default"]=s.exports},a398:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.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/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.u-checkbox[data-v-e0fd4f24]{display:inline-flex;align-items:center;overflow:hidden;-webkit-user-select:none;user-select:none;line-height:1.8}.u-checkbox__icon-wrap[data-v-e0fd4f24]{color:#606266;flex:none;display:-webkit-flex;\r\ndisplay:flex;flex-direction:row;\r\nalign-items:center;justify-content:center;box-sizing:border-box;width:%?42?%;height:%?42?%;color:transparent;text-align:center;transition-property:color,border-color,background-color;font-size:20px;border:1px solid #c8c9cc;transition-duration:.2s}.u-checkbox__icon-wrap--circle[data-v-e0fd4f24]{border-radius:100%}.u-checkbox__icon-wrap--square[data-v-e0fd4f24]{border-radius:%?6?%}.u-checkbox__icon-wrap--checked[data-v-e0fd4f24]{color:#fff;background-color:#2979ff;border-color:#2979ff}.u-checkbox__icon-wrap--disabled[data-v-e0fd4f24]{background-color:#ebedf0;border-color:#c8c9cc}.u-checkbox__icon-wrap--disabled--checked[data-v-e0fd4f24]{color:#c8c9cc!important}.u-checkbox__label[data-v-e0fd4f24]{word-wrap:break-word;margin-left:%?10?%;margin-right:%?24?%;color:#606266;font-size:%?30?%}.u-checkbox__label--disabled[data-v-e0fd4f24]{color:#c8c9cc}',""]),t.exports=e},a490:function(t,e,a){"use strict";var n=a("b546"),i=a.n(n);i.a},a9fa:function(t,e,a){var n=a("5949");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("9598a75c",n,!0,{sourceMap:!1,shadowMode:!1})},b322:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return c})),a.d(e,"a",(function(){return n}));var n={uIcon:a("09a3").default},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"u-checkbox",style:[t.checkboxStyle]},[a("v-uni-view",{staticClass:"u-checkbox__icon-wrap",class:[t.iconClass],style:[t.iconStyle],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggle.apply(void 0,arguments)}}},[a("u-icon",{staticClass:"u-checkbox__icon-wrap__icon",attrs:{name:"checkbox-mark",size:t.checkboxIconSize,color:t.iconColor}})],1),a("v-uni-view",{staticClass:"u-checkbox__label",style:{fontSize:t.$u.addUnit(t.labelSize)},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClickLabel.apply(void 0,arguments)}}},[t._t("default")],2)],1)},c=[]},b546:function(t,e,a){var n=a("cdb0");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("8718cffa",n,!0,{sourceMap:!1,shadowMode:!1})},cdb0:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.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/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.content_top[data-v-a892a80a],\r\n.content_main[data-v-a892a80a]{margin:%?20?% %?24?%;background-color:#fff;padding:%?26?% %?24?%;border-radius:%?16?%}.content_top .top_img[data-v-a892a80a],\r\n.content_main .top_img[data-v-a892a80a]{margin-right:%?22?%;flex:2}.content_top .top_img uni-image[data-v-a892a80a],\r\n.content_main .top_img uni-image[data-v-a892a80a]{width:%?160?%;height:%?160?%}.content_top .top_info[data-v-a892a80a],\r\n.content_main .top_info[data-v-a892a80a]{flex:5}.content_top .top_info .item_info[data-v-a892a80a],\r\n.content_main .top_info .item_info[data-v-a892a80a]{font-size:%?28?%;font-weight:700;color:#939599;margin-bottom:%?15?%}.content_top .top_info .active[data-v-a892a80a],\r\n.content_main .top_info .active[data-v-a892a80a]{color:#232529;margin-left:%?12?%}.content_top .line[data-v-a892a80a],\r\n.content_main .line[data-v-a892a80a]{height:%?2?%;background:#e3e5e9;margin-top:%?15?%}.content_top .item_main[data-v-a892a80a],\r\n.content_main .item_main[data-v-a892a80a]{height:%?60?%}.content_top .item_main .item_title[data-v-a892a80a],\r\n.content_main .item_main .item_title[data-v-a892a80a]{flex:2;font-size:%?28?%;font-weight:700;color:#232529;height:100%;line-height:%?60?%}.content_top .item_main .item_name[data-v-a892a80a],\r\n.content_main .item_main .item_name[data-v-a892a80a]{flex:5;font-size:%?28?%;font-weight:500;color:#939599;height:100%;line-height:%?60?%}.select_all[data-v-a892a80a]{margin:%?20?% %?24?%;font-size:%?26?%;background:#fff;height:%?80?%;line-height:%?80?%;padding:%?26?% %?24?%;border-radius:%?16?%}.select_all .select_item .item_title[data-v-a892a80a]{font-size:%?30?%;font-weight:700;color:#232529}.select_all .select_item .item_num[data-v-a892a80a]{font-size:%?24?%;font-weight:500;color:#939599}.select_title[data-v-a892a80a]{margin:%?20?% %?24?%;font-size:%?36?%;font-weight:700;color:#232529}.sn_checkbox[data-v-a892a80a]{margin:%?20?% %?24?%;height:%?400?%;overflow:auto;border-radius:%?10?%;background:#fff;padding-left:%?30?%}.sn_checkbox .sn_checkbox_item[data-v-a892a80a]{display:flex;height:%?80?%;justify-content:space-between;align-items:center}.confirm-btn[data-v-a892a80a]{margin-top:%?64?%;margin:%?64?% %?24?% %?20?% %?24?%;height:%?88?%;background:#f51423;border-radius:%?44?%;text-align:center;line-height:%?88?%;font-size:%?34?%;font-weight:500;color:#fff}',""]),t.exports=e},d99c:function(t,e,a){"use strict";a.r(e);var n=a("b322"),i=a("f5aa");for(var c in i)"default"!==c&&function(t){a.d(e,t,(function(){return i[t]}))}(c);a("3106");var r,o=a("f0c5"),s=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"e0fd4f24",null,!1,n["a"],r);e["default"]=s.exports},f5aa:function(t,e,a){"use strict";a.r(e);var n=a("5e89"),i=a.n(n);for(var c in n)"default"!==c&&function(t){a.d(e,t,(function(){return n[t]}))}(c);e["default"]=i.a}}]);