diff --git a/src/api/production/pallet.js b/src/api/production/pallet.js
index 27f289b..1b7bb46 100644
--- a/src/api/production/pallet.js
+++ b/src/api/production/pallet.js
@@ -15,3 +15,5 @@ export const getLocationData=data => createAPI(`/pallet/getLocationData`,'post'
export const saveLocationData=data => createAPI(`/pallet/saveLocationData`,'post',data)
//删除位置数据
export const deleteLocationData=data => createAPI(`/pallet/deleteLocationData`,'post',data)
+
+export const getScheduleSerialNo=data => createAPI(`/pallet/getScheduleSerialNo`,'post',data)
diff --git a/src/main.js b/src/main.js
index 198ada7..a9a5982 100644
--- a/src/main.js
+++ b/src/main.js
@@ -15,7 +15,7 @@ import JsonExcel from 'vue-json-excel'
import i18n from '@/i18n/i18n'
import './directives'
import decimalUtil from '@/utils/decimalUtil.js'
-
+import getLodop from '@/utils/LodopFuncs.js'
Vue.component('downloadExcel', JsonExcel)
@@ -33,6 +33,7 @@ Vue.prototype.$http = httpRequest // ajax请求方法
Vue.prototype.isAuth = isAuth // 权限方法
Vue.prototype.decimalUtil = decimalUtil // 计算
Vue.prototype.dayjs = dayjs //时间格式化插件 2021-11-02
+Vue.prototype.getLodop = getLodop // 打印
// 保存整站vuex本地储存初始状态
window.SITE_CONFIG['storeState'] = cloneDeep(store.state)
diff --git a/src/utils/LodopFuncs.js b/src/utils/LodopFuncs.js
index 2539de2..95b5868 100644
--- a/src/utils/LodopFuncs.js
+++ b/src/utils/LodopFuncs.js
@@ -14,7 +14,7 @@ head.insertBefore(oscript, head.firstChild)
// 下载loadLodop
function loadLodop() {
- window.open('../../static/Lodop/CLodop_Setup_for_Win32NT.exe')
+ window.open('http://www.lodop.net/')
}
// ====获取LODOP对象的主过程:====
@@ -32,7 +32,7 @@ function getLodop() {
title: '温馨提示',
type: 'warning',
showCancelButton: true,
- message: '您还未安装打印控件,点击确定下载打印控件,安装成功后刷新页面即可进行打印',
+ message: '您还未安装打印控件,请联系管理员或者去官网下载!',
callback: res => {
if (res === 'confirm') {
loadLodop()
diff --git a/src/views/modules/pallet/pallet.vue b/src/views/modules/pallet/pallet.vue
index 5f164ef..9f6990a 100644
--- a/src/views/modules/pallet/pallet.vue
+++ b/src/views/modules/pallet/pallet.vue
@@ -30,12 +30,14 @@
查询
新增
+ 批量打印
打印标签
+
+
{
- if(data.code=="200"){
- this.$message({
- message: '打印成功',
- type: 'success',
- duration: 1500,
- onClose: () => {
- }
- })
- }else {
- this.$alert(data.msg, '错误', {
- confirmButtonText: '确定'
- })
- }
- })
+ printMaterialLabel(array);
},
+ prints(){
+ if(this.dataListSelections.length==0){
+ this.$alert('请勾选需要打印的栈板!','错误',{
+ confirmButtonText: '确定'
+ })
+ return false;
+ }
+ let array=[];
+ for (let i = 0; i