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.
crmeb_php/public/mer/js/chunk-7788e6ba.669c58f7.js

1 line
12 KiB

12 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7788e6ba"],{"381f":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"divBox"},[r("el-card",{staticClass:"box-card"},[r("el-form",{ref:"formValidate",staticClass:"demo-promoterForm",attrs:{model:t.formValidate,rules:t.rules,"label-width":"200px"}},[r("el-form-item",{attrs:{label:"快递公司:",prop:"mer_from_com"}},[r("el-select",{staticClass:"filter-item selWidth mr20",attrs:{placeholder:"请选择快递公司"},on:{change:function(e){return t.getDumpList("")}},model:{value:t.formValidate.mer_from_com,callback:function(e){t.$set(t.formValidate,"mer_from_com",e)},expression:"formValidate.mer_from_com"}},t._l(t.deliveryList,(function(t){return r("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),r("el-form-item",{attrs:{label:"电子面单:",prop:"mer_config_temp_id"}},[r("el-select",{staticClass:"filter-item selWidth mr20",attrs:{placeholder:"请选择电子面单"},model:{value:t.formValidate.mer_config_temp_id,callback:function(e){t.$set(t.formValidate,"mer_config_temp_id",e)},expression:"formValidate.mer_config_temp_id"}},t._l(t.dumpList,(function(t){return r("el-option",{key:t.temp_id,attrs:{label:t.title,value:t.temp_id}})})),1)],1),t._v(" "),r("el-form-item",{attrs:{label:"云打印机编号:",prop:"mer_config_siid"}},[r("el-input",{attrs:{placeholder:"请输入云打印机编号"},model:{value:t.formValidate.mer_config_siid,callback:function(e){t.$set(t.formValidate,"mer_config_siid",e)},expression:"formValidate.mer_config_siid"}})],1),t._v(" "),r("el-form-item",{attrs:{label:"寄件人姓名:",prop:"mer_from_name"}},[r("el-input",{attrs:{placeholder:"请输入寄件人姓名"},model:{value:t.formValidate.mer_from_name,callback:function(e){t.$set(t.formValidate,"mer_from_name",e)},expression:"formValidate.mer_from_name"}})],1),t._v(" "),r("el-form-item",{attrs:{label:"寄件人电话:",prop:"mer_from_tel"}},[r("el-input",{attrs:{placeholder:"请输入寄件人电话"},model:{value:t.formValidate.mer_from_tel,callback:function(e){t.$set(t.formValidate,"mer_from_tel",e)},expression:"formValidate.mer_from_tel"}})],1),t._v(" "),r("el-form-item",{attrs:{label:"寄件人地址:",prop:"mer_from_addr"}},[r("el-input",{attrs:{type:"textarea",placeholder:"请输入寄件人地址"},model:{value:t.formValidate.mer_from_addr,callback:function(e){t.$set(t.formValidate,"mer_from_addr",e)},expression:"formValidate.mer_from_addr"}})],1),t._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitForm("formValidate")}}},[t._v("提交")])],1)],1)],1)],1)},o=[],u=(r("7f7f"),r("90e7")),i=r("f8b7"),a={name:"Index",data:function(){return{formValidate:{mer_config_temp_id:"",mer_from_com:"",mer_from_name:"",mer_config_siid:"",mer_from_tel:"",mer_from_addr:""},mer_config_temp_id:"",deliveryList:[],dumpList:[],loading:!1,rules:{mer_from_com:[{required:!0,message:"请选择快递公司",trigger:"change"}],mer_config_temp_id:[{required:!0,message:"请选择电子面单",trigger:"change"}],mer_from_name:[{required:!0,message:"请输入寄件人姓名",trigger:"blur"}],mer_config_siid:[{required:!0,message:"请输入云打印机编号",trigger:"blur"}],mer_from_tel:[{required:!0,message:"请输入寄件人电话",trigger:"blur"},{pattern:/^1(3|4|5|6|7|8|9)\d{9}$/,message:"请输入正确的联系方式",trigger:"blur"}],mer_from_addr:[{required:!0,message:"请输入寄件人地址",trigger:"blur"}]}}},mounted:function(){this.getData(),this.getExpressLst()},methods:{getExpressLst:function(){var t=this;Object(i["o"])().then((function(e){t.deliveryList=e.data})).catch((function(e){t.$message.error(e.message)}))},getDumpList:function(t){var e=this;Object(u["i"])({com:this.formValidate.mer_from_com}).then((function(r){e.dumpList=r.data.data,r.data.data.length?e.formValidate.mer_config_temp_id=e.mer_config_temp_id:e.formValidate.mer_config_temp_id="","first"!=t&&(e.formValidate.mer_config_temp_id="")})).catch((function(t)