"use strict";var e=require("../common/vendor.js"),t=require("../api/storeAfterSales.js");require("../common/request.js");const s={data(){return{form:{salesId:null,deliverySn:null,deliveryName:null}}},onLoad(r){this.form.id=r.id},methods:{submit(){if(this.form.deliveryName==null){e.index.showToast({icon:"none",title:"\u8BF7\u8F93\u5165\u5FEB\u9012\u516C\u53F8"});return}if(this.form.deliverySn==null){e.index.showToast({icon:"none",title:"\u8BF7\u8F93\u5165\u5FEB\u9012\u5355\u53F7"});return}t.addDelivery(this.form).then(r=>{r.code==200?(e.index.showToast({icon:"success",title:"\u63D0\u4EA4\u6210\u529F"}),e.index.navigateBack({delta:1})):e.index.showToast({icon:"none",title:r.msg})},r=>{})}}};function l(r,a,m,u,i,n){return{a:i.form.deliveryName,b:e.o(o=>i.form.deliveryName=o.detail.value),c:i.form.deliverySn,d:e.o(o=>i.form.deliverySn=o.detail.value),e:e.o(o=>n.submit())}}var d=e._export_sfc(s,[["render",l],["__file","E:/Project/2023/\u95EE\u8BCA\u5E73\u53F0/his_user_miniapp/pages_order/storeOrderRefundAddDelivery.vue"]]);wx.createPage(d);
