(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4e4592ec"],{"0e08":function(t,e,a){},"20ca":function(t,e,a){"use strict";a.d(e,"a",(function(){return r}));const r=(t,e)=>{let a,r=e||300;return function(){let e=arguments;a&&clearTimeout(a);let o=!a;a=setTimeout(()=>{a=null},r),o&&t.apply(this,e)}}},2450:function(t,e,a){"use strict";a("d385")},"6acf":function(t,e,a){"use strict";a("0e08")},"6bf7":function(t,e,a){"use strict";a.r(e);var r=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:"remark","label-width":"150px"}}),a("el-form-item",{attrs:{label:"",prop:"remark"}},[a("el-input",{attrs:{type:"textarea",placeholder:"请输入内容",maxlength:"500",autosize:{minRows:8,maxRows:8},"show-word-limit":""},model:{value:t.dataForm.remark,callback:function(e){t.$set(t.dataForm,"remark",e)},expression:"dataForm.remark"}})],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)},o=[],i=a("20ca"),s={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:{},page:{total:0,currentPage:1,pageSize:10},dataList:[],data:{}}},created(){},components:{},methods:{init(t){this.dataForm={...t},this.visible=!0},handClose(){this.tableOption={}},changeVal(t){this.$forceUpdate()},dataFormSubmit:Object(i["a"])((function(){this.$refs["dataForm"].validate(t=>{t&&this.$http({url:this.$http.adornUrl("/c2cOrder/orderCancel"),method:"post",data:this.$http.adornData({remark:this.dataForm.remark,order_no: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=s,l=(a("2450"),a("6acf"),a("2877")),c=Object(l["a"])(n,r,o,!1,null,"3918b058",null);e["default"]=c.exports},d385:function(t,e,a){}}]);
|