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
5.5 KiB

require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["package2/other/customDetail"],{"4b26":function(t,e,o){"use strict";o.r(e);var r=o("aa84"),i=o.n(r);for(var s in r)["default"].indexOf(s)<0&&function(t){o.d(e,t,(function(){return r[t]}))}(s);e["default"]=i.a},8383:function(t,e,o){},"8a68":function(t,e,o){"use strict";var r=o("8383"),i=o.n(r);i.a},"975c":function(t,e,o){"use strict";(function(t,e){var r=o("47a9");o("7859");r(o("3240"));var i=r(o("da45"));t.__webpack_require_UNI_MP_PLUGIN__=o,e(i.default)}).call(this,o("3223")["default"],o("df3c")["createPage"])},aa84:function(t,e,o){"use strict";(function(t){var r=o("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(o("af34")),s=(r(o("60b9")),{data:function(){return{orderByWorkerCandidates:[],orderByWorker:"",bufferData:"",show:!1,popupShow:!1,sales:{},order:{},list:[],isReturn:!1,orderByWorkerList:[],inventoryList:[],shopList:[],editNoPrice:!1,newEarn:0,qrcodeData:"",isgys:!0,isReturnPrice:1,type:"",orderXd:[],collection:[],lbgName:[],returnAmount:0,shopData:[]}},filters:{sliceMsg:function(t){var e="";if("string"==typeof t){var o=JSON.parse(t);for(var r in o)e+=o[r]+"/"}return e}},onShow:function(){this.lbgName=JSON.parse(JSON.stringify(this.lbgName))},onLoad:function(t){var e=this;this.tui.request("/app/sale/get/"+t.id,"GET",null,!1,!1).then((function(o){if(200==o.code&&null!=o.result&&void 0!=o.result){e.sales=o.result.sale,e.list=o.result.saleDetailDTOList;for(var r=0;r<e.list.length;r++)for(var i=0;i<e.list[r].stockLogList1.length;i++)null==e.list[r].productCount?e.list[r].productCount=e.list[r].stockLogList1[i].productCount:e.list[r].productCount+=e.list[r].stockLogList1[i].productCount;e.order=o.result.customer,e.orderXd=o.result.orderXd,e.shopData=o.result.shop,e.getReturnOrder(t.id),e.collectionList(t.id)}else e.tui.toast(o.message)})).catch((function(t){}))},methods:{collectionList:function(t){var e=this;this.tui.request("/app/dealingRecord/getDealingsRecordList","post",{orderId:t},!1,!0).then((function(t){e.collection=t.result})).catch((function(t){}))},getReturnOrder:function(t){var e=this,o=this;this.tui.request("/app/return/list","post",{remark:3,saleId:t},!1,!1).then((function(t){if(200==t.code&&null!=t.result&&void 0!=t.result)if(""!=t.result){e.inventoryList=t.result;var r=new Map;e.inventoryList.forEach((function(t){e.tui.request("/app/return/get/"+t.id,"GET",null,!1,!1).then((function(t){if(200==t.code&&null!=t.result&&void 0!=t.result){var s;o.returnList.push(t.result),(s=o.shopList).push.apply(s,(0,i.default)(t.result.saleDetailDTOList));for(var n=t.result.saleDetailDTOList,u=0;u<n.length;u++)for(var l=0;l<n[u].stockLogList1.length;l++)1==r.has(n[u].productId+"-"+n[u].stockLogList1[l].attributeList)?r.set(n[u].productId+"-"+n[u].stockLogList1[l].attributeList,r.get(n[u].productId+"-"+n[u].stockLogList1[l].attributeList)+n[u].stockLogList1[l].productCount):r.set(n[u].productId+"-"+n[u].stockLogList1[l].attributeList,n[u].stockLogList1[l].productCount);e.zReturnNum=0,e.$nextTick((function(){for(var t=0;t<o.list.length;t++)for(var e=0;e<o.list[t].stockLogList1.length;e++)o.zReturnNum+=o.list[t].stockLogList1[e].productCount,1==r.has(o.list[t].productId+"-"+o.list[t].stockLogList1[e].attributeList)?o.list[t].stockLogList1[e].maxNum=o.list[t].stockLogList1[e].productCount-r.get(o.list[t].productId+"-"+o.list[t].stockLogList1[e].attributeList):o.list[t].stockLogList1[e].maxNum=o.list[t].stockLogList1[e].productCount})),r.forEach((function(t,e){o.zReturnNum-=t}))}})).catch((function(t){}))}))}else for(var s=0;s<o.list.length;s++)for(var n=0;n<o.list[s].stockLogList1.length;n++)o.list[s].stockLogList1[n].maxNum=o.list[s].stockLogList1[n].productCount;else e.tui.toast(t.message)}))},showImage:function(){t.previewImage({urls:[this.orderXd.orderPicture],current:this.orderXd.orderPicture})}}});e.default=s}).call(this,o("df3c")["default"])},b43e:function(t,e,o){"use strict";o.d(e,"b",(function(){return i})),o.d(e,"c",(function(){return s})),o.d(e,"a",(function(){return r}));var r={uniCard:function(){return o.e("uni_modules/uni-card/components/uni-card/uni-card").then(o.bind(null,"1e6b"))},uNumberBox:function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/uview-ui/components/u-number-box/u-number-box")]).then(o.bind(null,"0272"))},uCollapse:function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/uview-ui/components/u-collapse/u-collapse")]).then(o.bind(null,"a533"))},uCollapseItem:function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/uview-ui/components/u-collapse-item/u-collapse-item")]).then(o.bind(null,"e2cc"))}},i=function(){var t=this,e=t.$createElement,o=(t._self._c,t.__map(t.list,(function(e,o){var r=t.__get_orig(e),i=t.__map(e.stockLogList1,(function(e,o){var r=t.__get_orig(e),i=0!=e.productCount?t._f("sliceMsg")(e.attributeList):null;return{$orig:r,f0:i}}));return{$orig:r,l0:i}}))),r=t.isgys?t.__map(t.shopList,(function(e,o){var r=t.__get_orig(e),i=t.__map(e.stockLogList1,(function(e,o){var r=t.__get_orig(e),i=e.attributeList.substr(1).substring(0,e.attributeList.substr(1).length-1).replace(/\"/g,"");return{$orig:r,g0:i}}));return{$orig:r,l2:i}})):null;t.$mp.data=Object.assign({},{$root:{l1:o,l3:r}})},s=[]},da45:function(t,e,o){"use strict";o.r(e);var r=o("b43e"),i=o("4b26");for(var s in i)["default"].indexOf(s)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(s);o("8a68");var n=o("828b"),u=Object(n["a"])(i["default"],r["b"],r["c"],!1,null,"beb6b04c",null,!1,r["a"],void 0);e["default"]=u.exports}},[["975c","common/runtime","common/vendor"]]]);