|
@@ -659,26 +659,26 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- // const getPrinters = await getListOfPrinters({});
|
|
|
-
|
|
|
- // if (getPrinters.code == 0) {
|
|
|
- // if (getPrinters.data.length == []) {
|
|
|
- // this.shipServe();
|
|
|
- // Toast("没有打印机");
|
|
|
- // } else {
|
|
|
- // this.getPrintersList = getPrinters.data.map(item => {
|
|
|
- // return { printerName: item.printerName, id: item.id };
|
|
|
- // });
|
|
|
-
|
|
|
- // if (this.getPrintersList.length === 1) {
|
|
|
- // this.shipServe(this.getPrintersList[0].id);
|
|
|
- // } else {
|
|
|
- // this.printerShow = true;
|
|
|
- // }
|
|
|
- // }
|
|
|
- // } else {
|
|
|
- // Toast("系统异常");
|
|
|
- // }
|
|
|
+ const getPrinters = await getListOfPrinters({});
|
|
|
+
|
|
|
+ if (getPrinters.code == 0) {
|
|
|
+ if (getPrinters.data.length == []) {
|
|
|
+ this.shipServe();
|
|
|
+ Toast("没有打印机");
|
|
|
+ } else {
|
|
|
+ this.getPrintersList = getPrinters.data.map(item => {
|
|
|
+ return { printerName: item.printerName, id: item.id };
|
|
|
+ });
|
|
|
+
|
|
|
+ if (this.getPrintersList.length === 1) {
|
|
|
+ this.shipServe(this.getPrintersList[0].id);
|
|
|
+ } else {
|
|
|
+ this.printerShow = true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ Toast("系统异常");
|
|
|
+ }
|
|
|
|
|
|
return;
|
|
|
},
|