Files
PropertyDeployment/resources/Web/MicroCommunityMallWeb/html/js/chunk-53a7fc61.3f393d58.js
Anfioo adfd019d2d 江门
1
2026-02-01 15:37:55 +08:00

2 lines
28 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-53a7fc61"],{"254b":function(e,t,o){"use strict";var r=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{title:"选择商品",visible:e.dialogVisible,width:"80%",top:"5vh"},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticClass:"filter-container"},[t("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"输入商品信息名称",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleFilter.apply(null,arguments)}},model:{value:e.searchQuery,callback:function(t){e.searchQuery=t},expression:"searchQuery"}}),t("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleFilter}},[e._v(" 查询 ")])],1),t("el-table",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{data:e.products,border:""}},[t("el-table-column",{attrs:{prop:"productId",label:"商品编号",align:"center"}}),t("el-table-column",{attrs:{prop:"categoryName",label:"商品大类",align:"center"}}),t("el-table-column",{attrs:{label:"商品图片",align:"center"},scopedSlots:e._u([{key:"default",fn:function(e){return[t("el-image",{staticStyle:{width:"60px",height:"60px","border-radius":"5px"},attrs:{src:e.row.coverPhoto,fit:"cover"}})]}}])}),t("el-table-column",{attrs:{prop:"prodName",label:"商品名称",align:"center"}}),t("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:e._u([{key:"default",fn:function(o){return[t("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.handleChoose(o.row)}}},[e._v(" 选择 ")])]}}])})],1),t("div",{staticClass:"pagination-container"},[t("el-pagination",{attrs:{"current-page":e.currentPage,"page-sizes":[10,20,30,50],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)},a=[],s=o("2a7f"),n={name:"ChooseProduct",data(){return{dialogVisible:!1,products:[],searchQuery:"",currentPage:1,pageSize:10,total:0}},methods:{open(){this.dialogVisible=!0,this.getProducts()},async getProducts(){try{const e={page:this.currentPage,row:this.pageSize,name:this.searchQuery},t=await Object(s["d"])(e);this.products=t.data,this.total=t.total}catch(e){console.error("获取商品列表失败:",e)}},handleFilter(){this.currentPage=1,this.getProducts()},handleSizeChange(e){this.pageSize=e,this.getProducts()},handleCurrentChange(e){this.currentPage=e,this.getProducts()},handleChoose(e){this.$emit("choose",e),this.dialogVisible=!1}}},i=n,l=(o("640c"),o("2877")),c=Object(l["a"])(i,r,a,!1,null,"51309485",null);t["a"]=c.exports},2606:function(e,t,o){"use strict";o("7805")},"2a7f":function(e,t,o){"use strict";o.d(t,"c",(function(){return s})),o.d(t,"d",(function(){return n})),o.d(t,"b",(function(){return i})),o.d(t,"e",(function(){return l})),o.d(t,"f",(function(){return c})),o.d(t,"a",(function(){return d}));var r=o("b775"),a=o("7323");function s(e){return new Promise((t,o)=>{Object(r["a"])({url:"/groupBuy/queryGroupBuyProduct",method:"get",params:{...e,shopId:Object(a["f"])()}}).then(e=>{const o=e.data;t(o)}).catch(e=>{o(e)})})}function n(e){return new Promise((t,o)=>{Object(r["a"])({url:"/product.queryProduct",method:"get",params:e}).then(e=>{const o=e.data;t(o)}).catch(e=>{o(e)})})}function i(e){return new Promise((t,o)=>{Object(r["a"])({url:"/groupBuy/queryGroupBuyProduct",method:"get",params:{...e,shopId:Object(a["f"])()}}).then(e=>{const o=e.data;t(o)}).catch(e=>{o(e)})})}function l(e){return new Promise((t,o)=>{Object(r["a"])({url:"/groupBuy/saveGroupBuyProduct",method:"post",data:{...e,shopId:Object(a["f"])()}}).then(e=>{const o=e.data;t(o)}).catch(e=>{o(e)})})}function c(e){return new Promise((t,o)=>{Object(r["a"])({url:"/groupBuy/updateGroupBuyProduct",method:"post",data:{...e,shopId:Object(a["f"])()}}).then(e=>{const o=e.data;t(o)}).catch(e=>{o(e)})})}function d(e){return new Promise((t,o)=>{Object(r["a"])({url:"/groupBuy/deleteGroupBuyProduct",method:"post",data:{...e,shopId:Object(a["f"])()}}).then(e=>{const o=e.data;t(o)}).catch(e=>{o(e)})})}},"36bd":function(e,t,o){},"42af":function(e,t,o){"use strict";o("b5b7")},"640c":function(e,t,o){"use strict";o("c395")},"748a":function(e,t,o){},7805:function(e,t,o){},"9d2f":function(e,t,o){"use strict";o.d(t,"c",(function(){return a})),o.d(t,"d",(function(){return s})),o.d(t,"a",(function(){return n}));var r=o("b775");function a(e){return new Promise((t,o)=>{Object(r["a"])({url:"/productStock/queryProductStock",method:"get",params:e}).then(e=>{const o=e.data;t(o)}).catch(e=>{o(e)})})}function s(e){return new Promise((t,o)=>{Object(r["a"])({url:"/productStock/saveProductStock",method:"post",data:e}).then(e=>{const o=e.data;t(o)}).catch(e=>{o(e)})})}function n(e){return new Promise((t,o)=>{Object(r["a"])({url:"/productStock/deleteProductStock",method:"post",data:e}).then(e=>{const o=e.data;t(o)}).catch(e=>{o(e)})})}},b386:function(e,t,o){"use strict";o("36bd")},b5b7:function(e,t,o){},c395:function(e,t,o){},c41c:function(e,t,o){},d511:function(e,t,o){"use strict";o("748a")},ecbe:function(e,t,o){"use strict";o.r(t);var r=function(){var e=this,t=e._self._c;return t("div",["goodCashierInfo"==e.goodCashierInfo.componentShow?t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:14}},[t("el-card",{staticClass:"ibox"},[t("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[t("span",[e._v("购买商品")]),t("div",[t("el-button-group",[t("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.clearCashier()}}},[e._v("清空")]),t("el-input",{staticStyle:{width:"300px","margin-right":"10px"},attrs:{placeholder:"请输入条形码/商品名称/条形码后4位"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e._loadProduct()}},model:{value:e.goodCashierInfo.conditions.searchValue,callback:function(t){e.$set(e.goodCashierInfo.conditions,"searchValue",t)},expression:"goodCashierInfo.conditions.searchValue"}}),t("el-button",{attrs:{size:"small"},on:{click:function(t){return e._ListUpStoreOrder()}}},[e._v("挂单记录")]),t("el-button",{attrs:{size:"small"},on:{click:function(t){return e._UpStoreOrder()}}},[e._v("挂单")])],1)],1)]),t("el-table",{staticStyle:{width:"100%",height:"420px"},attrs:{data:e.goodCashierInfo.productStocks,border:"",stripe:""}},[t("el-table-column",{attrs:{prop:"prodName",label:"商品信息",align:"center"}}),t("el-table-column",{attrs:{label:"商品图片",align:"center"},scopedSlots:e._u([{key:"default",fn:function(e){return[t("img",{staticStyle:{width:"60px",height:"60px","border-radius":"5px"},attrs:{src:e.row.coverPhoto}})]}}],null,!1,227625873)}),t("el-table-column",{attrs:{prop:"specName",label:"商品规格",align:"center"}}),t("el-table-column",{attrs:{prop:"prodPrice",label:"单价(元)",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.prodPrice)+e._s("3"==t.row.cateType?"积分":"")+" ")]}}],null,!1,3208237579)}),t("el-table-column",{attrs:{prop:"vipPrice",label:"会员价(元)",align:"center"}}),t("el-table-column",{attrs:{prop:"count",label:"数量",align:"center"}}),t("el-table-column",{attrs:{prop:"discountPrice",label:"优惠(元)",align:"center"}}),t("el-table-column",{attrs:{prop:"money",label:"小计(元)",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.money)+e._s("3"==t.row.cateType?"积分":"")+" ")]}}],null,!1,2076840159)}),t("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:e._u([{key:"default",fn:function(o){return[t("el-button",{attrs:{size:"mini"},on:{click:function(t){return e._openDeleteProductStockModel(o.row)}}},[e._v("取消")])]}}],null,!1,349945658)})],1)],1),t("el-card",{staticClass:"margin-top"},[t("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[t("span",[e._v("支付信息")])]),t("el-form",{attrs:{"label-width":"100px"}},[t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:8}},[t("el-form-item",{attrs:{label:"会员电话:"}},[t("el-input",{attrs:{placeholder:"请输入会员电话"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e._loadVipUser()}},model:{value:e.goodCashierInfo.vipUser.vipTel,callback:function(t){e.$set(e.goodCashierInfo.vipUser,"vipTel",t)},expression:"goodCashierInfo.vipUser.vipTel"}},[t("el-button",{attrs:{slot:"append"},on:{click:function(t){return e._loadVipUser()}},slot:"append"},[e._v("查询")])],1)],1)],1),t("el-col",{attrs:{span:8}},[t("el-form-item",{attrs:{label:"会员名称:"}},[t("span",[e._v(e._s(e.goodCashierInfo.vipUser.vipName))])])],1),t("el-col",{attrs:{span:8}},[t("el-form-item",{attrs:{label:"会员性别:"}},[t("span",[e._v(e._s("0"==e.goodCashierInfo.vipUser.sex?"女":"男"))])])],1)],1),t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:8}},[t("el-form-item",{attrs:{label:"会员等级:"}},[t("span",[e._v(e._s(e.goodCashierInfo.vipUser.levelName))])])],1),t("el-col",{attrs:{span:8}},[t("el-form-item",{attrs:{label:"购物券:"}},[t("span",[e._v(e._s(e.goodCashierInfo.vipUser.couponCount)+" 张")])])],1),t("el-col",{attrs:{span:8}},[t("el-form-item",{attrs:{label:"积分:"}},[t("span",[e._v(e._s(e.goodCashierInfo.vipUser.integralAmount))])])],1)],1),t("el-row",{attrs:{gutter:20}},[t("el-col",{staticClass:"text-center",attrs:{span:4}},[t("div",[e._v("赠送优惠卷:")]),t("div",{staticStyle:{"font-size":"25px"}},[e._v(e._s(e.goodCashierInfo.goldCount))])]),t("el-col",{staticClass:"text-center",attrs:{span:4}},[t("div",[e._v("赠送积分:")]),t("div",{staticStyle:{"font-size":"25px"}},[e._v(e._s(e.goodCashierInfo.integralCount))])]),t("el-col",{staticClass:"text-center",attrs:{span:4}},[t("div",[e._v("消费积分:")]),t("div",{staticStyle:{"font-size":"25px",color:"red"}},[e._v(e._s(e.goodCashierInfo.bonusPoints))])]),t("el-col",{staticClass:"text-center",attrs:{span:4}},[t("div",[e._v("消费金额:")]),t("div",{staticStyle:{"font-size":"25px",color:"red"}},[e._v("¥"+e._s(e.goodCashierInfo.money))])]),t("el-col",{attrs:{span:4}},[t("el-button",{staticStyle:{width:"100%"},attrs:{type:"warning",size:"large"},on:{click:function(t){return e._confirmPayCarsh()}}},[e._v("结算")])],1),t("el-col",{attrs:{span:4}},[t("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary",size:"large"},on:{click:function(t){return e._payWxCarsh()}}},[e._v("微信结算")])],1)],1)],1)],1)],1),t("el-col",{attrs:{span:10}},[t("good-cashier-category",{ref:"goodCashierCategory"})],1)],1):e._e(),t("delete-product-stock",{ref:"deleteProductStock"}),t("good-cashier-confirm",{ref:"goodCashierConfirm"}),t("choose-product",{ref:"chooseProduct"}),t("edit-product-num",{ref:"editProductNum"}),t("div",{directives:[{name:"show",rawName:"v-show",value:"storeOrderUpManage"==e.goodCashierInfo.componentShow,expression:"goodCashierInfo.componentShow == 'storeOrderUpManage'"}]},[t("store-order-up-manage",{ref:"storeOrderUpManage"})],1)],1)},a=[],s=o("7323"),n=function(){var e=this,t=e._self._c;return t("el-card",{staticClass:"ibox"},[t("div",{staticClass:"clearfix flex justify-between",attrs:{slot:"header"},slot:"header"},[t("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"请输入商品名称"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e._loadCategoryProductDetils()}},model:{value:e.goodCashierCategoryInfo.prodNameLike,callback:function(t){e.$set(e.goodCashierCategoryInfo,"prodNameLike",t)},expression:"goodCashierCategoryInfo.prodNameLike"}})],1),t("div",{},[t("el-table",{staticStyle:{width:"100%","margin-bottom":"20px"},attrs:{data:e.goodCashierCategoryInfo.productCategorys,border:""}},e._l(e.goodCashierCategoryInfo.productCategorys,(function(o){return t("el-table-column",{key:o.categoryId,attrs:{label:o.categoryName,align:"center","class-name":e.goodCashierCategoryInfo.curCatelogId==o.categoryId?"active-category":""},scopedSlots:e._u([{key:"default",fn:function(o){return[t("div",{staticStyle:{cursor:"pointer"},on:{click:function(t){return e._payCategoryProductDetils(o.row)}}},[e._v(" "+e._s(o.row.categoryName)+" ")])]}}],null,!0)})})),1),t("el-row",{attrs:{gutter:20}},e._l(e.goodCashierCategoryInfo.productDetails,(function(o){return t("el-col",{key:o.productId,staticStyle:{"margin-bottom":"20px"},attrs:{span:6}},[t("el-card",{staticStyle:{cursor:"pointer","text-align":"center"},attrs:{shadow:"hover"},nativeOn:{click:function(t){return e._loadAddProduct(o)}}},[t("img",{staticStyle:{width:"80px",height:"80px","border-radius":"5px"},attrs:{src:o.coverPhoto}}),t("div",{staticStyle:{"margin-top":"10px","font-size":"12px"}},[e._v(e._s(o.prodName))]),t("div",{staticStyle:{"font-size":"12px"}},[e._v(e._s(e._getSpecValue(o)))]),t("div",{staticStyle:{color:"red","font-size":"12px"}},[e._v(" "+e._s("3"==o.cateType?"积分":"¥")+e._s(o.defaultSpecValue.price)+" ")])])],1)})),1)],1)])},i=[],l=o("b775");function c(e){return e.shopId=Object(s["f"])(),new Promise((t,o)=>{Object(l["a"])({url:"/productCategory.queryProductCategory",method:"get",params:e}).then(e=>{const o=e.data;t(o)}).catch(e=>{o(e)})})}function d(e){return e.shopId=Object(s["f"])(),new Promise((t,o)=>{Object(l["a"])({url:"/product/queryCashierProductDetail",method:"get",params:e}).then(e=>{const o=e.data;t(o)}).catch(e=>{o(e)})})}var u={name:"GoodCashierCategory",data(){return{goodCashierCategoryInfo:{productCategorys:[],productDetails:[],curCatelogId:"",prodNameLike:""}}},methods:{_queryProductCategorys(){const e={page:1,row:50,cateTypes:"2,3",shopId:Object(s["f"])()};c(e).then(e=>{this.goodCashierCategoryInfo.productCategorys=e.data,e.data.length>0&&this._payCategoryProductDetils(e.data[0])}).catch(e=>{console.error("获取商品分类失败:",e)})},_payCategoryProductDetils(e){this.goodCashierCategoryInfo.curCatelogId=e.categoryId;const t={page:1,row:50,shopId:Object(s["f"])(),categoryId:e.categoryId};d(t).then(e=>{this.goodCashierCategoryInfo.productDetails=e.data}).catch(e=>{console.error("获取商品详情失败:",e)})},_loadAddProduct(e){this.$emit("chooseProduct",e)},_getSpecValue(e){let t="";return e.defaultSpecValue.productSpecDetails.forEach(e=>{t+=e.detailValue+"/"}),t.endsWith("/")&&(t=t.substring(0,t.length-1)),t},_loadCategoryProductDetils(){console.log("_loadCategoryProductDetils")}},created(){this._queryProductCategorys()}},p=u,h=(o("2606"),o("2877")),f=Object(h["a"])(p,n,i,!1,null,"ecd439b4",null),g=f.exports,m=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{title:"请确认您的操作!",visible:e.dialogVisible,width:"30%","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{attrs:{align:"center"}},[t("p",[e._v("确定删除商品信息")])]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:e.closeDialog}},[e._v("点错了")]),t("el-button",{attrs:{type:"primary"},on:{click:e.deleteProductStock}},[e._v("确认删除")])],1)])},C=[],b=o("9d2f"),y={name:"DeleteProductStock",data(){return{dialogVisible:!1,deleteProductStockInfo:{}}},methods:{open(e){this.deleteProductStockInfo=e,this.dialogVisible=!0},closeDialog(){this.dialogVisible=!1},handleClose(e){e()},async deleteProductStock(){try{const e=await Object(b["a"])(this.deleteProductStockInfo);0===e.code?(this.$message.success("删除成功"),this.dialogVisible=!1,this.$emit("refresh")):this.$message.error(e.msg)}catch(e){console.error("请求失败处理",e),this.$message.error(e)}}}},_=y,v=Object(h["a"])(_,m,C,!1,null,null,null),S=v.exports,P=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{attrs:{title:"请用扫码枪扫码",visible:e.wxPayVisible,width:"60%","before-close":e.handleWxClose},on:{"update:visible":function(t){e.wxPayVisible=t}}},[t("el-form",{attrs:{"label-width":"120px"}},[t("el-form-item",{attrs:{label:"总金额:"}},[t("span",{staticStyle:{"font-size":"25px",color:"red"}},[e._v("¥"+e._s(e.goodCashierConfirm.preMoney))])]),t("el-form-item",{attrs:{label:"消费积分:"}},[t("span",{staticStyle:{"font-size":"25px",color:"red"}},[e._v(e._s(e.goodCashierConfirm.bonusPoints))])]),t("el-row",[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"优惠方式:"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择优惠方式"},model:{value:e.goodCashierConfirm.discountType,callback:function(t){e.$set(e.goodCashierConfirm,"discountType",t)},expression:"goodCashierConfirm.discountType"}},[t("el-option",{attrs:{label:"打折",value:"1001"}}),t("el-option",{attrs:{label:"减免",value:"2002"}})],1)],1)],1),"1001"==e.goodCashierConfirm.discountType?t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"打折率:"}},[t("el-input",{on:{blur:e._goodCashierConfirmComputeMoney},model:{value:e.goodCashierConfirm.discountRate,callback:function(t){e.$set(e.goodCashierConfirm,"discountRate",t)},expression:"goodCashierConfirm.discountRate"}})],1)],1):e._e(),"2002"==e.goodCashierConfirm.discountType?t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"减免金额:"}},[t("el-input",{on:{blur:e._goodCashierConfirmComputeMoney},model:{value:e.goodCashierConfirm.discountPrice,callback:function(t){e.$set(e.goodCashierConfirm,"discountPrice",t)},expression:"goodCashierConfirm.discountPrice"}})],1)],1):e._e()],1),t("el-form-item",{attrs:{label:"应收金额:"}},[t("span",{staticStyle:{"font-size":"25px",color:"red"}},[e._v("¥"+e._s(e.goodCashierConfirm.money))])]),t("el-form-item",{attrs:{label:"支付信息:"}},[t("el-input",{ref:"wxAuthCode",attrs:{placeholder:"必填,请填写支付信息,扫码枪扫入"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e._doPayWxCarsh.apply(null,arguments)}},model:{value:e.goodCashierConfirm.authCode,callback:function(t){e.$set(e.goodCashierConfirm,"authCode",t)},expression:"goodCashierConfirm.authCode"}})],1)],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:e._closeWxPayCarsh}},[e._v("关闭")])],1)],1),t("el-dialog",{attrs:{title:"结算确认",visible:e.cashPayVisible,width:"60%","before-close":e.handleCashClose},on:{"update:visible":function(t){e.cashPayVisible=t}}},[t("el-form",{attrs:{"label-width":"120px"}},[t("el-form-item",{attrs:{label:"总金额:"}},[t("span",{staticStyle:{"font-size":"25px",color:"red"}},[e._v("¥"+e._s(e.goodCashierConfirm.preMoney))])]),t("el-form-item",{attrs:{label:"消费积分:"}},[t("span",{staticStyle:{"font-size":"25px",color:"red"}},[e._v(e._s(e.goodCashierConfirm.bonusPoints))])]),t("el-row",[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"优惠方式:"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择优惠方式"},model:{value:e.goodCashierConfirm.discountType,callback:function(t){e.$set(e.goodCashierConfirm,"discountType",t)},expression:"goodCashierConfirm.discountType"}},[t("el-option",{attrs:{label:"打折",value:"1001"}}),t("el-option",{attrs:{label:"减免",value:"2002"}})],1)],1)],1),"1001"==e.goodCashierConfirm.discountType?t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"打折率:"}},[t("el-input",{on:{blur:e._goodCashierConfirmComputeMoney},model:{value:e.goodCashierConfirm.discountRate,callback:function(t){e.$set(e.goodCashierConfirm,"discountRate",t)},expression:"goodCashierConfirm.discountRate"}})],1)],1):e._e(),"2002"==e.goodCashierConfirm.discountType?t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"减免金额:"}},[t("el-input",{on:{blur:e._goodCashierConfirmComputeMoney},model:{value:e.goodCashierConfirm.discountPrice,callback:function(t){e.$set(e.goodCashierConfirm,"discountPrice",t)},expression:"goodCashierConfirm.discountPrice"}})],1)],1):e._e()],1),t("el-form-item",{attrs:{label:"实收金额:"}},[t("el-input-number",{staticStyle:{width:"100%"},attrs:{min:.01},on:{change:e._changeReceivableMoney},model:{value:e.goodCashierConfirm.receivableMoney,callback:function(t){e.$set(e.goodCashierConfirm,"receivableMoney",t)},expression:"goodCashierConfirm.receivableMoney"}})],1),t("el-form-item",{attrs:{label:"找零:"}},[t("span",{staticStyle:{"font-size":"25px",color:"red"}},[e._v("¥"+e._s(e.goodCashierConfirm.givechange))])]),t("el-form-item",{attrs:{label:"应收金额:"}},[t("span",{staticStyle:{"font-size":"25px",color:"red"}},[e._v("¥"+e._s(e.goodCashierConfirm.money))])])],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:e._closePayCarsh}},[e._v("关闭")]),t("el-button",{attrs:{type:"primary"},on:{click:e._payCarsh}},[e._v("确定")])],1)],1)],1)},O=[],k={name:"GoodCashierConfirm",data(){return{wxPayVisible:!1,cashPayVisible:!1,goodCashierConfirm:{authCode:"",preMoney:0,money:0,bonusPoints:0,lastmoney:0,productStocks:[],vipUser:{},discountType:"1001",discountRate:"1",discountPrice:0,receivableMoney:0,givechange:0,hideModal:!1,tmpParam:{}}}},methods:{open(e){this.clearConfirm(),e.vipUser.integralAmount<e.bonusPoints?this.$message.error("会员积分不足"):0!=e.bonusPoints||0!=e.money?(Object.assign(this.goodCashierConfirm,e),this.goodCashierConfirm.preMoney=e.money,this.goodCashierConfirm.receivableMoney=e.money,this.cashPayVisible=!0):this.$message.error("请先选择商品")},openWxCarsh(e){this.clearConfirm(),e.vipUser.integralAmount<e.bonusPoints?this.$message.error("会员积分不足"):0!=e.money?(Object.assign(this.goodCashierConfirm,e),this.goodCashierConfirm.preMoney=e.money,this.goodCashierConfirm.receivableMoney=e.money,this.goodCashierConfirm.authCode="",this.wxPayVisible=!0,this.$nextTick(()=>{this.$refs.wxAuthCode.focus()})):this.$message.error("请先选择商品,只有积分商品使用结算功能!")},_doPayWxCarsh(){console.log("_doPayWxCarsh")},_doCheckPayWxCarsh(){console.log("_doCheckPayWxCarsh")},_closePayCarsh(){this.cashPayVisible=!1},_payCarsh(){console.log("_payCarsh")},_goodCashierConfirmComputeMoney(){console.log("_goodCashierConfirmComputeMoney")},_changeReceivableMoney(){console.log("_changeReceivableMoney")},_closeWxPayCarsh(){this.wxPayVisible=!1},clearConfirm(){this.goodCashierConfirm={authCode:"",preMoney:0,money:0,bonusPoints:0,lastmoney:0,productStocks:[],vipUser:{},discountType:"1001",discountRate:"1",discountPrice:0,receivableMoney:0,givechange:0,hideModal:!1,tmpParam:{}}},handleWxClose(e){this._closeWxPayCarsh(),e()},handleCashClose(e){this._closePayCarsh(),e()}}},x=k,w=(o("d511"),Object(h["a"])(x,P,O,!1,null,"3e38ad41",null)),I=w.exports,U=o("254b"),M=function(){var e=this,t=e._self._c;return t("el-card",[t("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[t("span",[e._v("挂单信息")]),t("el-button",{staticStyle:{float:"right"},attrs:{type:"warning"},on:{click:e._back}},[t("i",{staticClass:"el-icon-close"}),e._v(" 返回 ")])],1),t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.storeOrderUpManageInfo.storeOrderUps,border:"",stripe:""}},[t("el-table-column",{attrs:{prop:"orderUpId",label:"订单编号",align:"center"}}),t("el-table-column",{attrs:{prop:"personName",label:"用户名称",align:"center"}}),t("el-table-column",{attrs:{prop:"totalPrice",label:"订单总价",align:"center"}}),t("el-table-column",{attrs:{prop:"stateName",label:"订单状态",align:"center"}}),t("el-table-column",{attrs:{prop:"remark",label:"订单备注",align:"center"}}),t("el-table-column",{attrs:{prop:"createTime",label:"挂单时间",align:"center"}}),t("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:e._u([{key:"default",fn:function(o){return[t("el-button-group",[t("el-button",{attrs:{size:"mini"},on:{click:function(t){return e._StoreOrderUp(o.row)}}},[e._v("选择")]),t("el-button",{attrs:{size:"mini"},on:{click:function(t){return e._openDeleteStoreOrderUpModel(o.row)}}},[e._v("删除")])],1)]}}])})],1),t("el-pagination",{staticStyle:{"margin-top":"20px","text-align":"right"},attrs:{"current-page":e.storeOrderUpManageInfo.conditions.page,"page-sizes":[10,20,50,100],"page-size":e.storeOrderUpManageInfo.conditions.row,layout:"total, sizes, prev, pager, next, jumper",total:e.storeOrderUpManageInfo.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}),t("delete-store-order-up",{ref:"deleteStoreOrderUp",on:{storeOrderUpDeleted:e._lisStoreOrderUps}})],1)},j=[];function V(e){return e.shopId=Object(s["f"])(),new Promise((t,o)=>{Object(l["a"])({url:"/storeOrderUp/queryStoreOrderUp",method:"get",params:e}).then(e=>{const o=e.data;t(o)}).catch(e=>{o(e)})})}var z=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{title:"请确认您的操作!",visible:e.dialogVisible,width:"30%","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticStyle:{"text-align":"center"}},[t("p",[e._v("确定删除订单")])]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:e.closeDeleteStoreOrderUpModel}},[e._v("点错了")]),t("el-button",{attrs:{type:"primary"},on:{click:e.deletStoreOrderUp}},[e._v("确认删除")])],1)])},$=[];function D(e){return e.shopId=Object(s["f"])(),new Promise((t,o)=>{Object(l["a"])({url:"/storeOrderUp/deleteStoreOrderUp",method:"post",data:e}).then(e=>{const o=e.data;t(o)}).catch(e=>{o(e)})})}var N={name:"DeleteStoreOrderUp",data(){return{dialogVisible:!1,deleteStoreOrderUpInfo:{}}},methods:{open(e){this.deleteStoreOrderUpInfo=e,this.dialogVisible=!0},async deletStoreOrderUp(){let e=await Object(s["f"])();this.deleteStoreOrderUpInfo.shopId=e,D(this.deleteStoreOrderUpInfo).then(e=>{0===e.code?(this.$message.success(e.msg),this.dialogVisible=!1,this.$emit("storeOrderUpDeleted")):this.$message.error(e.msg)}).catch(e=>{console.error("删除挂单失败:",e),this.$message.error("删除挂单失败")})},closeDeleteStoreOrderUpModel(){this.dialogVisible=!1},handleClose(e){this.closeDeleteStoreOrderUpModel(),e()}}},T=N,W=(o("b386"),Object(h["a"])(T,z,$,!1,null,"08dde7ee",null)),B=W.exports,G={name:"StoreOrderUpManage",components:{DeleteStoreOrderUp:B},data(){return{storeOrderUpManageInfo:{storeOrderUps:[],total:0,records:1,conditions:{shopId:Object(s["f"])(),page:1,row:10}}}},methods:{_lisStoreOrderUps(e=1,t=10){this.storeOrderUpManageInfo.conditions.page=e,this.storeOrderUpManageInfo.conditions.row=t,V(this.storeOrderUpManageInfo.conditions).then(e=>{this.storeOrderUpManageInfo.total=e.total,this.storeOrderUpManageInfo.records=e.records,this.storeOrderUpManageInfo.storeOrderUps=e.data}).catch(e=>{console.error("获取挂单列表失败:",e)})},_StoreOrderUp(e){this.$emit("storeOrderUpSelected",e)},_openDeleteStoreOrderUpModel(e){this.$refs.deleteStoreOrderUp.open(e)},_back(){this.$emit("back")},handleSizeChange(e){this.storeOrderUpManageInfo.conditions.row=e,this._lisStoreOrderUps()},handleCurrentChange(e){this.storeOrderUpManageInfo.conditions.page=e,this._lisStoreOrderUps()},listStoreOrderUp(){this._lisStoreOrderUps()}},created(){this._lisStoreOrderUps()}},R=G,q=(o("ffdc"),Object(h["a"])(R,M,j,!1,null,"08ad6db3",null)),E=q.exports,A={name:"GoodCashier",components:{GoodCashierCategory:g,DeleteProductStock:S,GoodCashierConfirm:I,ChooseProduct:U["a"],StoreOrderUpManage:E},data(){return{givechange:0,discount:100,receivable:0,goodCashierInfo:{lastmoney:0,productStocks:[],curCatelogId:"",total:0,records:1,moreCondition:!1,barCode:"",prodName:"",money:0,vipPrice:0,bonusPoints:0,goldCount:0,integralCount:0,authCode:"",prodNameLike:"",componentShow:"goodCashierInfo",storeOrderUp:{vipId:"",totalPrice:"",state:"",shopId:"",orderUpId:""},vipUser:{vipUserSearchValue:"",vipName:"",vipTel:"",levelName:"",sex:"",integralAmount:"0",vipId:"",couponCount:"0"},conditions:{searchValue:"",page:1,row:1,shopId:Object(s["f"])()}}}},methods:{_initData(){this.$nextTick(()=>{document.getElementById("searchValue").focus()})},_loadProduct(){},_editProductNum(e){this.$refs.editProductNum.open({stock:e})},_computeCashierMoney(){},_dealProduct(e){console.log(e)},_hasExistsProduct(e){console.log(e)},_openDeleteProductStockModel(e){this.$refs.deleteProductStock.open(e)},_computeVipUserGold(){},_queryStoreOrderCartUp(e){console.log(e)},_updateStoreOrderCartUp(){},_payWxCarsh(){this.$refs.goodCashierConfirm.openWxCarsh(this.goodCashierInfo)},_confirmPayCarsh(){this.$refs.goodCashierConfirm.open(this.goodCashierInfo)},_loadVipUser(){},clearCashier(){},_UpStoreOrder(){},_ListUpStoreOrder(){this.goodCashierInfo.componentShow="storeOrderUpManage",this.$refs.storeOrderUpManage.listStoreOrderUp()},_getSpecValue(e){console.log(e)},_goodCashierEditProductStock(e){console.log(e)}},created(){this._initData()},watch:{discount(){this.caculateMoney()},receivable(){this.givechangeMoney()}}},L=A,Q=(o("42af"),Object(h["a"])(L,r,a,!1,null,"443fc32f",null));t["default"]=Q.exports},ffdc:function(e,t,o){"use strict";o("c41c")}}]);
//# sourceMappingURL=chunk-53a7fc61.3f393d58.js.map