| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["order"],{"129f":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},5449:function(e,t,r){},"7f54":function(e,t,r){"use strict";r("ff60")},"841c":function(e,t,r){"use strict";var a=r("d784"),n=r("825a"),o=r("1d80"),i=r("129f"),s=r("14c3");a("search",1,(function(e,t,r){return[function(t){var r=o(this),a=void 0==t?void 0:t[e];return void 0!==a?a.call(t,r):new RegExp(t)[e](String(r))},function(e){var a=r(t,e,this);if(a.done)return a.value;var o=n(e),l=String(this),c=o.lastIndex;i(c,0)||(o.lastIndex=0);var d=s(o,l);return i(o.lastIndex,c)||(o.lastIndex=c),null===d?-1:d.index}]}))},"918f":function(e,t,r){},a38e:function(e,t,r){"use strict";r("918f")},b304:function(e,t,r){},c475:function(e,t,r){"use strict";r("5449")},e5b8:function(e,t,r){"use strict";r("b304")},f86d:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],staticClass:"view",attrs:{id:"user_Role","element-loading-background":"rgba(43, 48, 67, 0.65)","element-loading-spinner":"el-icon-loading"}},[r("div",{staticClass:"crm_search"},[r("el-form",{ref:"form",attrs:{"label-position":"",model:e.search,"label-width":""}},[r("el-row",[r("el-col",{attrs:{span:24,md:24,lg:24}},[r("el-form-item",{staticStyle:{"margin-right":"10px"},attrs:{prop:"status"}},[r("el-select",{staticClass:"crm_search_down_special crm-border-radius-no",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},model:{value:e.search.status,callback:function(t){e.$set(e.search,"status",t)},expression:"search.status"}},[r("el-option",{attrs:{label:e.$t("State.All"),value:null},nativeOn:{click:function(t){return e.toSearch(t)}}}),r("el-option",{attrs:{label:e.$t("Order_info.CancelOrderBackground"),value:-2},nativeOn:{click:function(t){return e.toSearch(t)}}}),r("el-option",{attrs:{label:e.$t("Order_info.CustomerCancelsOrder"),value:-1},nativeOn:{click:function(t){return e.toSearch(t)}}}),r("el-option",{attrs:{label:e.$t("Order_info.Undelivered"),value:0},nativeOn:{click:function(t){return e.toSearch(t)}}}),r("el-option",{attrs:{label:e.$t("Order_info.Delivered"),value:1},nativeOn:{click:function(t){return e.toSearch(t)}}}),r("el-option",{attrs:{label:e.$t("Order_info.Completed"),value:2},nativeOn:{click:function(t){return e.toSearch(t)}}})],1)],1),r("el-form-item",[r("el-select",{staticClass:"crm_search_down crm-border-radius-no",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},model:{value:e.search.tag,callback:function(t){e.$set(e.search,"tag",t)},expression:"search.tag"}},[r("el-option",{attrs:{label:e.$t("Order_info.Serial"),value:1}}),r("el-option",{attrs:{label:e.$t("Order_info.Email"),value:2}}),r("el-option",{attrs:{label:e.$t("Order_info.TrackingNumber"),value:3}})],1)],1),r("el-form-item",{staticStyle:{"margin-right":"10px"}},[1==e.search.tag?r("el-input",{staticClass:"crm-border-left-no crm-border-radius-no",attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.toSearch(t)}},model:{value:e.search.serial,callback:function(t){e.$set(e.search,"serial","string"===typeof t?t.trim():t)},expression:"search.serial"}}):e._e(),2==e.search.tag?r("el-input",{staticClass:"crm-border-left-no crm-border-radius-no",attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.toSearch(t)}},model:{value:e.search.email,callback:function(t){e.$set(e.search,"email","string"===typeof t?t.trim():t)},expression:"search.email"}}):e._e(),3==e.search.tag?r("el-input",{staticClass:"crm-border-left-no crm-border-radius-no",attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.toSearch(t)}},model:{value:e.search.trackingNumber,callback:function(t){e.$set(e.search,"trackingNumber","string"===typeof t?t.trim():t)},expression:"search.trackingNumber"}}):e._e()],1),r("el-form-item",[r("el-date-picker",{staticClass:"crm_date_pick crm-border-radius-no",attrs:{type:"daterange",align:"right","unlink-panels":"","value-format":"yyyy-MM-dd","range-separator":"-",size:"small","start-placeholder":e.$t("Placeholder.Start"),"end-placeholder":e.$t("Placeholder.End")},model:{value:e.search.date,callback:function(t){e.$set(e.search,"date",t)},expression:"search.date"}}),r("el-button",{staticClass:"crm-border-radius-no crm-border-left-no",attrs:{size:"small",icon:"el-icon-search"},on:{click:e.toSearch}})],1)],1)],1)],1)],1),r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.mock_tableData,stripe:""}},[r("el-table-column",{attrs:{prop:"",align:"left",label:"CID"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.cId||"--")+" ")]}}])}),r("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Order_info.Serial")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.serial||"--")+" ")]}}])}),r("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Order_info.CommodityName")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.commodityName||"--")+" ")]}}])}),r("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Order_info.CommodityLevel")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.commodityLevel||"--")+" ")]}}])}),r("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Order_info.Name")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.name||"--")+" ")]}}])}),r("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Order_info.Contact")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.contact||"--")+" ")]}}])}),r("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Order_info.Email")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.email||"--")+" ")]}}])}),r("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Order_info.Address")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.address||"--")+" ")]}}])}),r("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Order_info.TrackingNumber")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.trackingNumber||"--")+" ")]}}])}),r("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Order_info.AddTime")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.addTime||"--")+" ")]}}])}),r("el-table-column",{attrs:{prop:"",align:"center",width:"120",label:e.$i18n.t("Label.State")},scopedSlots:e._u([{key:"default",fn:function(t){return[-1==t.row.status?r("span",{directives:[{name:"t",rawName:"v-t",value:"Order_info.CustomerCancelsOrder",expression:"'Order_info.CustomerCancelsOrder'"}],staticClass:"state crm_state_red"}):e._e(),-2==t.row.status?r("span",{directives:[{name:"t",rawName:"v-t",value:"Order_info.CancelOrderBackground",expression:"'Order_info.CancelOrderBackground'"}],staticClass:"state crm_state_red"}):e._e(),0==t.row.status?r("span",{directives:[{name:"t",rawName:"v-t",value:"Order_info.Undelivered",expression:"'Order_info.Undelivered'"}],staticClass:"state crm_state_blue"}):e._e(),1==t.row.status?r("span",{directives:[{name:"t",rawName:"v-t",value:"Order_info.Delivered",expression:"'Order_info.Delivered'"}],staticClass:"state crm_state_green"}):e._e(),2==t.row.status?r("span",{directives:[{name:"t",rawName:"v-t",value:"Order_info.Completed",expression:"'Order_info.Completed'"}],staticClass:"state crm_state_gray"}):e._e()]}}])}),r("el-table-column",{attrs:{prop:"",align:"center",label:e.$i18n.t("Label.Action")},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleCommand}},[r("span",{staticClass:"el-dropdown-link crm-cursor"},[r("i",{staticClass:"iconfont iconcaidan",staticStyle:{"font-weight":"bold","font-size":"20px"}})]),r("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[r("el-dropdown-item",{attrs:{command:{type:"detailed",row:t.row}}},[r("i",{staticClass:"el-icon-tickets"}),r("span",{directives:[{name:"t",rawName:"v-t",value:"Order_info.Detailed",expression:"'Order_info.Detailed'"}]})]),e.display["R-Shop-Order-List-Approval"].show&&t.row.status>-1?r("el-dropdown-item",{attrs:{command:{type:"approval",row:t.row}}},[r("i",{staticClass:"el-icon-setting"}),r("span",{directives:[{name:"t",rawName:"v-t",value:"Order_info.Approval",expression:"'Order_info.Approval'"}]})]):e._e()],1)],1)]}}])})],1),e.pagerInfo.rowTotal?r("div",{staticClass:"crm_pagination"},[r("div",{staticClass:"crm_page_total"},[r("span",{directives:[{name:"t",rawName:"v-t",value:"Page.total.item1",expression:"'Page.total.item1'"}]}),r("span",[e._v(e._s(e.pagerInfo.rowTotal))]),r("span",{directives:[{name:"t",rawName:"v-t",value:"Page.total.item2",expression:"'Page.total.item2'"}]})]),r("el-pagination",{staticClass:"page",attrs:{background:"",layout:"sizes, prev, pager, next","page-sizes":[10,20,50,100],"page-size":e.pagerInfo.row,total:e.pagerInfo.rowTotal},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1):e._e(),r("el-dialog",{attrs:{title:e.$t("Order_info.Approval"),visible:e.dialogCheck,center:"","custom-class":"dialog_header_w"},on:{"update:visible":function(t){e.dialogCheck=t}}},[r("div",{staticClass:"dia-content"},[r("el-form",{ref:"dialogCheck_form",staticClass:"dialogCheck_form",attrs:{model:e.dialogCheck_form,rules:e.rules,"label-width":"135px"}},[r("el-form-item",{attrs:{prop:"",label:"CID:"}},[e._v(" "+e._s(e.dialogCheck_form.cId)+" ")]),r("el-form-item",{attrs:{prop:"status",label:e.$t("Label.CheckResults")+":"}},[r("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},on:{change:e.selectChange},model:{value:e.dialogCheck_form.status,callback:function(t){e.$set(e.dialogCheck_form,"status",t)},expression:"dialogCheck_form.status"}},[0==e.dialogCheck_form.state?r("el-option",{attrs:{label:e.$t("Order_info.Delivered"),value:1}}):e._e(),1==e.dialogCheck_form.state?r("el-option",{attrs:{label:e.$t("Order_info.Completed"),value:2}}):e._e(),2!=e.dialogCheck_form.state?r("el-option",{attrs:{label:e.$t("Order_info.CancelOrderBackground"),value:-2}}):e._e()],1)],1),1==e.dialogCheck_form.status?r("el-form-item",{attrs:{prop:"trackingNumber",label:e.$t("Order_info.TrackingNumber")+":"}},[r("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.dialogCheck_form.trackingNumber,callback:function(t){e.$set(e.dialogCheck_form,"trackingNumber","string"===typeof t?t.trim():t)},expression:"dialogCheck_form.trackingNumber"}})],1):e._e(),-2==e.dialogCheck_form.status?r("el-form-item",{attrs:{prop:"returnIntegral",label:e.$t("Order_info.ReturnIntegral")+":"}},[r("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},on:{change:e.selectChange},model:{value:e.dialogCheck_form.returnIntegral,callback:function(t){e.$set(e.dialogCheck_form,"returnIntegral",t)},expression:"dialogCheck_form.returnIntegral"}},[r("el-option",{attrs:{label:e.$t("Btn.No"),value:0}}),r("el-option",{attrs:{label:e.$t("Btn.Yes"),value:1}})],1)],1):e._e(),-2==e.dialogCheck_form.status?r("el-form-item",{attrs:{prop:"newOrder",label:e.$t("Order_info.NewOrder")+":"}},[r("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},on:{change:e.selectChange},model:{value:e.dialogCheck_form.newOrder,callback:function(t){e.$set(e.dialogCheck_form,"newOrder",t)},expression:"dialogCheck_form.newOrder"}},[r("el-option",{attrs:{label:e.$t("Btn.No"),value:0}}),r("el-option",{attrs:{label:e.$t("Btn.Yes"),value:1}})],1)],1):e._e(),r("el-form-item",{attrs:{prop:"",label:e.$t("Label.Descr")+":"}},[r("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.dialogCheck_form.approveDesc,callback:function(t){e.$set(e.dialogCheck_form,"approveDesc","string"===typeof t?t.trim():t)},expression:"dialogCheck_form.approveDesc"}})],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:function(t){return e.toVerified()}}}),r("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:e.cancel}})],1)],1)]),r("order-single",{attrs:{dialogInfoTrading:e.dialogInfoTrading,formInfo:e.formInfoTrading},on:{closeTrading:e.closeTrading}}),e.dialogInfoTrading?r("div",{staticClass:"crm_verified_info_mask crm_verified_info_mask_trading",on:{click:e.closeDiaTrading}}):e._e()],1)},n=[],o=(r("ac1f"),r("841c"),r("5530")),i=(r("96cf"),r("1da1")),s=r("d4ec"),l=r("bee2"),c=r("262e"),d=r("2caf"),u=r("ff2d"),m=r("bc3a"),f=r.n(m),p=r("f121"),g=r.n(p),_=function(e){Object(c["a"])(r,e);var t=Object(d["a"])(r);function r(){var e;return Object(s["a"])(this,r),e=t.call(this),f.a.defaults.baseURL=g.a.Host85,e}return Object(l["a"])(r,[{key:"orderList",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,r,a=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.next=3,this.post("/order/search/list",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"orderListSingle",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,r,a=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.next=3,this.post("/order/search/single",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"orderService",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,r,a=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.next=3,this.post("/order/approve",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),r}(u["a"]),h=new _,v=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"InfoBox",class:{active:e.dialogInfoTrading},attrs:{id:"TradingDetailedInfo"}},[r("div",{staticClass:"header"},[r("div",[r("span",{directives:[{name:"t",rawName:"v-t",value:"Order_info.Detailed",expression:"'Order_info.Detailed'"}],staticClass:"title"})]),r("span",{staticClass:"close crm-cursor",on:{click:e.close}},[r("i",{staticClass:"el-icon-close"})])]),r("el-form",{ref:"form",attrs:{model:e.form,"label-width":"150PX"}},[r("el-form-item",{attrs:{label:e.$t("Label.CidAccount")}},[e._v(" "+e._s(e.form.cId||"--")+" ")]),r("el-form-item",{attrs:{label:e.$t("Label.Name")}},[e.form.firstName?r("span",[e._v(e._s(e.form.firstName+" "))]):e._e(),e.form.middle?r("span",[e._v(e._s(e.form.middle+" "))]):e._e(),e.form.lastName?r("span",[e._v(e._s(e.form.lastName))]):e._e(),e.form.firstName||e.form.lastName||e.form.middle?e._e():r("span",[e._v(e._s("--"))])]),r("el-form-item",{attrs:{label:e.$t("Label.Email")}},[e._v(" "+e._s(e.form.email||"--")+" ")]),r("el-form-item",{attrs:{label:e.$t("Order_info.Contact")}},[e._v(" "+e._s(e.form.contact||"--")+" ")]),r("el-form-item",{attrs:{label:e.$t("Order_info.Integral")}},[e._v(" "+e._s(e._f("NumberFormat")(e.form.integral||"0"))+" ")]),r("el-form-item",{attrs:{label:e.$t("Order_info.Address")}},[e._v(" "+e._s(e.form.address||"--")+" ")]),r("el-form-item",{attrs:{label:e.$t("Order_info.Serial")}},[e._v(" "+e._s(e.form.serial||"--")+" ")]),r("el-form-item",{attrs:{label:e.$t("Order_info.TrackingNumber")}},[e._v(" "+e._s(e.form.trackingNumber||"--")+" ")]),r("el-form-item",{attrs:{label:e.$t("Order_info.CommodityName")}},[e._v(" "+e._s(e.form.commodityName||"--")+" ")]),r("el-form-item",{attrs:{label:e.$t("Order_info.CommodityIntegral")}},[e._v(" "+e._s(e._f("NumberFormat")(e.form.commodityIntegral||"0"))+" ")]),r("el-form-item",{attrs:{label:e.$t("Order_info.CommodityLevel")}},[e._v(" "+e._s(e.form.commodityLevel||"--")+" ")]),r("el-form-item",{attrs:{label:e.$t("Order_info.CommodityPrice")}},[e._v(" "+e._s(e._f("NumberFormat")(e.form.commodityPrice||"0"))+" ")]),r("el-form-item",{attrs:{label:e.$t("Order_info.CommoditySubIndex")}},[e._v(" "+e._s(e.form.commoditySubIndex||"--")+" ")]),r("el-form-item",{attrs:{label:e.$t("Order_info.CommodityTypeName")}},[e._v(" "+e._s(e.form.commodityTypeName||"--")+" ")]),r("el-form-item",{attrs:{label:e.$t("Order_info.AddTime")}},[e._v(" "+e._s(e.form.addTime||"--")+" ")]),r("el-form-item",{attrs:{label:e.$t("Order_info.ModifyTime")}},[e._v(" "+e._s(e.form.modifyTime||"--")+" ")]),r("el-form-item",{attrs:{label:e.$t("Order_info.Note")}},[e._v(" "+e._s(e.form.note||"--")+" ")]),r("el-form-item",{attrs:{label:e.$t("Order_info.Remark")}},[e._v(" "+e._s(e.form.remark||"--")+" ")]),r("el-form-item",{attrs:{label:e.$t("Label.State")}},[-1==e.form.status?r("span",{directives:[{name:"t",rawName:"v-t",value:"Order_info.CustomerCancelsOrder",expression:"'Order_info.CustomerCancelsOrder'"}]}):e._e(),-2==e.form.status?r("span",{directives:[{name:"t",rawName:"v-t",value:"Order_info.CancelOrderBackground",expression:"'Order_info.CancelOrderBackground'"}]}):e._e(),0==e.form.status?r("span",{directives:[{name:"t",rawName:"v-t",value:"Order_info.Undelivered",expression:"'Order_info.Undelivered'"}]}):e._e(),1==e.form.status?r("span",{directives:[{name:"t",rawName:"v-t",value:"Order_info.Delivered",expression:"'Order_info.Delivered'"}]}):e._e(),2==e.form.status?r("span",{directives:[{name:"t",rawName:"v-t",value:"Order_info.Completed",expression:"'Order_info.Completed'"}]}):e._e()])],1)],1)},b=[],k={name:"OrderSingle",props:{dialogInfoTrading:{type:Boolean,default:!1},infoType:{default:""},formInfo:{default:""},btn:{type:Boolean,default:!1}},data:function(){return{imgUrl:g.a.Host85,form:{},info:{CID:"",name:"",type:""}}},computed:{user:function(){return JSON.parse(this.Session.Get("user",!0))}},methods:{close:function(){this.$emit("closeTrading",!1)}},mounted:function(){},watch:{formInfo:function(){this.form=this.formInfo}}},C=k,O=(r("c475"),r("a38e"),r("2877")),w=Object(O["a"])(C,v,b,!1,null,"7bec2472",null),$=w.exports,y=g.a.Code,x={name:"Role",inject:["reload"],components:{OrderSingle:$},data:function(){return{pictLoading:!1,flag:!1,mock_tableData:[],search:{status:null,tag:1,serial:"",email:"",trackingNumber:"",date:[],startDate:"",endDate:""},dialogCheck:!1,dialogCheck_form:{trackingNumber:"",returnIntegral:null,newOrder:null,id:null,status:null,approveDesc:""},dialogInfoTrading:!1,formInfoTrading:{},pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:0},rules:{status:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"blur"}],newOrder:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"blur"}],returnIntegral:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"blur"}],trackingNumber:[{required:!0,message:this.$i18n.t("vaildate.input.empty"),trigger:"blur"}]}}},computed:{display:function(){return JSON.parse(this.Session.Get("display",!0))}},methods:{selectChange:function(){this.$forceUpdate()},handleCommand:function(e){"approval"==e.type?(this.$refs["dialogCheck_form"]&&this.$refs["dialogCheck_form"].resetFields(),this.dialogCheck=!0,this.dialogCheck_form.cId=e.row.cId,this.dialogCheck_form.trackingNumber=e.row.trackingNumber,this.dialogCheck_form.returnIntegral=e.row.returnIntegral,this.dialogCheck_form.id=e.row.id,this.dialogCheck_form.newOrder=e.row.newOrder,this.dialogCheck_form.state=e.row.status,this.dialogCheck_form.approveDesc=e.row.approveDesc):"detailed"==e.type&&this.searchSingle(e.row.id)},closeDiaTrading:function(){this.dialogInfoTrading=!1},closeTrading:function(e){this.dialogInfoTrading=e},searchSingle:function(e){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,h.orderListSingle({id:e});case 2:a=r.sent,a.code==y.StatusOK?(t.formInfoTrading=a.data,t.dialogInfoTrading=!0):t.$pigeon.MessageError(a.msg);case 4:case"end":return r.stop()}}),r)})))()},toVerified:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$refs["dialogCheck_form"].validate(function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(r){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!r){e.next=14;break}if(!t.flag){e.next=5;break}return e.abrupt("return");case 5:t.flag=!0;case 6:return 1!=t.dialogCheck_form.status&&(t.dialogCheck_form.trackingNumber=""),-2!=t.dialogCheck_form.status&&(t.dialogCheck_form.returnIntegral=null,t.dialogCheck_form.newOrder=null),e.next=10,h.orderService(Object(o["a"])({},t.dialogCheck_form));case 10:a=e.sent,a.code==y.StatusOK?(t.$pigeon.MessageOK(t.$i18n.t("Msg.Success")),t.cancel(),t.searchFunc(),t.flag=!1):(t.flag=!1,t.$pigeon.MessageError(a.msg)),e.next=15;break;case 14:return e.abrupt("return",!1);case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),cancel:function(){this.dialogCheck=!1,this.$refs["dialogCheck_form"].resetFields()},searchFunc:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.pictLoading=!0,e.display["R-Shop-Order-List-Search"].show){t.next=5;break}return e.$pigeon.MessageWarning(e.$i18n.t("Msg.NotDisplay")),e.pictLoading=!1,t.abrupt("return");case 5:return null==e.search.date||0==e.search.date.length?(e.search.startDate="",e.search.endDate=""):(e.search.startDate=e.search.date[0],e.search.endDate=e.search.date[1]),t.next=8,h.orderList(Object(o["a"])(Object(o["a"])({},e.search),{},{page:{current:e.pagerInfo.current,row:e.pagerInfo.row}}));case 8:r=t.sent,r.code==y.StatusOK?(e.mock_tableData=r.data,null!=r.page?(e.pagerInfo.rowTotal=r.page.rowTotal,e.pagerInfo.pageTotal=r.page.pageTotal):e.pagerInfo.rowTotal=0,e.$pigeon.MessageOK(e.$i18n.t("Msg.SearchSuccess")),e.pictLoading=!1):(e.$pigeon.MessageError(r.msg),e.pictLoading=!1);case 10:case"end":return t.stop()}}),t)})))()},toSearch:function(){this.pagerInfo.current=1,this.searchFunc()},handleSizeChange:function(e){this.pagerInfo.row=e,this.searchFunc()},handleCurrentChange:function(e){this.pagerInfo.current=e,this.searchFunc()}},mounted:function(){var e=this;setTimeout((function(){e.searchFunc()}),1e3)},watch:{"search.tag":function(){this.search.serial="",this.search.email="",this.search.trackingNumber=""}}},I=x,N=(r("7f54"),r("e5b8"),Object(O["a"])(I,a,n,!1,null,"547b6621",null));t["default"]=N.exports},ff60:function(e,t,r){}}]);
|