ruanqi 1 year ago
parent
commit
75880456a3
  1. 2
      src/api/orderIssure/soIssueNotify.js
  2. 120
      src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue

2
src/api/orderIssure/soIssueNotify.js

@ -23,3 +23,5 @@ export const searchNotifyHeader= data => createAPI(`/orderIssure/issureNotify/se
export const searchNotifyOrderList= data => createAPI(`/orderIssure/issureNotify/searchNotifyOrderList`,'post',data) export const searchNotifyOrderList= data => createAPI(`/orderIssure/issureNotify/searchNotifyOrderList`,'post',data)
export const searchNotifyMaterialList= data => createAPI(`/orderIssure/issureNotify/searchNotifyMaterialList`,'post',data) export const searchNotifyMaterialList= data => createAPI(`/orderIssure/issureNotify/searchNotifyMaterialList`,'post',data)
export const searchSumNotifyMaterialList= data => createAPI(`/orderIssure/issureNotify/searchSumNotifyMaterialList`,'post',data)

120
src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue

@ -159,6 +159,41 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</el-tab-pane> </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> </el-tabs>
@ -171,6 +206,7 @@
searchNotifyHeader searchNotifyHeader
,searchNotifyOrderList ,searchNotifyOrderList
,searchNotifyMaterialList ,searchNotifyMaterialList
,searchSumNotifyMaterialList
}from "@/api/orderIssure/soIssueNotify.js" }from "@/api/orderIssure/soIssueNotify.js"
import Chooselist from '@/views/modules/common/Chooselist' import Chooselist from '@/views/modules/common/Chooselist'
export default { export default {
@ -185,6 +221,7 @@
dataList: [], dataList: [],
dataList2: [], dataList2: [],
dataList3: [], dataList3: [],
dataList4: [],
addOrUpdateVisible:false, addOrUpdateVisible:false,
searchData: { searchData: {
page: 1, page: 1,
@ -654,6 +691,77 @@
columnWidth: 80 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: { dataRole: {
partTypeDesc: [ partTypeDesc: [
{ {
@ -742,12 +850,22 @@
this.dataList2 = []; this.dataList2 = [];
} }
}); });
}else {
}else if(this.activeName==='sub'){
searchNotifyMaterialList(this.currentRow).then(({data}) => { searchNotifyMaterialList(this.currentRow).then(({data}) => {
// //
if (data && data.code == 0) { if (data && data.code == 0) {
this.dataList3 = data.rows this.dataList3 = data.rows
} else {
this.dataList3 = [];
}
});
}else {
searchSumNotifyMaterialList(this.currentRow).then(({data}) => {
//
if (data && data.code == 0) {
this.dataList3 = data.rows
} else { } else {
this.dataList3 = []; this.dataList3 = [];
} }

Loading…
Cancel
Save