|
|
|
@ -159,6 +159,41 @@ |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-tab-pane> |
|
|
|
<el-tab-pane label="材料汇总" name="sum"> |
|
|
|
<el-table |
|
|
|
:data="dataList4" |
|
|
|
:height="height" |
|
|
|
border |
|
|
|
v-loading="dataListLoading" |
|
|
|
style="width: 100%; "> |
|
|
|
<!-- <el-table-column--> |
|
|
|
<!-- header-align="center"--> |
|
|
|
<!-- align="center"--> |
|
|
|
<!-- width="80"--> |
|
|
|
<!-- fixed="left"--> |
|
|
|
<!-- label="操作">--> |
|
|
|
<!-- <template slot-scope="scope">--> |
|
|
|
<!-- <a type="text" size="small" @click="printLabel(scope.row)">打印标签</a>--> |
|
|
|
<!-- </template>--> |
|
|
|
<!-- </el-table-column>--> |
|
|
|
<el-table-column |
|
|
|
v-for="(item,index) in columnList4" :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> |
|
|
|
</el-tab-pane> |
|
|
|
</el-tabs> |
|
|
|
|
|
|
|
|
|
|
|
@ -171,6 +206,7 @@ |
|
|
|
searchNotifyHeader |
|
|
|
,searchNotifyOrderList |
|
|
|
,searchNotifyMaterialList |
|
|
|
,searchSumNotifyMaterialList |
|
|
|
}from "@/api/orderIssure/soIssueNotify.js" |
|
|
|
import Chooselist from '@/views/modules/common/Chooselist' |
|
|
|
export default { |
|
|
|
@ -185,6 +221,7 @@ |
|
|
|
dataList: [], |
|
|
|
dataList2: [], |
|
|
|
dataList3: [], |
|
|
|
dataList4: [], |
|
|
|
addOrUpdateVisible:false, |
|
|
|
searchData: { |
|
|
|
page: 1, |
|
|
|
@ -654,6 +691,77 @@ |
|
|
|
columnWidth: 80 |
|
|
|
}, |
|
|
|
], |
|
|
|
columnList4:[ |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 701002, |
|
|
|
serialNumber: '701002Table3ComponentPartNo', |
|
|
|
tableId: "701002Table4", |
|
|
|
tableName: "申请单材料明细表", |
|
|
|
columnProp: "componentPartNo", |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
columnLabel: "材料编码", |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 100 |
|
|
|
},{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 701002, |
|
|
|
serialNumber: '701002Table3PartDesc', |
|
|
|
tableId: "701002Table4", |
|
|
|
tableName: "申请单材料明细表", |
|
|
|
columnProp: "partDesc", |
|
|
|
headerAlign: "center", |
|
|
|
align: "left", |
|
|
|
columnLabel: "材料名称", |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 130 |
|
|
|
},{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 701002, |
|
|
|
serialNumber: '701002Table3QtyToIssue', |
|
|
|
tableId: "701002Table4", |
|
|
|
tableName: "申请单材料明细表", |
|
|
|
columnProp: "qtyToIssue", |
|
|
|
headerAlign: "center", |
|
|
|
align: "right", |
|
|
|
columnLabel: "合计申请数量", |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 80 |
|
|
|
},{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 701002, |
|
|
|
serialNumber: '701002Table3QtyToIssueOriginal', |
|
|
|
tableId: "701002Table4", |
|
|
|
tableName: "申请单材料明细表", |
|
|
|
columnProp: "qtyToIssueOriginal", |
|
|
|
headerAlign: "center", |
|
|
|
align: "right", |
|
|
|
columnLabel: "合计已发数量", |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 80 |
|
|
|
}, |
|
|
|
], |
|
|
|
dataRole: { |
|
|
|
partTypeDesc: [ |
|
|
|
{ |
|
|
|
@ -742,12 +850,22 @@ |
|
|
|
this.dataList2 = []; |
|
|
|
} |
|
|
|
}); |
|
|
|
}else { |
|
|
|
}else if(this.activeName==='sub'){ |
|
|
|
searchNotifyMaterialList(this.currentRow).then(({data}) => { |
|
|
|
//区分请求成功和失败的状况 |
|
|
|
if (data && data.code == 0) { |
|
|
|
this.dataList3 = data.rows |
|
|
|
|
|
|
|
} else { |
|
|
|
this.dataList3 = []; |
|
|
|
} |
|
|
|
}); |
|
|
|
}else { |
|
|
|
searchSumNotifyMaterialList(this.currentRow).then(({data}) => { |
|
|
|
//区分请求成功和失败的状况 |
|
|
|
if (data && data.code == 0) { |
|
|
|
this.dataList3 = data.rows |
|
|
|
|
|
|
|
} else { |
|
|
|
this.dataList3 = []; |
|
|
|
} |
|
|
|
|