You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
4.8 KiB
JavaScript

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/outStock/volumeDetail"],{"0bbc":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o}));var o={uNavbar:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-navbar/u-navbar")]).then(n.bind(null,"84d1"))},uForm:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-form/u-form")]).then(n.bind(null,"f0ab"))},uFormItem:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-form-item/u-form-item")]).then(n.bind(null,"baa1"))},uDatetimePicker:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-datetime-picker/u-datetime-picker")]).then(n.bind(null,"84f8"))},uInput:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-input/u-input")]).then(n.bind(null,"b883"))},uToast:function(){return n.e("node-modules/uview-ui/components/u-toast/u-toast").then(n.bind(null,"b7df"))}},r=function(){var e=this,t=e.$createElement,n=(e._self._c,e.__map(e.sizeForm.volumeList,(function(t,n){var o=e.__get_orig(t),r=t.length,i=t.length;return{$orig:o,g0:r,g1:i}})));e._isMounted||(e.e0=function(t){e.show=!1},e.e1=function(t){e.show=!0}),e.$mp.data=Object.assign({},{$root:{l0:n}})},i=[]},"1d01":function(e,t,n){"use strict";n.r(t);var o=n("4915"),r=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);t["default"]=r.a},3351:function(e,t,n){"use strict";(function(e,t){var o=n("4ea4");n("260f");o(n("66fd"));var r=o(n("fd5d"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(r.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},4915:function(e,t,n){"use strict";(function(e){var o=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n("79eb")),i=o(n("3f96")),u={data:function(){return{ruleForm:{warehouseId:r.default.state.userInfo.branchId,orderNo:"",orderNos:[],workType:"1",location:"",number:"",userId:""},form:{spec:"",orderId:""},sizeForm:{arriveTime:"",volumeList:[{length:"",number:"",weight:"",height:"",width:""}],time:""},rules:{volumeList:[]},sizeFormRules:{length:{type:"string",required:!0,message:"请输入长度",trigger:["change","blur"]},number:{type:"string",required:!0,message:"请输入件数",trigger:["change","blur"]},weight:{type:"string",required:!0,message:"请输入重量",trigger:["change","blur"]},height:{type:"string",required:!0,message:"请输入高度",trigger:["change","blur"]},width:{type:"string",required:!0,message:"请输入宽度",trigger:["change","blur"]}},selectedButton:"button0",show:!1,time:""}},onLoad:function(e){if(e.data){var t=JSON.parse(e.data);this.form.spec=t.spec,this.form.orderId=t.orderId,this.form.orderNo=t.orderNo,this.sizeForm.volumeList=t.transferVolume,this.sizeForm.volumeList.map((function(e){e.number=1}))}this.rules.volumeList.unshift(this.sizeFormRules),this.onDatetimeChange({value:Number(new Date)}),this.sizeForm.time=Number(new Date)},methods:{selectButton:function(e){this.selectedButton=e},delVolume:function(e){1!=this.sizeForm.volumeList.length?(this.sizeForm.volumeList.splice(e,1),this.selectedButton="button0"):this.$refs.uToast.show({type:"warning",message:"只有一条,不可删除"})},addList:function(){this.sizeForm.volumeList.push({length:"",number:"",weight:"",height:"",width:""}),this.rules.volumeList.unshift(this.sizeFormRules)},leftClick:function(){},onDatetimeChange:function(e){var t=new Date(e.value),n=t.getFullYear(),o=t.getMonth()+1+"",r=t.getDate()+"",i=t.getHours()+"",u=t.getMinutes()+"";o.length<2&&(o="0"+o),r.length<2&&(r="0"+r),i.length<2&&(i="0"+i),u.length<2&&(u="0"+u),this.sizeForm.arriveTime="".concat(n,"-").concat(o,"-").concat(r," ").concat(i,":").concat(u,":00"),this.show=!1},submitData:function(){var t=this;if(this.sizeForm.arriveTime){var n={orderNo:this.form.orderNo,orderId:this.form.orderId,orderVolumeGroupList:[{arriveTime:this.sizeForm.arriveTime,orderVolumeList:this.sizeForm.volumeList}]};i.default.storge.orderVolumeInsert(n).then((function(n){t.ruleForm.orderNos=[],t.form.inNo="",t.orderNosList=[],e.navigateTo({url:"/pages/outStock/palletizing?name=recordingVolume"})}))}else this.$refs.uToast.show({type:"warning",message:"请选择到仓时间"})}}};t.default=u}).call(this,n("543d")["default"])},"7a25":function(e,t,n){"use strict";var o=n("c697"),r=n.n(o);r.a},c697:function(e,t,n){},fd5d:function(e,t,n){"use strict";n.r(t);var o=n("0bbc"),r=n("1d01");for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);n("7a25");var u=n("f0c5"),s=Object(u["a"])(r["default"],o["b"],o["c"],!1,null,"3a1c5f81",null,!1,o["a"],void 0);t["default"]=s.exports}},[["3351","common/runtime","common/vendor"]]]);