(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-538b1c62"],{"05c4":function(e,t,r){"use strict";r("d86a")},"468f":function(e,t,r){"use strict";r.d(t,"k",(function(){return o})),r.d(t,"h",(function(){return u})),r.d(t,"a",(function(){return s})),r.d(t,"l",(function(){return i})),r.d(t,"b",(function(){return l})),r.d(t,"i",(function(){return a})),r.d(t,"f",(function(){return c})),r.d(t,"j",(function(){return d})),r.d(t,"d",(function(){return f})),r.d(t,"e",(function(){return m})),r.d(t,"c",(function(){return b})),r.d(t,"g",(function(){return h}));var n=r("b775");function o(e){return Object(n["a"])({url:"/system/Order/list",method:"get",params:e})}function u(e){return Object(n["a"])({url:"/system/Order/"+e,method:"get"})}function s(e){return Object(n["a"])({url:"/system/Order",method:"post",data:e})}function i(e){return Object(n["a"])({url:"/system/Order",method:"put",data:e})}function l(e){return Object(n["a"])({url:"/system/Order/"+e,method:"delete"})}function a(e){return Object(n["a"])({url:"/system/Order/receive-records/"+e,method:"get"})}function c(){return Object(n["a"])({url:"/system/QuoteType/goodsDataList",method:"get"})}function d(e){return Object(n["a"])({url:"/system/transfer/getUsersDataList/"+e,method:"get"})}function f(e){return Object(n["a"])({url:"/system/Order/call-records/"+e,method:"get"})}function m(e){return Object(n["a"])({url:"/system/Order/comment-records/"+e,method:"get"})}function b(e){return Object(n["a"])({url:"/system/Order/audio-records/"+e,method:"get"})}function h(e){return Object(n["a"])({url:"/system/Order/notify-records/"+e,method:"get"})}},"908a":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{attrs:{title:e.title,visible:e.visible,width:"30%","before-close":e.handleClose,"append-to-body":""},on:{"update:visible":function(t){return e.$emit("update:visible",t)}}},[r("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[r("el-form-item",{attrs:{label:e.label,prop:"value"}},[r("el-input",{attrs:{placeholder:"请输入"+e.label},model:{value:e.form.value,callback:function(t){e.$set(e.form,"value",t)},expression:"form.value"}})],1)],1),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleClose}},[e._v("取 消")]),r("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")])],1)],1)},o=[],u=r("ade3"),s=r("2909"),i=(r("99af"),r("468f")),l={name:"EditInfo",props:{visible:{type:Boolean,default:!1},title:{type:String,required:!0},label:{type:String,required:!0},value:{type:String,default:""},orderInfo:{type:Object,default:function(){return{}}}},data:function(){return{form:{value:""}}},computed:{rules:function(){return{value:[{required:!0,message:this.label+"不能为空",trigger:"blur"}].concat(Object(s["a"])("电话"===this.label?[{pattern:/^1[3-9]\d{9}$/,message:"请输入正确的手机号码",trigger:"blur"}]:[]))}}},watch:{visible:function(e){e&&(this.form.value=this.value)}},methods:{submitForm:function(){var e=this;this.$refs.form.validate((function(t){if(t)if(e.orderInfo){var r=Object(u["a"])({id:e.orderInfo.id},"姓名"===e.label?"name":"phone",e.form.value);Object(i["l"])(r).then((function(t){e.$modal.msgSuccess("修改成功"),e.$emit("success",e.form.value),e.handleClose()}))}else e.$emit("success",e.form.value),e.handleClose()}))},handleClose:function(){this.$refs.form.resetFields(),this.$emit("update:visible",!1)}}},a=l,c=(r("05c4"),r("2877")),d=Object(c["a"])(a,n,o,!1,null,"10159096",null);t["default"]=d.exports},d86a:function(e,t,r){}}]);