opt:任务优先级
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
v-model="query.one_box_package_qty"
|
||||
clearable
|
||||
size="small"
|
||||
precision="0"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@@ -26,7 +25,6 @@
|
||||
<el-input-number
|
||||
v-model="query.one_package_qty"
|
||||
clearable
|
||||
precision="0"
|
||||
size="small"
|
||||
/>
|
||||
</el-form-item>
|
||||
@@ -37,7 +35,6 @@
|
||||
v-model="query.tray_full_num"
|
||||
clearable
|
||||
size="small"
|
||||
precision="0"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@@ -47,7 +44,6 @@
|
||||
v-model="query.box_type"
|
||||
clearable
|
||||
size="mini"
|
||||
placeholder="箱型"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@@ -62,7 +58,6 @@
|
||||
placeholder="请选择"
|
||||
class="filter-item"
|
||||
style="width: 180px;"
|
||||
@change="hand"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in roadList"
|
||||
@@ -81,7 +76,6 @@
|
||||
placeholder="请选择"
|
||||
class="filter-item"
|
||||
style="width: 180px;"
|
||||
@change="hand"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in dict.IS_OR_NOT"
|
||||
@@ -113,6 +107,7 @@
|
||||
type="success"
|
||||
icon="el-icon-printer"
|
||||
size="mini"
|
||||
:disabled="confirm_flag"
|
||||
@click="print"
|
||||
>
|
||||
打印
|
||||
@@ -164,7 +159,6 @@
|
||||
style="width: 200px;"
|
||||
:options="sects"
|
||||
clearable
|
||||
@change="sectChange"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@@ -268,6 +262,37 @@
|
||||
<el-button :loading="crud.cu === 2" type="primary" @click="crud.submitCU">确认</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
||||
<el-dialog
|
||||
title="订单箱标签打印"
|
||||
append-to-body
|
||||
:visible.sync="dialogVisible"
|
||||
destroy-on-close
|
||||
width="400px"
|
||||
: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>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="dialogVisible = false">取 消</el-button>
|
||||
<el-button type="primary" @click="submit">确 定</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
<!--表格渲染-->
|
||||
<el-table
|
||||
ref="table"
|
||||
@@ -351,7 +376,7 @@ import pagination from '@crud/Pagination'
|
||||
import crudSectattr from '@/api/wms/basedata/st/sectattr'
|
||||
import crudProduceshiftorder from '@/views/wms/product_manage/workorder/produceshiftorder'
|
||||
import {getLodop} from '@/assets/js/lodop/LodopFuncs'
|
||||
import orderExt from '@/views/wms/product_manage/workorder/orderExt'
|
||||
import orderExt from '@/views/wms/old_manage/old_package/orderExt'
|
||||
|
||||
const defaultForm = {
|
||||
struct_id: null,
|
||||
@@ -435,6 +460,8 @@ export default {
|
||||
}
|
||||
}
|
||||
return {
|
||||
dialogVisible: false,
|
||||
printForm: {},
|
||||
sects: [],
|
||||
currentRow: null,
|
||||
invtypelist: [],
|
||||
@@ -461,6 +488,7 @@ export default {
|
||||
val[1] = form.sect_id
|
||||
form.cascader = val
|
||||
},
|
||||
submit() {},
|
||||
handleSelectionChange(val, row) {
|
||||
if (val.length > 1) {
|
||||
this.$refs.table.clearSelection()
|
||||
@@ -508,7 +536,6 @@ export default {
|
||||
this.crud.notify('缺少开工必要参数,保证输入框内不能为空!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
return
|
||||
}
|
||||
debugger
|
||||
this.currentRow.extra_map = this.crud.query
|
||||
this.currentRow.extra_map.package_qty = Math.ceil(this.currentRow.plan_qty / this.currentRow.extra_map.one_package_qty)
|
||||
this.currentRow.extra_map.box_num = Math.ceil(this.currentRow.extra_map.package_qty / this.currentRow.extra_map.one_box_package_qty)
|
||||
@@ -551,36 +578,49 @@ export default {
|
||||
this.crud.notify('保存成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
})
|
||||
},
|
||||
print() {
|
||||
debugger
|
||||
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()
|
||||
})
|
||||
printFormm(){
|
||||
const param ={"sale_id":this.form.sale_id,"material_code":this.form.material_code}
|
||||
orderExt.getQuery(param).then(res => {
|
||||
if (res.length == 0 || !res) {
|
||||
this.crud.notify('该工单需要打印的箱数为0', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
return
|
||||
}
|
||||
})
|
||||
this.crud.notify('打印成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
this.crud.toQuery()
|
||||
},
|
||||
close(){
|
||||
this.printForm = {},
|
||||
this.dialogVisible =false
|
||||
},
|
||||
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()
|
||||
},
|
||||
// 改变状态
|
||||
format_is_used(is_used) {
|
||||
|
||||
@@ -16,4 +16,12 @@ export function getExtList(data) {
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, getExtList }
|
||||
export function getQuery(data) {
|
||||
return request({
|
||||
url: 'api/mpsSaleOrderIcExt/getQuery',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, getExtList, getQuery }
|
||||
Reference in New Issue
Block a user