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
66 KiB
1 line
66 KiB
9 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-product-addGoods-index"],{"0358":function(t,e,a){"use strict";var i=a("177d"),n=a.n(i);n.a},"094c":function(t,e,a){"use strict";a.r(e);var i=a("e5e2"),n=a("3988");for(var s in n)["default"].indexOf(s)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(s);a("d97c");var o=a("f0c5"),l=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"3fb66ba7",null,!1,i["a"],void 0);e["default"]=l.exports},1331:function(t,e,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;i(a("5530"));var n=i(a("ade3")),s=i(a("2909")),o=i(a("c7eb")),l=i(a("1da1"));a("a434"),a("d81d"),a("d3b7"),a("159b"),a("b64b"),a("99af"),a("14d9"),a("caad"),a("2532");var c=i(a("2e1e")),r=i(a("094c")),d=a("a5eb"),u=a("fdb9"),p=i(a("49d6")),f=i(a("1d60")),v=i(a("c24f")),_=i(a("6c84")),m=i(a("a208")),h=a("8342"),g=i(a("3f30")),b={components:{inputGoodsDetils:c.default,linkageAssembly:r.default,attr:p.default,platfrom:f.default,storeClassification:v.default,secound:_.default,avatar:m.default},data:function(){return{step:1,setFormData:{imageList:[],specification:"",image:"",slider_image:"",store_name:"",store_info:"",keyword:"",brand_id:"",brand_name:"",cate_id:"",cate_name:"",mer_cate_id:"",mer_cate_name:"",unit_name:"",spec_type:"0",attr:[],specifica:"",setSpecificaValue:"",setSpecificaValue2:"",delivery_way:[],delivery_free:"1",temp_id:"",tempName:""},popupContainerKey:!1,productItem:{}||[],selectProductTitle:"选择平台分类",specificationsRadioList:[{value:"0",name:"单规格"},{value:"1",name:"多规格"}],specifications:[{id:5,label:"规格选择",type:"radio",model:"spec_type",inforValue:"0",radioList:[{value:"0",name:"单规格"},{value:"1",name:"多规格"}]},{id:7,label:"选择规格",type:"select",model:"attr",singleColumn:!0,value:"",DoNotShow:!0,holder:"去选择",jumpLogic:!0},{id:6,label:"商品规格",type:"select",value:"",holder:"去设置",jumpLogic:!0,DoNotShow:!0}],deliveryType:[],deliveryFreeList:[{value:"1",name:"到店核销"},{value:"2",name:"快递配送"}],merId:"",product_id:"",isUpload:!0,templateListPage:{page:1,limit:1e4},classified:{cate_id:[],mer_cate_id:[],brand_id:[],attr:[],temp_id:[]},platformClassificationData:[],merchantClassification:[],brand:[],specificationClassification:[],selectEdAttr:[],canChange:!0,secoundModel:!1,resetKey:!1,imgName:""}},onLoad:function(t){this.merId=t.mer_id,this.product_id=t.product_id,this.getDeliveryType(),this.initData(),this.product_id&&this.initDataEditData()},onShow:function(){this.setFormData.setSpecificaValue="",this.setFormData.setSpecificaValue2="",(0,d.getStorage)("singleSpecification")?this.setFormData.setSpecificaValue="点击修改价格":this.setFormData.setSpecificaValue="",(0,d.getStorage)("attrValue")?this.setFormData.setSpecificaValue2="点击修改价格":this.setFormData.setSpecificaValue2="",2==this.step&&(this.secoundModel=!this.secoundModel)},watch:{setFormData:{handler:function(t){var e=this;setTimeout((function(){(0,d.setStorage)("addGoodsFormData",e.setFormData)}))},deep:!0},"setFormData.imageList":function(t){this.setFormData.image=t.length?t[0]:"",this.setFormData.slider_image=t.length?(0,d.serialize)(t).splice(1):[]}},methods:{initData:function(){var t=this;return(0,l.default)((0,o.default)().mark((function e(){return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return(0,d.getStorage)("addGoodsFormData")&&(t.setFormData=(0,d.getStorage)("addGoodsFormData"),t.selectEdAttr=(0,d.getStorage)("modifyPriceData")),e.next=3,(0,u.categoryBrandlist)(t.merId);case 3:return t.brand=e.sent.data,e.next=6,(0,u.categorySelect)(t.merId);case 6:return t.merchantClassification=e.sent.data,e.next=9,(0,u.categoryList)(t.merId);case 9:t.platformClassificationData=e.sent.data;case 10:case"end":return e.stop()}}),e)})))()},getDeliveryType:function(){var t=this;(0,u.getDeliveryType)(t.merId).then((function(e){t.deliveryType=e.data.delivery_way.map(String),t.product_id||(t.setFormData.delivery_way=t.deliveryType),2==t.deliveryType.length?t.deliver
|