2 lines
5.0 KiB
JavaScript
2 lines
5.0 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8de87cd2","chunk-fcd760a4"],{9418:function(t,e,n){"use strict";n("cd80")},a40b:function(t,e,n){"use strict";n("e84f")},c962:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t._self._c;return e("el-card",{staticClass:"list-selector"},[e("ul",{staticClass:"list-selector-list"},["Y"==t.showAll?e("li",{class:{selected:""===t.adminShopInfo.shopId},on:{click:function(e){return t.swatchAdminShopId({shopId:"",shopName:"全部"})}}},[t._v(" "+t._s(t.$t("common.all"))+" ")]):t._e(),t._l(t.adminShopInfo.shops,(function(n,o){return e("li",{key:o,class:{selected:t.adminShopInfo.shopId===n.shopId},on:{click:function(e){return t.swatchAdminShopId(n)}}},[t._v(" "+t._s(n.shopName)+" ")])}))],2)])},i=[],a=n("7323"),s={name:"AdminShop",data(){return{adminShopInfo:{shops:[],shopId:""}}},props:{showAll:{type:String,default:"Y"}},created(){this._listAdminShops()},methods:{async _listAdminShops(){try{const t=await Object(a["k"])({page:1,row:100});this.adminShopInfo.shops=t.data,"N"==this.showAll&&this.adminShopInfo.shops.length>0&&this.swatchAdminShopId(this.adminShopInfo.shops[0])}catch(t){console.error("获取店铺列表失败:",t)}},swatchAdminShopId(t){this.adminShopInfo.shopId=t.shopId,this.$emit("shop-change",t)}}},r=s,c=(n("9418"),n("2877")),l=Object(c["a"])(r,o,i,!1,null,"177c0c26",null);e["default"]=l.exports},cd80:function(t,e,n){},e84f:function(t,e,n){},edd6:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t._self._c;return e("div",[e("el-row",{attrs:{gutter:20}},[e("el-col",{staticClass:"padding-r-0",attrs:{span:4}},[e("admin-shop",{on:{"shop-change":t.handleShopChange}})],1),e("el-col",{attrs:{span:20}},[e("el-card",{},[e("div",{staticClass:"clearfix flex justify-between",attrs:{slot:"header"},slot:"header"},[e("span",[t._v(t._s(t.$t("printerMachineLog.queryCondition")))])]),e("el-form",{staticClass:"flex justify-start",attrs:{inline:!0,model:t.printerMachineLogInfo.conditions}},[e("el-form-item",[e("el-input",{attrs:{placeholder:t.$t("printerMachineLog.selectMachineCode"),clearable:""},model:{value:t.printerMachineLogInfo.conditions.machineCode,callback:function(e){t.$set(t.printerMachineLogInfo.conditions,"machineCode",e)},expression:"printerMachineLogInfo.conditions.machineCode"}})],1),e("el-form-item",[e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t._queryPrinterLogMethod}},[t._v(" "+t._s(t.$t("printerMachineLog.query"))+" ")])],1)],1)],1),e("el-card",{staticClass:"margin-top-sm"},[e("div",{staticClass:"clearfix flex justify-between",attrs:{slot:"header"},slot:"header"},[e("span",[t._v(t._s(t.$t("printerMachineLog.printLog")))])]),e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.printerMachineLogInfo.logs,border:"",size:"small"}},[e("el-table-column",{attrs:{prop:"orderId",label:t.$t("printerMachineLog.id"),align:"center"}}),e("el-table-column",{attrs:{prop:"machineCode",label:t.$t("printerMachineLog.machineCode"),align:"center"}}),e("el-table-column",{attrs:{prop:"shopName",label:t.$t("printerMachineLog.shop"),align:"center"}}),e("el-table-column",{attrs:{prop:"reqParam",label:t.$t("printerMachineLog.requestMessage"),align:"center",width:"200"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("div",{staticClass:"textAuto"},[t._v(t._s(n.row.reqParam))])]}}])}),e("el-table-column",{attrs:{prop:"resParam",label:t.$t("printerMachineLog.responseMessage"),align:"center",width:"200"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("div",{staticClass:"textAuto"},[t._v(t._s(n.row.resParam))])]}}])}),e("el-table-column",{attrs:{prop:"createTime",label:t.$t("printerMachineLog.requestTime"),align:"center"}})],1),e("el-pagination",{staticStyle:{"margin-top":"20px"},attrs:{"current-page":t.printerMachineLogInfo.conditions.page,"page-size":t.printerMachineLogInfo.conditions.row,layout:"total, prev, pager, next",total:t.printerMachineLogInfo.total},on:{"current-change":t.handleCurrentChange}})],1)],1)],1)],1)},i=[],a=n("b775");function s(t){return new Promise((e,n)=>{Object(a["a"])({url:"/printerMachine.listShopPrinterLog",method:"get",params:t}).then(t=>{const n=t.data;e(n)}).catch(t=>{n(t)})})}var r=n("c962"),c={name:"PrinterMachineLog",components:{AdminShop:r["default"]},data(){return{printerMachineLogInfo:{logs:[],total:0,conditions:{machineCode:"",shopId:"",page:1,row:10}}}},created(){this._listPrinterMachineLogs()},methods:{handleShopChange(t){this.printerMachineLogInfo.conditions.shopId=t.shopId,this._listPrinterMachineLogs()},handleCurrentChange(t){this.printerMachineLogInfo.conditions.page=t,this._listPrinterMachineLogs()},async _listPrinterMachineLogs(){try{const t=await s(this.printerMachineLogInfo.conditions);this.printerMachineLogInfo.logs=t.data,this.printerMachineLogInfo.total=t.total}catch(t){console.error("获取打印日志失败:",t)}},_queryPrinterLogMethod(){this.printerMachineLogInfo.conditions.page=1,this._listPrinterMachineLogs()}}},l=c,h=(n("a40b"),n("2877")),p=Object(h["a"])(l,o,i,!1,null,"7e98f242",null);e["default"]=p.exports}}]);
|
|
//# sourceMappingURL=chunk-8de87cd2.5acc51b9.js.map
|