You can not 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
3.1 KiB
1 line
3.1 KiB
|
2 months ago
|
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["package2/stock/stockDetail"],{1450:function(t,e,i){"use strict";var u=i("1aa3"),a=i.n(u);a.a},"1aa3":function(t,e,i){},"357d":function(t,e,i){"use strict";(function(t,e){var u=i("47a9");i("7859");u(i("3240"));var a=u(i("74d8"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(a.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},"74d8":function(t,e,i){"use strict";i.r(e);var u=i("e27f"),a=i("a692");for(var n in a)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(n);i("1450");var s=i("828b"),c=Object(s["a"])(a["default"],u["b"],u["c"],!1,null,null,null,!1,u["a"],void 0);e["default"]=c.exports},a692:function(t,e,i){"use strict";i.r(e);var u=i("c3a7"),a=i.n(u);for(var n in u)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return u[t]}))}(n);e["default"]=a.a},c3a7:function(t,e,i){"use strict";(function(t){var u=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;u(i("60b9"));var a={data:function(){return{pageNum:1,dataList:[],pecsList:[]}},filters:{sliceMsg:function(t){var e="";if("string"==typeof t){var i=JSON.parse(t);for(var u in i)e+=i[u]+"/"}return e},maxNum:function(t){return t>=10?10:t<0?0:void 0}},onLoad:function(t){this.dataList=JSON.parse(t.item)},onShow:function(){this.getShareList()},methods:{getShareList:function(){var t=this;this.tui.request("/app/stock/productCount","GET",{productId:this.dataList.id},!1,!0).then((function(e){if(200==e.code){for(var i=t.dataList.checkStockAttributeVos,u=0;u<e.result.length;u++)if(null==i)e.result[u].pdNum=e.result[u].stockCount;else for(var a=0;a<i.length;a++)i[a].attributeList==e.result[u].attributeList&&(e.result[u].pdNum=i[a].pdNum);t.pecsList=e.result}else t.tui.toast(e.message)})).catch((function(t){}))},clickList:function(){for(var e=this,i=[],u=0;u<this.pecsList.length;u++){var a={attributeList:this.pecsList[u].attributeList,stockCount:this.pecsList[u].stockCount,pdNum:this.pecsList[u].pdNum};i.push(a)}this.dataList.checkStockAttributeVos=i;var n,s=[];n={checkStockId:t.getStorageSync("stockId"),productId:this.dataList.id,productName:this.dataList.productName,productPicture:this.dataList.productPicture,productSn:this.dataList.productSn,checkStockAttributeVos:this.dataList.checkStockAttributeVos},s.push(n),this.tui.request("/app/checkStockDetail/addCheckStockDetail","POST",s,!1,!1).then((function(i){if(200==i.code){var u=getCurrentPages(),a=u[u.length-2];a.$vm.pdList=e.dataList,t.navigateBack({delta:1})}else e.tui.toast(i.message)})).catch((function(t){}))}}};e.default=a}).call(this,i("df3c")["default"])},e27f:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){return u}));var u={uniNumberBox:function(){return i.e("uni_modules/uni-number-box/components/uni-number-box/uni-number-box").then(i.bind(null,"b2ff"))}},a=function(){var t=this,e=t.$createElement,i=(t._self._c,t.__map(t.pecsList,(function(e,i){var u=t.__get_orig(e),a=t._f("sliceMsg")(e.attributeList);return{$orig:u,f0:a}})));t.$mp.data=Object.assign({},{$root:{l0:i}})},n=[]}},[["357d","common/runtime","common/vendor"]]]);
|