1(self["webpackChunkcross_border_tms"]=self["webpackChunkcross_border_tms"]||[]).push([[2228],{54628:function(e,t,r){var o=r(8168);o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals);var i=r(69333).A;i("04f30199",o,!0,{sourceMap:!1,shadowMode:!1})},42997:function(e,t,r){var o=r(83745);o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals);var i=r(69333).A;i("f408054a",o,!0,{sourceMap:!1,shadowMode:!1})},15038:function(e,t,r){var o=r(32946);o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals);var i=r(69333).A;i("844fefde",o,!0,{sourceMap:!1,shadowMode:!1})},34298:function(e,t,r){"use strict";var o;r.d(t,{A:function(){return d}});var i,a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",{staticClass:"u-gap",style:[e.gapStyle]})},n=[],s=(r(2892),{props:{bgColor:{type:String,default:uni.$u.props.gap.bgColor},height:{type:[String,Number],default:uni.$u.props.gap.height},marginTop:{type:[String,Number],default:uni.$u.props.gap.marginTop},marginBottom:{type:[String,Number],default:uni.$u.props.gap.marginBottom}}}),c={name:"u-gap",mixins:[uni.$u.mpMixin,uni.$u.mixin,s],computed:{gapStyle:function(){var e={backgroundColor:this.bgColor,height:uni.$u.addUnit(this.height),marginTop:uni.$u.addUnit(this.marginTop),marginBottom:uni.$u.addUnit(this.marginBottom)};return uni.$u.deepMerge(e,uni.$u.addStyle(this.customStyle))}}},l=c,p=(r(54628),r(18535)),u=(0,p.A)(l,a,n,!1,null,"a54a97e0",null,!1,o,i),d=u.exports},93603:function(e,t,r){"use strict";r.d(t,{A:function(){return u}});var o,i={uOverlay:r(38355).A,uLoadingIcon:r(92038).A,uIcon:r(30623).A,uGap:r(34298).A},a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",{staticClass:"u-toast"},[r("u-overlay",{attrs:{show:e.isShow,"custom-style":e.overlayStyle}},[r("v-uni-view",{staticClass:"u-toast__content",class:["u-type-"+e.tmpConfig.type,"loading"===e.tmpConfig.type||e.tmpConfig.loading?"u-toast__content--loading":""],style:[e.contentStyle]},["loading"===e.tmpConfig.type?r("u-loading-icon",{attrs:{mode:"circle",color:"rgb(255, 255, 255)",inactiveColor:"rgb(120, 120, 120)",size:"25"}}):"defalut"!==e.tmpConfig.type&&e.iconName?r("u-icon",{attrs:{name:e.iconName,size:"17",color:e.tmpConfig.type,customStyle:e.iconStyle}}):e._e(),"loading"===e.tmpConfig.type||e.tmpConfig.loading?r("u-gap",{attrs:{height:"12",bgColor:"transparent"}}):e._e(),r("v-uni-text",{staticClass:"u-toast__content__text",class:["u-toast__content__text--"+e.tmpConfig.type],staticStyle:{"max-width":"400rpx"}},[e._v(e._s(e.tmpConfig.message))])],1)],1)],1)},n=[],s=(r(74423),r(62062),{name:"u-toast",mixins:[uni.$u.mpMixin,uni.$u.mixin],data:function(){return{isShow:!1,timer:null,config:{message:"",type:"",duration:2e3,icon:!0,position:"center",complete:null,overlay:!1,loading:!1},tmpConfig:{}}},computed:{iconName:function(){return this.tmpConfig.icon&&"none"!=this.tmpConfig.icon&&["error","warning","success","primary"].includes(this.tmpConfig.type)?uni.$u.type2icon(this.tmpConfig.type):""},overlayStyle:function(){var e={justifyContent:"center",alignItems:"center",display:"flex",backgroundColor:"rgba(0, 0, 0, 0)"};return e},iconStyle:function(){var e={marginRight:"4px"};return e},loadingIconColor:function(){var e="rgb(255, 255, 255)";return["error","warning","success","primary"].includes(this.tmpConfig.type)&&(e=uni.$u.hexToRgb(uni.$u.color[this.tmpConfig.type])),e},contentStyle:function(){var e=uni.$u.sys().windowHeight,t={},r=0;return"top"===this.tmpConfig.position?r=.25*-e:"bottom"===this.tmpConfig.position&&(r=.25*e),t.transform="translateY(".concat(r,"px)"),t}},created:function(){var e=this;["primary","success","error","warning","default","loading"].map((function(t){e[t]=function(r){return e.show({type:t,message:r})}}))},methods:{show:function(e){var t=this;this.tmpConfig=uni.$u.deepMerge(this.config,e),this.clearTimer(),this.isShow=!0,this.timer=setTimeout((function(){t.clearTimer(),"function"===typeof t.tmpConfig.complete&&t.tmpConfig.complete()}),this.tmpConfig.duration)},hide:function(){this.clearTimer()},clearTimer:function(){this.isShow=!1,clearTimeout(this.timer),this.timer=null}},beforeDestroy:function(){this.clearTimer()}}),c=s,l=(r(42997),r(18535)),p=(0,l.A)(c,a,n,!1,null,"0d0d463d",null,!1,i,o),u=p.exports},56157:function(e,t,r){"use strict";r.d(t,{A:function(){return m}});var o,i={uInput:r(98687).A},a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",{style:e.customStyle},[r("u-input",e._b({on:{focus:function(t){arguments[0]=t=e.$handleEvent(t),e.focus.apply(void 0,arguments)},blur:function(t){arguments[0]=t=e.$handleEvent(t),e.blur.apply(void 0,arguments)},clear:function(t){arguments[0]=t=e.$handleEvent(t),e.clear.apply(void 0,arguments)},change:function(t){arguments[0]=t=e.$handleEvent(t),e.change.apply(void 0,arguments)},input:function(t){arguments[0]=t=e.$handleEvent(t),e.input.apply(void 0,arguments)},confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.confirm.a
1pply(void 0,arguments)}},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},"u-input",e.$attrs,!1),[r("template",{slot:"prefix"},[e._t("prefix")],2),r("template",{slot:"suffix"},[e._t("suffix")],2)],2)],1)},n=[],s=r(42727),c=r(50575),l=(r(2892),{props:{modelValue:{type:[String,Number],default:""},customStyle:{type:Object,default:function(){return{width:"100%"}}}},data:function(){return{value:""}},watch:{value:function(e){this.$emit("input",e),this.$emit("update:modelValue",e)},"$attrs.value":{handler:function(e){void 0!==e&&e!==this.value&&(this.value=e)},immediate:!0,deep:!1}},created:function(){var e=this;return(0,c.A)((0,s.A)().mark((function t(){return(0,s.A)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.hasValue();case 1:case"end":return t.stop()}}),t)})))()},methods:{focus:function(e){this.$emit("focus",e)},blur:function(e){this.$emit("blur",e)},clear:function(e){this.$emit("clear",e)},change:function(e){this.$emit("change",e)},confirm:function(e){this.$emit("confirm",e)},input:function(e){this.$emit("input",e)},hasValue:function(){return!(Array.isArray(this.$attrs.value)&&this.$attrs.value.length<=0)&&!!this.$attrs.value}}}),p=l,u=r(18535),d=(0,u.A)(p,a,n,!1,null,null,null,!1,i,o),m=d.exports},94124:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return f}});var o,i={uStatusBar:r(65354).A,uNavbar:r(85260).A,"u-Form":r(62531).A,uFormItem:r(38014).A,uniIcons:r(94570).A,"u-Input":r(4278).A,uniDatetimePicker:r(97742).A,uRadioGroup:r(5814).A,uRadio:r(66609).A,customSelect:r(48682).A,customInput:r(56157).A,phonePrefix:r(32468).A,"u-Textarea":r(22548).A,uploadImage:r(18907).A,uButton:r(25519).A,uToast:r(93603).A,selectRegion:r(44336).A},a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",{staticClass:"m-page"},[r("u-status-bar"),r("u-navbar",{attrs:{title:e.$t("order.save_title."+e.mode),placeholder:!1,fixed:!1,safeAreaInsetTop:!1},on:{leftClick:function(t){arguments[0]=t=e.$handleEvent(t),e.$utils.goBack("/pages/order/index")}}}),r("v-uni-view",{staticClass:"p-10 page-main"},[r("v-uni-scroll-view",{staticClass:"page-content",attrs:{"scroll-y":"true","scroll-into-view":e.scrollInto,"scroll-with-animation":!0}},[r("v-uni-view",{staticClass:"shipping-type"},e._l(e.shippingTypeList,(function(t,o){return r("v-uni-view",{key:o,class:["shipping-item",o==e.form.shipping_type?"active":""],on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.changeShippingType(o)}}},[r("v-uni-view",{staticClass:"icon"},[r("v-uni-view",{class:["tms-iconfont icon-"+o]})],1),r("v-uni-view",{staticClass:"text"},[e._v(e._s(t[e.vuex_local+"_label"]))])],1)})),1),e.formShow?r("u--form",{ref:"uForm",staticClass:"custom-form",attrs:{labelPosition:"top",model:e.form,rules:e.rules}},[r("u-form-item",{attrs:{label:e.$t("order.from_area_code.label"),prop:"from_country_id",required:!0,id:"from_country_id"}},[r("v-uni-view",{staticClass:"select-region-input",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.selectRegion("from")}}},[r("v-uni-view",{staticClass:"icon"},[r("uni-icons",{attrs:{type:"location-filled",size:"18",color:"#999"}})],1),e.$utils.isEmpty(e.form.from_area_text)?r("v-uni-view",{staticClass:"text placeholder"},[e._v(e._s(e.$t("order.from_area_code.placeholder")))]):r("v-uni-view",{staticClass:"text"},[e._v(e._s(e.form.from_area_text))])],1)],1),r("u-form-item",{attrs:{prop:"from_detail_address"}},[r("u--input",{attrs:{placeholder:e.$t("order.from_detail_address.placeholder")},model:{value:e.form.from_detail_address,callback:function(t){e.$set(e.form,"from_detail_address",t)},expression:"form.from_detail_address"}})],1),r("u-form-item",{attrs:{label:e.$t("order.to_area_code.label"),prop:"to_country_id",required:!0,id:"to_country_id"}},[r("v-uni-view",{staticClass:"select-region-input",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.selectRegion("to")}}},[r("v-uni-view",{staticClass:"icon"},[r("uni-icons",{attrs:{type:"location-filled",size:"18",color:"#999"}})],1),e.$utils.isEmpty(e.form.to_area_text)?r("v-uni-view",{staticClass:"text placeholder"},[e._v(e._s(e.$t("order.to_area_code.placeholder")))]):r("v-uni-view",{staticClass:"text"},[e._v(e._s(e.form.to_area_text))])],1)],1),r("u-form-item",{attrs:{prop:"to_detail_address"}},[r("u--input",{attrs:{placeholder:e.$t("order.to_detail_address.placeholder")},model:{value:e.form.to_detail_address,callback:function(t){e.$set(e.form,"to_detail_address",t)},expression:"form.to_detail_address"}})],1),r("u-form-item",{attrs:{label:e.$t("order.plan_time.label"),prop:"plan_time",required:!0,id:"plan_time"}},[r("uni-datetime-picker",{class:e.$utils.isEmpty(e.form.plan_time)?"no-select":"",attrs:{type:"daterange","return-type":"timestamp",start:e.minDate,"start-placeholder":e.$t("order.plan_time.start_placeholder"),"end-placeholder":e.$t("order.plan_time.end_placeholder")},on:{show:function(t){arguments[0]=t=e.$handleEvent(t),e.popupShow.apply(void 0,arguments)}},model:{value:e.form.plan_time,callback:function(t){e.$set(e.form,"plan_time",t)},expression:"form.plan_time"}})],1),r("u-form-item",{attrs:{label:e.$t("order.is_declaration.label"),prop:"is_declaration",required:!0,id:"is_declaration"}},[r("u-radio-group",{staticClass:"p-t-10",attrs:{placement:"row"},model:{value:e.form.is_declaration,callback:function(t){e.$set(e.form,"is_declaration",t)},expression:"form.is_declaration"}},[r("u-radio",{staticClass:"m-r-20",attrs:{name:1,label:e.$t("order.is_declaration.1")}}),r("u-radio",{attrs:{name:0,label:e.$t("order.is_declaration.0")}})],1)],1),r("u-form-item",{attrs:{label:e.$t("order.trade_term.label"),prop:"trade_term",required:!0,id:"trade_term"}},[r("custom-select",{ref:"customSelect",attrs:{placeholder:e.$t("order.trade_term.placeholder"),dict:"tradeMode"},model:{value:e.form.trade_term,callback:function(t){e.$set(e.form,"trade_term",t)},expression:"form.trade_term"}})],1),r("u-form-item",{attrs:{label:e.$t("order.cargo_type.label"),prop:"cargo_type",required:!0,id:"cargo_type"}},[r("custom-select",{ref:"customSelect",attrs:{placeholder:e.$t("order.cargo_type.placeholder"),dict:"goodsType",isLang:!0},model:{value:e.form.cargo_type,callback:function(t){e.$set(e.form,"cargo_type",t)},expression:"form.cargo_type"}})],1),r("u-form-item",{attrs:{label:e.$t("order.cargo_name.label"),prop:"cargo_name",required:!0,id:"cargo_name"}}
1,[r("u--input",{attrs:{placeholder:e.$t("order.cargo_name.placeholder")},model:{value:e.form.cargo_name,callback:function(t){e.$set(e.form,"cargo_name",t)},expression:"form.cargo_name"}})],1),r("u-form-item",{attrs:{label:e.$t("order.transport_type.label"),prop:"transport_type",required:!0,id:"transport_type"}},[e.selectShow?r("custom-select",{ref:"customSelect",attrs:{placeholder:e.$t("order.transport_type.placeholder"),data:e.transportList,labelField:e.vuex_local+"_label",valueField:"value"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.transportChange.apply(void 0,arguments)}},model:{value:e.form.transport_type,callback:function(t){e.$set(e.form,"transport_type",t)},expression:"form.transport_type"}}):e._e()],1),"1"===e.form.transport_type&&"ROAD"===e.form.shipping_type?[r("u-form-item",{attrs:{label:e.$t("order.vehicle_type.label"),prop:"transport_info.vehicle_type",required:!0,id:"vehicle_type"}},[e.selectShow?r("custom-select",{ref:"selectCar",attrs:{placeholder:e.$t("order.vehicle_type.placeholder"),dict:"carType"},model:{value:e.form.transport_info.vehicle_type,callback:function(t){e.$set(e.form.transport_info,"vehicle_type",t)},expression:"form.transport_info.vehicle_type"}}
1):e._e()],1)]:e._e(),"3"===e.form.transport_type&&"ROAD"===e.form.shipping_type||["SEA","RAIL"].indexOf(e.form.shipping_type)>-1&&"1"===e.form.transport_type?[r("u-form-item",{attrs:{label:e.$t("order.box_type.label"),prop:"transport_info.box_type",required:!0,id:"box_type"}},[e.selectShow?r("custom-select",{ref:"selectBox",attrs:{placeholder:e.$t("order.box_type.placeholder"),dict:"boxType"},model:{value:e.form.transport_info.box_type,callback:function(t){e.$set(e.form.transport_info,"box_type",t)},expression:"form.transport_info.box_type"}}):e._e()],1)]:e._e(),"2"===e.form.transport_type?r("v-uni-view",{staticClass:"m-flex-box flex-s flex-align-center"},[r("v-uni-view",{staticClass:"flex-1"},[r("u-form-item",{attrs:{label:e.$t("order.weight.label"),prop:"weight",required:!0,id:"weight"}},[r("custom-input",{attrs:{type:"number",placeholder:e.$t("order.weight.placeholder")},model:{value:e.form.transport_info.weight,callback:function(t){e.$set(e.form.transport_info,"weight",t)},expression:"form.transport_info.weight"}},[r("template",{slot:"suffix"},[r("v-uni-view",[e._v(e._s(e.$t("order.weight.unit")))])],1)],2)],1)],1),r("v-uni-view",{staticClass:"flex-1 m-l-20"},[r("u-form-item",{attrs:{label:e.$t("order.volume.label"),prop:"volume",required:!0,id:"volume"}},[r("custom-input",{attrs:{type:"number",placeholder:e.$t("order.volume.placeholder")},model:{value:e.form.transport_info.volume,callback:function(t){e.$set(e.form.transport_info,"volume",t)},expression:"form.transport_info.volume"}},[r("template",{slot:"suffix"},[r("v-uni-view",[e._v(e._s(e.$t("order.volume.unit")))])],1)],2)],1)],1)],1):e._e(),"3"===e.form.transport_type&&"SEA"===e.form.shipping_type?r("v-uni-view",{staticClass:"m-flex-box flex-s flex-align-center"},[r("v-uni-view",{staticClass:"flex-1"},[r("u-form-item",{attrs:{label:e.$t("order.weight.label"),prop:"weight",required:!0,id:"weight"}},[r("custom-input",{attrs:{type:"number",placeholder:e.$t("order.weight.placeholder")},model:{value:e.form.transport_info.weight,callback:function(t){e.$set(e.form.transport_info,"weight",t)},expression:"form.transport_info.weight"}},[r("template",{slot:"suffix"},[r("v-uni-view",[e._v(e._s(e.$t("order.weight.unit")))])],1)],2)],1)],1)],1):e._e(),r("u-form-item",{attrs:{label:e.$t("order.price_type.label"),prop:"price_type",required:!0,id:"price_type"}},[r("custom-select",{ref:"customSelect",attrs:{dict:"priceType",isLang:!0},model:{value:e.form.price_type,callback:function(t){e.$set(e.form,"price_type",t)},expression:"form.price_type"}})],1),"1"==e.form.price_type?[r("u-form-item",{attrs:{label:e.$t("order.min_price.label"),prop:"min_price",required:!0,id:"min_price"}},[r("custom-input",{attrs:{type:"number",placeholder:e.$t("order.min_price.placeholder")},model:{value:e.form.min_price,callback:function(t){e.$set(e.form,"min_price",t)},expression:"form.min_price"}},[r("template",{slot:"prefix"},[r("custom-select",{ref:"customSelect",staticStyle:{width:"80px","margin-right":"10px"},attrs:{clear:!1,dict:"currency"},model:{value:e.form.price_unit,callback:function(t){e.$set(e.form,"price_unit",t)},expression:"form.price_unit"}})],1)],2)],1)]:e._e(),"2"==e.form.price_type?[r("v-uni-view",{staticClass:"custom-form-item required"},[r("v-uni-view",{staticClass:"form-item-label"},[e._v(e._s(e.$t("order.min_price.label")))]),r("v-uni-view",{staticClass:"m-flex-box flex-s flex-align-center"},[r("v-uni-view",{staticClass:"flex-none",staticStyle:{width:"80px","margin-right":"10px"}},[r("custom-select",{ref:"customSelect",attrs:{clear:!1,dict:"currency"},model:{value:e.form.price_unit,callback:function(t){e.$set(e.form,"price_unit",t)},expression:"form.price_unit"}})],1),r("v-uni-view",{staticClass:"flex-1"},[r("u-form-item",{attrs:{prop:"min_price",id:"min_price"}},[r("u--input",{attrs:{type:"number",placeholder:e.$t("order.min_price.min_placeholder")},on:{blur:function(t){arguments[0]=t=e.$handleEvent(t),e.checkPrice.apply(void 0,arguments)}},model:{value:e.form.min_price,callback:function(t){e.$set(e.form,"min_price",t)},expression:"form.min_price"}})],1)],1),r("v-uni-view",{staticClass:"m-lr-10"},[e._v("-")]),r("v-uni-view",{staticClass:"flex-1"},[r("u-form-item",{attrs:{prop:"max_price",id:"max_price"}},[r("u--input",{attrs:{type:"number",placeholder:e.$t("order.max_price.max_placeholder")},on:{blur:function(t){arguments[0]=t=e.$handleEvent(t),e.checkPrice.apply(void 0,arguments)}},model:{value:e.form.max_price,callback:function(t){e.$set(e.form,"max_price",t)},expression:"form.max_price"}})],1)],1)],1)],1)]:e._e(),r("u-form-item",{attrs:{label:e.$t("order.contact_person.label"),prop:"contact_person",required:!0,id:"contact_person"}},[r("u--input",{attrs:{placeholder:e.$t("order.contact_person.placeholder")},model:{value:e.form.contact_person,callback:function(t){e.$set(e.form,"contact_person",t)},expression:"form.contact_person"}})],1),r("v-uni-view",{staticClass:"custom-form-item required"},[r("v-uni-view",{staticClass:"form-item-label"},[e._v(e._s(e.$t("order.contact_phone.label")))]),r("v-uni-view",{staticClass:"m-flex-box flex-s flex-align-center"},[r("v-uni-view",{staticClass:"flex-none",staticStyle:{width:"100px","margin-right":"10px"}},[r("u-form-item",{attrs:{prop:"contact_phone_prefix",id:"contact_phone_prefix"}},[r("phone-prefix",{ref:"phonePrefix",on:{show:function(t){arguments[0]=t=e.$handleEvent(t),e.popupShow.apply(void 0,arguments)}},model:{value:e.form.contact_phone_prefix,callback:function(t){e.$set(e.form,"contact_phone_prefix",t)},expression:"form.contact_phone_prefix"}})],1)],1),r("v-uni-view",{staticClass:"flex-auto"}
1,[r("u-form-item",{attrs:{prop:"contact_phone",id:"contact_phone"}},[r("u--input",{attrs:{type:"number",placeholder:e.$t("order.contact_phone.placeholder")},model:{value:e.form.contact_phone,callback:function(t){e.$set(e.form,"contact_phone",t)},expression:"form.contact_phone"}})],1)],1)],1)],1),r("u-form-item",{attrs:{label:e.$t("order.contact_way.label"),prop:"contact_way"}},[r("u--input",{attrs:{placeholder:e.$t("order.contact_way.placeholder")},model:{value:e.form.contact_way,callback:function(t){e.$set(e.form,"contact_way",t)},expression:"form.contact_way"}})],1),r("u-form-item",{attrs:{label:e.$t("order.remarks.label"),prop:"remarks"}},[r("u--textarea",{attrs:{placeholder:e.$t("order.remarks.placeholder"),height:80},model:{value:e.form.remarks,callback:function(t){e.$set(e.form,"remarks",t)},expression:"form.remarks"}})],1),r("u-form-item",{attrs:{label:e.$t("order.cargo_img.label"),prop:"cargo_img",required:!0,id:"cargo_img"}},[r("upload-image",{attrs:{multiple:!0,maxCount:9},model:{value:e.form.cargo_img,callback:function(t){e.$set(e.form,"cargo_img",t)},expression:"form.cargo_img"}})],1)],2):e._e()],1)],1),e.footerShow?r("v-uni-view",{staticClass:"page-footer p-10"},[r("u-button",{attrs:{type:"primary",shape:"circle",disabled:e.isSubmit},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.submit.apply(void 0,arguments)}}},[e._v(e._s(e.$t("common.submit")))])],1):e._e(),r("u-toast",{ref:"uToast"}),e.popup.region?r("select-region",{ref:"selectRegionFrom",attrs:{showIcon:!1,showHandle:!1,"suggested-key":e.suggestedKey},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.selectRegionChange.apply(void 0,arguments)},closed:function(t){arguments[0]=t=e.$handleEvent(t),e.popup.region=!1}}}):e._e()],1)},n=[],s=r(42727),c=r(50575),l=r(2775),p=(r(16280),r(76918),r(16034),r(78459),r(27495),r(25440),{name:"orderSave",data:function(){return{mode:"add",formShow:!1,footerShow:!0,selectShow:!0,form:(0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)({price_unit:"CNY",plan_time:[],from_area_code:"",to_area_code:"",is_declaration:0,price_type:"2",from_country_id:"",to_country_id:""},"from_area_code",""),"to_area_code",""),"transport_info",{vehicle_type:"",box_type:"",weight:"",volume:""}),"shipping_type","ROAD"),"from_area_text",""),"to_area_text",""),rules:{from_country_id:[{type:"number",required:!0,message:this.$t("order.from_area_code.placeholder"),trigger:["blur","change"]}],to_country_id:[{type:"number",required:!0,message:this.$t("order.to_area_code.placeholder"),trigger:["blur","change"]}],cargo_name:[{required:!0,message:this.$t("order.cargo_name.placeholder"),trigger:["blur"]}],trade_term:[{required:!0,message:this.$t("order.trade_term.placeholder"),trigger:["blur","change"]}],transport_type:[{required:!0,message:this.$t("order.transport_type.placeholder"),trigger:["blur","change"]}],price_type:[{required:!0,message:this.$t("order.price_type.placeholder"),trigger:["blur","change"]}],min_price:[{type:"number",required:!0,message:this.$t("order.min_price.label"),trigger:["blur","change"]}],max_price:[{validator:this.validatePriceMax,trigger:"blur"}],contact_person:[{required:!0,message:this.$t("order.contact_person.placeholder"),trigger:["blur"]}],contact_phone:[{required:!0,message:this.$t("order.contact_phone.placeholder"),trigger:["blur"]}],contact_phone_prefix:[{required:!0,message:this.$t("order.contact_phone_prefix.placeholder"),trigger:["blur","change"]}],plan_time:[{type:"array",required:!0,message:this.$t("order.plan_time.placeholder"),trigger:["blur"]}],"transport_info.vehicle_type":[{required:!0,message:this.$t("order.vehicle_type.placeholder"),trigger:["blur"]}],"transport_info.box_type":[{required:!0,message:this.$t("order.box_type.placeholder"),trigger:["blur"]}],"transport_info.weight":[{required:!0,message:this.$t("order.weight.placeholder"),trigger:["blur"]}],"transport_info.volume":[{required:!0,message:this.$t("order.volume.placeholder"),trigger:["blur"]}],cargo_type:[{required:!0,message:this.$t("order.cargo_type.placeholder"),trigger:["blur"]}],cargo_img:[{required:!0,message:this.$t("order.cargo_img.placeholder"),trigger:["blur"]}]},minDate:(new Date).getTime(),scrollInto:"",isSubmit:!1,shippingTypeList:[],transportList:[],regionShow:!1,suggestedKey:"from_order",regionType:"from",regionData:{country_id:"",area_code:""},popup:{region:!1}}},onLoad:function(e){var t=this;return(0,c.A)((0,s.A)().mark((function r(){var o;return(0,s.A)().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,t.fetchShippingType();case 2:return r.next=4,t.$utils.checkAuth(!1);case 4:if(o=r.sent,!o){r.next=19;break}if(!t.$lodash.has(e,"id")){r.next=12;break}return t.mode="edit",r.next=10,t.fetchInfo(e.id);case 10:r.next=19;break;case 12:t.$lodash.has(e,"from_country_id")&&(t.form.from_country_id=e.from_country_id),t.$lodash.has(e,"to_country_id")&&(t.form.to_country_id=e.to_country_id),t.$lodash.has(e,"from_area_code")&&(t.form.from_area_code=e.from_area_code),t.$lodash.has(e,"to_area_code")&&(t.form.to_area_code=e.to_area_code),t.$lodash.has(e,"from_area_text")&&(t.form.from_area_text=e.from_area_text),t.$lodash.has(e,"to_area_text")&&(t.form.to_area_text=e.to_area_text),t.formShow=!0;case 19:case"end":return r.stop()}}),r)})))()},onReady:function(){this.$refs.uForm&&this.$refs.uForm.setRules(this.rules)},methods:{selectRegion:function(e){var t=this;this.regionType=e,this.suggestedKey="".concat(e,"_order"),this.regionData={country_id:this.form["".concat(e,"_country_id")],area_code:this.form["".concat(e,"_area_code")]},this.popup.region=!0,this.$nextTick((function(){t.$refs.selectRegionFrom.showPopup(t.regi
1onData)}))},selectRegionChange:function(e){if("from"==this.regionType){if(this.form.from_country_id=e.countryId,this.form.from_area_code=e.areaCode,this.form.from_area_text=e.showText,this.$utils.isEmpty(this.form.contact_phone_prefix)){var t=e.country.phone_code;this.form.contact_phone_prefix=t.replace(/\+/g,"")}this.$utils.isEmpty(e.country)||1==e.country||this.$utils.suggested.save("from_order",e.country)}"to"==this.regionType&&(this.form.to_country_id=e.countryId,this.form.to_area_code=e.areaCode,this.form.to_area_text=e.showText,this.$utils.isEmpty(e.country)||1==e.country||this.$utils.suggested.save("to_order",e.country))},fetchShippingType:function(){var e=this;return(0,c.A)((0,s.A)().mark((function t(){var r;return(0,s.A)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$API.basic.getShippingType();case 2:r=t.sent,200==r.code&&(e.shippingTypeList=r.data,e.transportList=Object.values(e.shippingTypeList["ROAD"]["transport"]));case 4:case"end":return t.stop()}}),t)})))()},changeShippingType:function(e){var t=this;this.form.shipping_type=e,this.transportList=Object.values(this.shippingTypeList[e]["transport"]),this.form.transport_type="",this.form.transport_info={},this.selectShow=!1,this.$nextTick((function(){t.selectShow=!0}))},checkPrice:function(){if(parseFloat(this.form.min_price)>0&&parseFloat(this.form.max_price)>0&&parseFloat(this.form.min_price)>parseFloat(this.form.max_price)){var e=this.$utils.objCopy(this.form.min_price),t=this.$utils.objCopy(this.form.max_price);this.form.min_price=t,this.form.max_price=e}},validatePriceMax:function(e,t,r){this.$utils.isEmpty(this.form.min_price)?r(new Error(this.$t("order.min_price.min_placeholder"))):this.$utils.isEmpty(this.form.max_price)?r(new Error(this.$t("order.max_price.max_placeholder"))):parseFloat(this.form.min_price)>0&&parseFloat(this.form.min_price)>parseFloat(this.form.max_price)?r(new Error(this.$t("order.min_price.error"))):r()},transportChange:function(){var e=this;this.selectShow=!1,this.$nextTick((function(){e.selectShow=!0}))},fetchInfo:function(e){var t=this;return(0,c.A)((0,s.A)().mark((function r(){var o,i;return(0,s.A)().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return uni.showLoading({title:t.$t("common.Loading")}),r.next=3,t.$API.require.info({id:e});case 3:if(o=r.sent,uni.hideLoading(),200!=o.code){r.next=22;break}return i=o.data,i["plan_time"]=[1e3*i.plan_start_time,1e3*i.plan_end_time],t.changeShippingType(i.shipping_type),i["transport_type"]=i.transport_type+"",i["transport_info"]=Object.assign({},t.form.transport_info,i.transport_info),t.form=o.data,r.next=14,t.$utils.getRegionText({country_id:i.from_country_id,area_code:i.from_area_code});case 14:return t.form["from_area_text"]=r.sent,r.next=17,t.$utils.getRegionText({country_id:i.to_country_id,area_code:i.to_area_code});case 17:t.form["to_area_text"]=r.sent,t.formShow=!0,t.$nextTick((function(){t.$refs.uForm.setRules(t.rules)})),r.next=23;break;case 22:uni.$u.toast(o.message);case 23:case"end":return r.stop()}}),r)})))()},popupShow:function(e){this.footerShow=!e},selectRegionFrom:function(e){if(this.form.from_country_id=e.countryId,this.form.from_area_code=e.areaCode,this.$utils.isEmpty(this.form.contact_phone_prefix)){var t=e.country.phone_code;this.form.contact_phone_prefix=t.replace(/\+/g,"")}this.$utils.isEmpty(e.country)||this.$utils.suggested.save("from_order",e.country),console.log("æéæ©çå°åä¿¡æ¯:",this.form)},selectRegionTo:function(e){this.form.to_country_id=e.countryId,this.form.to_area_code=e.areaCode,this.$utils.isEmpty(e.country)||this.$utils.suggested.save("to_order",e.country),console.log("æéæ©çå°åä¿¡æ¯:",e)},submit:function(){var e=this;return(0,c.A)((0,s.A)().mark((function t(){var r,o,i;return(0,s.A)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.scrollInto="",t.prev=1,t.next=4,e.$refs.uForm.validate();case 4:if(r=t.sent,!r){t.next=12;break}return e.isSubmit=!0,o=e.$utils.objCopy(e.form),t.next=10,e.$API.require.save(o);case 10:i=t.sent,200==i.code?(uni.$emit("refresh_require_list"),e.$refs.uToast.show({message:e.$t("order.order_save_success"),duration:3e3,complete:function(){e.$utils.goBack("","redirect")}})):(uni.$u.toast(i.message),e.isSubmit=!1);case 12:t.next=17;break;case 14:t.prev=14,t.t0=t["catch"](1),t.t0&&(e.scrollInto=t.t0[0]["field"]);case 17:case"end":return t.stop()}}),t,null,[[1,14]])}
1)))()}}}),u=p,d=(r(15038),r(18535)),m=(0,d.A)(u,a,n,!1,null,"65dbd94e",null,!1,i,o),f=m.exports},8168:function(e,t,r){"use strict";r.r(t);var o=r(31601),i=r.n(o),a=r(76314),n=r.n(a),s=n()(i());s.push([e.id,'@charset "UTF-8";\n/**\n * è¿éæ¯uni-appå
ç½®çå¸¸ç¨æ ·å¼åé\n *\n * uni-app 宿¹æ©å±æä»¶åæä»¶å¸åºï¼https://ext.dcloud.net.cnï¼ä¸å¾å¤ä¸æ¹æä»¶å使ç¨äºè¿äºæ ·å¼åé\n * å¦æä½ æ¯æä»¶å¼åè
ï¼å»ºè®®ä½ 使ç¨scssé¢å¤çï¼å¹¶å¨æä»¶ä»£ç ä¸ç´æ¥ä½¿ç¨è¿äºåéï¼æ é import è¿ä¸ªæä»¶ï¼ï¼æ¹ä¾¿ç¨æ·éè¿æç§¯æ¨çæ¹å¼å¼åæ´ä½é£æ ¼ä¸è´çApp\n *\n */\n/**\n * å¦æä½ æ¯Appå¼åè
ï¼æä»¶ä½¿ç¨è
ï¼ï¼ä½ å¯ä»¥éè¿ä¿®æ¹è¿äºå鿥å®å¶èªå·±çæä»¶ä¸»é¢ï¼å®ç°èªå®ä¹ä¸»é¢åè½\n *\n * å¦æä½ ç项ç®åæ ·ä½¿ç¨äºscssé¢å¤çï¼ä½ ä¹å¯ä»¥ç´æ¥å¨ä½ ç scss 代ç ä¸ä½¿ç¨å¦ä¸åéï¼åæ¶æ é import è¿ä¸ªæä»¶\n */\n/* é¢è²åé */\n/* è¡ä¸ºç¸å
³é¢è² */\n/* æååºæ¬é¢è² */\n/* èæ¯é¢è² */\n/* è¾¹æ¡é¢è² */\n/* 尺寸åé */\n/* æå尺寸 */\n/* å¾ç尺寸 */\n/* Border Radius */\n/* æ°´å¹³é´è· */\n/* åç´é´è· */\n/* éæåº¦ */\n/* æç« åºæ¯ç¸å
³ */uni-view[data-v-a54a97e0], uni-scroll-view[data-v-a54a97e0], uni-swiper-item[data-v-a54a97e0]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}',""]),t["default"]=s},83745:function(e,t,r){"use strict";r.r(t);var o=r(31601),i=r.n(o),a=r(76314),n=r.n(a),s=n()(i());s.push([e.id,'@charset "UTF-8";\n/**\n * è¿éæ¯uni-appå
ç½®çå¸¸ç¨æ ·å¼åé\n *\n * uni-app 宿¹æ©å±æä»¶åæä»¶å¸åºï¼https://ext.dcloud.net.cnï¼ä¸å¾å¤ä¸æ¹æä»¶å使ç¨äºè¿äºæ ·å¼åé\n * å¦æä½ æ¯æä»¶å¼åè
ï¼å»ºè®®ä½ 使ç¨scssé¢å¤çï¼å¹¶å¨æä»¶ä»£ç ä¸ç´æ¥ä½¿ç¨è¿äºåéï¼æ é import è¿ä¸ªæä»¶ï¼ï¼æ¹ä¾¿ç¨æ·éè¿æç§¯æ¨çæ¹å¼å¼åæ´ä½é£æ ¼ä¸è´çApp\n *\n */\n/**\n * å¦æä½ æ¯Appå¼åè
ï¼æä»¶ä½¿ç¨è
ï¼ï¼ä½ å¯ä»¥éè¿ä¿®æ¹è¿äºå鿥å®å¶èªå·±çæä»¶ä¸»é¢ï¼å®ç°èªå®ä¹ä¸»é¢åè½\n *\n * å¦æä½ ç项ç®åæ ·ä½¿ç¨äºscssé¢å¤çï¼ä½ ä¹å¯ä»¥ç´æ¥å¨ä½ ç scss 代ç ä¸ä½¿ç¨å¦ä¸åéï¼åæ¶æ é import è¿ä¸ªæä»¶\n */\n/* é¢è²åé */\n/* è¡ä¸ºç¸å
³é¢è² */\n/* æååºæ¬é¢è² */\n/* èæ¯é¢è² */\n/* è¾¹æ¡é¢è² */\n/* 尺寸åé */\n/* æå尺寸 */\n/* å¾ç尺寸 */\n/* Border Radius */\n/* æ°´å¹³é´è· */\n/* åç´é´è· */\n/* éæåº¦ */\n/* æç« åºæ¯ç¸å
³ */uni-view[data-v-0d0d463d], uni-scroll-view[data-v-0d0d463d], uni-swiper-item[data-v-0d0d463d]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-toast__content[data-v-0d0d463d]{\ndisplay:flex;\nflex-direction:row;padding:12px 20px;border-radius:4px;background-color:#585858;color:#fff;align-items:center;max-width:%?600?%;position:relative}.u-toast__content--loading[data-v-0d0d463d]{flex-direction:column;padding:20px 20px}.u-toast__content__text[data-v-0d0d463d]{color:#fff;font-size:15px;line-height:15px}.u-toast__content__text--default[data-v-0d0d463d]{color:#fff}.u-toast__content__text--error[data-v-0d0d463d]{color:#f56c6c}.u-toast__content__text--primary[data-v-0d0d463d]{color:#3c9cff}.u-toast__content__text--success[data-v-0d0d463d]{color:#5ac725}.u-toast__content__text--warning[data-v-0d0d463d]{color:#f9ae3d}.u-type-primary[data-v-0d0d463d]{color:#3c9cff;background-color:#ecf5ff;border-color:#d7eafe;border-width:1px}.u-type-success[data-v-0d0d463d]{color:#5ac725;background-color:#dbf1e1;border-color:#bef5c8;border-width:1px}.u-type-error[data-v-0d0d463d]{color:#f56c6c;background-color:#fef0f0;border-color:#fde2e2;border-width:1px}.u-type-warning[data-v-0d0d463d]{color:#f9ae3d;background-color:#fdf6ec;border-color:#faecd8;border-width:1px}.u-type-default[data-v-0d0d463d]{color:#fff;background-color:#585858}',""]),t["default"]=s},32946:function(e,t,r){"use strict";r.r(t);var o=r(31601),i=r.n(o),a=r(76314),n=r.n(a),s=n()(i());
1s.push([e.id,'@charset "UTF-8";\n/**\n * è¿éæ¯uni-appå
ç½®çå¸¸ç¨æ ·å¼åé\n *\n * uni-app 宿¹æ©å±æä»¶åæä»¶å¸åºï¼https://ext.dcloud.net.cnï¼ä¸å¾å¤ä¸æ¹æä»¶å使ç¨äºè¿äºæ ·å¼åé\n * å¦æä½ æ¯æä»¶å¼åè
ï¼å»ºè®®ä½ 使ç¨scssé¢å¤çï¼å¹¶å¨æä»¶ä»£ç ä¸ç´æ¥ä½¿ç¨è¿äºåéï¼æ é import è¿ä¸ªæä»¶ï¼ï¼æ¹ä¾¿ç¨æ·éè¿æç§¯æ¨çæ¹å¼å¼åæ´ä½é£æ ¼ä¸è´çApp\n *\n */\n/**\n * å¦æä½ æ¯Appå¼åè
ï¼æä»¶ä½¿ç¨è
ï¼ï¼ä½ å¯ä»¥éè¿ä¿®æ¹è¿äºå鿥å®å¶èªå·±çæä»¶ä¸»é¢ï¼å®ç°èªå®ä¹ä¸»é¢åè½\n *\n * å¦æä½ ç项ç®åæ ·ä½¿ç¨äºscssé¢å¤çï¼ä½ ä¹å¯ä»¥ç´æ¥å¨ä½ ç scss 代ç ä¸ä½¿ç¨å¦ä¸åéï¼åæ¶æ é import è¿ä¸ªæä»¶\n */\n/* é¢è²åé */\n/* è¡ä¸ºç¸å
³é¢è² */\n/* æååºæ¬é¢è² */\n/* èæ¯é¢è² */\n/* è¾¹æ¡é¢è² */\n/* 尺寸åé */\n/* æå尺寸 */\n/* å¾ç尺寸 */\n/* Border Radius */\n/* æ°´å¹³é´è· */\n/* åç´é´è· */\n/* éæåº¦ */\n/* æç« åºæ¯ç¸å
³ */.page-content[data-v-65dbd94e]{height:100%;background-color:#fff;padding:15px 0;border-radius:20px;box-shadow:0 2px 4px rgba(0,0,0,.1)}.shipping-type[data-v-65dbd94e]{padding:15px;display:flex;align-items:center;justify-content:space-between}.shipping-type .shipping-item[data-v-65dbd94e]{flex:1;padding:0 15px;margin-right:15px;height:40px;border-radius:10px;background-color:#efefef;display:flex;align-items:center;justify-content:center}.shipping-type .shipping-item .icon[data-v-65dbd94e]{width:30px;height:30px;flex:none;display:flex;align-items:center;justify-content:center}.shipping-type .shipping-item .icon .tms-iconfont[data-v-65dbd94e]{font-size:24px}.shipping-type .shipping-item[data-v-65dbd94e]:last-child{margin-right:0}.shipping-type .shipping-item.active[data-v-65dbd94e]{background-color:#005df6;color:#fff}.shipping-type .shipping-item.active .icon[data-v-65dbd94e]{color:#fff}',""]),t["default"]=s}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.