zx/public/mer/js/chunk-1145abd2.56f5c2f2.js

1 line
11 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1145abd2"],{"31df":function(e,t,r){},"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-tabs",{model:{value:e.headNum,callback:function(t){e.headNum=t},expression:"headNum"}},[r("el-tab-pane",{attrs:{name:"1",label:"一号通"}}),e._v(" "),r("el-tab-pane",{attrs:{name:"2",label:"电子面单"}})],1),e._v(" "),r("el-form",{ref:"formValidate",attrs:{model:e.formValidate,rules:e.rules,"label-width":"110px",size:"small"}},[1==e.headNum?[r("el-form-item",{attrs:{label:"APPID",prop:"serve_account"}},[r("el-input",{staticClass:"pageWidth",attrs:{placeholder:"请输入APPID"},model:{value:e.formValidate.serve_account,callback:function(t){e.$set(e.formValidate,"serve_account",t)},expression:"formValidate.serve_account"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"AppSecret",prop:"serve_token"}},[r("el-input",{staticClass:"pageWidth",attrs:{type:"input",placeholder:"请输入serve_token"},model:{value:e.formValidate.serve_token,callback:function(t){e.$set(e.formValidate,"serve_token",t)},expression:"formValidate.serve_token"}})],1)]:e._e(),e._v(" "),2==e.headNum?[r("el-form-item",{attrs:{label:"快递公司:"}},[r("el-select",{staticClass:"pageWidth",attrs:{placeholder:"请选择快递公司",clearable:"",filterable:""},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:"请填写快递100云打印机编号"},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._e(),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("formValidate")}}},[e._v("提交")])],1)],2)],1)],1)},o=[],a=(r("7f7f"),r("90e7")),i=r("f8b7"),u={name:"Index",data:function(){return{headNum:"1",formValidate:{mer_config_temp_id:"",mer_from_com:"",mer_from_name:"",mer_config_siid:"",mer_from_tel:"",mer_from_addr:"",APPID:"",AppSecret:""},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(i["p"])().then((function(t){e.deliveryList=t.data})).catch((function(t){e.$message.error(t.message)}))},getDumpList:function(e){var t=this;Object(a["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.formValidate.mer_config_temp_id="")})).catch((function(e){t.$message.error(e.message)}))},getData:function(){var e=this;Object(a["m"])().then((function(t){e.formValidate=t.data,e.mer_config_temp_id=t.data.mer_config_temp_id,e.formValidate.mer_config_temp_id="",t.data.mer_from_com&&e.getDumpList("first")})).catch((function(t){e.$message.error(t.message)}))},submitForm:function(e){var t=this;this.$refs[e].validate((function(e){e&&Object(a["W"])(t.formValidate).then((function(e){t.$message.success(e.message)})).catch((function(e){t.$message.error(e.message)}))}))}}},c=u,d=(r("abd5"),r("2877")),f=Object(d["a"])(c,n,o,!1,null,"0bbf5a80",null);t["default"]=f.exports},abd5:function(e,t,r){"use strict";r("31df")},f8b7:function(e,t,r){"use strict";r.d(t,"I",(function(){return o})),r.d(t,"c",(function(){return a})),r.d(t,"b",(function(){return i})),r.d(t,"M",(function(){return u})),r.d(t,"F",(function(){return c})),r.d(t,"G",(function(){return d})),r.d(t,"q",(function(){return f})),r.d(t,"J",(function(){return s})),r.d(t,"L",(function(){return l})),r.d(t,"E",(function(){return m})),r.d(t,"K",(function(){return _})),r.d(t,"T",(function(){return p})),r.d(t,"R",(function(){return g})),r.d(t,"W",(function(){return v})),r.d(t,"V",(function(){return b})),r.d(t,"U",(function(){return h})),r.d(t,"Q",(function(){return V})),r.d(t,"e",(function(){return x})),r.d(t,"t",(function(){return k})),r.d(t,"S",(function(){return y})),r.d(t,"n",(function(){return $})),r.d(t,"m",(function(){return L})),r.d(t,"l",(function(){return C})),r.d(t,"k",(function(){return W})),r.d(t,"D",(function(){return w})),r.d(t,"x",(function(){return D})),r.d(t,"H",(function(){return q})),r.d(t,"Z",(function(){return N})),r.d(t,"ab",(function(){return P})),r.d(t,"Y",(function(){return j})),r.d(t,"B",(function(){return A})),r.d(t,"A",(function(){return O})),r.d(t,"y",(function(){return I})),r.d(t,"z",(function(){return E})),r.d(t,"C",(function(){return F})),r.d(t,"j",(function(){return J})),r.d(t,"h",(function(){return S})),r.d(t,"i",(function(){return z})),r.d(t,"P",(function(){return B})),r.d(t,"p",(function(){return G})),r.d(t,"o",(function(){return H})),r.d(t,"a",(function(){return K})),r.d(t,"s",(function(){return M})),r.d(t,"w",(function(){return Q})),r.d(t,"r",(function(){return R})),r.d(t,"g",(function(){return T})),r.d(t,"f",(function(){return U})),r.d(t,"O",(function(){return X})),r.d(t,"N",(function(){return Y})),r.d(t,"v",(function(){return Z})),r.d(t,"u",(function(){return ee})),r.d(t,"X",(function(){return te})),r.d(t,"d",(function(){return re}));var n=r("0c6d");function o(e){return n["a"].get("store/order/lst",e)}function a(){return n["a"].get("store/order/chart")}function i(e){return n["a"].get("store/order/title",e)}function u(e,t){return n["a"].post("store/order/update/".concat(e),t)}function c(e,t){return n["a"].post("store/order/delivery/".concat(e),t)}function d(e){return n["a"].get("store/order/detail/".concat(e))}function f(e){return n["a"].get("store/order/children/".concat(e))}function s(e,t){return n["a"].get("store/order/log/".concat(e),t)}function l(e){return n["a"].get("store/order/remark/".concat(e,"/form"))}function m(e){return n["a"].post("store/order/delete/".concat(e))}function _(e){return n["a"].get("store/order/printer/".concat(e))}function p(e){return n["a"].get("store/refundorder/lst",e)}function g(e){return n["a"].get("store/refundorder/detail/".concat(e))}function v(e){return n["a"].get("store/refundorder/status/".concat(e,"/form"))}function b(e){return n["a"].get("store/refundorder/mark/".concat(e,"/form"))}function h(e){return n["a"].get("store/refundorder/log/".concat(e))}function V(e){return n["a"].get("store/refundorder/delete/".concat(e))}function x(e){return n["a"].post("store/refundorder/refund/".concat(e))}function k(e){return n["a"].get("store/order/express/".concat(e))}function y(e){return n["a"].get("store/refundorder/express/".concat(e))}function $(e){return n["a"].get("store/order/excel",e)}function L(e){return n["a"].get("store/order/delivery_export",e)}function C(e){return n["a"].get("excel/lst",e)}function W(e){return n["a"].get("excel/download/".concat(e))}function w(e){return n["a"].get("store/order/verify/".concat(e))}function D(e,t){return n["a"].post("store/order/verify/".concat(e),t)}function q(){return n["a"].get("store/order/filtter")}function N(){return n["a"].get("store/order/takechart")}function P(e){return n["a"].get("store/order/takelst",e)}function j(e){return n["a"].get("store/order/take_title",e)}function A(e){return n["a"].get("store/receipt/lst",e)}function O(e){return n["a"].get("store/receipt/set_recipt",e)}function I(e){return n["a"].post("store/receipt/save_recipt",e)}function E(e){return n["a"].get("store/receipt/detail/".concat(e))}function F(e,t){return n["a"].post("store/receipt/update/".concat(e),t)}function J(e){return n["a"].get("store/import/lst",e)}function S(e,t){return n["a"].get("store/import/detail/".concat(e),t)}function z(e,t){return n["a"].get("store/import/excel/".concat(e),t)}function B(e){return n["a"].get("store/refundorder/excel",e)}function G(){return n["a"].get("expr/options")}function H(e){return n["a"].get("expr/temps",e)}function K(e){return n["a"].post("store/order/delivery_batch",e)}function M(){return n["a"].get("serve/config")}function Q(){return n["a"].get("delivery/station/select")}function R(){return n["a"].get("delivery/station/options")}function T(e){return n["a"].get("delivery/order/lst",e)}function U(e){return n["a"].get("delivery/order/cancel/".concat(e,"/form"))}function X(e){return n["a"].get("delivery/station/payLst",e)}function Y(e){return n["a"].get("delivery/station/code",e)}function Z(e){return n["a"].get("store/refundorder/check/".concat(e))}function ee(){return n["a"].get("store/refundorder/refund_message")}function te(e){return n["a"].post("store/refundorder/create",e)}function re(e){return n["a"].post("store/refundorder/compute",e)}}}]);