(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4066a6cf"],{"20ca":function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));const o=(t,e)=>{let a,o=e||300;return function(){let e=arguments;a&&clearTimeout(a);let s=!a;a=setTimeout(()=>{a=null},o),s&&t.apply(this,e)}}},"68cc":function(t,e,a){},a01d:function(t,e,a){},e243:function(t,e,a){"use strict";a("68cc")},e7a6:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"取消订单","close-on-click-modal":!1,visible:t.visible,"append-to-body":!0,width:"700px"},on:{"update:visible":function(e){t.visible=e},close:t.handClose}},[a("el-form",{ref:"dataForm",attrs:{model:t.dataForm,rules:t.dataRule,"label-width":""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.dataFormSubmit()}}},[a("el-form-item",{attrs:{label:"请填写取消理由",prop:"","label-width":"150px"}}),a("el-form-item",{attrs:{label:"",prop:"reason"}},[a("el-input",{attrs:{type:"textarea",placeholder:"请输入内容",maxlength:"500",autosize:{minRows:8,maxRows:8},"show-word-limit":""},model:{value:t.dataForm.reason,callback:function(e){t.$set(t.dataForm,"reason",e)},expression:"dataForm.reason"}})],1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.visible=!1}}},[t._v("关闭")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.dataFormSubmit()}}},[t._v("取消订单")])],1)],1)},s=[],i=a("20ca"),r={data(){return{stock:"",visible:!1,dialogFormVisible:!0,paramsDelet:!1,parameters:!1,formLabelWidth:"120px",type:"",menuList:[],options:[],menuListTreeProps:{label:"name",children:"children"},row:"",dataForm:{symbol:""},dataRule:{reason:[{required:!0,message:"取消理由不能为空",trigger:"blur"}]},page:{total:0,currentPage:1,pageSize:10},dataList:[],data:{}}},created(){},components:{},methods:{init(t){this.dataForm={...t},console.log(this.dataForm.order_no),this.visible=!0},handClose(){this.tableOption={},this.$data.dataForm=JSON.parse(JSON.stringify(this.$options.data().dataForm)),this.$nextTick(()=>{this.$refs["dataForm"].clearValidate()})},changeVal(t){this.$forceUpdate()},dataFormSubmit:Object(i["a"])((function(){this.$refs["dataForm"].validate(t=>{t&&this.$http({url:this.$http.adornUrl("/bankCardOrder/orderCancel"),method:"post",data:this.$http.adornData({reason:this.dataForm.reason,orderNo:this.dataForm.order_no})}).then(({data:t})=>{0==t.code?this.$message({message:"取消订单成功",type:"success",duration:1500,onClose:()=>{this.visible=!1,this.$emit("refreshDataList",this.page)}}):this.$message({message:t.msg,type:"error",duration:1500,onClose:()=>{}})})})})),searchChange(t,e){this.getDataList(this.page,t,e)},selectionChange(t){this.dataListSelections=t}}},n=r,l=(a("f36d"),a("e243"),a("2877")),d=Object(l["a"])(n,o,s,!1,null,"2fc05cd2",null);e["default"]=d.exports},f36d:function(t,e,a){"use strict";a("a01d")}}]);
|