| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["admin-goods-pdGoodsDetail"],{1539:function(e,i,t){"use strict";t.r(i);var n=t("3d36"),a=t("443d");for(var o in a)["default"].indexOf(o)<0&&function(e){t.d(i,e,(function(){return a[e]}))}(o);t("2bcb");var s,l=t("8aaf"),c=Object(l["a"])(a["default"],n["b"],n["c"],!1,null,"b11ed6de",null,!1,n["a"],s);i["default"]=c.exports},"2bcb":function(e,i,t){"use strict";var n=t("c403"),a=t.n(n);a.a},"3d36":function(e,i,t){"use strict";var n;t.d(i,"b",(function(){return a})),t.d(i,"c",(function(){return o})),t.d(i,"a",(function(){return n}));var a=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("v-uni-view",{staticClass:"ex-page"},[t("v-uni-view",{staticClass:"main-view overscroll"},[t("v-uni-view",{staticClass:"space-view ex-info"},[t("v-uni-view",{staticClass:"info-cell"},[t("v-uni-view",{staticClass:"cell-label"},[e._v("盘点:")]),t("v-uni-view",{staticClass:"cell-value"},[e._v(e._s(e.dataInfo.staffName||""))])],1),t("v-uni-view",{staticClass:"info-cell"},[t("v-uni-view",{staticClass:"cell-label"},[e._v("日期:")]),t("v-uni-view",{staticClass:"cell-value"},[e._v(e._s(e.dataInfo.updateTime?e.dataInfo.updateTime.substr(5,11):""))])],1),t("v-uni-view",{staticClass:"info-cell"},[t("v-uni-view",{staticClass:"cell-label"},[e._v("状态:")]),t("v-uni-view",{staticClass:"cell-value"},[e._v(e._s(2==e.dataInfo.status?"已完成":1==e.dataInfo.status?"待盘点":""))])],1),t("v-uni-view",{staticClass:"info-cell"},[t("v-uni-view",{staticClass:"cell-label"},[e._v("备注:")]),t("v-uni-view",{staticClass:"cell-value"},[e._v(e._s(e.dataInfo.remark||""))])],1)],1),t("v-uni-view",{staticClass:"space-view ex-table"},[t("t-table",[t("t-tr",{attrs:{header:!0}},e._l(e.columns,(function(i,n){return t("t-th",{key:n,attrs:{align:i.align}},[e._v(e._s(i.name))])})),1),e._l(e.goodsList,(function(i,n){return t("t-tr",{key:n},e._l(e.columns,(function(n,a){return t("t-td",{key:a,attrs:{align:n.align,color:n.color}},["icon"==n.custom?t("v-uni-view",{staticClass:"list-icon",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.goToStockDetail(i)}}},[t("v-uni-view",{staticClass:"icon-info"},[t("v-uni-view",{staticClass:"info-name"},[e._v(e._s(i.name))]),t("v-uni-view",{staticClass:"info-type"})],1)],1):"stock"==n.custom?t("v-uni-view",{on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.goToStockDetail(i)}}},[t("v-uni-text",[e._v(e._s(i.stock))])],1):"inventory"==n.custom?t("v-uni-view",{on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.goToStockDetail(i)}}},[t("v-uni-text",[e._v(e._s(i.num))])],1):"profit"==n.custom?t("v-uni-view",{on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.goToStockDetail(i)}}}):t("v-uni-view",{on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.goToStockDetail(i)}}},[e._v(e._s(i[n.dataIndex]||""))])],1)})),1)}))],2)],1)],1),t("v-uni-view",{staticClass:"bar-view"},[t("v-uni-view",{staticClass:"info-view"},[t("v-uni-text",{staticClass:"price-item"})],1)],1)],1)},o=[]},"443d":function(e,i,t){"use strict";t.r(i);var n=t("6989"),a=t.n(n);for(var o in n)["default"].indexOf(o)<0&&function(e){t.d(i,e,(function(){return n[e]}))}(o);i["default"]=a.a},6989:function(e,i,t){"use strict";var n=t("d669");Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,t("0bb3");var a=n(t("da6a")),o=t("f3c0"),s=t("7602");i.default={components:{},data:function(){return{INVENTORY_STATUS:s.INVENTORY_STATUS,orderSn:null,dataInfo:{},goodsList:[],columns:[{name:"名称",custom:"icon"},{name:"盘点前",custom:"stock",width:120,align:"center"},{name:"盘点后",custom:"inventory",color:"warn",width:120,align:"center"},{name:"盈亏数",custom:"profit",color:"success",width:120,align:"center"}]}},onLoad:function(){this.initData()},methods:{init:function(){},goToStockDetail:function(e){this.pageTo({url:"/admin/goods/stockChange?id="+e.goodsId+"&name="+e.name})},initData:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(){var i,t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=this.option.orderSn?this.option.orderSn:"",e.next=3,(0,o.getPdGoodsInfo)({orderSn:i});case 3:t=e.sent,n=t.data,this.dataInfo=n.info,this.goodsList=n.goodsList;case 7:case"end":return e.stop()}}),e,this)})));function i(){return e.apply(this,arguments)}return i}()}}},7602:function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.STOCK_TYPE=i.PUT_STATUS=i.PURCHASE_ORDER_STATUS=i.OUT_STATUS=i.ORDER_STATUS=i.INVENTORY_STATUS=i.COMMODITY_TYPE=void 0;i.COMMODITY_TYPE={COMMON:"01",CHANGE:"02"},i.STOCK_TYPE={WARN:"01",MANAGE:"02"},i.PUT_STATUS={CONFIRM:"1",DONE:"2",CANCEL:"3"},i.OUT_STATUS={CONFIRM:"1",DONE:"2",CANCEL:"3"},i.PURCHASE_ORDER_STATUS={CONFIRM:"1",UNDIS:"2",DIS:"3",DONE:"4"},i.INVENTORY_STATUS={DRAFT:"1",DONE:"2"},i.ORDER_STATUS={ALL:"0",NOPAY:"1",UNDIS:"2",DIS:"3",NOTICE:"4",CANCEL:"5",DONE:"6"}},"8a97":function(e,i,t){var n=t("5acd");i=n(!1),i.push([e.i,'@charset "UTF-8";\n/***\n全局scss 变量和方法 存放处\n */\n/* 引入minxin */\n/* 颜色变量 */\n/*图片地址*/\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.ex-page[data-v-b11ed6de]{height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.ex-page .main-view[data-v-b11ed6de]{-webkit-box-flex:1;-webkit-flex:1;flex:1;background-color:#f9fbfc}.ex-page .main-view .space-view[data-v-b11ed6de]{margin-top:%?15?%;background-color:#fff}.ex-page .main-view .ex-info[data-v-b11ed6de]{padding:%?30?%}.ex-page .main-view .ex-info .info-cell[data-v-b11ed6de]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;font-size:%?28?%}.ex-page .main-view .ex-info .info-cell[data-v-b11ed6de]:not(:first-child){margin-top:%?20?%}.ex-page .main-view .ex-info .info-cell .cell-label[data-v-b11ed6de]{width:%?110?%;color:#666}.ex-page .main-view .ex-info .info-cell .cell-value[data-v-b11ed6de]{margin-left:%?40?%;color:#333}.ex-page .main-view .ex-info .info-cell .cell-value.warning[data-v-b11ed6de]{color:#ffaf1d}.ex-page .main-view .ex-table[data-v-b11ed6de] .list-icon{display:-webkit-box;display:-webkit-flex;display:flex}.ex-page .main-view .ex-table[data-v-b11ed6de] .list-icon .icon-image{width:%?60?%;height:%?60?%;margin-right:%?20?%}.ex-page .main-view .ex-table[data-v-b11ed6de] .list-icon .icon-info{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-justify-content:space-around;justify-content:space-around}.ex-page .main-view .ex-table[data-v-b11ed6de] .list-icon .icon-info .info-name{font-size:%?28?%;font-weight:700;color:#333}.ex-page .main-view .ex-table[data-v-b11ed6de] .list-icon .icon-info .info-type{font-size:%?24?%;color:#666}.ex-page .bar-view[data-v-b11ed6de]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:0 %?30?%;width:100%;height:%?100?%;box-shadow:%?0?% %?-1?% %?6?% %?0?% rgba(4,0,0,.06)}.ex-page .bar-view .info-view[data-v-b11ed6de]{font-size:%?26?%}.ex-page .bar-view .info-view .price-item[data-v-b11ed6de]{margin:0 %?10?%}.ex-page .bar-view .info-view .red[data-v-b11ed6de]{color:#f51608}.ex-page .bar-view .btn-view[data-v-b11ed6de]{display:-webkit-box;display:-webkit-flex;display:flex}.ex-page .bar-view .btn-view .admin-button-com[data-v-b11ed6de]{margin:0 %?10?%}',""]),e.exports=i},c403:function(e,i,t){var n=t("8a97");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=t("47af").default;a("3bae8a1e",n,!0,{sourceMap:!1,shadowMode:!1})},f3c0:function(e,i,t){"use strict";var n=t("d669");Object.defineProperty(i,"__esModule",{value:!0}),i.getPdGoodsList=i.getPdGoodsInfo=i.createGdGoods=void 0;var a=n(t("14bf"));i.getPdGoodsInfo=function(e){return a.default.get("/pd-goods/get-info",e)},i.getPdGoodsList=function(e){return a.default.get("/pd-goods/list",e)},i.createGdGoods=function(e){return a.default.post("/pd-goods/create-order",e)}}}]);
|