shop_mer_admin/mer/js/chunk-47ab2a1c.6b752511.js

1 line
9.8 KiB
JavaScript
Raw Permalink Normal View History

2024-03-16 17:53:53 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-47ab2a1c"],{"13c2":function(e,t,r){"use strict";r("9b94")},"381f":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"divBox"},[r("el-card",{staticClass:"box-card"},[r("el-form",{ref:"formValidate",attrs:{model:e.formValidate,rules:e.rules,"label-width":"110px",size:"small"}},[r("el-form-item",{attrs:{label:"快递公司:"}},[r("el-select",{staticClass:"pageWidth",attrs:{placeholder:"请选择快递公司",clearable:""},on:{change:function(t){return e.getDumpList("")}},model:{value:e.formValidate.mer_from_com,callback:function(t){e.$set(e.formValidate,"mer_from_com",t)},expression:"formValidate.mer_from_com"}},e._l(e.deliveryList,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"电子面单:"}},[r("el-select",{staticClass:"pageWidth",attrs:{placeholder:"请选择电子面单",clearable:""},model:{value:e.formValidate.mer_config_temp_id,callback:function(t){e.$set(e.formValidate,"mer_config_temp_id",t)},expression:"formValidate.mer_config_temp_id"}},e._l(e.dumpList,(function(e){return r("el-option",{key:e.temp_id,attrs:{label:e.title,value:e.temp_id}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"云打印机编号:"}},[r("el-input",{staticClass:"pageWidth",attrs:{placeholder:"请输入云打印机编号"},model:{value:e.formValidate.mer_config_siid,callback:function(t){e.$set(e.formValidate,"mer_config_siid",t)},expression:"formValidate.mer_config_siid"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"寄件人姓名:",prop:"mer_from_name"}},[r("el-input",{staticClass:"pageWidth",attrs:{placeholder:"请输入寄件人姓名"},model:{value:e.formValidate.mer_from_name,callback:function(t){e.$set(e.formValidate,"mer_from_name",t)},expression:"formValidate.mer_from_name"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"寄件人电话:",prop:"mer_from_tel"}},[r("el-input",{staticClass:"pageWidth",attrs:{placeholder:"请输入寄件人电话"},model:{value:e.formValidate.mer_from_tel,callback:function(t){e.$set(e.formValidate,"mer_from_tel",t)},expression:"formValidate.mer_from_tel"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"寄件人地址:",prop:"mer_from_addr"}},[r("el-input",{staticClass:"pageWidth",attrs:{type:"textarea",placeholder:"请输入寄件人地址"},model:{value:e.formValidate.mer_from_addr,callback:function(t){e.$set(e.formValidate,"mer_from_addr",t)},expression:"formValidate.mer_from_addr"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("formValidate")}}},[e._v("提交")])],1)],1)],1)],1)},o=[],i=(r("7f7f"),r("90e7")),a=r("f8b7"),u={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 e=this;Object(a["p"])().then((function(t){e.deliveryList=t.data})).catch((function(t){e.$message.error(t.message)}))},getDumpList:function(e){var t=this;Object(i["n"])({com:this.formValidate.mer_from_com,type:1}).then((function(r){t.dumpList=r.data.data,r.data.data.length?t.formValidate.mer_config_temp_id=t.mer_config_temp_id:t.formValidate.mer_config_temp_id="","first"!=e&&(t.f