Files
PropertyDeployment/resources/Web/MicroCommunityMallWeb/html/js/chunk-47c0868c.b01de89c.js
Anfioo adfd019d2d 江门
1
2026-02-01 15:37:55 +08:00

2 lines
8.0 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-47c0868c"],{"1b85":function(t,o,e){"use strict";e("1d61")},"1d61":function(t,o,e){},bbe4:function(t,o,e){"use strict";e.r(o);var r=function(){var t=this,o=t._self._c;return o("div",[o("el-row",{attrs:{gutter:20}},[o("el-col",{attrs:{span:3}},[o("el-card",{staticClass:"list-selector"},[o("ul",{staticClass:"list-selector-list"},t._l(t.partnerGoodsInfo.partners,(function(e,r){return o("li",{key:r,class:{selected:t.partnerGoodsInfo.conditions.ppId==e.ppId},on:{click:function(o){return t.swatchPartner(e)}}},[t._v(" "+t._s(e.partnerName)+" ")])})),0)])],1),o("el-col",{attrs:{span:21}},[o("el-card",[o("div",{staticClass:"clearfix flex justify-between",attrs:{slot:"header"},slot:"header"},[o("span",[t._v(t._s(t.$t("partnerGoods.queryCondition")))])]),o("el-form",{staticClass:"demo-form-inline text-left",attrs:{inline:!0}},[o("el-form-item",[o("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:t.$t("partnerGoods.placeholder.productId")},model:{value:t.partnerGoodsInfo.conditions.valueId,callback:function(o){t.$set(t.partnerGoodsInfo.conditions,"valueId",o)},expression:"partnerGoodsInfo.conditions.valueId"}})],1),o("el-form-item",[o("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:t.$t("partnerGoods.placeholder.productName")},model:{value:t.partnerGoodsInfo.conditions.prodName,callback:function(o){t.$set(t.partnerGoodsInfo.conditions,"prodName",o)},expression:"partnerGoodsInfo.conditions.prodName"}})],1),o("el-form-item",[o("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:t.$t("partnerGoods.placeholder.productDesc")},model:{value:t.partnerGoodsInfo.conditions.prodDesc,callback:function(o){t.$set(t.partnerGoodsInfo.conditions,"prodDesc",o)},expression:"partnerGoodsInfo.conditions.prodDesc"}})],1),o("el-form-item",[o("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:t.$t("partnerGoods.placeholder.state")},model:{value:t.partnerGoodsInfo.conditions.state,callback:function(o){t.$set(t.partnerGoodsInfo.conditions,"state",o)},expression:"partnerGoodsInfo.conditions.state"}})],1),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:function(o){return t._queryPartnerGoodsMethod()}}},[o("i",{staticClass:"el-icon-search"}),t._v(" "+t._s(t.$t("partnerGoods.query"))+" ")])],1)],1)],1),o("el-card",{staticStyle:{"margin-top":"20px"}},[o("div",{staticClass:"clearfix flex justify-between",attrs:{slot:"header"},slot:"header"},[o("span",[t._v(t._s(t.$t("partnerGoods.partnerGoods")))]),o("div",[o("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(o){return t._toSendGoodsStockToPartner()}}},[t._v(t._s(t.$t("partnerGoods.syncStock")))]),o("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(o){return t._toSendGoodsPriceToPartner()}}},[t._v(t._s(t.$t("partnerGoods.syncPrice")))]),o("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(o){return t._toSendGoodsToPartner()}}},[t._v(t._s(t.$t("partnerGoods.syncGoods")))])],1)]),o("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.partnerGoodsInfo.partnerGoodss,border:""}},[o("el-table-column",{attrs:{prop:"productId",label:t.$t("partnerGoods.productId"),align:"center"}}),o("el-table-column",{attrs:{prop:"prodName",label:t.$t("partnerGoods.productName"),align:"center"}}),o("el-table-column",{attrs:{prop:"prodDesc",label:t.$t("partnerGoods.productDesc"),align:"center"}}),o("el-table-column",{attrs:{prop:"valueId",label:t.$t("partnerGoods.specId"),align:"center"}}),o("el-table-column",{attrs:{prop:"outValueId",label:t.$t("partnerGoods.externalCode"),align:"center"},scopedSlots:t._u([{key:"default",fn:function({row:o}){return[t._v(" "+t._s(o.outValueId||"-")+" ")]}}])}),o("el-table-column",{attrs:{prop:"state",label:t.$t("partnerGoods.state"),align:"center"},scopedSlots:t._u([{key:"default",fn:function({row:o}){return[t._v(" "+t._s("Y"==o.state?t.$t("partnerGoods.syncSuccess"):t.$t("partnerGoods.syncFailed"))+" ")]}}])}),o("el-table-column",{attrs:{prop:"remark",label:t.$t("partnerGoods.syncRemark"),align:"center"},scopedSlots:t._u([{key:"default",fn:function({row:o}){return[t._v(" "+t._s(o.remark||"-")+" ")]}}])}),o("el-table-column",{attrs:{prop:"createTime",label:t.$t("partnerGoods.syncTime"),align:"center"}}),o("el-table-column",{attrs:{label:t.$t("partnerGoods.operation"),align:"center"},scopedSlots:t._u([{key:"default",fn:function({row:e}){return[o("el-button",{attrs:{type:"text",size:"small"},on:{click:function(o){return t._openDeletePartnerGoodsModel(e)}}},[t._v(t._s(t.$t("partnerGoods.delete")))])]}}])})],1),o("el-pagination",{staticStyle:{"margin-top":"20px","text-align":"right"},attrs:{"current-page":t.partnerGoodsInfo.conditions.page,"page-size":t.partnerGoodsInfo.conditions.row,layout:"total, prev, pager, next",total:t.partnerGoodsInfo.total},on:{"current-change":t.handleCurrentChange}})],1)],1)],1),o("delete-partner-goods",{ref:"deletePartnerGoods",on:{refresh:t._queryPartnerGoodsMethod}}),o("sync-partner-goods-price",{ref:"syncPartnerGoodsPrice",on:{refresh:t._queryPartnerGoodsMethod}}),o("sync-partner-goods-stock",{ref:"syncPartnerGoodsStock",on:{refresh:t._queryPartnerGoodsMethod}})],1)},n=[],s=e("7323"),a=e("b775");function d(t){return new Promise((o,e)=>{t.shopId=Object(s["f"])(),Object(a["a"])({url:"/partnerGoods.listPartnerGoods",method:"get",params:t}).then(t=>{const e=t.data;o(e)}).catch(t=>{e(t)})})}function i(t){return new Promise((o,e)=>{t.shopId=Object(s["f"])(),Object(a["a"])({url:"/partner.listPartnerPool",method:"get",params:t}).then(t=>{const e=t.data;o(e)}).catch(t=>{e(t)})})}var l={name:"PartnerGoods",components:{"delete-partner-goods":()=>e.e("chunk-2d0b636a").then(e.bind(null,"1bcf")),"sync-partner-goods-price":()=>e.e("chunk-2d0c8438").then(e.bind(null,"53ae")),"sync-partner-goods-stock":()=>e.e("chunk-2d0e88da").then(e.bind(null,"8a83"))},data(){return{loading:!1,DEFAULT_PAGE:1,DEFAULT_ROWS:10,partnerGoodsInfo:{partnerGoodss:[],partners:[],total:0,records:1,moreCondition:!1,pgId:"",conditions:{ppId:"",valueId:"",prodName:"",prodDesc:"",state:"",page:1,row:10,shopId:""}}}},created(){this.partnerGoodsInfo.conditions.shopId=Object(s["f"])(),this._listPartners()},methods:{handleCurrentChange(t){this._listPartnerGoodss(t,this.DEFAULT_ROWS)},_listPartnerGoodss(t,o){this.loading=!0,this.partnerGoodsInfo.conditions.page=t,this.partnerGoodsInfo.conditions.row=o,d(this.partnerGoodsInfo.conditions).then(t=>{this.partnerGoodsInfo.total=t.total,this.partnerGoodsInfo.records=t.records,this.partnerGoodsInfo.partnerGoodss=t.data}).catch(t=>{console.error("请求失败处理",t)}).finally(()=>{this.loading=!1})},_toSendGoodsToPartner(){const t=this.partnerGoodsInfo.conditions.ppId;t?this.$router.push("/pages/partner/transferPartnerGoods?ppId="+t):this.$message.warning(this.$t("partnerGoods.selectPartner"))},_toSendGoodsPriceToPartner(){const t=this.partnerGoodsInfo.conditions.ppId;t?this.$refs.syncPartnerGoodsPrice.open({ppId:t}):this.$message.warning(this.$t("partnerGoods.selectPartner"))},_toSendGoodsStockToPartner(){const t=this.partnerGoodsInfo.conditions.ppId;t?this.$refs.syncPartnerGoodsStock.open({ppId:t}):this.$message.warning(this.$t("partnerGoods.selectPartner"))},_openDeletePartnerGoodsModel(t){this.$refs.deletePartnerGoods.open(t)},_queryPartnerGoodsMethod(){this._listPartnerGoodss(this.DEFAULT_PAGE,this.DEFAULT_ROWS)},_moreCondition(){console.log(this.partnerGoodsInfo.moreCondition),this.partnerGoodsInfo.moreCondition=!this.partnerGoodsInfo.moreCondition},_listPartners(){const t={page:1,row:100,shopId:Object(s["f"])()};i(t).then(t=>{this.partnerGoodsInfo.partners=t.data,t.data&&t.data.length>0&&(this.partnerGoodsInfo.conditions.ppId=t.data[0].ppId,this._listPartnerGoodss(this.DEFAULT_PAGE,this.DEFAULT_ROWS))}).catch(t=>{console.error("请求失败处理",t)})},swatchPartner(t){this.partnerGoodsInfo.conditions.ppId=t.ppId,this._listPartnerGoodss(this.DEFAULT_PAGE,this.DEFAULT_ROWS)}}},c=l,p=(e("1b85"),e("2877")),u=Object(p["a"])(c,r,n,!1,null,"346fa392",null);o["default"]=u.exports}}]);
//# sourceMappingURL=chunk-47c0868c.b01de89c.js.map