Files
PropertyDeployment/resources/Web/MicroCommunityMallWeb/html/js/chunk-068d9b3b.0892afbb.js
Anfioo adfd019d2d 江门
1
2026-02-01 15:37:55 +08:00

2 lines
5.3 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-068d9b3b"],{"0216":function(t,e,o){"use strict";o.r(e);var i=function(){var t=this,e=t._self._c;return e("div",[e("el-card",{staticClass:"ibox"},[e("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[e("div",[t._v(t._s(t.$t("shopAudit.queryConditions")))])]),e("div",{},[e("el-form",{staticClass:"flex justify-start",attrs:{inline:!0,model:t.shopAuditInfo.conditions}},[e("el-form-item",[e("el-form-item",[e("el-input",{attrs:{placeholder:t.$t("shopAudit.shopName")},model:{value:t.shopAuditInfo.conditions.shopName,callback:function(e){t.$set(t.shopAuditInfo.conditions,"shopName",e)},expression:"shopAuditInfo.conditions.shopName"}})],1)],1),e("el-form-item",[e("el-form-item",[e("el-input",{attrs:{placeholder:t.$t("shopAudit.returnPerson")},model:{value:t.shopAuditInfo.conditions.returnPerson,callback:function(e){t.$set(t.shopAuditInfo.conditions,"returnPerson",e)},expression:"shopAuditInfo.conditions.returnPerson"}})],1)],1),e("el-form-item",[e("el-form-item",[e("el-input",{attrs:{placeholder:t.$t("shopAudit.returnLink")},model:{value:t.shopAuditInfo.conditions.returnLink,callback:function(e){t.$set(t.shopAuditInfo.conditions,"returnLink",e)},expression:"shopAuditInfo.conditions.returnLink"}})],1)],1),e("el-form-item",[e("el-form-item",[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$t("shopAudit.state")},model:{value:t.shopAuditInfo.conditions.state,callback:function(e){t.$set(t.shopAuditInfo.conditions,"state",e)},expression:"shopAuditInfo.conditions.state"}},[e("el-option",{attrs:{label:t.$t("shopAudit.allStatus"),value:""}}),e("el-option",{attrs:{label:t.$t("shopAudit.pendingAudit"),value:"001"}}),e("el-option",{attrs:{label:t.$t("shopAudit.auditPassed"),value:"002"}}),e("el-option",{attrs:{label:t.$t("shopAudit.auditFailed"),value:"003"}})],1)],1)],1),e("el-form-item",[e("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-search"},on:{click:t._queryShopAuditMethod}},[t._v(" "+t._s(t.$t("common.search"))+" ")])],1)],1)],1)]),e("el-card",{staticClass:"ibox"},[e("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[e("div",[t._v(t._s(t.$t("shopAudit.title")))])]),e("div",{},[e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.shopAuditInfo.shopAudits,border:""}},[e("el-table-column",{attrs:{prop:"auditId",label:t.$t("shopAudit.auditId"),align:"center"}}),e("el-table-column",{attrs:{prop:"shopName",label:t.$t("shopAudit.shopName"),align:"center"}}),e("el-table-column",{attrs:{prop:"sendAddress",label:t.$t("shopAudit.deliveryAddress"),align:"center"}}),e("el-table-column",{attrs:{prop:"returnPerson",label:t.$t("shopAudit.returnContact"),align:"center"}}),e("el-table-column",{attrs:{prop:"returnLink",label:t.$t("shopAudit.returnPhone"),align:"center"}}),e("el-table-column",{attrs:{prop:"state",label:t.$t("shopAudit.auditStatus"),align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t._auditState(e.row.state))+" ")]}}])}),e("el-table-column",{attrs:{label:t.$t("shopAudit.operation"),align:"center"},scopedSlots:t._u([{key:"default",fn:function(o){return[e("el-button",{attrs:{size:"mini"},on:{click:function(e){return t._openAuditOpenShopModel(o.row)}}},[t._v(" "+t._s("001"===o.row.state?t.$t("common.audit"):t.$t("common.view"))+" ")])]}}])})],1),e("el-pagination",{attrs:{"current-page":t.shopAuditInfo.conditions.page,"page-size":t.DEFAULT_ROWS,layout:"total, prev, pager, next",total:t.shopAuditInfo.total},on:{"current-change":t.handleCurrentChange,"update:currentPage":function(e){return t.$set(t.shopAuditInfo.conditions,"page",e)},"update:current-page":function(e){return t.$set(t.shopAuditInfo.conditions,"page",e)}}})],1)])],1)},s=[],n=o("be8d");const a=1,r=10;var d={name:"ShopAudit",data(){return{shopAuditInfo:{shopAudits:[],total:0,records:1,moreCondition:!1,shopId:"",conditions:{auditId:"",storeId:"",returnLink:"",returnPerson:"",shopName:"",state:"",page:a,row:r}}}},created(){this._listShopAudits(a,r)},methods:{async _listShopAudits(t,e){this.shopAuditInfo.conditions.page=t,this.shopAuditInfo.conditions.row=e;try{const t=await Object(n["b"])(this.shopAuditInfo.conditions);this.shopAuditInfo.total=t.total,this.shopAuditInfo.records=t.records,this.shopAuditInfo.shopAudits=t.data}catch(o){console.error("请求失败:",o)}},_openAuditOpenShopModel(t){this.$router.push({path:"/pages/shop/shopAuditDetail",query:{auditId:t.auditId,shopId:t.shopId}})},_auditState(t){const e={"001":this.$t("shopAudit.pendingAudit"),"002":this.$t("shopAudit.auditPassed"),"003":this.$t("shopAudit.auditFailed")};return e[t]||t},_queryShopAuditMethod(){this._listShopAudits(a,r)},handleCurrentChange(t){this._listShopAudits(t,r)}}},u=d,l=(o("0a2d"),o("2877")),p=Object(l["a"])(u,i,s,!1,null,"2cf71ee9",null);e["default"]=p.exports},"0a2d":function(t,e,o){"use strict";o("eb3f")},be8d:function(t,e,o){"use strict";o.d(e,"b",(function(){return s})),o.d(e,"a",(function(){return n}));var i=o("b775");function s(t){return new Promise((e,o)=>{Object(i["a"])({url:"/shopAudit.queryShopAudit",method:"get",params:t}).then(t=>{const o=t.data;e(o)}).catch(t=>{o(t)})})}function n(t){return new Promise((e,o)=>{Object(i["a"])({url:"/shop.auditEditShop",method:"post",data:t}).then(t=>{const o=t.data;e(o)}).catch(t=>{o(t)})})}},eb3f:function(t,e,o){}}]);
//# sourceMappingURL=chunk-068d9b3b.0892afbb.js.map