"use strict";var e=require("../common/vendor.js"),o=require("../api/storeAfterSales.js");require("../common/request.js");const i={data:()=>({form:{salesId:null,deliverySn:null,deliveryName:null}}),onLoad(e){this.form.id=e.id},methods:{submit(){null!=this.form.deliveryName?null!=this.form.deliverySn?o.addDelivery(this.form).then((o=>{200==o.code?(e.index.showToast({icon:"success",title:"提交成功"}),e.index.navigateBack({delta:1})):e.index.showToast({icon:"none",title:o.msg})}),(e=>{})):e.index.showToast({icon:"none",title:"请输入快递单号"}):e.index.showToast({icon:"none",title:"请输入快递公司"})}}};var r=e._export_sfc(i,[["render",function(o,i,r,n,t,s){return{a:t.form.deliveryName,b:e.o((e=>t.form.deliveryName=e.detail.value)),c:t.form.deliverySn,d:e.o((e=>t.form.deliverySn=e.detail.value)),e:e.o((e=>s.submit()))}}]]);wx.createPage(r);
