chunk-d02aa720.3b7b1775.js 7.4 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d02aa720","chunk-2d0bdf09","chunk-2d0bdf09","chunk-2d0df437"],{"1ddd":function(e,r,t){"use strict";t("3e0a")},"2dab":function(e,r,t){"use strict";t.r(r);var a=function(){var e=this,r=e._self._c;return r("a-date-picker",{attrs:{disabled:e.disabled||e.readOnly,placeholder:e.placeholder,value:e.momVal,showTime:e.showTime,format:e.dateFormat,getCalendarContainer:e.getCalendarContainer},on:{change:e.handleDateChange}})},n=[],o=t("c1df"),l=t.n(o),i={name:"JDate",props:{placeholder:{type:String,default:"",required:!1},value:{type:String,required:!1},dateFormat:{type:String,default:"YYYY-MM-DD",required:!1},triggerChange:{type:Boolean,required:!1,default:!1},readOnly:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},showTime:{type:Boolean,required:!1,default:!1},getCalendarContainer:{type:Function,default:function(e){return e.parentNode}}},data:function(){var e=this.value;return{decorator:"",momVal:e?l()(e,this.dateFormat):null}},watch:{value:function(e){this.momVal=e?l()(e,this.dateFormat):null}},methods:{moment:l.a,handleDateChange:function(e,r){this.$emit("change",r)}},model:{prop:"value",event:"change"}},c=i,s=t("2877"),d=Object(s["a"])(c,a,n,!1,null,null,null);r["default"]=d.exports},"3e0a":function(e,r,t){},"88bc":function(e,r,t){(function(r){var t=1/0,a=9007199254740991,n="[object Arguments]",o="[object Function]",l="[object GeneratorFunction]",i="[object Symbol]",c="object"==typeof r&&r&&r.Object===Object&&r,s="object"==typeof self&&self&&self.Object===Object&&self,d=c||s||Function("return this")();function u(e,r,t){switch(t.length){case 0:return e.call(r);case 1:return e.call(r,t[0]);case 2:return e.call(r,t[0],t[1]);case 3:return e.call(r,t[0],t[1],t[2])}return e.apply(r,t)}function f(e,r){var t=-1,a=e?e.length:0,n=Array(a);while(++t<a)n[t]=r(e[t],t,e);return n}function p(e,r){var t=-1,a=r.length,n=e.length;while(++t<a)e[n+t]=r[t];return e}var m=Object.prototype,h=m.hasOwnProperty,b=m.toString,v=d.Symbol,g=m.propertyIsEnumerable,y=v?v.isConcatSpreadable:void 0,w=Math.max;function C(e,r,t,a,n){var o=-1,l=e.length;t||(t=D),n||(n=[]);while(++o<l){var i=e[o];r>0&&t(i)?r>1?C(i,r-1,t,a,n):p(n,i):a||(n[n.length]=i)}return n}function O(e,r){return e=Object(e),j(e,r,(function(r,t){return t in e}))}function j(e,r,t){var a=-1,n=r.length,o={};while(++a<n){var l=r[a],i=e[l];t(i,l)&&(o[l]=i)}return o}function M(e,r){return r=w(void 0===r?e.length-1:r,0),function(){var t=arguments,a=-1,n=w(t.length-r,0),o=Array(n);while(++a<n)o[a]=t[r+a];a=-1;var l=Array(r+1);while(++a<r)l[a]=t[a];return l[r]=o,u(e,this,l)}}function D(e){return x(e)||F(e)||!!(y&&e&&e[y])}function k(e){if("string"==typeof e||$(e))return e;var r=e+"";return"0"==r&&1/e==-t?"-0":r}function F(e){return L(e)&&h.call(e,"callee")&&(!g.call(e,"callee")||b.call(e)==n)}var x=Array.isArray;function Y(e){return null!=e&&S(e.length)&&!P(e)}function L(e){return T(e)&&Y(e)}function P(e){var r=q(e)?b.call(e):"";return r==o||r==l}function S(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function q(e){var r=typeof e;return!!e&&("object"==r||"function"==r)}function T(e){return!!e&&"object"==typeof e}function $(e){return"symbol"==typeof e||T(e)&&b.call(e)==i}var A=M((function(e,r){return null==e?{}:O(e,f(C(r,1),k))}));e.exports=A}).call(this,t("c8ba"))},dd9d:function(e,r,t){"use strict";t.r(r);var a=function(){var e=this,r=e._self._c;return r("a-modal",{attrs:{title:e.title,width:1e3,visible:e.visible,confirmLoading:e.confirmLoading},on:{ok:e.handleOk,cancel:e.handleCancel}},[r("a-spin",{attrs:{spinning:e.confirmLoading}},[r("a-form",{attrs:{form:e.form}},[r("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"订单号",hasFeedback:""}},[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderCode",{rules:[{required:!0,message:"请输入订单号!"}]}],expression:"['orderCode', {rules: [{ required: true, message: '请输入订单号!' }]}]"}],attrs:{placeholder:"请输入订单号"}})],1),r("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"订单类型"}},[r("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["ctype",{}],expression:"['ctype',{}]"}],attrs:{placeholder:"请输入订单类型"}},[r("a-select-option",{attrs:{value:"1"}},[e._v("国内订单")]),r("a-select-option",{attrs:{value:"2"}},[e._v("国际订单")])],1)],1),r("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"订单日期"}},[r("a-date-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderDate",{}],expression:"[ 'orderDate',{}]"}],attrs:{showTime:"",format:"YYYY-MM-DD HH:mm:ss"}})],1),r("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"订单金额"}},[r("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderMoney",{}],expression:"[ 'orderMoney', {}]"}],staticStyle:{width:"200px"}})],1),r("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"订单备注"}},[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["content",{}],expression:"['content', {}]"}],attrs:{placeholder:"请输入订单备注"}})],1)],1)],1)],1)},n=[],o=t("0fea"),l=t("2dab"),i=t("88bc"),c=t.n(i),s=t("c1df"),d=t.n(s);function u(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,a)}return t}function f(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?u(Object(t),!0).forEach((function(r){p(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function p(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var m={name:"JeecgOrderDMainModal",components:{JDate:l["default"]},data:function(){return{title:"操作",visible:!1,orderMainModel:{jeecgOrderCustomerList:[{}],jeecgOrderTicketList:[{}]},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,form:this.$form.createForm(this),validatorRules:{},url:{add:"/test/order/add",edit:"/test/order/edit",orderCustomerList:"/test/order/listOrderCustomerByMainId",orderTicketList:"/test/order/listOrderTicketByMainId"}}},methods:{add:function(){this.edit({})},edit:function(e){var r=this;this.form.resetFields(),this.orderMainModel=Object.assign({},e),this.visible=!0,this.$nextTick((function(){r.form.setFieldsValue(c()(r.orderMainModel,"orderCode","ctype","orderMoney","content")),r.form.setFieldsValue({orderDate:r.orderMainModel.orderDate?d()(r.orderMainModel.orderDate):null})}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,r=this;this.form.validateFields((function(t,a){if(!t){r.confirmLoading=!0;var n="",l="";e.orderMainModel.id?(n+=e.url.edit,l="put"):(n+=e.url.add,l="post");var i=Object.assign(e.orderMainModel,a);i.orderDate=i.orderDate?i.orderDate.format("YYYY-MM-DD HH:mm:ss"):null;var c=f({},i);Object(o["i"])(n,c,l).then((function(e){e.success?(r.$message.success(e.message),r.$emit("ok")):r.$message.warning(e.message)})).finally((function(){r.confirmLoading=!1,r.close()}))}}))},handleCancel:function(){this.close()}}},h=m,b=(t("1ddd"),t("2877")),v=Object(b["a"])(h,a,n,!1,null,"3947da84",null);r["default"]=v.exports}}]);