2 changed files with 471 additions and 10 deletions
@ -0,0 +1,393 @@ |
|||
<template> |
|||
<div class="mod-config"> |
|||
|
|||
<el-form label-position="top" style="" :inline="true" :model="queryData" |
|||
@keyup.enter.native="getDataList()"> |
|||
<el-form-item label="卷号"> |
|||
<el-input v-model="queryData.rollno" clearable> |
|||
</el-input> |
|||
</el-form-item> |
|||
<el-form-item label="物料编码"> |
|||
<el-input v-model="queryData.partno" clearable> |
|||
</el-input> |
|||
</el-form-item> |
|||
<el-form-item style="margin-top: 18px"> |
|||
<el-button @click="getDataList()" type="primary">查询</el-button> |
|||
</el-form-item> |
|||
</el-form> |
|||
<el-table |
|||
:height="height" |
|||
:data="dataList" |
|||
border |
|||
v-loading="dataListLoading" |
|||
highlight-current-row |
|||
style="width: 100%;"> |
|||
<el-table-column |
|||
v-for="(item,index) in columnList" :key="index" |
|||
:sortable="item.columnSortable" |
|||
:prop="item.columnProp" |
|||
:header-align="item.headerAlign" |
|||
:show-overflow-tooltip="item.showOverflowTooltip" |
|||
:align="item.align" |
|||
:fixed="item.fixed==''?false:item.fixed" |
|||
:min-width="item.columnWidth" |
|||
:label="item.columnLabel"> |
|||
<template slot-scope="scope"> |
|||
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|||
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|||
style="width: 100px; height: 80px"/></span> |
|||
</template> |
|||
</el-table-column> |
|||
|
|||
<el-table-column |
|||
fixed="right" |
|||
header-align="center" |
|||
align="center" |
|||
width="150" |
|||
label="操作"> |
|||
<template slot-scope="scope"> |
|||
<a type="text" size="small" @click="printRoll(scope.row)" herf="#">卷补打</a> |
|||
</template> |
|||
</el-table-column> |
|||
|
|||
</el-table> |
|||
|
|||
|
|||
|
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
|
|||
import {getCRollInfoList} from '@/api/crollinfo/crollinfo.js' |
|||
import {rollPrint} from '@/api/finishedProductWarehouse/rollPrint.js' |
|||
|
|||
export default { |
|||
data() { |
|||
return { |
|||
height: 450, |
|||
queryData: { |
|||
day1: '', |
|||
day2: '', |
|||
rollno: '', |
|||
partno: '' |
|||
}, |
|||
columnList: [ |
|||
{ |
|||
"userId": this.$store.state.user.name, |
|||
"tableId": "105003002RP", |
|||
"tableName": "卷标签打印", |
|||
"columnProp": "rollno", |
|||
"columnLabel": "卷号", |
|||
"columnHidden": false, |
|||
"columnImage": false, |
|||
"columnSortable": false, |
|||
"columnWidth": 100, |
|||
"format": null, |
|||
"sortLv": 10, |
|||
"status": true, |
|||
"fixed": true, |
|||
"serialNumber": null, |
|||
"columnType": "string", |
|||
"align": null |
|||
}, |
|||
{ |
|||
"userId": this.$store.state.user.name, |
|||
"tableId": "105003002RP", |
|||
"tableName": "卷标签打印", |
|||
"columnProp": "partno", |
|||
"columnLabel": "物料编号", |
|||
"columnHidden": false, |
|||
"columnImage": false, |
|||
"columnSortable": false, |
|||
"columnWidth": 100, |
|||
"format": null, |
|||
"sortLv": 20, |
|||
"status": true, |
|||
"fixed": false, |
|||
"serialNumber": null, |
|||
"columnType": "string", |
|||
"align": null |
|||
}, |
|||
{ |
|||
"userId": this.$store.state.user.name, |
|||
"tableId": "105003002RP", |
|||
"tableName": "卷标签打印", |
|||
"columnProp": "partDescription", |
|||
"columnLabel": "物料描述", |
|||
"columnHidden": false, |
|||
"columnImage": false, |
|||
"columnSortable": false, |
|||
"columnWidth": 250, |
|||
"format": null, |
|||
"sortLv": 30, |
|||
"status": true, |
|||
"fixed": false, |
|||
"serialNumber": null, |
|||
"columnType": "string", |
|||
"align": null |
|||
}, |
|||
{ |
|||
"userId": this.$store.state.user.name, |
|||
"tableId": "105003002RP", |
|||
"tableName": "卷标签打印", |
|||
"columnProp": "site", |
|||
"columnLabel": "工厂编号", |
|||
"columnHidden": false, |
|||
"columnImage": false, |
|||
"columnSortable": false, |
|||
"columnWidth": 80, |
|||
"format": null, |
|||
"sortLv": 40, |
|||
"status": true, |
|||
"fixed": false, |
|||
"serialNumber": null, |
|||
"columnType": "string", |
|||
"align": null |
|||
}, |
|||
{ |
|||
"userId": this.$store.state.user.name, |
|||
"tableId": "105003002RP", |
|||
"tableName": "卷标签打印", |
|||
"columnProp": "rollqty", |
|||
"columnLabel": "卷数量", |
|||
"columnHidden": false, |
|||
"columnImage": false, |
|||
"columnSortable": false, |
|||
"columnWidth": 41, |
|||
"format": null, |
|||
"sortLv": 7, |
|||
"status": true, |
|||
"fixed": false, |
|||
"serialNumber": null, |
|||
"columnType": "number", |
|||
"align": null |
|||
}, |
|||
{ |
|||
"userId": this.$store.state.user.name, |
|||
"tableId": "105003002RP", |
|||
"tableName": "卷标签打印", |
|||
"columnProp": "status", |
|||
"columnLabel": "状态", |
|||
"columnHidden": false, |
|||
"columnImage": false, |
|||
"columnSortable": false, |
|||
"columnWidth": 80, |
|||
"format": null, |
|||
"sortLv": 50, |
|||
"status": true, |
|||
"fixed": false, |
|||
"serialNumber": null, |
|||
"columnType": "number", |
|||
"align": null |
|||
}, |
|||
{ |
|||
"userId": this.$store.state.user.name, |
|||
"tableId": "105003002RP", |
|||
"tableName": "卷标签打印", |
|||
"columnProp": "sourcetype", |
|||
"columnLabel": "来源类型", |
|||
"columnHidden": false, |
|||
"columnImage": false, |
|||
"columnSortable": false, |
|||
"columnWidth": 80, |
|||
"format": null, |
|||
"sortLv": 60, |
|||
"status": true, |
|||
"fixed": false, |
|||
"serialNumber": null, |
|||
"columnType": "string", |
|||
"align": null |
|||
}, |
|||
|
|||
{ |
|||
"userId": this.$store.state.user.name, |
|||
"tableId": "105003002RP", |
|||
"tableName": "卷标签打印", |
|||
"columnProp": "warehouseid", |
|||
"columnLabel": "仓库编码", |
|||
"columnHidden": false, |
|||
"columnImage": false, |
|||
"columnSortable": false, |
|||
"columnWidth": 80, |
|||
"format": null, |
|||
"sortLv": 70, |
|||
"status": false, |
|||
"fixed": false, |
|||
"serialNumber": null, |
|||
"columnType": "string", |
|||
"align": null |
|||
}, |
|||
{ |
|||
"userId": this.$store.state.user.name, |
|||
"tableId": "105003002RP", |
|||
"tableName": "卷标签打印", |
|||
"columnProp": "supplierid", |
|||
"columnLabel": "供应商编号", |
|||
"columnHidden": false, |
|||
"columnImage": false, |
|||
"columnSortable": false, |
|||
"columnWidth": 80, |
|||
"format": null, |
|||
"sortLv": 80, |
|||
"status": false, |
|||
"fixed": false, |
|||
"serialNumber": null, |
|||
"columnType": "string", |
|||
"align": null |
|||
}, |
|||
{ |
|||
"userId": this.$store.state.user.name, |
|||
"tableId": "105003002RP", |
|||
"tableName": "卷标签打印", |
|||
"columnProp": "suppliername", |
|||
"columnLabel": "供应商名称", |
|||
"columnHidden": false, |
|||
"columnImage": false, |
|||
"columnSortable": false, |
|||
"columnWidth": 80, |
|||
"format": null, |
|||
"sortLv": 90, |
|||
"status": false, |
|||
"fixed": false, |
|||
"serialNumber": null, |
|||
"columnType": "string", |
|||
"align": null |
|||
}, |
|||
{ |
|||
"userId": this.$store.state.user.name, |
|||
"tableId": "105003002RP", |
|||
"tableName": "卷标签打印", |
|||
"columnProp": "createdby", |
|||
"columnLabel": "创建人", |
|||
"columnHidden": false, |
|||
"columnImage": false, |
|||
"columnSortable": false, |
|||
"columnWidth": 80, |
|||
"format": null, |
|||
"sortLv": 100, |
|||
"status": true, |
|||
"fixed": false, |
|||
"serialNumber": null, |
|||
"columnType": "string", |
|||
"align": null |
|||
}, |
|||
{ |
|||
"userId": this.$store.state.user.name, |
|||
"tableId": "105003002RP", |
|||
"tableName": "卷标签打印", |
|||
"columnProp": "rolldate", |
|||
"columnLabel": "卷创建时间", |
|||
"columnHidden": false, |
|||
"columnImage": false, |
|||
"columnSortable": false, |
|||
"columnWidth": 120, |
|||
"format": null, |
|||
"sortLv": 110, |
|||
"status": true, |
|||
"fixed": false, |
|||
"serialNumber": null, |
|||
"columnType": "date", |
|||
"align": null |
|||
}, |
|||
{ |
|||
"userId": this.$store.state.user.name, |
|||
"tableId": "105003002RP", |
|||
"tableName": "卷标签打印", |
|||
"columnProp": "manufacturedate", |
|||
"columnLabel": "制造日期", |
|||
"columnHidden": false, |
|||
"columnImage": false, |
|||
"columnSortable": false, |
|||
"columnWidth": 120, |
|||
"format": null, |
|||
"sortLv": 111, |
|||
"status": true, |
|||
"fixed": false, |
|||
"serialNumber": null, |
|||
"columnType": "string", |
|||
"align": null |
|||
}, |
|||
{ |
|||
"userId": this.$store.state.user.name, |
|||
"tableId": "105003002RP", |
|||
"tableName": "卷标签打印", |
|||
"columnProp": "createddate", |
|||
"columnLabel": "创建时间", |
|||
"columnHidden": false, |
|||
"columnImage": false, |
|||
"columnSortable": false, |
|||
"columnWidth": 150, |
|||
"format": null, |
|||
"sortLv": 112, |
|||
"status": true, |
|||
"fixed": false, |
|||
"serialNumber": null, |
|||
"columnType": "date", |
|||
"align": null |
|||
}, |
|||
{ |
|||
"userId": this.$store.state.user.name, |
|||
"tableId": "105003002RP", |
|||
"tableName": "卷标签打印", |
|||
"columnProp": "remark", |
|||
"columnLabel": "备注", |
|||
"columnHidden": false, |
|||
"columnImage": false, |
|||
"columnSortable": false, |
|||
"columnWidth": 80, |
|||
"format": null, |
|||
"sortLv": 113, |
|||
"status": false, |
|||
"fixed": false, |
|||
"serialNumber": null, |
|||
"columnType": "string", |
|||
"align": null |
|||
}, |
|||
|
|||
], |
|||
dataList: [], |
|||
|
|||
dataListLoading: false, |
|||
|
|||
} |
|||
}, |
|||
components: { |
|||
|
|||
}, |
|||
mounted() { |
|||
this.$nextTick(() => { |
|||
this.height = window.innerHeight - 160; |
|||
}) |
|||
|
|||
}, |
|||
activated() { |
|||
// this.getDataList() |
|||
}, |
|||
methods: { |
|||
|
|||
// 卷标签补打 |
|||
printRoll(val) { |
|||
let rollList = [] |
|||
rollList.push(val) |
|||
rollPrint(rollList).then(({data}) => { |
|||
if (data.code == 0) { |
|||
this.$message.success(data.msg) |
|||
} else { |
|||
this.$message.warning(data.msg) |
|||
} |
|||
}) |
|||
}, |
|||
|
|||
}, |
|||
created() { |
|||
|
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
.sl-svg { |
|||
overflow: hidden; |
|||
float: right; |
|||
} |
|||
</style> |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue