1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/weigh/checkSubmit"],{"44c9":function(t,n,o){},"4cb7":function(t,n,o){"use strict";(function(t){o("6b59");e(o("66fd"));var n=e(o("b3a9"));function e(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=o,t(n.default)}).call(this,o("543d")["createPage"])},"5e29":function(t,n,o){"use strict";var e=o("44c9"),i=o.n(e);i.a},"8bf0":function(t,n,o){"use strict";o.d(n,"b",(function(){return i})),o.d(n,"c",(function(){return a})),o.d(n,"a",(function(){return e}));var e={uniForms:function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/uni-forms/components/uni-forms/uni-forms")]).then(o.bind(null,"9239"))},uniFormsItem:function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/uni-forms/components/uni-forms-item/uni-forms-item")]).then(o.bind(null,"c8b4"))}},i=function(){var t=this,n=t.$createElement;t._self._c},a=[]},"9b13":function(t,n,o){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;o("cea2");var e=i(o("66fd"));o("2933");function i(t){return t&&t.__esModule?t:{default:t}}var a=function(){Promise.all([o.e("common/vendor"),o.e("components/htz-image-upload/htz-image-upload")]).then(function(){return resolve(o("6e8d"))}.bind(null,o)).catch(o.oe)},u={components:{htzImageUpload:a},data:function(){return{formData:{quantitycheckId:null,materialId:null,quantity:null,qrCode:null,checkJudgment:null,checkQty:null,imageUrl:null,id:null,imageUrlAry:[],weighingResults:0,unitWeight:0},imgs:[],option:null,imgUrl:null,checkListData:[],optionCopy:null}},onLoad:function(t){var n=this;n.userData=e.default.prototype.$userInfo,n.option=JSON.parse(decodeURIComponent(t.data)),n.optionCopy=JSON.parse(JSON.stringify(n.option)),n.formData.stockQuantitycheckId=n.option.id,n.formData.materialId=n.option.materialCode,n.formData.quantity=n.option.quantity,n.formData.checkQty=n.option.quantity,n.formData.qrCode=n.option.qrCode,n.formData.unitWeight=n.option.unitWeight,n.formData.weighingResults=n.option.weighingResults,n.option.id2&&(n.formData=n.option,n.formData.id=n.option.id2),console.log(n.formData,123123123),console.log(n.formData)},methods:{imgDelete:function(t){var n=this;n.imgs.splice(t,1)},bindUpload:function(){var t=this;wx.chooseImage({count:1,sizeType:["original","compressed"],sourceType:["album","camera"],success:function(n){for(var o=n.tempFilePaths,i=0;i<o.length;i++)t.imgs.push({loadingType:!0}),wx.uploadFile({url:"https://wmswx.adprintingplus.com/api/wx/common/uploadFile",filePath:o[i],name:"file",header:{"content-type":"multipart/form-data",Authorization:e.default.prototype.$token},success:function(n){console.log(n.data),n.data=JSON.parse(n.data),200==n.data.code&&(wx.showToast({title:"上传成功",icon:"none",duration:1500}),t.imgs.splice(-1),t.imgs.push(n.data.data))},fail:function(t){wx.showToast({title:"上传失败",icon:"none",duration:2e3})},complete:function(t){console.log(t.errMsg)}})}})},zidingyiSuccess:function(){},checkSubmit:function(n){var o=this;o.formData.checkJudgment=n,o.$post("/wx/check/weighTemp",o.formData).then((function(n){200==n.code&&(t.showToast({title:"提交成功,跳转中!"}),setTimeout((function(){wx.reLaunch({url:"/pages/weigh/checkDtl?data="+encodeURIComponent(JSON.stringify(o.optionCopy))})}),2e3))}))},select:function(t){console.log(t);var n=this;n.$post("/wx/common/uploadFile",{file:t.tempFilePaths[0]}).then((function(t){}))}}};n.default=u}).call(this,o("543d")["default"])},b3a9:function(t,n,o){"use strict";o.r(n);var e=o("8bf0"),i=o("f50b");for(var a in i)"default"!==a&&function(t){o.d(n,t,(function(){return i[t]}))}(a);o("5e29");var u,c=o("f0c5"),r=Object(c["a"])(i["default"],e["b"],e["c"],!1,null,null,null,!1,e["a"],u);n["default"]=r.exports},f50b:function(t,n,o){"use strict";o.r(n);var e=o("9b13"),i=o.n(e);for(var a in e)"default"!==a&&function(t){o.d(n,t,(function(){return e[t]}))}(a);n["default"]=i.a}},[["4cb7","common/runtime","common/vendor"]]]);
|