pages-stock-add_allocate.eb7c69e9.js 31 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-stock-add_allocate"],{"0be0":function(t,e,a){var i=a("d7b7");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("4f06").default;s("37ae1b30",i,!0,{sourceMap:!1,shadowMode:!1})},"0edb":function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("caad"),a("2532"),a("14d9"),a("a434"),a("c975"),a("d401"),a("d3b7"),a("25f0"),a("159b"),a("acd8"),a("d9e2"),a("e9c4"),a("498a");var i={data:function(){return{name:"",goodsList:[],goodsIdArr:[],selectGoodsId:0,goodsShow:!1,totalData:{kindsNum:0,countNum:0,price:0},isSubmit:!1,type:"out",storeName:"出库门店",screen:{store_id:"",storeList:[],startDate:"1998-01-30 00:00:00",birthday:"",allocateTypeList:[{label:"调拨入库",value:"out"},{label:"调拨出库",value:"in"}]},scanCode:{code:"",lastTime:0},searchGoodsList:[]}},onLoad:function(t){uni.hideTabBar()},onShow:function(){this.screen.birthday=this.$util.timeFormat(Date.parse(new Date)/1e3),this.getStoreLists(),this.getGoodsData(),window.addEventListener("keypress",this.listenerScancode,!0)},onHide:function(){window.removeEventListener("keypress",this.listenerScancode,!0)},watch:{goodsIdArr:function(t){this.calcTotalData()},name:function(){this.getGoodsData()}},methods:{selectAllocateType:function(t){this.type=-1==t?"":this.screen.allocateTypeList[t].value,this.storeName=-1==t?"出库门店":this.screen.allocateTypeList[t].label,"in"==this.type&&this.getGoodsData()},selectStore:function(t){this.screen.store_id=-1==t?"":this.screen.storeList[t].value},changeTime:function(t){this.screen.birthday=t},getGoodsData:function(){var t=this,e={search:this.name};"in"==this.type&&(e.temp_store_id=this.screen.store_id),this.$api.sendRequest({url:"/stock/storeapi/manage/getskulist",data:e,success:function(e){t.searchGoodsList=[],e.code>=0&&0!=e.data.length?t.searchGoodsList=e.data:t.$util.showToast({title:e.message})}})},selectGoods:function(t){this.selectGoodsId=t.sku_id,this.goodsIdArr.includes(t.sku_id)||(this.goodsIdArr.push(t.sku_id),this.goodsList.push(t)),this.goodsShow=!1},delGoods:function(t){this.goodsList.splice(this.goodsIdArr.indexOf(t),1),this.goodsIdArr.splice(this.goodsIdArr.indexOf(t),1),this.$forceUpdate()},getStoreLists:function(){var t=this;this.screen.storeList=[],this.$api.sendRequest({url:"/stock/storeapi/store/lists",success:function(e){if(e.code>=0){for(var a=e.data,i=uni.getStorageSync("store_id"),s=0;s<a.length;s++)i!=a[s]["store_id"]&&t.screen.storeList.push({label:a[s]["store_name"],value:a[s]["store_id"].toString()});t.screen.store_id=t.screen.storeList[0].value}}})},stockOutFn:function(){var t=this;if(!this.type)return this.$util.showToast({title:"请选择调拨方式"}),!1;if(!this.screen.store_id)return this.$util.showToast({title:"请选择出库门店"}),!1;if(!this.screen.birthday)return this.$util.showToast({title:"请选择调拨时间"}),!1;if(!this.goodsIdArr.length)return this.$util.showToast({title:"请选择调拨数据"}),!1;var e=!1,a=[];try{this.goodsList.forEach((function(i,s){if(t.goodsIdArr.includes(i.sku_id)){if(!parseFloat(i.goods_num||0)){e=!0;var n="请输入"+i.sku_name+"的调拨数量";return t.$util.showToast({title:n}),!1}var o={};o.goods_num=i.goods_num,o.goods_price=i.cost_price,o.goods_sku_id=i.sku_id,a.push(o)}}))}catch(i){if("end"!=i.message)throw i}return!e&&(!this.isSubmit&&(this.isSubmit=!0,void this.$api.sendRequest({url:"/stock/storeapi/allocate/addallocate",data:{allot_type:this.type,temp_store_id:this.screen.store_id,allot_time:this.screen.birthday,goods_sku_list:JSON.stringify(a)},success:function(e){t.isSubmit=!1,t.$util.showToast({title:e.message}),e.code>=0&&(setTimeout((function(){t.backFn()}),500),t.resetFn())}})))},backFn:function(){this.$util.redirectTo("/pages/stock/allocate")},calcTotalData:function(){var t=this;this.totalData.countNum=0,this.totalData.kindsNum=0,this.totalData.price=0,this.goodsList.forEach((function(e,a){t.goodsIdArr.includes(e.sku_id)&&(t.totalData.price+=parseFloat(e.cost_price||0)*parseFloat(e.goods_num||1),t.totalData.countNum+=parseFloat(e.goods_num||0),t.totalData.unit=e.unit)})),this.totalData.kindsNum=this.goodsIdArr.length},resetFn:function(){this.goodsIdArr=[],this.selectGoodsId=this.goodsList[0].sku_id,this.goodsShow=!1,this.totalData.kindsNum=0,this.totalData.countNum=0,this.totalData.price=0},listenerScancode:function(t){var e=this,a=function(){e.scanCode={lastTime:0,code:""}},i=t.keyCode||t.which||t.charCode,s=(new Date).getTime();this.scanCode.lastTime>0?s-this.scanCode.lastTime<=100?this.scanCode.code+=String.fromCharCode(i):s-this.scanCode.lastTime>500&&a():this.scanCode.code=String.fromCharCode(i),this.scanCode.lastTime=s,13==i&&(this.scanCode.code&&this.scanCode.code.length>=8&&this.getSkuBycode(this.scanCode.code),a())},getSkuBycode:function(t){var e=this;this.$api.sendRequest({url:"/cashier/storeapi/goods/skuinfo",data:{sku_no:t.trim()},success:function(t){0==t.code?t.data?(t.data.goods_num=0,e.selectGoods(t.data)):e.$util.showToast({title:"未找到该商品!"}):e.$util.showToast({title:t.message})}})}}};e.default=i},"26bd":function(t,e,a){"use strict";a.d(e,"b",(function(){return s})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i}));var i={selectLay:a("959d").default,uniDatetimePicker:a("f2a4f").default},s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("base-page",[a("v-uni-view",{staticClass:"content-wrap",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goodsShow=!1}}},[a("v-uni-view",{staticClass:"title"},[t._v("添加调拨单")]),a("v-uni-view",{staticClass:"screen-warp form-content"},[t.storeInfo?a("v-uni-view",{staticClass:"form-item store-info"},[a("v-uni-view",{staticClass:"form-label"},[t._v("当前门店:")]),a("v-uni-view",{staticClass:"form-inline"},[t._v(t._s(t.storeInfo.store_name))])],1):t._e(),a("v-uni-view",{staticClass:"form-item"},[a("v-uni-label",{staticClass:"form-label"},[a("v-uni-text",{staticClass:"required"},[t._v("*")]),t._v("调拨方式")],1),a("v-uni-view",{staticClass:"form-inline"},[a("select-lay",{attrs:{zindex:10,value:t.type,name:"names",placeholder:"请选择调拨方式",options:t.screen.allocateTypeList},on:{selectitem:function(e){arguments[0]=e=t.$handleEvent(e),t.selectAllocateType.apply(void 0,arguments)}}})],1)],1),a("v-uni-view",{staticClass:"form-item"},[a("v-uni-label",{staticClass:"form-label"},[a("v-uni-text",{staticClass:"required"},[t._v("*")]),t._v(t._s(t.storeName))],1),a("v-uni-view",{staticClass:"form-inline"},[a("select-lay",{attrs:{zindex:10,value:t.screen.store_id,name:"names",placeholder:"请选择"+t.storeName,options:t.screen.storeList},on:{selectitem:function(e){arguments[0]=e=t.$handleEvent(e),t.selectStore.apply(void 0,arguments)}}})],1)],1),a("v-uni-view",{staticClass:"form-item"},[a("v-uni-label",{staticClass:"form-label"},[a("v-uni-text",{staticClass:"required"},[t._v("*")]),t._v("调拨时间")],1),a("v-uni-view",{staticClass:"form-inline"},[a("uni-datetime-picker",{attrs:{start:t.screen.startDate,type:"timestamp",clearIcon:!1},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeTime.apply(void 0,arguments)}},model:{value:t.screen.birthday,callback:function(e){t.$set(t.screen,"birthday",e)},expression:"screen.birthday"}})],1)],1)],1),a("v-uni-view",{staticClass:"table-wrap"},[a("v-uni-view",{staticClass:"table-head"},[a("v-uni-view",{staticClass:"table-tr"},[a("v-uni-view",{staticClass:"table-th",staticStyle:{flex:"3"}},[t._v("产品名称/规格/编码")]),a("v-uni-view",{staticClass:"table-th",staticStyle:{flex:"1"}},[t._v("当前库存")]),a("v-uni-view",{staticClass:"table-th",staticStyle:{flex:"1"}},[t._v("单位")]),a("v-uni-view",{staticClass:"table-th",staticStyle:{flex:"2"}},[t._v("成本价")]),a("v-uni-view",{staticClass:"table-th",staticStyle:{flex:"2"}},[t._v("数量")]),a("v-uni-view",{staticClass:"table-th",staticStyle:{flex:"1"}},[t._v("总金额")]),a("v-uni-view",{staticClass:"table-th",staticStyle:{flex:"1"}},[t._v("操作")])],1)],1),a("v-uni-view",{staticClass:"table-body"},[a("v-uni-view",{staticClass:"table-tr"},[a("v-uni-view",{staticClass:"table-td select-goods-input",staticStyle:{flex:"3"},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.goodsShow=!0}}},[a("v-uni-input",{attrs:{type:"text",placeholder:"请输入产品名称/规格/编码"},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.getGoodsData.apply(void 0,arguments)}},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}}),a("v-uni-scroll-view",{directives:[{name:"show",rawName:"v-show",value:t.goodsShow,expression:"goodsShow"}],staticClass:"select-goods-frame",attrs:{"scroll-y":!0}},[t._l(t.searchGoodsList,(function(e,i){return a("v-uni-view",{class:["goods-item",{select:t.selectGoodsId==e.sku_id}],on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.selectGoods(e)}}},[t._v(t._s(e.sku_name))])})),t.searchGoodsList.length?t._e():a("v-uni-view",{staticClass:"goods-item-empty"},[t._v("暂无商品")])],2)],1),a("v-uni-view",{staticClass:"table-td",staticStyle:{flex:"1"}}),a("v-uni-view",{staticClass:"table-td",staticStyle:{flex:"1"}}),a("v-uni-view",{staticClass:"table-td",staticStyle:{flex:"2"}}),a("v-uni-view",{staticClass:"table-td",staticStyle:{flex:"2"}}),a("v-uni-view",{staticClass:"table-td",staticStyle:{flex:"1"}}),a("v-uni-view",{staticClass:"table-td",staticStyle:{flex:"1"}})],1),t._l(t.goodsList,(function(e,i){return[t.goodsIdArr.includes(e.sku_id)?a("v-uni-view",{key:i+"_0",staticClass:"table-tr"},[a("v-uni-view",{staticClass:"table-td goods-name",staticStyle:{flex:"3"}},[a("v-uni-image",{attrs:{src:t.$util.img(e.sku_image,{size:"small"}),mode:"aspectFill"}}),a("v-uni-text",{staticClass:"name multi-hidden"},[t._v(t._s(e.sku_name))])],1),a("v-uni-view",{staticClass:"table-td",staticStyle:{flex:"1"}},[t._v(t._s(e.real_stock||0))]),a("v-uni-view",{staticClass:"table-td",staticStyle:{flex:"1"}},[t._v(t._s(e.unit))]),a("v-uni-view",{staticClass:"table-td",staticStyle:{flex:"2"}},[t._v(t._s(e.cost_price||0))]),a("v-uni-view",{staticClass:"table-td",staticStyle:{flex:"2"}},[a("v-uni-input",{staticClass:"goods-num",attrs:{type:"number",placeholder:"请输入数量"},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.calcTotalData.apply(void 0,arguments)}},model:{value:e.goods_num,callback:function(a){t.$set(e,"goods_num",a)},expression:"item.goods_num"}})],1),a("v-uni-view",{staticClass:"table-td",staticStyle:{flex:"1"}},[t._v(t._s((e.goods_num*e.cost_price||0).toFixed(2)))]),a("v-uni-view",{staticClass:"table-td",staticStyle:{flex:"1"}},[a("v-uni-button",{staticClass:"delete",attrs:{type:"default"},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.delGoods(e.sku_id)}}},[t._v("删除")])],1)],1):t._e()]})),t.goodsIdArr.length?t._e():a("v-uni-view",{staticClass:"table-tr table-empty"},[t._v("暂无数据,请选择商品数据")])],2)],1),a("v-uni-view",{staticClass:"action-wrap"},[a("v-uni-view",{staticClass:"table-total"},[t._v("合计:共"+t._s(t.totalData.kindsNum)+"种"+t._s(t.totalData.countNum)+t._s(t.totalData.unit)+"产品,合计金额"+t._s(t.totalData.price.toFixed(2)))]),a("v-uni-view",{staticClass:"btn-wrap"},[a("v-uni-button",{staticClass:"stockout-btn",attrs:{type:"default"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.stockOutFn.apply(void 0,arguments)}}},[t._v("确认调拨")]),a("v-uni-button",{attrs:{type:"default"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.backFn.apply(void 0,arguments)}}},[t._v("返回")])],1)],1)],1)],1)},n=[]},"301c":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return s})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"uni-select-lay",style:{"z-index":t.zindex}},[a("v-uni-input",{staticClass:"uni-select-input",attrs:{type:"text",name:t.name,readonly:!0},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}}),a("v-uni-view",{staticClass:"uni-select-lay-select",class:{active:t.active}},[t.disabled?a("v-uni-view",{staticClass:"uni-disabled"}):t._e(),""!=t.changevalue&&this.active?a("v-uni-view",{staticClass:"uni-select-lay-input-close"},[a("v-uni-text",{on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.removevalue.apply(void 0,arguments)}}})],1):t._e(),a("v-uni-input",{staticClass:"uni-select-lay-input",class:{active:""!=t.changevalue&&t.changevalue!=t.placeholder},attrs:{type:"text",readonly:!0,disabled:"true",placeholder:t.placeholder},on:{focus:function(e){arguments[0]=e=t.$handleEvent(e),t.unifocus.apply(void 0,arguments)},input:function(e){arguments[0]=e=t.$handleEvent(e),t.intchange.apply(void 0,arguments)},blur:function(e){arguments[0]=e=t.$handleEvent(e),t.uniblur.apply(void 0,arguments)},click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.select.apply(void 0,arguments)}},model:{value:t.changevalue,callback:function(e){t.changevalue=e},expression:"changevalue"}}),a("v-uni-view",{staticClass:"uni-select-lay-icon",class:{disabled:t.disabled},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.select.apply(void 0,arguments)}}},[a("v-uni-text")],1)],1),a("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:t.active,expression:"active"}],staticClass:"uni-date-mask",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.select.apply(void 0,arguments)}}}),a("v-uni-scroll-view",{directives:[{name:"show",rawName:"v-show",value:t.active,expression:"active"}],staticClass:"uni-select-lay-options",attrs:{"scroll-y":!0},on:{scroll:function(e){arguments[0]=e=t.$handleEvent(e),t.selectmove.apply(void 0,arguments)},touchstart:function(e){arguments[0]=e=t.$handleEvent(e),t.movetouch.apply(void 0,arguments)}}},[t.changes?[t.vlist.length>0?t._l(t.vlist,(function(e,i){return a("v-uni-view",{key:i,staticClass:"uni-select-lay-item",class:{active:t.value==e[t.svalue]},on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.selectitem(i,e)}}},[t._v(t._s(e[t.slabel]))])})):[a("v-uni-view",{staticClass:"nosearch"},[t._v(t._s(t.changesValue))])]]:[t.showplaceholder?a("v-uni-view",{staticClass:"uni-select-lay-item",class:{active:""==t.value},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.selectitem(-1,null)}}},[t._v(t._s(t.placeholder))]):t._e(),t._l(t.options,(function(e,i){return a("v-uni-view",{key:i,staticClass:"uni-select-lay-item",class:{active:t.value==e[t.svalue],disabled:e.disabled},on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.selectitem(i,e)}}},[t._v(t._s(e[t.slabel]))])}))]],2)],1)},s=[]},"3b37":function(t,e,a){"use strict";a.r(e);var i=a("0edb"),s=a.n(i);for(var n in i)["default"].indexOf(n)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=s.a},"3f4b":function(t,e,a){"use strict";var i=a("e410"),s=a.n(i);s.a},5830:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.uni-app--showleftwindow + .uni-tabbar-bottom[data-v-449460d9]{display:none}\r\n/* 收银台相关 */uni-text[data-v-449460d9],\r\nuni-view[data-v-449460d9]{font-size:.14rem}body[data-v-449460d9]{min-width:1200px;overflow-x:unset!important;overflow-y:hidden;background:#eff0f4}body[data-v-449460d9]::-webkit-scrollbar{width:.06rem;height:.06rem}body[data-v-449460d9]::-webkit-scrollbar-button{display:none}body[data-v-449460d9]::-webkit-scrollbar-thumb{border-radius:.06rem;box-shadow:inset 0 0 .06rem rgba(45,43,43,.45);background-color:#ddd}body[data-v-449460d9]::-webkit-scrollbar-track{background-color:initial}uni-radio[data-v-449460d9]{-webkit-transform:scale(.8);transform:scale(.8)}uni-checkbox[data-v-449460d9]{-webkit-transform:scale(.8);transform:scale(.8)}.uni-select-lay[data-v-449460d9]{position:relative;z-index:999;box-sizing:border-box}.uni-select-lay .uni-select-input[data-v-449460d9]{opacity:0;position:absolute;z-index:-111}.uni-select-lay .uni-select-lay-select[data-v-449460d9]{-webkit-user-select:none;user-select:none;position:relative;z-index:3;height:.32rem;padding:0 .3rem 0 .1rem;box-sizing:border-box;border-radius:.02rem;border:.01rem solid #e5e5e5;display:flex;align-items:center;font-size:.14rem;color:#999;box-sizing:border-box}.uni-select-lay .uni-select-lay-select .uni-disabled[data-v-449460d9]{position:absolute;left:0;width:100%;height:100%;z-index:19;cursor:no-drop;background:hsla(0,0%,100%,.5)}.uni-select-lay .uni-select-lay-select .uni-select-lay-input-close[data-v-449460d9]{position:absolute;right:.35rem;top:0;height:100%;width:.15rem;display:flex;align-items:center;justify-content:center;z-index:3;cursor:pointer}.uni-select-lay .uni-select-lay-select .uni-select-lay-input-close uni-text[data-v-449460d9]{position:relative;background:#fff;width:.13rem;height:.13rem;border-radius:50%;border:.01rem solid #bbb}.uni-select-lay .uni-select-lay-select .uni-select-lay-input-close uni-text[data-v-449460d9]::before, .uni-select-lay .uni-select-lay-select .uni-select-lay-input-close uni-text[data-v-449460d9]::after{content:"";position:absolute;left:20%;top:50%;height:.01rem;width:60%;-webkit-transform:rotate(45deg);transform:rotate(45deg);background-color:#bbb}.uni-select-lay .uni-select-lay-select .uni-select-lay-input-close uni-text[data-v-449460d9]::after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.uni-select-lay .uni-select-lay-select .uni-select-lay-input[data-v-449460d9]{font-size:.14rem;color:#999;display:block;width:98%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:.3rem;box-sizing:border-box}.uni-select-lay .uni-select-lay-select .uni-select-lay-input.active[data-v-449460d9]{color:#333}.uni-select-lay .uni-select-lay-select .uni-select-lay-icon[data-v-449460d9]{cursor:pointer;position:absolute;right:0;top:0;height:100%;width:.3rem;display:flex;align-items:center;justify-content:center}.uni-select-lay .uni-select-lay-select .uni-select-lay-icon[data-v-449460d9]::before{content:"";width:.01rem;height:100%;position:absolute;left:0;top:0;background-color:#e5e5e5}.uni-select-lay .uni-select-lay-select .uni-select-lay-icon uni-text[data-v-449460d9]{display:block;width:0;height:0;border-width:.07rem .07rem 0;border-style:solid;border-color:#bbb transparent transparent;transition:.3s}.uni-select-lay .uni-select-lay-select .uni-select-lay-icon.disabled[data-v-449460d9]{cursor:no-drop}.uni-select-lay .uni-select-lay-select .uni-select-lay-icon.disabled uni-text[data-v-449460d9]{width:.2rem;height:.2rem;border:.02rem solid red;border-radius:50%;transition:.3s;position:relative;z-index:999}.uni-select-lay .uni-select-lay-select .uni-select-lay-icon.disabled uni-text[data-v-449460d9]::after{content:"";position:absolute;top:50%;left:0;width:100%;height:.02rem;margin-top:-.01rem;background-color:red;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.uni-select-lay .uni-select-lay-select.active .uni-select-lay-icon uni-text[data-v-449460d9]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.uni-select-lay .uni-select-lay-options[data-v-449460d9]{-webkit-user-select:none;user-select:none;position:absolute;top:calc(100% + .05rem);left:0;width:100%;max-height:2.5rem;border-radius:.02rem;border:1px solid #e5e5e5;background:#fff;padding:.05rem 0;box-sizing:border-box;z-index:9}.uni-select-lay .uni-select-lay-options .uni-select-lay-item[data-v-449460d9]{padding:0 .1rem;box-sizing:border-box;cursor:pointer;line-height:2.5;transition:.3s;font-size:.14rem}.uni-select-lay .uni-select-lay-options .uni-select-lay-item.active[data-v-449460d9]{background:#8558fa;color:#fff}.uni-select-lay .uni-select-lay-options .uni-select-lay-item.active[data-v-449460d9]:hover{background:#8558fa;color:#fff}.uni-select-lay .uni-select-lay-options .uni-select-lay-item.disabled[data-v-449460d9]{color:#999;cursor:not-allowed}.uni-select-lay .uni-select-lay-options .uni-select-lay-item[data-v-449460d9]:hover{background-color:#f5f5f5}.uni-select-lay .uni-select-lay-options .nosearch[data-v-449460d9]{font-size:.16rem;line-height:3;text-align:center;color:#666}.uni-date-mask[data-v-449460d9]{position:fixed;bottom:0;top:0;left:0;right:0;background-color:transparent;transition-duration:.3s;z-index:8}',""]),t.exports=e},"959d":function(t,e,a){"use strict";a.r(e);var i=a("301c"),s=a("e58e");for(var n in s)["default"].indexOf(n)<0&&function(t){a.d(e,t,(function(){return s[t]}))}(n);a("3f4b");var o=a("f0c5"),l=Object(o["a"])(s["default"],i["b"],i["c"],!1,null,"449460d9",null,!1,i["a"],void 0);e["default"]=l.exports},b877:function(t,e,a){"use strict";var i=a("0be0"),s=a.n(i);s.a},d374:function(t,e,a){"use strict";a.r(e);var i=a("26bd"),s=a("3b37");for(var n in s)["default"].indexOf(n)<0&&function(t){a.d(e,t,(function(){return s[t]}))}(n);a("b877");var o=a("f0c5"),l=Object(o["a"])(s["default"],i["b"],i["c"],!1,null,"269e4c90",null,!1,i["a"],void 0);e["default"]=l.exports},d7b7:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.uni-app--showleftwindow + .uni-tabbar-bottom[data-v-269e4c90]{display:none}\r\n/* 收银台相关 */uni-text[data-v-269e4c90],\r\nuni-view[data-v-269e4c90]{font-size:.14rem}body[data-v-269e4c90]{min-width:1200px;overflow-x:unset!important;overflow-y:hidden;background:#eff0f4}body[data-v-269e4c90]::-webkit-scrollbar{width:.06rem;height:.06rem}body[data-v-269e4c90]::-webkit-scrollbar-button{display:none}body[data-v-269e4c90]::-webkit-scrollbar-thumb{border-radius:.06rem;box-shadow:inset 0 0 .06rem rgba(45,43,43,.45);background-color:#ddd}body[data-v-269e4c90]::-webkit-scrollbar-track{background-color:initial}.content-wrap[data-v-269e4c90], .content-wrap .table-wrap .table-body[data-v-269e4c90]{height:100%;overflow:auto}.content-wrap[data-v-269e4c90]::-webkit-scrollbar, .content-wrap .table-wrap .table-body[data-v-269e4c90]::-webkit-scrollbar{width:.06rem;height:.06rem}.content-wrap[data-v-269e4c90]::-webkit-scrollbar-button, .content-wrap .table-wrap .table-body[data-v-269e4c90]::-webkit-scrollbar-button{display:none}.content-wrap[data-v-269e4c90]::-webkit-scrollbar-thumb, .content-wrap .table-wrap .table-body[data-v-269e4c90]::-webkit-scrollbar-thumb{border-radius:.06rem;box-shadow:inset 0 0 .06rem rgba(45,43,43,.45);background-color:#ddd}.content-wrap[data-v-269e4c90]::-webkit-scrollbar-track, .content-wrap .table-wrap .table-body[data-v-269e4c90]::-webkit-scrollbar-track{background-color:initial}uni-radio[data-v-269e4c90]{-webkit-transform:scale(.8);transform:scale(.8)}uni-checkbox[data-v-269e4c90]{-webkit-transform:scale(.8);transform:scale(.8)}.form-content[data-v-269e4c90]{display:flex;flex-wrap:wrap;margin-top:.2rem}.form-content .store-info .form-inline[data-v-269e4c90]{padding-left:.05rem}.form-content .form-item[data-v-269e4c90]{margin-bottom:.1rem;display:flex}.form-content .form-item .form-label[data-v-269e4c90]{width:1.3rem;text-align:right;padding-right:.1rem;box-sizing:border-box;height:.32rem;line-height:.32rem}.form-content .form-item .form-label .required[data-v-269e4c90]{color:red;margin-right:.03rem}.form-content .form-item .form-inline[data-v-269e4c90]{width:2.4rem;line-height:.32rem;margin-right:.1rem;box-sizing:border-box}.form-content .form-item .form-inline .form-input[data-v-269e4c90]{border-width:.01rem;border-style:solid;background-color:#fff;color:rgba(0,0,0,.85);border-radius:.02rem;padding-left:.1rem;height:.32rem;line-height:.32rem;font-size:.14rem;border-color:#e6e6e6;border-radius:.02rem}.content-wrap[data-v-269e4c90]{position:relative;padding:.15rem;background-color:#fff;box-sizing:border-box}.content-wrap .title[data-v-269e4c90]{font-size:.18rem;margin-bottom:.2rem;text-align:center}.content-wrap .table-wrap[data-v-269e4c90]{position:relative;margin-top:%?40?%;border:%?1?% solid #ccc}.content-wrap .table-wrap .table-head[data-v-269e4c90]{background-color:#f7f7f7}.content-wrap .table-wrap .table-body[data-v-269e4c90]{overflow:auto;max-height:5.5rem}.content-wrap .table-wrap .table-body .table-tr[data-v-269e4c90]:nth-child(1){position:absolute;left:0;right:0;background:#fff;z-index:2}.content-wrap .table-wrap .table-body .table-tr[data-v-269e4c90]:nth-child(2){margin-top:.51rem}.content-wrap .table-wrap .table-body .table-tr:last-of-type .table-td[data-v-269e4c90]{border-bottom:0}.content-wrap .table-wrap .table-tr[data-v-269e4c90]{display:flex}.content-wrap .table-wrap .table-th[data-v-269e4c90],\r\n.content-wrap .table-wrap .table-td[data-v-269e4c90]{display:flex;align-items:center;justify-content:center;padding:.15rem .3rem;border-bottom:.01rem solid #ccc;border-right:.01rem solid #ccc;text-align:center}.content-wrap .table-wrap .table-th[data-v-269e4c90]:last-of-type,\r\n.content-wrap .table-wrap .table-td[data-v-269e4c90]:last-of-type{border-right:0;justify-content:flex-end}.content-wrap .table-wrap .table-th.goods-name[data-v-269e4c90],\r\n.content-wrap .table-wrap .table-td.goods-name[data-v-269e4c90]{justify-content:flex-start}.content-wrap .table-wrap .table-th.goods-name uni-image[data-v-269e4c90],\r\n.content-wrap .table-wrap .table-td.goods-name uni-image[data-v-269e4c90]{width:.45rem;height:.45rem;flex-shrink:0}.content-wrap .table-wrap .table-th.goods-name .name[data-v-269e4c90],\r\n.content-wrap .table-wrap .table-td.goods-name .name[data-v-269e4c90]{margin-left:.1rem}.content-wrap .table-wrap .goods-num[data-v-269e4c90]{border:.01rem solid #eee;height:.35rem;line-height:.35rem;border-radius:.05rem}.content-wrap .table-wrap uni-input[data-v-269e4c90]{font-size:.14rem}.content-wrap .table-wrap .delete[data-v-269e4c90]{margin:0;font-size:.14rem;background-color:#8558fa;color:#fff}.content-wrap .table-wrap .table-empty[data-v-269e4c90]{justify-content:center;padding:.3rem;color:#999}.content-wrap .action-wrap[data-v-269e4c90]{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:space-between;padding:.1rem .15rem .2rem;align-items:center;border-top:.01rem solid #ccc}.content-wrap .action-wrap .btn-wrap[data-v-269e4c90]{display:flex;align-items:center;justify-content:center}.content-wrap .action-wrap .btn-wrap uni-button[data-v-269e4c90]{margin:0;min-width:2.75rem;height:.4rem;line-height:.4rem;font-size:.14rem}.content-wrap .action-wrap .btn-wrap uni-button.stockout-btn[data-v-269e4c90]{margin-right:.15rem;background-color:#8558fa;color:#fff}.content-wrap .select-goods-input[data-v-269e4c90]{position:relative}.content-wrap .select-goods-input uni-input[data-v-269e4c90]{flex:1;font-size:.14rem}.content-wrap .select-goods-frame[data-v-269e4c90]{position:absolute;z-index:2;padding:.05rem 0;top:.45rem;left:0;width:5rem;height:5rem;background-color:#fff;box-shadow:0 0 %?36?% rgba(0,0,0,.4)}.content-wrap .select-goods-frame .goods-item[data-v-269e4c90]{padding:%?10?% %?30?%;line-height:1.5;text-align:left}.content-wrap .select-goods-frame .goods-item.select[data-v-269e4c90]{background-color:#8558fa;color:#fff}.content-wrap .select-goods-frame .goods-item-empty[data-v-269e4c90]{padding:%?10?% %?30?%;line-height:1.5;text-align:center}',""]),t.exports=e},dd94:function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("a9e3"),a("d3b7"),a("159b"),a("4de4"),a("caad"),a("2532");var i={name:"select-lay",props:{disabled:{type:Boolean,default:!1},zindex:{type:Number,default:999},options:{type:Array,default:function(){return[]}},name:{type:String,default:""},value:{type:String,default:""},placeholder:{type:String,default:"请选择"},showplaceholder:{type:Boolean,default:!0},slabel:{type:String,default:"label"},svalue:{type:String,default:"value"}},data:function(){return{active:!1,isfocus:!1,isremove:!1,ismove:!1,changevalue:"",oldvalue:"",changes:!1,changesValue:"",vlist:[],settimer:null}},mounted:function(){this.itemcheck()},watch:{value:function(){this.itemcheck()},options:function(){this.itemcheck()}},methods:{itemcheck:function(){var t=this;""!=this.value?this.options.length>0&&this.options.forEach((function(e){t.value!=e[t.svalue]||(t.oldvalue=t.changevalue=e[t.slabel])})):this.oldvalue=this.changevalue=""},select:function(){this.disabled||(this.active=!this.active,this.active?this.changes=!1:this.changevalue=this.oldvalue)},unifocus:function(){this.disabled||(this.active=!0,this.changes=!1,this.isfocus=!0)},uniblur:function(){var t=this;this.isfocus=!1,setTimeout((function(){t.isremove||t.ismove?(t.isremove=!1,t.ismove=!1):(t.changevalue=t.oldvalue,t.isremove=!1,t.active=!1)}),153)},movetouch:function(){var t=this;setTimeout((function(){t.isfocus?t.ismove=!1:t.ismove||(t.ismove=!0)}),100)},selectmove:function(){var t=this;setTimeout((function(){t.isfocus?t.ismove=!1:t.ismove||(t.ismove=!0)}),100)},removevalue:function(){this.isremove=!0,this.changes=!1,this.changevalue=""},intchange:function(){var t=this;""!=this.changevalue?this.oldvalue!=this.changevalue&&(this.vlist=[],this.changes=!0,this.changesValue="正在搜索...",this.settimer&&clearTimeout(this.settimer),this.settimer=setTimeout((function(){t.vlist=t.options.filter((function(e){return e[t.slabel].includes(t.changevalue)})),0===t.vlist.length&&(t.changesValue="暂无匹配内容!")}),600)):this.changes=!1},selectitem:function(t,e){if(e&&e.disabled)return!1;this.changevalue=this.oldvalue,this.active=!1,this.$emit("selectitem",t,e)}}};e.default=i},e410:function(t,e,a){var i=a("5830");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("4f06").default;s("28e89883",i,!0,{sourceMap:!1,shadowMode:!1})},e58e:function(t,e,a){"use strict";a.r(e);var i=a("dd94"),s=a.n(i);for(var n in i)["default"].indexOf(n)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=s.a}}]);