pages-cycle-detail.522a4338.js 12.6 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-cycle-detail"],{"2a9e":function(t,e,n){var o=n("9c70");"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=n("4f06").default;a("ea1a044a",o,!0,{sourceMap:!1,shadowMode:!1})},"2f57":function(t,e,n){"use strict";n.r(e);var o=n("34df"),a=n.n(o);for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=a.a},"34df":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{flag:!1,detailInfo:{},materialInfo:{},companyArr:[],warehouseArr:[],materialArr:[],trayTotal:null,timer:null,timer2:null,index:null}},onNavigationBarButtonTap:function(){this.flag=!this.flag},onBackPress:function(){this.$prePage().handleRegister(this.index,this.detailInfo)},onLoad:function(t){var e=this;this.index=t.index,this.getCycleCountHeader(t.id),this.getCycleCountDetail(t.code),this.$api.dict.getCompaniesByToken().then((function(t){e.companyArr=t.data})),this.$api.dict.getWarehouseByUserCode(uni.getStorageSync("historyUser").username).then((function(t){e.warehouseArr=t.data.data}))},onUnload:function(){this.timer&&(clearTimeout(this.timer),this.timer=null),this.timer2&&(clearTimeout(this.timer2),this.timer2=null)},methods:{getCycleCountHeader:function(t){var e=this;this.$api.cycle.listCycleCountHeader({id:t}).then((function(t){200==t.data.code&&(e.detailInfo=t.data.rows[0])}))},getCycleCountDetail:function(t){var e=this;this.$api.cycle.listCycleCountDetail({cycleCountHeadCode:t}).then((function(t){e.materialArr=t.data.rows,e.trayTotal=t.data.rows.length}))},companyCodeFormat:function(t){return this.selectCommonLabel(this.companyArr,t)},warehouseCodeFormat:function(t){return this.selectCommonLabel(this.warehouseArr,t)},showPop:function(t){this.materialInfo=t,this.$refs.popup.open()},maskClick:function(){this.flag=!1},popClose:function(){this.$refs.popup.close()},registerCycle:function(t,e){uni.navigateTo({url:"register?code="+e+"&id="+t})},delCycle:function(e,n){var o=this;uni.showModal({title:"提示",content:"确定要删除该盘点单吗?",success:function(a){a.confirm?(o.flag=!1,o.$api.cycle.delCycleCountHeader(e).then((function(t){200==t.data.code?(o.$prePage().handleDel(n),o.$wx.showToast({title:"删除成功!"}),o.timer=setTimeout((function(){uni.navigateBack()}),400)):uni.showModal({title:"提示",content:t.data.msg})}))):a.cancel&&t.log("用户点击取消")}})}}};e.default=n}).call(this,n("5a52")["default"])},4983:function(t,e,n){"use strict";var o=n("2a9e"),a=n.n(o);a.a},"832b":function(t,e,n){"use strict";n.r(e);var o=n("a00d"),a=n("2f57");for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);n("4983");var c,s=n("f0c5"),r=Object(s["a"])(a["default"],o["b"],o["c"],!1,null,"5c9e6dda",null,!1,o["a"],c);e["default"]=r.exports},"9c70":function(t,e,n){var o=n("24fb");e=o(!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/* 文章场景相关 */.content[data-v-5c9e6dda]{overflow-y:auto}.content .top[data-v-5c9e6dda],\r\n.content .center[data-v-5c9e6dda],\r\n.content .bottom[data-v-5c9e6dda]{background-color:#fff}.content .top .common[data-v-5c9e6dda],\r\n.content .center .common[data-v-5c9e6dda],\r\n.content .bottom .common[data-v-5c9e6dda]{height:%?90?%;line-height:%?90?%;font-size:%?32?%;border-bottom:%?2?% solid #e5e5e5}.content .top .common .already[data-v-5c9e6dda],\r\n.content .center .common .already[data-v-5c9e6dda],\r\n.content .bottom .common .already[data-v-5c9e6dda]{color:#4cd964}.content .top .common .not[data-v-5c9e6dda],\r\n.content .center .common .not[data-v-5c9e6dda],\r\n.content .bottom .common .not[data-v-5c9e6dda]{color:#f0ad4e}.content .top .common .num[data-v-5c9e6dda],\r\n.content .center .common .num[data-v-5c9e6dda],\r\n.content .bottom .common .num[data-v-5c9e6dda]{color:#007aff;font-size:%?28?%}.content .center[data-v-5c9e6dda]{margin:%?20?% 0}.content .center .select-content .select-list[data-v-5c9e6dda]{height:%?170?%;background-color:#fff;border-bottom:%?2?% solid #e5e5e5}.content .center .select-content .select-list .left-content .name[data-v-5c9e6dda]{font-size:%?32?%;font-weight:700}.content .center .select-content .select-list .left-content .code[data-v-5c9e6dda],\r\n.content .center .select-content .select-list .left-content .total[data-v-5c9e6dda]{margin-top:%?10?%}.content .center .select-content .select-list .left-content .code[data-v-5c9e6dda]{color:#979797}.content .center .select-content .select-list .left-content .total[data-v-5c9e6dda]{color:#007aff}.content .center .select-content .select-list .spec[data-v-5c9e6dda]{color:#979797}.content .center .select-content .select-list .spec .model[data-v-5c9e6dda]{margin-right:%?10?%}.content .center .select-content .select-list .spec .uni-icons[data-v-5c9e6dda]{margin-right:%?-10?%}.mask[data-v-5c9e6dda]{position:fixed;top:0;width:100%;height:100%;z-index:999;inset:0;background-color:rgba(0,0,0,.4);-webkit-transition-duration:.3s;transition-duration:.3s}.mask .operate[data-v-5c9e6dda]{position:absolute;left:%?20?%;right:%?20?%;bottom:%?130?%;color:#007aff;background-color:#fff;font-size:%?32?%}.mask .operate .register[data-v-5c9e6dda],\r\n.mask .operate .delete[data-v-5c9e6dda]{height:%?90?%;line-height:%?90?%;text-align:center;border-bottom:%?2?% solid #e5e5e5}.mask .operate .delete[data-v-5c9e6dda]{border:none}.mask .cancel[data-v-5c9e6dda]{position:absolute;left:%?20?%;right:%?20?%;bottom:%?20?%;height:%?90?%;line-height:%?90?%;text-align:center;color:#007aff;background-color:#fff;font-size:%?32?%;font-weight:700}.footer[data-v-5c9e6dda]{position:fixed;width:100%;bottom:0;height:%?100?%;border-top:%?2?% solid #e5e5e5;border-bottom:%?2?% solid #e5e5e5;background-color:#fff}.footer .del[data-v-5c9e6dda],\r\n.footer .save[data-v-5c9e6dda],\r\n.footer .rece[data-v-5c9e6dda]{width:%?220?%;height:%?60?%;line-height:%?60?%;margin:0 %?20?%;border:%?2?% solid #e5e5e5;-webkit-border-radius:%?80?%!important;border-radius:%?80?%!important;text-align:center;border-color:#e5e5e5}.footer .btn[data-v-5c9e6dda]{width:50%}.footer .btn2[data-v-5c9e6dda]{width:100%}.pop-box[data-v-5c9e6dda]{position:relative;background-color:#f8f8f8;height:%?800?%}.pop-box .pop-title[data-v-5c9e6dda]{height:%?80?%}.pop-box .pop-title .clear[data-v-5c9e6dda]{margin-left:%?4?%}.pop-box .pop-content .content-top[data-v-5c9e6dda]{height:%?130?%;background-color:#fff;border-bottom:%?2?% solid #e5e5e5}.pop-box .pop-content .content-top .c-s[data-v-5c9e6dda]{margin-top:%?10?%;color:#979797}.pop-box .pop-content .content-top .name[data-v-5c9e6dda]{margin-top:%?20?%;font-size:%?32?%;font-weight:700}.pop-box .pop-content .content-center[data-v-5c9e6dda]{margin-top:%?20?%;font-size:%?32?%}.pop-box .pop-content .content-center .qty[data-v-5c9e6dda],\r\n.pop-box .pop-content .content-center .unit[data-v-5c9e6dda]{height:%?90?%;line-height:%?90?%;background-color:#fff;border-bottom:%?2?% solid #e5e5e5}.pop-box .pop-footer[data-v-5c9e6dda]{position:absolute;width:100%;bottom:0;height:%?130?%;border-top:%?2?% solid #e5e5e5;border-bottom:%?2?% solid #e5e5e5;background-color:#fff}.pop-box .pop-footer .closeBtn[data-v-5c9e6dda]{width:100%;margin:0 %?20?%;border-color:#e5e5e5;-webkit-border-radius:%?90?%;border-radius:%?90?%}',""]),t.exports=e},a00d:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}));var o={uniIcons:n("1968").default,uniPopup:n("71e4").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("v-uni-view",{staticClass:"content"},[n("v-uni-view",{staticClass:"top"},[n("v-uni-view",{staticClass:"common u-f u-f-jcsb plr-10"},[n("v-uni-view",[t._v("单据编号")]),n("v-uni-view",[t._v(t._s(t.detailInfo.code))])],1),n("v-uni-view",{staticClass:"common u-f u-f-jcsb plr-10"},[n("v-uni-view",[t._v("当前状态")]),n("v-uni-view",[t.detailInfo.statusCyc>=100?n("v-uni-text",{staticClass:"already"},[t._v("已完成")]):n("v-uni-text",{staticClass:"not"},[t._v("未完成")])],1)],1),n("v-uni-view",{staticClass:"common u-f u-f-jcsb plr-10"},[n("v-uni-view",[t._v("盘点仓库")]),n("v-uni-view",[t._v(t._s(t.warehouseCodeFormat(t.detailInfo.warehouseCode)))])],1),n("v-uni-view",{staticClass:"common u-f u-f-jcsb plr-10"},[n("v-uni-view",[t._v("所属货主")]),n("v-uni-view",[t._v(t._s(t.companyCodeFormat(t.detailInfo.companyCode)))])],1)],1),n("v-uni-view",{staticClass:"center"},[n("v-uni-view",{staticClass:"common u-f u-f-jcsb plr-10"},[n("v-uni-view",[t._v("货位")]),n("v-uni-view",{staticClass:"num"},[t._v("合计货位数:"+t._s(t.trayTotal?t.trayTotal:""))])],1),n("v-uni-view",{staticClass:"select-content"},t._l(t.materialArr,(function(e,o){return n("v-uni-view",{key:o,staticClass:"select-list u-f u-f-jcsb u-f-aic plr-10",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.showPop(e)}}},[n("v-uni-view",{staticClass:"left-content"},[n("v-uni-view",{staticClass:"name"},[t._v(t._s(e.materialName))]),n("v-uni-view",{staticClass:"code"},[t._v("库位号:"+t._s(e.locationCode))])],1),n("v-uni-view",{staticClass:"spec u-f u-f-aic"},[n("v-uni-text",{staticClass:"model"},[t._v("容器号:"+t._s(e.containerCode))]),n("uni-icons",{attrs:{type:"arrowright",size:"18",color:"gray"}})],1)],1)})),1)],1),n("v-uni-view",{staticClass:"bottom"},[n("v-uni-view",{staticClass:"common u-f u-f-jcsb plr-10"},[n("v-uni-view",[t._v("创建人")]),n("v-uni-view",[t._v(t._s(t.detailInfo.createdBy))])],1),n("v-uni-view",{staticClass:"common u-f u-f-jcsb plr-10"},[n("v-uni-view",[t._v("创建时间")]),n("v-uni-view",[t._v(t._s(t.formatTime(t.detailInfo.created)))])],1)],1)],1),n("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:1==t.flag,expression:"flag == true"}],staticClass:"mask",on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.maskClick.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"operate"},[t.detailInfo.statusCyc>=5&&t.detailInfo.statusCyc<=15?n("v-uni-view",{staticClass:"register",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.registerCycle(t.detailInfo.id,t.detailInfo.code)}}},[t._v("实盘登记")]):t._e(),n("v-uni-view",{staticClass:"delete",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.delCycle(t.detailInfo.id,t.index)}}},[t._v("删除")])],1),n("v-uni-view",{staticClass:"cancel"},[t._v("取消")])],1),n("uni-popup",{ref:"popup",attrs:{type:"bottom"}},[n("v-uni-view",{staticClass:"pop-box"},[n("v-uni-view",{staticClass:"pop-title u-f u-f-jcsb u-f-aic plr-10"},[n("v-uni-view",[t._v("查看明细")]),n("v-uni-view",{staticClass:"u-f u-f-aic",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clearCart.apply(void 0,arguments)}}},[n("uni-icons",{attrs:{type:"close",size:"17"}}),n("v-uni-text",{staticClass:"clear",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.popClose.apply(void 0,arguments)}}},[t._v("关闭")])],1)],1),n("v-uni-view",{staticClass:"pop-content",on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e)}}},[n("v-uni-view",{staticClass:"content-top plr-10"},[n("v-uni-view",{staticClass:"u-f u-f-jcsb"},[n("v-uni-view",{staticClass:"name"},[t._v(t._s(t.materialInfo.materialName))])],1),n("v-uni-view",{staticClass:"u-f u-f-jcsb c-s"},[n("v-uni-view",[t._v("库位号:"+t._s(t.materialInfo.locationCode))]),n("v-uni-view",[t._v("容器号:"+t._s(t.materialInfo.containerCode))])],1)],1)],1),n("v-uni-view",{staticClass:"pop-footer u-f u-f-aic"},[n("v-uni-button",{staticClass:"closeBtn",attrs:{type:"default",plain:!0},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.popClose.apply(void 0,arguments)}}},[t._v("关闭")])],1)],1)],1)],1)},i=[]}}]);