|
@ -87,7 +87,7 @@ |
|
|
style='background:rgb(60, 156, 255) !important ;color: white;margin-top: 80rpx;'> 打印上架指引单 |
|
|
style='background:rgb(60, 156, 255) !important ;color: white;margin-top: 80rpx;'> 打印上架指引单 |
|
|
</button> |
|
|
</button> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
<u-empty text="无打印数据" mode="list" v-if="(tabIndex == 1 &&(!data1.inspectDTOList || data1.inspectDTOList && data1.inspectDTOList.length==0))||(tabIndex == 2&&isHaveOn && (!data.sublist || data.sublist && data.sublist.length==0))"></u-empty> |
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
@ -138,17 +138,19 @@ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
// #ifdef APP |
|
|
|
|
|
// 打印 |
|
|
// 打印 |
|
|
printImage() { |
|
|
printImage() { |
|
|
|
|
|
// #ifdef APP |
|
|
if (this.tabIndex == 1) { |
|
|
if (this.tabIndex == 1) { |
|
|
testModule.doHTMLPrint(this.newHtmlContent1) |
|
|
testModule.doHTMLPrint(this.newHtmlContent1) |
|
|
} else { |
|
|
} else { |
|
|
testModule.doHTMLPrint(this.newHtmlContent) |
|
|
testModule.doHTMLPrint(this.newHtmlContent) |
|
|
} |
|
|
} |
|
|
|
|
|
// #endif |
|
|
}, |
|
|
}, |
|
|
// 读取html文件 |
|
|
// 读取html文件 |
|
|
readFile(path, callback) { |
|
|
readFile(path, callback) { |
|
|
|
|
|
// #ifdef APP |
|
|
plus.io.resolveLocalFileSystemURL(path, function(entry) { |
|
|
plus.io.resolveLocalFileSystemURL(path, function(entry) { |
|
|
entry.file(function(file) { |
|
|
entry.file(function(file) { |
|
|
var reader = new plus.io.FileReader(); |
|
|
var reader = new plus.io.FileReader(); |
|
@ -162,8 +164,8 @@ |
|
|
}, function(e) { |
|
|
}, function(e) { |
|
|
console.log("获取图片资源失败:" + e.message); |
|
|
console.log("获取图片资源失败:" + e.message); |
|
|
}); |
|
|
}); |
|
|
|
|
|
// #endif |
|
|
}, |
|
|
}, |
|
|
// #endif |
|
|
|
|
|
formatDate(val) { |
|
|
formatDate(val) { |
|
|
return dateFormat(val) |
|
|
return dateFormat(val) |
|
|
}, |
|
|
}, |
|
@ -171,6 +173,7 @@ |
|
|
getPointPutawayJobHtml() { |
|
|
getPointPutawayJobHtml() { |
|
|
this.$nextTick(async () => { |
|
|
this.$nextTick(async () => { |
|
|
let str = '' |
|
|
let str = '' |
|
|
|
|
|
// #ifdef APP-PLUS |
|
|
this.readFile(htmlFileUrl, (htmlContent) => { |
|
|
this.readFile(htmlFileUrl, (htmlContent) => { |
|
|
this.newHtmlContent = htmlContent |
|
|
this.newHtmlContent = htmlContent |
|
|
this.data.sublist.forEach(item => { |
|
|
this.data.sublist.forEach(item => { |
|
@ -200,13 +203,14 @@ |
|
|
this.newHtmlContent = this.newHtmlContent.replace( |
|
|
this.newHtmlContent = this.newHtmlContent.replace( |
|
|
"mainBody", str); //替换物品代码 |
|
|
"mainBody", str); //替换物品代码 |
|
|
}); |
|
|
}); |
|
|
|
|
|
// #endif |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// 获取采购收货指引单html |
|
|
// 获取采购收货指引单html |
|
|
getPurchaseReceiptJobHtml() { |
|
|
getPurchaseReceiptJobHtml() { |
|
|
this.$nextTick(async () => { |
|
|
this.$nextTick(async () => { |
|
|
let str = '' |
|
|
let str = '' |
|
|
|
|
|
// #ifdef APP-PLUS |
|
|
this.readFile(htmlFileUrl1, (htmlContent) => { |
|
|
this.readFile(htmlFileUrl1, (htmlContent) => { |
|
|
this.newHtmlContent1 = htmlContent |
|
|
this.newHtmlContent1 = htmlContent |
|
|
this.data1.inspectDTOList.forEach(item => { |
|
|
this.data1.inspectDTOList.forEach(item => { |
|
@ -270,9 +274,9 @@ |
|
|
}) |
|
|
}) |
|
|
this.newHtmlContent1 = this.newHtmlContent1.replace( |
|
|
this.newHtmlContent1 = this.newHtmlContent1.replace( |
|
|
"mainBody", str); //替换物品代码 |
|
|
"mainBody", str); //替换物品代码 |
|
|
console.log(333,this.newHtmlContent1) |
|
|
console.log(333, this.newHtmlContent1) |
|
|
}); |
|
|
}); |
|
|
|
|
|
// #endif |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
getTableSubList() { |
|
|
getTableSubList() { |
|
@ -355,6 +359,7 @@ |
|
|
if (this.data1 && this.data1.inspectDTOList && this.data1.inspectDTOList.length == 0) { |
|
|
if (this.data1 && this.data1.inspectDTOList && this.data1.inspectDTOList.length == 0) { |
|
|
this.tabIndex = 2 |
|
|
this.tabIndex = 2 |
|
|
} |
|
|
} |
|
|
|
|
|
console.log(88,this.data1) |
|
|
this.getTableInspectDTOList() |
|
|
this.getTableInspectDTOList() |
|
|
}) |
|
|
}) |
|
|
.catch(error => { |
|
|
.catch(error => { |
|
@ -435,59 +440,59 @@ |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
justify-content: center; |
|
|
justify-content: center; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.mb-kw { |
|
|
.mb-kw { |
|
|
border-bottom: 1px solid #dedede; |
|
|
border-bottom: 1px solid #dedede; |
|
|
padding: 20rpx; |
|
|
padding: 20rpx; |
|
|
font-size: 30rpx; |
|
|
font-size: 30rpx; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.mb-kw view { |
|
|
.mb-kw view { |
|
|
font-weight: bold; |
|
|
font-weight: bold; |
|
|
font-size: 46rpx; |
|
|
font-size: 46rpx; |
|
|
text-align: center; |
|
|
text-align: center; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.mb-bo { |
|
|
.mb-bo { |
|
|
display: flex; |
|
|
display: flex; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.mb-bo .mb-left { |
|
|
.mb-bo .mb-left { |
|
|
flex: 1 |
|
|
flex: 1 |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.mb-bo .mb-left .mb-text { |
|
|
.mb-bo .mb-left .mb-text { |
|
|
padding: 20rpx; |
|
|
padding: 20rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.mb-bo .mb-left .mb-text:nth-child(1) { |
|
|
.mb-bo .mb-left .mb-text:nth-child(1) { |
|
|
border-bottom: 1px solid #dedede; |
|
|
border-bottom: 1px solid #dedede; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.mb-bo .mb-left .mb-text view { |
|
|
.mb-bo .mb-left .mb-text view { |
|
|
font-weight: bold; |
|
|
font-weight: bold; |
|
|
font-size: 32rpx; |
|
|
font-size: 32rpx; |
|
|
text-align: center; |
|
|
text-align: center; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.mb-bo .mb-right { |
|
|
|
|
|
padding: 20rpx; |
|
|
|
|
|
width: 260rpx; |
|
|
|
|
|
border-left: 1px solid #dedede; |
|
|
|
|
|
display: flex; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.mb-bo .mb-right .mb-text { |
|
|
|
|
|
|
|
|
|
|
|
width: 100%; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.mb-bo .mb-right .mb-text view { |
|
|
|
|
|
font-weight: bold; |
|
|
|
|
|
font-size: 40rpx; |
|
|
|
|
|
text-align: center; |
|
|
|
|
|
width: 100%; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
</style> |
|
|
.mb-bo .mb-right { |
|
|
|
|
|
padding: 20rpx; |
|
|
|
|
|
width: 260rpx; |
|
|
|
|
|
border-left: 1px solid #dedede; |
|
|
|
|
|
display: flex; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.mb-bo .mb-right .mb-text { |
|
|
|
|
|
|
|
|
|
|
|
width: 100%; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.mb-bo .mb-right .mb-text view { |
|
|
|
|
|
font-weight: bold; |
|
|
|
|
|
font-size: 40rpx; |
|
|
|
|
|
text-align: center; |
|
|
|
|
|
width: 100%; |
|
|
|
|
|
} |
|
|
|
|
|
</style> |