1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/weigh/checkDtl"],{"1f02":function(t,n,o){"use strict";(function(t){o("6b59");e(o("66fd"));var n=e(o("e5a2"));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"])},"2f00":function(t,n,o){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;o("cea2");var e={data:function(){return{dtlData:{},req:{keyword:null,materialId:null},option:{},checkListData:[],formData:{}}},onLoad:function(t){var n=this;n.option=JSON.parse(decodeURIComponent(t.data)),console.log(n.option),n.req.id=n.option.id,n.getData()},methods:{exemptInspection:function(){var n=this;n.formData.quantitycheckId=n.option.id,n.$post("/wx/check/exemptInspection",n.formData).then((function(n){200==n.code&&(t.showToast({title:"提交成功,跳转中!"}),setTimeout((function(){wx.reLaunch({url:"/pages/home"})}),2e3))}))},checkSubmit:function(){var n=this;n.$post("/wx/check/weighSubmit",n.checkListData).then((function(n){200==n.code&&(t.showToast({title:"提交成功,跳转中!"}),setTimeout((function(){wx.reLaunch({url:"/pages/home"})}),2e3))}))},scanCode:function(n){var o=this;t.scanCode({onlyFromCamera:!0,success:function(n){t.showToast({icon:"loading",title:"加载中",duration:1500}),o.$post("/wx/common/gerMaterialInfoByQrcode",{qrCode:n.result}).then((function(e){if(e.data){for(var i=0;i<o.checkListData.length;i++)if(o.checkListData[i].qrCode==e.data.qrCode)return void t.showToast({icon:"error",title:"二维码已扫描",duration:2e3});e.data.batchNo==o.option.batchNo&&e.data.purchaseBillNo==o.option.purchaseBillNo?(o.option.quantity=e.data.quantity,o.option.qrCode=n.result,t.navigateTo({url:"/pages/weigh/checkSubmit?data="+encodeURIComponent(JSON.stringify(o.option))})):t.showToast({icon:"none",title:"此物料不在此批次!",duration:2e3})}else t.showToast({icon:"error",title:"无效二维码",duration:2e3})}))}})},reload:function(){this.req.keyword=null,this.getData()},getData:function(){var t=this;t.$post("/wx/check/weighDetails",t.req).then((function(n){t.dtlData=n.data,t.checkListData=n.data.list}))},toRouter:function(n){var o=this;o.$post("/wx/check/weighDetails",o.req).then((function(e){for(var i=0;i<e.data.list.length;i++)if(e.data.list[i].id==o.checkListData[n].id){o.checkListData[n].id2=e.data.list[i].id;JSON.parse(JSON.stringify(e.data.list[i]));o.option.unitWeight=e.data.list[i].unitWeight,o.option.weighingResults=e.data.list[i].weighingResults,o.option.id2=e.data.list[i].id,o.option=Object.assign(e.data.list[i],o.option),console.log(o.option,12312312312),o.option.id=o.option.id,t.navigateTo({url:"/pages/weigh/checkSubmit?data="+encodeURIComponent(JSON.stringify(o.option))})}}))}}};n.default=e}).call(this,o("543d")["default"])},"56f0":function(t,n,o){},6071:function(t,n,o){"use strict";o.r(n);var e=o("2f00"),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},8436:function(t,n,o){"use strict";var e=o("56f0"),i=o.n(e);i.a},b4b9: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={uniIcons:function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(o.bind(null,"976b"))},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"))},uniEasyinput:function(){return o.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(o.bind(null,"c8d6"))}},i=function(){var t=this,n=t.$createElement;t._self._c},a=[]},e5a2:function(t,n,o){"use strict";o.r(n);var e=o("b4b9"),i=o("6071");for(var a in i)"default"!==a&&function(t){o.d(n,t,(function(){return i[t]}))}(a);o("8436");var u,c=o("f0c5"),s=Object(c["a"])(i["default"],e["b"],e["c"],!1,null,null,null,!1,e["a"],u);n["default"]=s.exports}},[["1f02","common/runtime","common/vendor"]]]);
|