chunk-5825e357.6a8946c1.js 2.9 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5825e357"],{"6d3c":function(t,e,n){"use strict";n.d(e,"f",(function(){return r})),n.d(e,"e",(function(){return a})),n.d(e,"d",(function(){return u})),n.d(e,"a",(function(){return c})),n.d(e,"h",(function(){return i})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return d})),n.d(e,"g",(function(){return l})),n.d(e,"i",(function(){return f}));var o=n("9550");function r(t){return Object(o["a"])({url:"orders",method:"get",params:t})}function a(t){return Object(o["a"])({url:"orders/".concat(t),method:"get"})}function u(t){return Object(o["a"])({url:"orders/".concat(t),method:"delete"})}function c(t,e){return Object(o["a"])({url:"orders/".concat(t,"/allot"),method:"post",data:e})}function i(t,e){return Object(o["a"])({url:"orders/".concat(t,"/allot"),method:"put",data:e})}function s(t,e){return Object(o["a"])({url:"orders/".concat(t,"/check"),method:"post",data:e})}function d(t){return Object(o["a"])({url:"orders/".concat(t,"/complete"),method:"post"})}function l(t,e){return Object(o["a"])({url:"orders/".concat(t,"/issue"),method:"post",data:e})}function f(t,e){return Object(o["a"])({url:"orders/".concat(t,"/suspend"),method:"post",data:e})}},aebe:function(t,e,n){"use strict";var o="Servicer-Storage";e["a"]={get:function(t){var e=window.localStorage.getItem(o+"_"+t);return e?window.JSON.parse(e):""},set:function(t,e){window.localStorage.setItem(o+"_"+t,window.JSON.stringify(e))},del:function(t,e){window.localStorage.removeItem(o+"_"+t)}}},d19d:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t._self._c;return e("div",[e("van-nav-bar",{staticClass:"shadow",attrs:{title:"维修待定","left-text":"返回","left-arrow":""},on:{"click-left":function(e){return t.$router.back(-1)}}}),e("van-form",{staticClass:"w-11/12 mx-auto mt-4",on:{submit:t.onSubmit}},[e("div",{staticClass:"bg-white shadow"},[e("van-field",{attrs:{rows:"3",autosize:"",type:"textarea",maxlength:"300",placeholder:"请输入待定原因","show-word-limit":""},model:{value:t.revokeForm.content,callback:function(e){t.$set(t.revokeForm,"content",e)},expression:"revokeForm.content"}})],1),e("div",{staticClass:"mt-8"},[e("van-button",{attrs:{loading:t.submitLoading,block:"",type:"info","loading-text":"加载中...","native-type":"submit"}},[t._v("确认提交")])],1)])],1)},r=[],a=(n("7bb1"),n("6d3c")),u=n("aebe"),c={data:function(){return{revokeForm:{},id:0,submitLoading:!1}},created:function(){this.$route.params&&this.$route.params.id&&(this.id=this.$route.params.id)},methods:{onSubmit:function(){var t=this;this.submitLoading=!0,Object(a["i"])(this.id,this.revokeForm).then((function(){u["a"].set("updateOrderID",t.id),t.$toast.success({message:"操作成功",duration:1e3,onClose:function(){t.$router.push({path:"/orders"})}})})).catch((function(){t.submitLoading=!1}))}}},i=c,s=n("e607"),d=Object(s["a"])(i,o,r,!1,null,null,null);e["default"]=d.exports}}]);