You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
3.8 KiB
1 lines
3.8 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["technician/pages/order/label"],{"0316":function(e,t,n){"use strict";var r=n("c6fa"),i=n.n(r);i.a},"0fed":function(e,t,n){"use strict";n.r(t);var r=n("6735"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},"1e8d":function(e,t,n){"use strict";(function(e,t){var r=n("47a9");n("7043");r(n("3240"));var i=r(n("b4c3"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},6735:function(e,t,n){"use strict";var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("7eb4")),a=r(n("7ca3")),c=r(n("ee10")),o=n("8f59");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s={data:function(){return{options:{},base_label:[],check_label:[]}},computed:(0,o.mapState)({primaryColor:function(e){return e.config.configInfo.primaryColor},subColor:function(e){return e.config.configInfo.subColor}}),onLoad:function(e){var t=this;return(0,c.default)(i.default.mark((function n(){return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:t.options=e,t.$util.setNavigationBarColor({bg:t.primaryColor}),t.initIndex();case 3:case"end":return n.stop()}}),n)})))()},methods:l(l({},(0,o.mapActions)([])),{},{initIndex:function(){var e=this;return(0,c.default)(i.default.mark((function t(){var n;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$api.technician.labelList();case 2:n=t.sent,n.map((function(e){e.selected=0})),e.base_label=n;case 5:case"end":return t.stop()}}),t)})))()},toAddDel:function(e,t){var n=this.$util.deepCopy(this.base_label);if(1!=e){var r=this.$util.deepCopy(this.check_label),i=r[t].id,a=n.findIndex((function(e){return e.id==i}));n[a].is_select=0,this.base_label=n,r.splice(t,1),this.check_label=r}else{var c=n[t].is_select;if(1==c)return;n[t].is_select=1,this.base_label=n;var o=n.filter((function(e){return 1==e.is_select}));this.check_label=o}},submitForm:function(){var e=this;return(0,c.default)(i.default.mark((function t(){var n,r,a,c,o;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.check_label.map((function(e){return e.id})),0!=n.length){t.next=4;break}return e.$util.showToast({title:"请选中标签"}),t.abrupt("return");case 4:return r=e.options,a=r.id,c=r.uid,o={order_id:a,user_id:c,label:n},e.$util.showLoading(),t.next=9,e.$api.technician.userLabelAdd(o);case 9:e.$util.hideAll(),e.$util.showToast({title:"评价成功"}),e.$util.back(),setTimeout((function(){e.$util.goUrl({url:1,openType:"navigateBack"})}),1e3);case 13:case"end":return t.stop()}}),t)})))()}})};t.default=s},7441:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){}));var r=function(){var e=this.$createElement,t=(this._self._c,this.base_label.length),n=this.check_label.length;this.$mp.data=Object.assign({},{$root:{g0:t,g1:n}})},i=[]},b4c3:function(e,t,n){"use strict";n.r(t);var r=n("7441"),i=n("0fed");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("0316");var c=n("828b"),o=Object(c["a"])(i["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);t["default"]=o.exports},c6fa:function(e,t,n){}},[["1e8d","common/runtime","common/vendor"]]]); |