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

2 lines
25 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d69de24e"],{1726:function(t,e,l){"use strict";l.d(e,"e",(function(){return c})),l.d(e,"l",(function(){return r})),l.d(e,"f",(function(){return i})),l.d(e,"i",(function(){return a})),l.d(e,"c",(function(){return d})),l.d(e,"g",(function(){return n})),l.d(e,"a",(function(){return s})),l.d(e,"h",(function(){return u})),l.d(e,"k",(function(){return p})),l.d(e,"d",(function(){return k})),l.d(e,"b",(function(){return f})),l.d(e,"j",(function(){return S}));var o=l("b775");function c(t){return new Promise((e,l)=>{Object(o["a"])({url:"/product.queryProduct",method:"get",params:t}).then(t=>{const l=t.data;e(l)}).catch(t=>{l(t)})})}function r(t){return new Promise((e,l)=>{Object(o["a"])({url:"/product.updateProduct",method:"post",data:t}).then(t=>{const l=t.data;e(l)}).catch(t=>{l(t)})})}function i(t){return new Promise((e,l)=>{Object(o["a"])({url:"/productCategory.queryProductCategory",method:"get",params:t}).then(t=>{const l=t.data;e(l)}).catch(t=>{l(t)})})}function a(t){return new Promise((e,l)=>{Object(o["a"])({url:"/shopHouse.queryShopHouse",method:"get",params:t}).then(t=>{const l=t.data;e(l)}).catch(t=>{l(t)})})}function d(t){return new Promise((e,l)=>{Object(o["a"])({url:"/housekeepingType.queryHousekeepingType",method:"get",params:t}).then(t=>{const l=t.data;e(l)}).catch(t=>{l(t)})})}function n(t){return new Promise((e,l)=>{Object(o["a"])({url:"/productH5Menu.listProductH5Menu",method:"get",params:t}).then(t=>{const l=t.data;e(l)}).catch(t=>{l(t)})})}function s(t){return new Promise((e,l)=>{Object(o["a"])({url:"/product.deleteProduct",method:"post",data:t}).then(t=>{const l=t.data;e(l)}).catch(t=>{l(t)})})}function u(t){return new Promise((e,l)=>{Object(o["a"])({url:"/product/queryProductSpec",method:"get",params:t}).then(t=>{const l=t.data;e(l)}).catch(t=>{l(t)})})}function p(t){return new Promise((e,l)=>{Object(o["a"])({url:"/product/saveProductLabel",method:"post",data:t}).then(t=>{const l=t.data;e(l)}).catch(t=>{l(t)})})}function k(t){return new Promise((e,l)=>{Object(o["a"])({url:"/label/queryLabel",method:"get",params:t}).then(t=>{const l=t.data;e(l)}).catch(t=>{l(t)})})}function f(t){return new Promise((e,l)=>{Object(o["a"])({url:"/export.exportData",method:"get",params:t}).then(t=>{const l=t.data;e(l)}).catch(t=>{l(t)})})}function S(t){return new Promise((e,l)=>{Object(o["a"])({url:"/product.saveProduct",method:"post",data:t}).then(t=>{const l=t.data;e(l)}).catch(t=>{l(t)})})}},"2dfe":function(t,e,l){},cd9b:function(t,e,l){"use strict";l.r(e);var o=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-container"},[e("el-card",{staticClass:"ibox"},[e("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[e("span",[t._v(t._s(t.$t("productSeckill.queryCondition")))])]),e("div",{},[e("el-form",{staticClass:"flex justify-start",attrs:{inline:!0,model:t.productSeckillManageInfo.conditions}},[e("el-form-item",[e("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:t.$t("productSeckill.selectProductName")},model:{value:t.productSeckillManageInfo.conditions.prodName,callback:function(e){t.$set(t.productSeckillManageInfo.conditions,"prodName",e)},expression:"productSeckillManageInfo.conditions.prodName"}})],1),e("el-form-item",[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$t("productSeckill.selectKillHours")},model:{value:t.productSeckillManageInfo.conditions.killHours,callback:function(e){t.$set(t.productSeckillManageInfo.conditions,"killHours",e)},expression:"productSeckillManageInfo.conditions.killHours"}},[t._l(24,(function(t){return e("el-option",{key:t,attrs:{label:t-1+"点",value:t-1}})})),e("el-option",{attrs:{label:t.$t("productSeckill.selectKillHours"),value:""}})],2)],1),e("el-form-item",[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$t("productSeckill.selectStatus")},model:{value:t.productSeckillManageInfo.conditions.state,callback:function(e){t.$set(t.productSeckillManageInfo.conditions,"state",e)},expression:"productSeckillManageInfo.conditions.state"}},[e("el-option",{attrs:{label:t.$t("productSeckill.selectStatus"),value:"",disabled:""}}),e("el-option",{attrs:{label:t.$t("productSeckill.open"),value:"1001"}}),e("el-option",{attrs:{label:t.$t("productSeckill.close"),value:"2002"}})],1)],1),e("el-form-item",[e("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:t._queryProductSeckillMethod}},[t._v(" "+t._s(t.$t("productSeckill.query"))+" ")])],1)],1)],1)]),e("el-card",{staticClass:"margin-top-sm"},[e("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[e("span",[t._v(t._s(t.$t("productSeckill.seckillProducts")))]),e("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",size:"small"},on:{click:t._openAddProductSeckillModal}},[t._v(" "+t._s(t.$t("productSeckill.add"))+" ")])],1),e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.productSeckillManageInfo.productSeckills,border:""}},[e("el-table-column",{attrs:{prop:"coverPhoto",label:t.$t("productSeckill.productImage"),align:"center",width:"100"},scopedSlots:t._u([{key:"default",fn:function(t){return[e("el-image",{staticStyle:{width:"50px",height:"50px","border-radius":"10px"},attrs:{src:t.row.coverPhoto||"/img/noPhoto.jpg",fit:"cover"}})]}}])}),e("el-table-column",{attrs:{prop:"prodName",label:t.$t("productSeckill.productName"),align:"center"}}),e("el-table-column",{attrs:{prop:"killHours",label:t.$t("productSeckill.killHours"),align:"center"}}),e("el-table-column",{attrs:{prop:"continueHours",label:t.$t("productSeckill.continueHours"),align:"center"}}),e("el-table-column",{attrs:{prop:"totalCount",label:t.$t("productSeckill.validPurchase"),align:"center"}}),e("el-table-column",{attrs:{prop:"oneCount",label:t.$t("productSeckill.onePurchaseCount"),align:"center"}}),e("el-table-column",{attrs:{prop:"killPrice",label:t.$t("productSeckill.killPrice"),align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" ¥"+t._s(e.row.killPrice)+" ")]}}])}),e("el-table-column",{attrs:{prop:"price",label:t.$t("productSeckill.singlePrice"),align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" ¥"+t._s(e.row.price)+" ")]}}])}),e("el-table-column",{attrs:{prop:"killStock",label:t.$t("productSeckill.limit"),align:"center"}}),e("el-table-column",{attrs:{prop:"state",label:t.$t("productSeckill.status"),align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s("1001"===e.row.state?t.$t("productSeckill.open"):t.$t("productSeckill.close"))+" ")]}}])}),e("el-table-column",{attrs:{label:t.$t("productSeckill.validPeriod"),align:"center",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.startTime)+"~"+t._s(e.row.endTime)+" ")]}}])}),e("el-table-column",{attrs:{label:t.$t("productSeckill.operation"),align:"center",width:"200"},scopedSlots:t._u([{key:"default",fn:function(l){return[e("el-button",{attrs:{size:"mini"},on:{click:function(e){return t._openEditProductSeckillModel(l.row)}}},[t._v(" "+t._s(t.$t("productSeckill.edit"))+" ")]),e("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(e){return t._openDeleteProductSeckillModel(l.row)}}},[t._v(" "+t._s(t.$t("productSeckill.delete"))+" ")])]}}])})],1),e("el-pagination",{attrs:{"current-page":t.productSeckillManageInfo.conditions.page,"page-size":t.productSeckillManageInfo.conditions.row,total:t.productSeckillManageInfo.total,layout:"total, prev, pager, next"},on:{"current-change":t.handleCurrentChange}})],1),e("add-product-seckill",{ref:"addProductSeckill",on:{refresh:t._listProductSeckills}}),e("edit-product-seckill",{ref:"editProductSeckill",on:{refresh:t._listProductSeckills}}),e("delete-product-seckill",{ref:"deleteProductSeckill",on:{refresh:t._listProductSeckills}})],1)},c=[],r=l("b775"),i=l("7323");function a(t){return new Promise((e,l)=>{t.shopId=Object(i["f"])(),Object(r["a"])({url:"/productSeckill.listProductSeckill",method:"get",params:t}).then(t=>{const l=t.data;e(l)}).catch(t=>{l(t)})})}function d(t){return new Promise((e,l)=>{t.shopId=Object(i["f"])(),Object(r["a"])({url:"/productSeckill.saveProductSeckill",method:"post",data:t}).then(t=>{const o=t.data;0===o.code?e(o):l(o.msg)}).catch(t=>{l(t)})})}function n(t){return new Promise((e,l)=>{t.shopId=Object(i["f"])(),Object(r["a"])({url:"/productSeckill.updateProductSeckill",method:"post",data:t}).then(t=>{const o=t.data;0===o.code?e(o):l(o.msg)}).catch(t=>{l(t)})})}function s(t){return new Promise((e,l)=>{t.shopId=Object(i["f"])(),Object(r["a"])({url:"/productSeckill.deleteProductSeckill",method:"post",data:t}).then(t=>{const o=t.data;0===o.code?e(o):l(o.msg)}).catch(t=>{l(t)})})}var u=function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{title:t.$t("productSeckill.addSeckill"),visible:t.dialogVisible,width:"70%"},on:{"update:visible":function(e){t.dialogVisible=e},close:t.handleClose}},[e("el-form",{ref:"addForm",attrs:{model:t.addProductSeckillInfo,"label-width":"120px","label-position":"right"}},[e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:t.$t("productSeckill.selectProduct"),prop:"categoryId"}},[e("el-row",{attrs:{gutter:10}},[e("el-col",{attrs:{span:6}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$t("productSeckill.selectGroup")},on:{change:t._changeAddProductCatalorys},model:{value:t.addProductSeckillInfo.categoryId,callback:function(e){t.$set(t.addProductSeckillInfo,"categoryId",e)},expression:"addProductSeckillInfo.categoryId"}},t._l(t.addProductSeckillInfo.productCategorys,(function(t){return e("el-option",{key:t.categoryId,attrs:{label:t.categoryName,value:t.categoryId}})})),1)],1),e("el-col",{attrs:{span:6}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$t("productSeckill.selectProduct")},on:{change:t._changeAddProduct},model:{value:t.addProductSeckillInfo.productId,callback:function(e){t.$set(t.addProductSeckillInfo,"productId",e)},expression:"addProductSeckillInfo.productId"}},t._l(t.addProductSeckillInfo.products,(function(t){return e("el-option",{key:t.productId,attrs:{label:t.prodName,value:t.productId}})})),1)],1),e("el-col",{attrs:{span:6}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$t("productSeckill.selectSpec")},model:{value:t.addProductSeckillInfo.valueId,callback:function(e){t.$set(t.addProductSeckillInfo,"valueId",e)},expression:"addProductSeckillInfo.valueId"}},t._l(t.addProductSeckillInfo.values,(function(t){return e("el-option",{key:t.valueId,attrs:{label:t.specName,value:t.valueId}})})),1)],1)],1)],1)],1),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:t.$t("productSeckill.seckillDesc"),prop:"prodDesc"}},[e("el-input",{attrs:{type:"textarea",placeholder:t.$t("productSeckill.seckillDescPlaceholder")},model:{value:t.addProductSeckillInfo.prodDesc,callback:function(e){t.$set(t.addProductSeckillInfo,"prodDesc",e)},expression:"addProductSeckillInfo.prodDesc"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:t.$t("productSeckill.killHours"),prop:"killHours"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$t("productSeckill.killHoursPlaceholder")},model:{value:t.addProductSeckillInfo.killHours,callback:function(e){t.$set(t.addProductSeckillInfo,"killHours",e)},expression:"addProductSeckillInfo.killHours"}},t._l(t.addProductSeckillInfo.selectsHours,(function(t){return e("el-option",{key:t,attrs:{label:t+"点",value:t}})})),1)],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:t.$t("productSeckill.continueHours"),prop:"continueHours"}},[e("el-input",{attrs:{placeholder:t.$t("productSeckill.continueHoursPlaceholder")},model:{value:t.addProductSeckillInfo.continueHours,callback:function(e){t.$set(t.addProductSeckillInfo,"continueHours",e)},expression:"addProductSeckillInfo.continueHours"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:t.$t("productSeckill.validPurchase"),prop:"totalCount"}},[e("el-input",{attrs:{type:"number",placeholder:t.$t("productSeckill.validPurchasePlaceholder")},model:{value:t.addProductSeckillInfo.totalCount,callback:function(e){t.$set(t.addProductSeckillInfo,"totalCount",e)},expression:"addProductSeckillInfo.totalCount"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:t.$t("productSeckill.onePurchaseCount"),prop:"oneCount"}},[e("el-input",{attrs:{type:"number",placeholder:t.$t("productSeckill.onePurchaseCountPlaceholder")},model:{value:t.addProductSeckillInfo.oneCount,callback:function(e){t.$set(t.addProductSeckillInfo,"oneCount",e)},expression:"addProductSeckillInfo.oneCount"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:t.$t("productSeckill.killPrice"),prop:"killPrice"}},[e("el-input",{attrs:{placeholder:t.$t("productSeckill.killPricePlaceholder")},model:{value:t.addProductSeckillInfo.killPrice,callback:function(e){t.$set(t.addProductSeckillInfo,"killPrice",e)},expression:"addProductSeckillInfo.killPrice"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:t.$t("productSeckill.limit"),prop:"killStock"}},[e("el-input",{attrs:{placeholder:t.$t("productSeckill.limitPlaceholder")},model:{value:t.addProductSeckillInfo.killStock,callback:function(e){t.$set(t.addProductSeckillInfo,"killStock",e)},expression:"addProductSeckillInfo.killStock"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:t.$t("productSeckill.startTime"),prop:"startTime"}},[e("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",placeholder:t.$t("productSeckill.startTimePlaceholder"),"value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:t.addProductSeckillInfo.startTime,callback:function(e){t.$set(t.addProductSeckillInfo,"startTime",e)},expression:"addProductSeckillInfo.startTime"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:t.$t("productSeckill.endTime"),prop:"endTime"}},[e("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",placeholder:t.$t("productSeckill.endTimePlaceholder"),"value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:t.addProductSeckillInfo.endTime,callback:function(e){t.$set(t.addProductSeckillInfo,"endTime",e)},expression:"addProductSeckillInfo.endTime"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:t.$t("productSeckill.status"),prop:"state"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$t("productSeckill.statusPlaceholder")},model:{value:t.addProductSeckillInfo.state,callback:function(e){t.$set(t.addProductSeckillInfo,"state",e)},expression:"addProductSeckillInfo.state"}},[e("el-option",{attrs:{label:t.$t("productSeckill.open"),value:"1001"}}),e("el-option",{attrs:{label:t.$t("productSeckill.close"),value:"2002"}})],1)],1)],1)],1)],1),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v(" "+t._s(t.$t("common.cancel"))+" ")]),e("el-button",{attrs:{type:"primary"},on:{click:t.saveProductSeckillInfo}},[t._v(" "+t._s(t.$t("common.save"))+" ")])],1)],1)},p=[],k=l("1726"),f={name:"AddProductSeckill",data(){return{dialogVisible:!1,addProductSeckillInfo:{categoryId:"",productId:"",valueId:"",killId:"",prodName:"",prodDesc:"",killHours:"",continueHours:"",totalCount:"",oneCount:"",killPrice:"",killStock:"",state:"",startTime:"",endTime:"",productCategorys:[],products:[],values:[],selectsHours:[8,10,12,14,15,16,20,22]}}},methods:{open(){this.dialogVisible=!0,this._listAddProductCategorys()},handleClose(){this.$refs.addForm.resetFields(),this.addProductSeckillInfo={categoryId:"",productId:"",valueId:"",killId:"",prodName:"",prodDesc:"",killHours:"",continueHours:"",totalCount:"",oneCount:"",killPrice:"",killStock:"",state:"",startTime:"",endTime:"",productCategorys:this.addProductSeckillInfo.productCategorys,products:this.addProductSeckillInfo.products,values:[],selectsHours:[8,10,12,14,15,16,20,22]}},async saveProductSeckillInfo(){try{this.addProductSeckillInfo.shopId=Object(i["f"])(),await this.$refs.addForm.validate(),await d(this.addProductSeckillInfo),this.$message.success(this.$t("common.saveSuccess")),this.dialogVisible=!1,this.$emit("refresh")}catch(t){this.$message.error(t),console.error(t)}},async _listAddProductCategorys(){try{const t=await Object(k["f"])({page:1,row:100,shopId:Object(i["f"])()});this.addProductSeckillInfo.productCategorys=t.data}catch(t){console.error(t)}},async _changeAddProductCatalorys(){try{const t=await Object(k["e"])({page:1,row:100,shopId:Object(i["f"])(),cataloryId:this.addProductSeckillInfo.categoryId});this.addProductSeckillInfo.products=t.data}catch(t){console.error(t)}},async _changeAddProduct(){try{const t=await Object(k["e"])({page:1,row:1,shopId:Object(i["f"])(),productId:this.addProductSeckillInfo.productId});this.addProductSeckillInfo.values=t.data[0].productSpecValues,this.addProductSeckillInfo.prodDesc=t.data[0].prodDesc}catch(t){console.error(t)}},_getValueSpecName(t){let e="";return t.productSpecDetails.forEach(t=>{e+=t.detailValue+";"}),e}}},S=f,m=l("2877"),h=Object(m["a"])(S,u,p,!1,null,null,null),P=h.exports,b=function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{title:t.$t("productSeckill.editSeckill"),visible:t.dialogVisible,width:"70%"},on:{"update:visible":function(e){t.dialogVisible=e},close:t.handleClose}},[e("el-form",{ref:"editForm",attrs:{model:t.editProductSeckillInfo,"label-width":"120px","label-position":"right"}},[e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:t.$t("productSeckill.seckillDesc"),prop:"prodDesc"}},[e("el-input",{attrs:{type:"textarea",placeholder:t.$t("productSeckill.seckillDescPlaceholder")},model:{value:t.editProductSeckillInfo.prodDesc,callback:function(e){t.$set(t.editProductSeckillInfo,"prodDesc",e)},expression:"editProductSeckillInfo.prodDesc"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:t.$t("productSeckill.killHours"),prop:"killHours"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$t("productSeckill.killHoursPlaceholder")},model:{value:t.editProductSeckillInfo.killHours,callback:function(e){t.$set(t.editProductSeckillInfo,"killHours",e)},expression:"editProductSeckillInfo.killHours"}},t._l(t.editProductSeckillInfo.selectsHours,(function(t){return e("el-option",{key:t,attrs:{label:t+"点",value:t}})})),1)],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:t.$t("productSeckill.continueHours"),prop:"continueHours"}},[e("el-input",{attrs:{placeholder:t.$t("productSeckill.continueHoursPlaceholder")},model:{value:t.editProductSeckillInfo.continueHours,callback:function(e){t.$set(t.editProductSeckillInfo,"continueHours",e)},expression:"editProductSeckillInfo.continueHours"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:t.$t("productSeckill.validPurchase"),prop:"totalCount"}},[e("el-input",{attrs:{type:"number",placeholder:t.$t("productSeckill.validPurchasePlaceholder")},model:{value:t.editProductSeckillInfo.totalCount,callback:function(e){t.$set(t.editProductSeckillInfo,"totalCount",e)},expression:"editProductSeckillInfo.totalCount"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:t.$t("productSeckill.onePurchaseCount"),prop:"oneCount"}},[e("el-input",{attrs:{type:"number",placeholder:t.$t("productSeckill.onePurchaseCountPlaceholder")},model:{value:t.editProductSeckillInfo.oneCount,callback:function(e){t.$set(t.editProductSeckillInfo,"oneCount",e)},expression:"editProductSeckillInfo.oneCount"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:t.$t("productSeckill.killPrice"),prop:"killPrice"}},[e("el-input",{attrs:{placeholder:t.$t("productSeckill.killPricePlaceholder")},model:{value:t.editProductSeckillInfo.killPrice,callback:function(e){t.$set(t.editProductSeckillInfo,"killPrice",e)},expression:"editProductSeckillInfo.killPrice"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:t.$t("productSeckill.limit"),prop:"killStock"}},[e("el-input",{attrs:{placeholder:t.$t("productSeckill.limitPlaceholder")},model:{value:t.editProductSeckillInfo.killStock,callback:function(e){t.$set(t.editProductSeckillInfo,"killStock",e)},expression:"editProductSeckillInfo.killStock"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:t.$t("productSeckill.startTime"),prop:"startTime"}},[e("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",placeholder:t.$t("productSeckill.startTimePlaceholder"),"value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:t.editProductSeckillInfo.startTime,callback:function(e){t.$set(t.editProductSeckillInfo,"startTime",e)},expression:"editProductSeckillInfo.startTime"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:t.$t("productSeckill.endTime"),prop:"endTime"}},[e("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",placeholder:t.$t("productSeckill.endTimePlaceholder"),"value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:t.editProductSeckillInfo.endTime,callback:function(e){t.$set(t.editProductSeckillInfo,"endTime",e)},expression:"editProductSeckillInfo.endTime"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:t.$t("productSeckill.status"),prop:"state"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$t("productSeckill.statusPlaceholder")},model:{value:t.editProductSeckillInfo.state,callback:function(e){t.$set(t.editProductSeckillInfo,"state",e)},expression:"editProductSeckillInfo.state"}},[e("el-option",{attrs:{label:t.$t("productSeckill.open"),value:"1001"}}),e("el-option",{attrs:{label:t.$t("productSeckill.close"),value:"2002"}})],1)],1)],1)],1)],1),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v(" "+t._s(t.$t("common.cancel"))+" ")]),e("el-button",{attrs:{type:"primary"},on:{click:t.editProductSeckill}},[t._v(" "+t._s(t.$t("common.save"))+" ")])],1)],1)},I=[],g={name:"EditProductSeckill",data(){return{dialogVisible:!1,editProductSeckillInfo:{killId:"",productId:"",valueId:"",prodName:"",prodDesc:"",killHours:"",continueHours:"",totalCount:"",oneCount:"",killPrice:"",killStock:"",state:"",startTime:"",endTime:"",selectsHours:[8,10,12,14,15,16,20,22]}}},methods:{open(t){this.dialogVisible=!0,this.$nextTick(()=>{Object.assign(this.editProductSeckillInfo,t)})},handleClose(){this.$refs.editForm.resetFields(),this.editProductSeckillInfo={killId:"",productId:"",valueId:"",prodName:"",prodDesc:"",killHours:"",continueHours:"",totalCount:"",oneCount:"",killPrice:"",killStock:"",state:"",startTime:"",endTime:"",selectsHours:[8,10,12,14,15,16,20,22]}},async editProductSeckill(){try{this.editProductSeckillInfo.shopId=Object(i["f"])(),await this.$refs.editForm.validate(),await n(this.editProductSeckillInfo),this.$message.success(this.$t("common.saveSuccess")),this.dialogVisible=!1,this.$emit("refresh")}catch(t){this.$message.error(t),console.error(t)}}}},$=g,y=Object(m["a"])($,b,I,!1,null,null,null),v=y.exports,_=function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{title:t.$t("productSeckill.confirmOperation"),visible:t.dialogVisible,width:"30%"},on:{"update:visible":function(e){t.dialogVisible=e},close:t.handleClose}},[e("div",{staticStyle:{"text-align":"center"}},[e("p",[t._v(t._s(t.$t("productSeckill.confirmDeleteSeckill")))])]),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v(" "+t._s(t.$t("productSeckill.cancel"))+" ")]),e("el-button",{attrs:{type:"primary"},on:{click:t.deleteProductSeckill}},[t._v(" "+t._s(t.$t("productSeckill.confirmDelete"))+" ")])],1)])},w=[],C={name:"DeleteProductSeckill",data(){return{dialogVisible:!1,deleteProductSeckillInfo:{killId:""}}},methods:{open(t){this.dialogVisible=!0,this.deleteProductSeckillInfo.killId=t.killId},handleClose(){this.deleteProductSeckillInfo={killId:""}},async deleteProductSeckill(){try{this.deleteProductSeckillInfo.shopId=Object(i["f"])(),await s(this.deleteProductSeckillInfo),this.$message.success(this.$t("common.submitSuccess")),this.dialogVisible=!1,this.$emit("refresh")}catch(t){this.$message.error(t),console.error(t)}}}},H=C,x=Object(m["a"])(H,_,w,!1,null,null,null),j=x.exports,M={name:"ProductSeckillManage",components:{AddProductSeckill:P,EditProductSeckill:v,DeleteProductSeckill:j},data(){return{productSeckillManageInfo:{productSeckills:[],total:0,conditions:{prodName:"",killHours:"",state:"",shopId:"",page:1,row:10}}}},created(){this.productSeckillManageInfo.conditions.shopId=Object(i["f"])(),this._listProductSeckills()},methods:{async _listProductSeckills(){try{const t=await a(this.productSeckillManageInfo.conditions);this.productSeckillManageInfo.productSeckills=t.data,this.productSeckillManageInfo.total=t.records}catch(t){console.error(t)}},_queryProductSeckillMethod(){this.productSeckillManageInfo.conditions.page=1,this._listProductSeckills()},_openAddProductSeckillModal(){this.$refs.addProductSeckill.open()},_openEditProductSeckillModel(t){this.$refs.editProductSeckill.open(t)},_openDeleteProductSeckillModel(t){this.$refs.deleteProductSeckill.open(t)},handleCurrentChange(t){this.productSeckillManageInfo.conditions.page=t,this._listProductSeckills()}}},T=M,O=(l("e773"),Object(m["a"])(T,o,c,!1,null,"7c09d7a4",null));e["default"]=O.exports},e773:function(t,e,l){"use strict";l("2dfe")}}]);
//# sourceMappingURL=chunk-d69de24e.6ad332a8.js.map