You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
11 KiB
1 line
11 KiB
3 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e3f056ce"],{"0493":function(t,e,a){t.exports=a.p+"view_cashier/img/no-record.2e1e1105.png"},"0eb7":function(t,e,a){"use strict";var r=a("72ab"),s=a.n(r);s.a},"22f89":function(t,e,a){"use strict";var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("Modal",{staticClass:"order_box",attrs:{scrollable:"",title:"订单备注","class-name":"remark-modal","footer-hide":""},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[a("div",{staticClass:"input-wrapper"},[a("Input",{staticStyle:{width:"100%"},attrs:{maxlength:"200","show-word-limit":"",rows:5,type:"textarea",placeholder:"订单备注"},model:{value:t.formValidate.remark,callback:function(e){t.$set(t.formValidate,"remark",e)},expression:"formValidate.remark"}})],1),a("div",{staticClass:"btn-wrapper"},[a("Button",{attrs:{type:"primary",size:"large",long:""},on:{click:function(e){return t.putRemark("formValidate")}}},[t._v("提交")])],1)])},s=[],i=a("a34a"),n=a.n(i),o=a("f8b7");function c(t,e,a,r,s,i,n){try{var o=t[i](n),c=o.value}catch(l){return void a(l)}o.done?e(c):Promise.resolve(c).then(r,s)}function l(t){return function(){var e=this,a=arguments;return new Promise((function(r,s){var i=t.apply(e,a);function n(t){c(i,r,s,n,o,"next",t)}function o(t){c(i,r,s,n,o,"throw",t)}n(void 0)}))}}var d={name:"orderMark",data:function(){return{formValidate:{remark:""},modals:!1,ruleValidate:{remark:[{required:!0,message:"请输入备注信息",trigger:"blur"}]}}},props:{orderId:Number,currentTab:{type:String,default:""},remarkType:{default:"",type:String}},created:function(){},methods:{cancel:function(t){this.modals=!1},refundmark:function(t){this.formValidate.remark=t},getRemark:function(t){var e=this;Object(o["ab"])(t).then((function(t){e.formValidate.remark=t.data.remarks})).catch((function(t){e.$Message.error(t.msg)}))},getVipRemark:function(t){var e=this;Object(o["fb"])(t).then((function(t){e.formValidate.remark=t.data.remarks})).catch((function(t){e.$Message.error(t.msg)}))},putRemark:function(t){var e=this,a={id:this.orderId,remark:this.formValidate};if(this.formValidate.remark.trim()){var r=null;r=this.remarkType?Object(o["X"])(a):3==this.currentTab?Object(o["T"])(a.id,{remarks:this.formValidate.remark}):4==this.currentTab?Object(o["U"])(a.id,{remarks:this.formValidate.remark}):Object(o["Y"])(a),r.then(function(){var t=l(n.a.mark((function t(a){return n.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$Message.success(a.msg),e.modals=!1,e.$emit("submitFail");case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))}else this.$Message.warning("请填写备注信息")}}},u=d,f=(a("ea2e"),a("2877")),m=Object(f["a"])(u,r,s,!1,null,"3ef3af22",null);e["a"]=m.exports},"72ab":function(t,e,a){},a464:function(t,e,a){"use strict";var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"content"},[a("div",{staticClass:"filter-box"},t._l(t.filterList,(function(e,r){return a("div",{directives:[{name:"show",rawName:"v-show",value:"verify"===t.orderType&&"type"!==e.type||"order"===t.orderType||"table"===t.orderType,expression:"orderType === 'verify' && item.type !== 'type' || orderType === 'order' || orderType === 'table'"}],key:r,staticClass:"box"},[a("div",{staticClass:"title"},[t._v(t._s(e.title))]),a("div",{staticClass:"tabs-box"},[t._l(e.tabs,(function(r,s){return a("div",{directives:[{name:"show",rawName:"v-show",value:e.tabs.length&&"staff_id"!==e.type,expression:"item.tabs.length && item.type !== 'staff_id'"}],key:s,staticClass:"tabs",class:t.searchData[e.type]===r.type?"on":"",on:{click:function(a){return t.selectFilter(e,s)}}},[a("span",[t._v(t._s(r.name))])])})),"time"===e.type?a("div",{staticClass:"tabs-time"},[a("DatePicker",{staticStyle:{width:"200px"},attrs:{format:"yyyy/MM/dd",type:"date",placeholder:"开始时间",clearable:!0},on:{"on-change":t.changeStartTime,"on-open-change":t.timeStatus},model:{value:t.startTime,callback:function(e
|