"use strict";const e=require("../../common/vendor.js"),o=require("../../gen/Apis.js"),s=require("../../common/libraries/apiLoading.js"),l=require("./model.js"),a=require("../../common/libraries/naviHelper.js"),i=require("../../common/libraries/day.js"),d=e=>{s.getApiLoading(o.Apis.GoodsReleases.GoodsReleases.Show,e).then(e=>{var o,s;l.useModel.showData.value=null==e?void 0:e.data,(null==(o=null==e?void 0:e.data)?void 0:o.passed_time)&&(l.useModel.isExpired.value=i.isDatePassed(null==(s=null==e?void 0:e.data)?void 0:s.passed_time)),console.log(e)})},n={getShow:d,handleSubmit(){e.index.showModal({title:"提示",content:"确定放行？",success:function(e){var i;e.confirm?(s.getApiLoading(o.Apis.GoodsReleases.GoodsReleases.ScanRelease,{code:null==(i=l.useModel.showData.value)?void 0:i.code}).then(e=>{var o,s;a.showToast("放行成功！"),d(null==(s=null==(o=l.useModel)?void 0:o.showData)?void 0:s.value),console.log(e)}),console.log("用户点击确定")):e.cancel&&console.log("用户点击取消")}})}};exports.method=n;
