require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods/service_record/index"],{"0d02":function(e,t,n){"use strict";var r=n("3898"),o=n.n(r);o.a},3898:function(e,t,n){},"41cf":function(e,t,n){"use strict";(function(e,t){var r=n("47a9");n("1d3c");r(n("3240"));var o=r(n("b57f1"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"894a":function(e,t,n){"use strict";n.r(t);var r=n("f34d"),o=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t["default"]=o.a},b57f1:function(e,t,n){"use strict";n.r(t);var r=n("d0f3"),o=n("894a");for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);n("0d02");var a=n("828b"),c=Object(a["a"])(o["default"],r["b"],r["c"],!1,null,"43a9319e",null,!1,r["a"],void 0);t["default"]=c.exports},d0f3:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){}));var r=function(){var e=this.$createElement,t=(this._self._c,this.serviceEvidenceForm.length);this.$mp.data=Object.assign({},{$root:{g0:t}})},o=[]},f34d:function(e,t,n){"use strict";(function(e){var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("7eb4")),i=r(n("ee10")),a=n("6009"),c=getApp(),u={components:{SystemFrom:function(){Promise.all([n.e("common/vendor"),n.e("pages/goods/components/systemFrom/index")]).then(function(){return resolve(n("eafc"))}.bind(null,n)).catch(n.oe)},BottomButton:function(){n.e("components/bottomButton/index").then(function(){return resolve(n("e6ad"))}.bind(null,n)).catch(n.oe)}},data:function(){return{theme:c.globalData.theme,merId:null,formId:null,workOrderNo:null,orderInfo:null,checkinConfig:null,isScroll:!1,serviceEvidenceForm:[]}},computed:{},onPageScroll:function(e){this.isScroll=e.scrollTop>5},onLoad:function(e){this.workOrderNo=e.workOrderNo,this.handleGetWorkOrderDetail()},methods:{handleGetWorkOrderDetail:function(){var e=this;return(0,i.default)(o.default.mark((function t(){var n,r;return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,a.serviceFormInfoApi)();case 2:n=t.sent,r=n.data,e.serviceEvidenceForm=r.formValue?e.$util.objToArr(JSON.parse(r.formValue)):[],e.$nextTick((function(){e.serviceEvidenceForm.length&&e.$refs.systemFromRef.getFormList(1)}));case 6:case"end":return t.stop()}}),t)})))()},handleConfirm:function(){var t=this;return(0,i.default)(o.default.mark((function n(){var r;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.$refs.systemFromRef.getSubmitFromData(1);case 2:if(r=n.sent,r.length){n.next=5;break}return n.abrupt("return");case 5:return e.showLoading({mask:!0}),n.prev=6,n.next=9,(0,a.serviceEvidenceApi)({workOrderNo:t.workOrderNo,serviceEvidenceForm:JSON.stringify(r)});case 9:e.hideLoading(),t.$util.Tips({title:"提交成功",icon:"success"}),setTimeout((function(){t.$util.navigateTo("/pages/admin/workOrder_manage/workOrder_detail?workOrderNo=".concat(t.workOrderNo))}),1e3),n.next=18;break;case 14:n.prev=14,n.t0=n["catch"](6),e.hideLoading(),t.$util.Tips({title:n.t0,icon:"none"});case 18:case"end":return n.stop()}}),n,null,[[6,14]])})))()}}};t.default=u}).call(this,n("df3c")["default"])}},[["41cf","common/runtime","common/vendor"]]]);