8 changed files with 218 additions and 16 deletions
-
202src/views/modules/production/PartProperties.vue
-
2src/views/modules/production/generateReport.vue
-
4src/views/modules/production/print_part_label.js
-
10src/views/modules/production/print_seqNo_label.js
-
4src/views/modules/production/print_stock_label.js
-
4src/views/modules/production/print_transNo_label.js
-
6src/views/modules/production/soscheduleRouting.vue
-
2src/views/modules/production/stockPrint.vue
@ -0,0 +1,202 @@ |
|||||
|
<template> |
||||
|
<div> |
||||
|
<el-dialog v-drag |
||||
|
:title="'物料属性'" |
||||
|
:close-on-click-modal="false" |
||||
|
width="600px" |
||||
|
@close="closeDialog()" |
||||
|
:visible.sync="visible"> |
||||
|
<el-form :model="dataForm" :inline="true" label-position="top" ref="dataForm" |
||||
|
label-width="80px"> |
||||
|
<el-row> |
||||
|
<el-col :span="24"> |
||||
|
<el-form-item label="物料编码" prop="taskHeader"> |
||||
|
<el-input style="width: 120px" v-model="dataForm.partNo"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="物料描述" prop="taskHeader"> |
||||
|
<el-input style="width: 300px" v-model="dataForm.partDesc"></el-input> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
</el-row> |
||||
|
<el-row> |
||||
|
<el-col :span="24" style="margin-top: 30px"> |
||||
|
<el-table |
||||
|
:data="dataList" |
||||
|
border |
||||
|
:height="height" |
||||
|
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="'center'" |
||||
|
:show-overflow-tooltip="item.showOverflowTooltip" |
||||
|
:align="item.align" |
||||
|
show-overflow-tooltip |
||||
|
: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> |
||||
|
|
||||
|
</el-col> |
||||
|
</el-row> |
||||
|
|
||||
|
</el-form> |
||||
|
<span slot="footer" class="dialog-footer"> |
||||
|
<el-button type="primary" @click="visible = false">关闭</el-button> |
||||
|
</span> |
||||
|
</el-dialog> |
||||
|
|
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
|
||||
|
import {chatHistoryList,info} from '@/api/taskmanage/chatHistory.js' |
||||
|
|
||||
|
export default { |
||||
|
data() { |
||||
|
return { |
||||
|
visible: false, |
||||
|
height: 300, |
||||
|
// 展示列集 |
||||
|
columnList: [ |
||||
|
{ |
||||
|
columnProp: "itemNo", |
||||
|
columnLabel: "序号", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
columnWidth: 40, |
||||
|
format: null, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
serialNumber: null, |
||||
|
columnType: null, |
||||
|
align: null |
||||
|
}, |
||||
|
{ |
||||
|
columnProp: "itemDesc", |
||||
|
columnLabel: "属性描述", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
columnWidth: 80, |
||||
|
format: null, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
serialNumber: null, |
||||
|
columnType: null, |
||||
|
align: null |
||||
|
}, |
||||
|
{ |
||||
|
columnProp: "content", |
||||
|
columnLabel: "文本属性值", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
columnWidth: 60, |
||||
|
format: null, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
serialNumber: null, |
||||
|
columnType: null, |
||||
|
align: null |
||||
|
}, |
||||
|
{ |
||||
|
columnProp: "content", |
||||
|
columnLabel: "数字属性值", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
columnWidth: 50, |
||||
|
format: null, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
serialNumber: null, |
||||
|
columnType: null, |
||||
|
align: 'right' |
||||
|
}, |
||||
|
{ |
||||
|
columnProp: "content", |
||||
|
columnLabel: "属性值类型", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
columnWidth: 40, |
||||
|
format: null, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
serialNumber: null, |
||||
|
columnType: null, |
||||
|
align: null |
||||
|
}, |
||||
|
{ |
||||
|
columnProp: "content", |
||||
|
columnLabel: "属性编码", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
columnWidth: 40, |
||||
|
format: null, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
serialNumber: null, |
||||
|
columnType: null, |
||||
|
align: null |
||||
|
}, |
||||
|
], |
||||
|
|
||||
|
dataList: [], |
||||
|
dataListSelections: [], |
||||
|
dataForm: { |
||||
|
site:'', |
||||
|
partNo:'', |
||||
|
partDesc:'', |
||||
|
}, |
||||
|
} |
||||
|
}, |
||||
|
components: { |
||||
|
|
||||
|
}, |
||||
|
methods: { |
||||
|
init(row) { |
||||
|
this.dataForm.site=row.site; |
||||
|
this.dataForm.partNo = row.partNo; |
||||
|
this.dataForm.partDesc = row.partDesc; |
||||
|
this.visible = true |
||||
|
this.getDataList() |
||||
|
}, |
||||
|
getDataList() { |
||||
|
chatHistoryList(this.dataForm).then(({data}) => { |
||||
|
if (data && data.code == 0) { |
||||
|
this.dataList = data.data |
||||
|
} else { |
||||
|
this.dataList = [] |
||||
|
} |
||||
|
}) |
||||
|
|
||||
|
}, |
||||
|
|
||||
|
closeDialog() { |
||||
|
//Object.assign(this.$data, this.$options.data()) |
||||
|
} |
||||
|
}, |
||||
|
created() { |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue