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
37 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-raw-handover-aggregating-accessory"],{"082d":function(e,t,a){var r=a("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */\n/* uni.scss */.TEMP_page[data-v-c7d59f46]{position:absolute;top:0;left:0;bottom:0;right:0}.TEMP_page .TEMP_card[data-v-c7d59f46]{margin:%?36?% %?72?%}.TEMP_page .TEMP_card .TEMP_title[data-v-c7d59f46]{font-size:2em;font-weight:400}.u-col-0[data-v-c7d59f46]{width:0}.u-col-1[data-v-c7d59f46]{width:8.3333333333%}.u-col-2[data-v-c7d59f46]{width:16.6666666667%}.u-col-3[data-v-c7d59f46]{width:25%}.u-col-4[data-v-c7d59f46]{width:33.3333333333%}.u-col-5[data-v-c7d59f46]{width:41.6666666667%}.u-col-6[data-v-c7d59f46]{width:50%}.u-col-7[data-v-c7d59f46]{width:58.3333333333%}.u-col-8[data-v-c7d59f46]{width:66.6666666667%}.u-col-9[data-v-c7d59f46]{width:75%}.u-col-10[data-v-c7d59f46]{width:83.3333333333%}.u-col-11[data-v-c7d59f46]{width:91.6666666667%}.u-col-12[data-v-c7d59f46]{width:100%}',""]),e.exports=t},"1d5f":function(e,t,a){"use strict";var r=a("4ea4");a("4de4"),a("4160"),a("d81d"),a("a434"),a("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.AggregatingModule=void 0;var n=r(a("5530"));a("96cf");var o=r(a("1da1")),u=r(a("d4ec")),i=r(a("bee2")),s=r(a("262e")),c=r(a("2caf")),l=a("9ab4"),d=a("6fc5"),f=r(a("0613")),p=r(a("b32d")),m=a("110c"),g=a("612d"),v=r(a("cd49")),h=function(e){(0,s.default)(a,e);var t=(0,c.default)(a);function a(){var e;return(0,u.default)(this,a),e=t.apply(this,arguments),e.proOrderList=[],e.SubmitCode="",e.proOrderResultList=[],e.CategoryList=[],e.aggregateList=[],e.orderList=[],e.accessoryList=[],e.lockCode="",e.locationList=[],e.mrpcode="",e}return(0,i.default)(a,[{key:"clearProOrderResultList",value:function(){this.proOrderResultList=[]}},{key:"clearProOrderList",value:function(){this.proOrderList=[]}},{key:"checkAllAggregateList",value:function(e){this.aggregateList.map((function(t){Object.assign(t,{checked:e,hvAmount:e&&t.totalMoAmount-t.totalHvAmount||0})}))}},{key:"checkAllOrderList",value:function(e){this.orderList.map((function(t){Object.assign(t,{checked:e,hvAmount:e&&t.totalMoAmount-t.totalHvAmount||0})}))}},{key:"uploadAggregateList",value:function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(t){var a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post(m.url.sumscan.u.hzlist,t);case 2:return a=e.sent,r=a.code,console.log("yayayyayyayayayyayyayayayyay",r),uni.showToast({title:"success",duration:2e3,image:"/static/icons/icon-51.png"}),e.abrupt("return",{SubmitCode:r});case 7:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"setAggregateListItemHvAmount",value:function(e){var t=e.index,a=e.hvAmount;this.aggregateList[t].hvAmount=a}},{key:"setOrderListItemHvAmount",value:function(e){var t=e.index,a=e.hvAmount;this.orderList[t].hvAmount=a}},{key:"setAccessoryListItemHvAmount",value:function(e){var t=e.index,a=e.hvAmount,r=this.accessoryList[t],o=(0,n.default)((0,n.default)({},r),{},{hvAmount:a});this.acces