You can not 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 lines
2.9 KiB
1 lines
2.9 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["package1/index/calculatedBySupplier"],{"3ea4":function(t,n,e){"use strict";e.r(n);var i=e("d3df"),u=e("b957");for(var o in u)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return u[t]}))}(o);e("8c50");var r=e("828b"),a=Object(r["a"])(u["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=a.exports},"8c50":function(t,n,e){"use strict";var i=e("a551"),u=e.n(i);u.a},a551:function(t,n,e){},b957:function(t,n,e){"use strict";e.r(n);var i=e("f4b8"),u=e.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(o);n["default"]=u.a},bec0:function(t,n,e){"use strict";(function(t,n){var i=e("47a9");e("82ca");i(e("3240"));var u=i(e("3ea4"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(u.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},d3df:function(t,n,e){"use strict";e.d(n,"b",(function(){return u})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){return i}));var i={uniDataSelect:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uni-data-select/components/uni-data-select/uni-data-select")]).then(e.bind(null,"c807"))},uniTable:function(){return e.e("uni_modules/uni-table/components/uni-table/uni-table").then(e.bind(null,"e466"))},uniTr:function(){return e.e("uni_modules/uni-table/components/uni-tr/uni-tr").then(e.bind(null,"17f7"))},uniTh:function(){return e.e("uni_modules/uni-table/components/uni-th/uni-th").then(e.bind(null,"f640"))},uniTd:function(){return e.e("uni_modules/uni-table/components/uni-td/uni-td").then(e.bind(null,"01c0"))}},u=function(){var t=this.$createElement;this._self._c},o=[]},f4b8:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={data:function(){return{searchStr:"",inventoryList:[],supplierList:[],gysId:"",totalPrice:0,totalAmount:0}},onLoad:function(t){this.gysList()},methods:{supplierChange:function(t){this.gysId=t,this.getOrderInfoList()},gysList:function(){var t=this;this.tui.request("/app/supplier/getByCondition","POST",{pageNumber:1,pageSize:1e5},!1,!0).then((function(n){200===n.code&&(t.supplierList=n.result.content.map((function(t){return{value:t.id,text:t.consigneeName}})))}))},getOrderInfoList:function(){var n=this;if(""!=this.gysId){t.showLoading({title:"加载中...",mask:!0});var e={pageNum:1,supplierId:this.gysId,pageSize:1e6};this.tui.request("/app/product/getShareList","POST",e,!1,!1).then((function(t){if(200==t.code){n.totalPrice=0,n.totalAmount=0,n.inventoryList=t.result.records;for(var e=0;e<n.inventoryList.length;e++)n.inventoryList[e].price=Number((n.inventoryList[e].purchasePrice*n.inventoryList[e].stockCount).toFixed(2)),n.totalPrice+=n.inventoryList[e].price,n.totalAmount+=Number(n.inventoryList[e].stockCount)}else n.tui.toast(t.message)})).catch((function(t){})),t.hideLoading()}}}};n.default=e}).call(this,e("df3c")["default"])}},[["bec0","common/runtime","common/vendor"]]]);
|