Files
PropertyDeployment/resources/Web/MicroCommunityMallWeb/html/js/chunk-71e1f42b.35c7b71a.js
Anfioo adfd019d2d 江门
1
2026-02-01 15:37:55 +08:00

2 lines
13 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-71e1f42b"],{"4c50":function(t,o,n){"use strict";var e=function(){var t=this,o=t._self._c;return o("el-dialog",{attrs:{title:t.$t("accountBond.addBond"),visible:t.dialogVisible,width:"50%"},on:{"update:visible":function(o){t.dialogVisible=o},close:t.resetForm}},[o("el-form",{ref:"form",attrs:{model:t.form,"label-width":"120px",rules:t.rules}},[o("el-form-item",{attrs:{label:t.$t("accountBond.shopType"),prop:"objId"}},[o("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$t("accountBond.selectShopType")},on:{change:t.setAddBondName},model:{value:t.form.objId,callback:function(o){t.$set(t.form,"objId",o)},expression:"form.objId"}},t._l(t.shopTypes,(function(t,n){return o("el-option",{key:n,attrs:{label:t.typeName,value:t.shopTypeId}})})),1)],1),o("el-form-item",{attrs:{label:t.$t("accountBond.bondName"),prop:"bondName"}},[o("el-input",{attrs:{disabled:""},model:{value:t.form.bondName,callback:function(o){t.$set(t.form,"bondName",o)},expression:"form.bondName"}})],1),o("el-form-item",{attrs:{label:t.$t("accountBond.amount"),prop:"amount"}},[o("el-input",{attrs:{placeholder:t.$t("accountBond.inputAmount")},model:{value:t.form.amount,callback:function(o){t.$set(t.form,"amount",o)},expression:"form.amount"}})],1),o("el-form-item",{attrs:{label:t.$t("accountBond.bondMonth")}},[o("el-input",{attrs:{placeholder:t.$t("accountBond.inputBondMonth")},model:{value:t.form.bondMonth,callback:function(o){t.$set(t.form,"bondMonth",o)},expression:"form.bondMonth"}})],1),o("el-form-item",{attrs:{label:t.$t("accountBond.remark")}},[o("el-input",{attrs:{type:"textarea",placeholder:t.$t("accountBond.inputRemark")},model:{value:t.form.remark,callback:function(o){t.$set(t.form,"remark",o)},expression:"form.remark"}})],1)],1),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(o){t.dialogVisible=!1}}},[t._v(t._s(t.$t("common.cancel")))]),o("el-button",{attrs:{type:"primary"},on:{click:t.saveAccountBondInfo}},[t._v(t._s(t.$t("common.save")))])],1)],1)},a=[],c=n("b103"),s={name:"AddAccountBond",data(){return{dialogVisible:!1,shopTypes:[],form:{bondId:"",bondName:"",amount:"0",bondMonth:"",objId:"",bondType:"6006",remark:""},rules:{objId:[{required:!0,message:this.$t("accountBond.selectShopTypeRequired"),trigger:"change"}],bondName:[{required:!0,message:this.$t("accountBond.bondNameRequired"),trigger:"blur"},{min:1,max:20,message:this.$t("accountBond.bondNameLength"),trigger:"blur"}],amount:[{required:!0,message:this.$t("accountBond.amountRequired"),trigger:"blur"},{min:1,max:10,message:this.$t("accountBond.amountFormat"),trigger:"blur"}]}}},methods:{open(){this.dialogVisible=!0,this._loadShopTypes()},async _loadShopTypes(){const t=await Object(c["c"])({page:1,row:100});this.shopTypes=t.data},setAddBondName(t){const o=this.shopTypes.find(o=>o.shopTypeId===t);o&&(this.form.bondName=o.typeName)},resetForm(){this.$refs.form.resetFields(),this.form={bondId:"",bondName:"",amount:"0",bondMonth:"",objId:"",bondType:"6006",remark:""}},async saveAccountBondInfo(){this.$refs.form.validate(async t=>{if(t)try{await Object(c["d"])(this.form),this.$message.success(this.$t("accountBond.addSuccess")),this.dialogVisible=!1,this.$emit("success")}catch(o){console.error(o)}})}}},r=s,d=n("2877"),i=Object(d["a"])(r,e,a,!1,null,null,null);o["a"]=i.exports},"695a":function(t,o,n){"use strict";var e=function(){var t=this,o=t._self._c;return o("el-dialog",{attrs:{title:t.$t("accountBond.editBond"),visible:t.dialogVisible,width:"50%"},on:{"update:visible":function(o){t.dialogVisible=o},close:t.resetForm}},[o("el-form",{ref:"form",attrs:{model:t.form,"label-width":"120px",rules:t.rules}},[o("el-form-item",{attrs:{label:t.$t("accountBond.shopType")}},[o("el-input",{attrs:{disabled:""},model:{value:t.form.bondName,callback:function(o){t.$set(t.form,"bondName",o)},expression:"form.bondName"}})],1),o("el-form-item",{attrs:{label:t.$t("accountBond.bondName")}},[o("el-input",{attrs:{disabled:""},model:{value:t.form.bondName,callback:function(o){t.$set(t.form,"bondName",o)},expression:"form.bondName"}})],1),o("el-form-item",{attrs:{label:t.$t("accountBond.amount"),prop:"amount"}},[o("el-input",{attrs:{placeholder:t.$t("accountBond.inputAmount")},model:{value:t.form.amount,callback:function(o){t.$set(t.form,"amount",o)},expression:"form.amount"}})],1),o("el-form-item",{attrs:{label:t.$t("accountBond.bondMonth")}},[o("el-input",{attrs:{placeholder:t.$t("accountBond.inputBondMonth")},model:{value:t.form.bondMonth,callback:function(o){t.$set(t.form,"bondMonth",o)},expression:"form.bondMonth"}})],1),o("el-form-item",{attrs:{label:t.$t("accountBond.remark")}},[o("el-input",{attrs:{type:"textarea",placeholder:t.$t("accountBond.inputRemark")},model:{value:t.form.remark,callback:function(o){t.$set(t.form,"remark",o)},expression:"form.remark"}})],1)],1),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(o){t.dialogVisible=!1}}},[t._v(t._s(t.$t("common.cancel")))]),o("el-button",{attrs:{type:"primary"},on:{click:t.editAccountBond}},[t._v(t._s(t.$t("common.save")))])],1)],1)},a=[],c=n("b103"),s={name:"EditAccountBond",data(){return{dialogVisible:!1,form:{bondId:"",bondName:"",amount:"",bondMonth:"",bondType:"6006",objId:"",remark:""},rules:{amount:[{required:!0,message:this.$t("accountBond.amountRequired"),trigger:"blur"},{min:1,max:10,message:this.$t("accountBond.amountFormat"),trigger:"blur"}],bondId:[{required:!0,message:this.$t("accountBond.bondIdRequired"),trigger:"blur"}]}}},methods:{open(t){this.form={...t},this.dialogVisible=!0},resetForm(){this.$refs.form.resetFields(),this.form={bondId:"",bondName:"",amount:"",bondMonth:"",bondType:"6006",objId:"",remark:""}},async editAccountBond(){this.$refs.form.validate(async t=>{if(t)try{await Object(c["e"])(this.form),this.$message.success(this.$t("accountBond.editSuccess")),this.dialogVisible=!1,this.$emit("success")}catch(o){console.error(o)}})}}},r=s,d=n("2877"),i=Object(d["a"])(r,e,a,!1,null,null,null);o["a"]=i.exports},"9f64":function(t,o,n){"use strict";var e=function(){var t=this,o=t._self._c;return o("el-dialog",{attrs:{title:t.$t("accountBond.confirmOperation"),visible:t.dialogVisible,width:"30%"},on:{"update:visible":function(o){t.dialogVisible=o}}},[o("div",{staticStyle:{"text-align":"center"}},[o("p",[t._v(t._s(t.$t("accountBond.confirmDeleteBond")))])]),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(o){t.dialogVisible=!1}}},[t._v(t._s(t.$t("accountBond.cancel")))]),o("el-button",{attrs:{type:"primary"},on:{click:t.deleteAccountBond}},[t._v(t._s(t.$t("accountBond.confirmDelete")))])],1)])},a=[],c=n("b103"),s={name:"DeleteAccountBond",data(){return{dialogVisible:!1,currentBond:null}},methods:{open(t){this.currentBond=t,this.dialogVisible=!0},async deleteAccountBond(){try{await Object(c["a"])(this.currentBond),this.$message.success(this.$t("accountBond.deleteSuccess")),this.dialogVisible=!1,this.$emit("success")}catch(t){console.error(t)}}}},r=s,d=n("2877"),i=Object(d["a"])(r,e,a,!1,null,null,null);o["a"]=i.exports},b103:function(t,o,n){"use strict";n.d(o,"b",(function(){return a})),n.d(o,"c",(function(){return c})),n.d(o,"d",(function(){return s})),n.d(o,"e",(function(){return r})),n.d(o,"a",(function(){return d}));var e=n("b775");function a(t){return new Promise((o,n)=>{Object(e["a"])({url:"/accountBond.queryAccountBond",method:"get",params:t}).then(t=>{const n=t.data;o(n)}).catch(t=>{n(t)})})}function c(t){return new Promise((o,n)=>{Object(e["a"])({url:"/shopType.queryShopType",method:"get",params:t}).then(t=>{const n=t.data;o(n)}).catch(t=>{n(t)})})}function s(t){return new Promise((o,n)=>{Object(e["a"])({url:"/accountBond.saveAccountBond",method:"post",data:t}).then(t=>{const n=t.data;o(n)}).catch(t=>{n(t)})})}function r(t){return new Promise((o,n)=>{Object(e["a"])({url:"/accountBond.updateAccountBond",method:"post",data:t}).then(t=>{const n=t.data;o(n)}).catch(t=>{n(t)})})}function d(t){return new Promise((o,n)=>{Object(e["a"])({url:"/accountBond.deleteAccountBond",method:"post",data:t}).then(t=>{const n=t.data;o(n)}).catch(t=>{n(t)})})}},b12d:function(t,o,n){"use strict";n("f5fb")},c627:function(t,o,n){"use strict";n.r(o);var e=function(){var t=this,o=t._self._c;return o("div",[o("el-card",{staticClass:"margin-top-sm"},[o("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[o("div",[t._v(t._s(t.$t("accountBond.queryCondition")))])]),o("div",{},[o("el-form",{staticClass:"flex justify-start",attrs:{inline:!0,model:t.accountBondInfo.conditions}},[o("el-form-item",[o("el-form-item",[o("el-input",{attrs:{placeholder:t.$t("accountBond.bondName"),clearable:""},model:{value:t.accountBondInfo.conditions.bondName,callback:function(o){t.$set(t.accountBondInfo.conditions,"bondName",o)},expression:"accountBondInfo.conditions.bondName"}})],1)],1),o("el-form-item",[o("el-form-item",[o("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$t("accountBond.bondType")},model:{value:t.accountBondInfo.conditions.objId,callback:function(o){t.$set(t.accountBondInfo.conditions,"objId",o)},expression:"accountBondInfo.conditions.objId"}},t._l(t.accountBondInfo.shopTypes,(function(t){return o("el-option",{key:t.shopTypeId,attrs:{label:t.typeName,value:t.shopTypeId}})})),1)],1)],1),o("el-form-item",[o("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(o){return t._queryAccountBondMethod()}}},[t._v(" "+t._s(t.$t("accountBond.query"))+" ")])],1)],1)],1)]),o("el-card",{staticClass:"margin-top-sm"},[o("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[o("div",[t._v(t._s(t.$t("accountBond.bondInfo")))]),o("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(o){return t._openAddAccountBondModal()}}},[o("i",{staticClass:"el-icon-plus"}),t._v(" "+t._s(t.$t("accountBond.add"))+" ")])],1),o("div",{},[o("el-table",{staticStyle:{width:"100%"},attrs:{data:t.accountBondInfo.accountBonds,border:""}},[o("el-table-column",{attrs:{prop:"bondId",label:t.$t("accountBond.bondId"),align:"center"}}),o("el-table-column",{attrs:{prop:"bondName",label:t.$t("accountBond.bondName"),align:"center"}}),o("el-table-column",{attrs:{prop:"amount",label:t.$t("accountBond.amount"),align:"center"}}),o("el-table-column",{attrs:{prop:"bondMonth",label:t.$t("accountBond.bondMonth"),align:"center"}}),o("el-table-column",{attrs:{prop:"bondName",label:t.$t("accountBond.bondType"),align:"center"}}),o("el-table-column",{attrs:{prop:"remark",label:t.$t("accountBond.remark"),align:"center"}}),o("el-table-column",{attrs:{label:t.$t("accountBond.operation"),align:"center",width:"200"},scopedSlots:t._u([{key:"default",fn:function(n){return[o("el-button",{attrs:{size:"mini"},on:{click:function(o){return t._openEditAccountBondModel(n.row)}}},[t._v(" "+t._s(t.$t("accountBond.edit"))+" ")]),o("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(o){return t._openDeleteAccountBondModel(n.row)}}},[t._v(" "+t._s(t.$t("accountBond.delete"))+" ")])]}}])})],1),o("el-pagination",{attrs:{"current-page":t.accountBondInfo.conditions.page,"page-size":t.accountBondInfo.conditions.row,layout:"total, prev, pager, next",total:t.accountBondInfo.total},on:{"current-change":t.handleCurrentChange}})],1)]),o("add-account-bond",{ref:"addAccountBond",on:{success:t.loadData}}),o("edit-account-bond",{ref:"editAccountBond",on:{success:t.loadData}}),o("delete-account-bond",{ref:"deleteAccountBond",on:{success:t.loadData}})],1)},a=[],c=n("b775");function s(t){return new Promise((o,n)=>{Object(c["a"])({url:"/accountBond.queryAccountBond",method:"get",params:t}).then(t=>{const n=t.data;o(n)}).catch(t=>{n(t)})})}function r(t){return new Promise((o,n)=>{Object(c["a"])({url:"/shopType.queryShopType",method:"get",params:t}).then(t=>{const n=t.data;o(n)}).catch(t=>{n(t)})})}var d=n("4c50"),i=n("695a"),l=n("9f64"),u={name:"AccountBond",components:{AddAccountBond:d["a"],EditAccountBond:i["a"],DeleteAccountBond:l["a"]},data(){return{accountBondInfo:{accountBonds:[],total:0,records:1,conditions:{bondName:"",objId:"",page:1,row:10},shopTypes:[]}}},created(){this._listAccountBonds(1,10),this._listAddShopTypes()},methods:{handleCurrentChange(t){this._listAccountBonds(t,this.accountBondInfo.conditions.row)},loadData(){this._listAccountBonds(1,10)},async _listAccountBonds(t,o){this.accountBondInfo.conditions.page=t,this.accountBondInfo.conditions.row=o;try{const t=await s(this.accountBondInfo.conditions);this.accountBondInfo.accountBonds=t.data,this.accountBondInfo.total=t.total,this.accountBondInfo.records=t.records}catch(n){console.error("获取保证金列表失败:",n)}},async _listAddShopTypes(){try{const t=await r({page:1,row:100});this.accountBondInfo.shopTypes=t.data}catch(t){console.error("获取店铺类型失败:",t)}},_openAddAccountBondModal(){this.$refs.addAccountBond.open()},_openEditAccountBondModel(t){this.$refs.editAccountBond.open(t)},_openDeleteAccountBondModel(t){this.$refs.deleteAccountBond.open(t)},_queryAccountBondMethod(){this._listAccountBonds(1,this.accountBondInfo.conditions.row)}}},m=u,b=(n("b12d"),n("2877")),f=Object(b["a"])(m,e,a,!1,null,"15c8677a",null);o["default"]=f.exports},f5fb:function(t,o,n){}}]);
//# sourceMappingURL=chunk-71e1f42b.35c7b71a.js.map