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

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-raw-warehouse-rawConsuming-index"],{"191a":function(e,t,n){"use strict";var a=n("4ea4");n("4160"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("96cf");var i=a(n("1da1")),o=a(n("d4ec")),r=a(n("bee2")),s=a(n("262e")),l=a(n("2caf")),u=n("9ab4"),c=n("60a3"),d=n("22da"),f=a(n("f0a0")),p=a(n("34b3")),h=n("54a3"),b=function(e){(0,s.default)(n,e);var t=(0,l.default)(n);function n(){var e;return(0,o.default)(this,n),e=t.apply(this,arguments),e.order3="",e.model=f.default,e.wl={},e.Some={},e.MaterialList=[],e}return(0,r.default)(n,[{key:"query",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(""!==this.order3){e.next=5;break}return this.customToast(this.$t("message.Commission_tips1")),e.abrupt("return");case 5:return this.MaterialList=[],e.next=8,this.model.queryConsumingInfoRaw({order3:this.order3});case 8:"1"==this.model.code&&(uni.showToast({title:this.$t("message.successful"),duration:2e3,image:"/static/icons/icon-51.png"}),this.model.orderInInfoList.forEach((function(e){var n={label:e.productCode,value:e.productCode};t.MaterialList.push(n)})),this.Some=this.model.orderInInfoList[0],this.wl=this.MaterialList[0]);case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"materialChoice",value:function(e){var t=this;this.wl=e.pickerName,this.model.orderInInfoList.forEach((function(n){n.productCode==e.pickerName.value&&(t.Some=n)}))}},{key:"submit",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(""!==this.order3){e.next=3;break}return this.customToast(this.$t("message.Commission_tips1")),e.abrupt("return");case 3:if(this.Some){e.next=6;break}return this.customToast(this.$t("message.Warehouse_Tip5")),e.abrupt("return");case 6:return t=[],this.Some.type="1",this.Some.keepBy=h.session.loginName,this.Some.orderType="2",t.push(this.Some),e.next=13,f.default.consumingConfirmRaw(t);case 13:"1"==this.model.code&&(uni.showToast({title:this.$t("message.success"),duration:2e3,image:"/static/icons/icon-51.png"}),this.Some={},this.wl={},this.MaterialList=[],this.query());case 14:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),n}(d.BasePage);b=(0,u.__decorate)([(0,c.Component)({components:{jPicker:p.default}})],b);var m=b;t.default=m},"291d":function(e,t,n){var a=n("24fb");t=a(!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-3783e340]{position:absolute;top:0;left:0;bottom:0;right:0}.TEMP_page .TEMP_card[data-v-3783e340]{margin:%?36?% %?72?%}.TEMP_page .TEMP_card .TEMP_title[data-v-3783e340]{font-size:2em;font-weight:400}.u-search[data-v-3783e340]{\ndisplay:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;\n-webkit-box-a