webpackJsonp([76],{"1zVV":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={data:function(){return{visible:!1,dataForm:{id:0,orderId:"",operateMan:"",createTime:"",orderStatus:"",note:""},dataRule:{orderId:[{required:!0,message:"订单id不能为空",trigger:"blur"}],operateMan:[{required:!0,message:"操作人[用户；系统；后台管理员]不能为空",trigger:"blur"}],createTime:[{required:!0,message:"操作时间不能为空",trigger:"blur"}],orderStatus:[{required:!0,message:"订单状态【0->待付款；1->待发货；2->已发货；3->已完成；4->已关闭；5->无效订单】不能为空",trigger:"blur"}],note:[{required:!0,message:"备注不能为空",trigger:"blur"}]}}},methods:{init:function(e){var t=this;this.dataForm.id=e||0,this.visible=!0,this.$nextTick(function(){t.$refs.dataForm.resetFields(),t.dataForm.id&&t.$http({url:t.$http.adornUrl("/order/orderoperatehistory/info/"+t.dataForm.id),method:"get",params:t.$http.adornParams()}).then(function(e){var r=e.data;r&&0===r.code&&(t.dataForm.orderId=r.orderOperateHistory.orderId,t.dataForm.operateMan=r.orderOperateHistory.operateMan,t.dataForm.createTime=r.orderOperateHistory.createTime,t.dataForm.orderStatus=r.orderOperateHistory.orderStatus,t.dataForm.note=r.orderOperateHistory.note)})})},dataFormSubmit:function(){var e=this;this.$refs.dataForm.validate(function(t){t&&e.$http({url:e.$http.adornUrl("/order/orderoperatehistory/"+(e.dataForm.id?"update":"save")),method:"post",data:e.$http.adornData({id:e.dataForm.id||void 0,orderId:e.dataForm.orderId,operateMan:e.dataForm.operateMan,createTime:e.dataForm.createTime,orderStatus:e.dataForm.orderStatus,note:e.dataForm.note})}).then(function(t){var r=t.data;r&&0===r.code?e.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){e.visible=!1,e.$emit("refreshDataList")}}):e.$message.error(r.msg)})})}}},o={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{attrs:{title:e.dataForm.id?"修改":"新增","close-on-click-modal":!1,visible:e.visible},on:{"update:visible":function(t){e.visible=t}}},[r("el-form",{ref:"dataForm",attrs:{model:e.dataForm,rules:e.dataRule,"label-width":"120px"},nativeOn:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.dataFormSubmit()}}},[r("el-form-item",{attrs:{label:"订单id",prop:"orderId"}},[r("el-input",{attrs:{placeholder:"订单id"},model:{value:e.dataForm.orderId,callback:function(t){e.$set(e.dataForm,"orderId",t)},expression:"dataForm.orderId"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"操作人[用户；系统；后台管理员]",prop:"operateMan"}},[r("el-input",{attrs:{placeholder:"操作人[用户；系统；后台管理员]"},model:{value:e.dataForm.operateMan,callback:function(t){e.$set(e.dataForm,"operateMan",t)},expression:"dataForm.operateMan"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"操作时间",prop:"createTime"}},[r("el-input",{attrs:{placeholder:"操作时间"},model:{value:e.dataForm.createTime,callback:function(t){e.$set(e.dataForm,"createTime",t)},expression:"dataForm.createTime"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"订单状态【0->待付款；1->待发货；2->已发货；3->已完成；4->已关闭；5->无效订单】",prop:"orderStatus"}},[r("el-input",{attrs:{placeholder:"订单状态【0->待付款；1->待发货；2->已发货；3->已完成；4->已关闭；5->无效订单】"},model:{value:e.dataForm.orderStatus,callback:function(t){e.$set(e.dataForm,"orderStatus",t)},expression:"dataForm.orderStatus"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"备注",prop:"note"}},[r("el-input",{attrs:{placeholder:"备注"},model:{value:e.dataForm.note,callback:function(t){e.$set(e.dataForm,"note",t)},expression:"dataForm.note"}})],1)],1),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.visible=!1}}},[e._v("取消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dataFormSubmit()}}},[e._v("确定")])],1)],1)},staticRenderFns:[]},d=r("VU/8")(a,o,!1,null,null,null);t.default=d.exports}});