apt:输送线任务改成异步调用/刻字空框送回不做点位校验;
This commit is contained in:
@@ -268,29 +268,34 @@
|
||||
append-to-body
|
||||
:visible.sync="dialogVisible"
|
||||
destroy-on-close
|
||||
width="400px"
|
||||
width="600px"
|
||||
:show-close="true"
|
||||
@open="printFormm()"
|
||||
@close="close()"
|
||||
>
|
||||
<el-form>
|
||||
<el-form-item label="订单号" prop="pwd">
|
||||
<el-input v-model="printForm.sale_code" type="text" style="width: 200px" />
|
||||
</el-form-item>
|
||||
<el-form-item label="物料编号" prop="pwd">
|
||||
<el-input v-model="printForm.material_code" type="text" style="width: 200px" />
|
||||
</el-form-item>
|
||||
<el-form-item label="当前箱标签" prop="pwd">
|
||||
<el-input v-model="printForm.bar_code" type="text" style="width: 200px" />
|
||||
</el-form-item>
|
||||
<el-form-item label="当前打印箱号" prop="pwd">
|
||||
<el-input v-model="printForm.print_no" type="text" style="width: 100px" />
|
||||
<el-button type="primary" @click="submit">重置箱号</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-card class="box-card" shadow="never">
|
||||
<el-form ref="form" :inline="true" :model="form" size="mini" label-width="160px" style="border: 1px solid #cfe0df;margin-top: 10px;padding-top: 10px;">
|
||||
<el-form-item label="订单号" prop="pwd">
|
||||
<el-input v-model="printForm.sale_code" disabled type="text" style="width: 200px" />
|
||||
</el-form-item>
|
||||
<el-form-item label="物料编号" prop="pwd">
|
||||
<el-input v-model="printForm.material_code" disabled type="text" style="width: 200px" />
|
||||
</el-form-item>
|
||||
<el-form-item label="当前箱标签" prop="pwd">
|
||||
<el-input v-model="printForm.bar_code" disabled type="text" style="width: 200px" />
|
||||
</el-form-item>
|
||||
<el-form-item label="当前打印箱号" prop="pwd">
|
||||
<el-input v-model="printForm.print_no" type="text" style="width: 100px" />
|
||||
<el-button type="primary" @click="resetno">重置箱号</el-button>
|
||||
</el-form-item>
|
||||
<el-form-item label="打印标签数量" prop="pwd">
|
||||
<el-input-number v-model="printForm.print_number" type="text" style="width: 100px" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-card>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="dialogVisible = false">取 消</el-button>
|
||||
<el-button type="primary" @click="submit">确 定</el-button>
|
||||
<el-button type="primary" @click="submit">打 印</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
<!--表格渲染-->
|
||||
@@ -489,6 +494,7 @@ export default {
|
||||
form.cascader = val
|
||||
},
|
||||
submit() {},
|
||||
resetno() {},
|
||||
handleSelectionChange(val, row) {
|
||||
if (val.length > 1) {
|
||||
this.$refs.table.clearSelection()
|
||||
@@ -579,12 +585,9 @@ export default {
|
||||
})
|
||||
},
|
||||
printFormm(){
|
||||
const param ={"sale_id":this.form.sale_id,"material_code":this.form.material_code}
|
||||
const param ={"sale_id":this.currentRow.sale_id,"material_code":this.currentRow.material_code}
|
||||
orderExt.getQuery(param).then(res => {
|
||||
if (res.length == 0 || !res) {
|
||||
this.crud.notify('该工单需要打印的箱数为0', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
return
|
||||
}
|
||||
this.printForm = res
|
||||
})
|
||||
},
|
||||
close(){
|
||||
@@ -593,34 +596,32 @@ export default {
|
||||
},
|
||||
print(){
|
||||
this.dialogVisible =true
|
||||
// if (!this.currentRow.workorder_code) {
|
||||
// this.crud.notify('请选择一条工单记录进行打印', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
// return
|
||||
// }
|
||||
// orderExt.getExtList(this.currentRow).then(res => {
|
||||
// if (res.length == 0 || !res) {
|
||||
// this.crud.notify('该工单需要打印的箱数为0', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
// return
|
||||
// }
|
||||
// res.forEach((item) => {
|
||||
// const LODOP = getLodop()
|
||||
// LODOP.SET_SHOW_MODE('HIDE_DISBUTTIN_SETUP', 1)// 隐藏那些无效按钮
|
||||
// // 打印纸张大小设置https://www.it610.com/article/2094844.html
|
||||
// LODOP.SET_PRINT_PAGESIZE(1, '80mm', '50mm', '')
|
||||
// // LODOP.ADD_PRINT_RECT('0mm', '0mm', '48mm', '28mm', 0, 1)
|
||||
// LODOP.ADD_PRINT_BARCODE('10mm', '12mm', '60mm', '25mm', '128Auto', item.bar_code)
|
||||
// LODOP.SET_PRINT_STYLEA(0, 'ShowBarText', 0)
|
||||
// LODOP.ADD_PRINT_TEXT('35mm', '22mm', '40mm', '20mm', item.bar_code.substring(0, 9))
|
||||
// LODOP.SET_PRINT_STYLEA(0, 'FontSize', 20)
|
||||
// LODOP.ADD_PRINT_TEXT('42mm', '25mm', '40mm', '20mm', item.bar_code.substring(9, 16))
|
||||
// console.log(item.barcode)
|
||||
// LODOP.SET_PRINT_STYLEA(0, 'FontSize', 20)
|
||||
// LODOP.PRINT()// 打印
|
||||
// // LODOP.PREVIEW()
|
||||
// })
|
||||
// })
|
||||
// this.crud.notify('打印成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
// this.crud.toQuery()
|
||||
},
|
||||
printNumber(){
|
||||
orderExt.getExtList(this.currentRow).then(res => {
|
||||
if (res.length == 0 || !res) {
|
||||
this.crud.notify('该工单需要打印的箱数为0', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
return
|
||||
}
|
||||
res.forEach((item) => {
|
||||
const LODOP = getLodop()
|
||||
LODOP.SET_SHOW_MODE('HIDE_DISBUTTIN_SETUP', 1)// 隐藏那些无效按钮
|
||||
// 打印纸张大小设置https://www.it610.com/article/2094844.html
|
||||
LODOP.SET_PRINT_PAGESIZE(1, '80mm', '50mm', '')
|
||||
// LODOP.ADD_PRINT_RECT('0mm', '0mm', '48mm', '28mm', 0, 1)
|
||||
LODOP.ADD_PRINT_BARCODE('10mm', '12mm', '60mm', '25mm', '128Auto', item.bar_code)
|
||||
LODOP.SET_PRINT_STYLEA(0, 'ShowBarText', 0)
|
||||
LODOP.ADD_PRINT_TEXT('35mm', '22mm', '40mm', '20mm', item.bar_code.substring(0, 9))
|
||||
LODOP.SET_PRINT_STYLEA(0, 'FontSize', 20)
|
||||
LODOP.ADD_PRINT_TEXT('42mm', '25mm', '40mm', '20mm', item.bar_code.substring(9, 16))
|
||||
console.log(item.barcode)
|
||||
LODOP.SET_PRINT_STYLEA(0, 'FontSize', 20)
|
||||
LODOP.PRINT()// 打印
|
||||
// LODOP.PREVIEW()
|
||||
})
|
||||
})
|
||||
this.crud.notify('打印成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
this.crud.toQuery()
|
||||
},
|
||||
// 改变状态
|
||||
format_is_used(is_used) {
|
||||
|
||||
Reference in New Issue
Block a user