Commit 1d1940a1 authored by jingnan's avatar jingnan 👀

ERP相关_站位计划维护配套需求单明细修改

parent 725cb947
...@@ -37,13 +37,13 @@ ...@@ -37,13 +37,13 @@
label="序号" label="序号"
align="center" align="center"
/> />
<el-table-column label="操作"> <!-- <el-table-column label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<span class="btn-icon-s" title="删除" @click="deleteOccupy(scope.row,props.row)"> <span class="btn-icon-s" title="删除" @click="deleteOccupy(scope.row,props.row)">
<img src="/icons/c-remove.png" alt=""> <img src="/icons/c-remove.png" alt="">
</span> </span>
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column <el-table-column
v-for="(item,index) in internalColumn" v-for="(item,index) in internalColumn"
:key="index" :key="index"
...@@ -69,13 +69,13 @@ ...@@ -69,13 +69,13 @@
:label="item.title" :label="item.title"
:min-width="item.minWidth" :min-width="item.minWidth"
/> />
<el-table-column label="其他库房详情" min-width="110"> <!-- <el-table-column label="其他库房详情" min-width="110">
<template slot-scope="scope"> <template slot-scope="scope">
<span class="link" @click="openDetails(scope,'otherStorageZoneItems')"> <span class="link" @click="openDetails(scope,'otherStorageZoneItems')">
{{ scope.row.otherCenterAmount }} {{ scope.row.otherCenterAmount }}
</span> </span>
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column label="其他物料占用详情" min-width="140"> <el-table-column label="其他物料占用详情" min-width="140">
<template slot-scope="scope"> <template slot-scope="scope">
<span class="link" @click="openDetails(scope,'otherMatchOccupyItems')"> <span class="link" @click="openDetails(scope,'otherMatchOccupyItems')">
...@@ -147,18 +147,18 @@ export default { ...@@ -147,18 +147,18 @@ export default {
{ 'title': '版本', 'key': 'elecHardwareConfPieceNo' } { 'title': '版本', 'key': 'elecHardwareConfPieceNo' }
], ],
internalColumn: [ internalColumn: [
{ 'title': '验收单编号', 'key': 'inventory.testNo' }, { 'title': '验收单编号', 'key': 'testNo' },
{ 'title': '库位', 'key': 'inventory.workunit' }, { 'title': '库位', 'key': 'workUnit' },
{ 'title': '分配数量', 'key': 'allocatedAmount' }, { 'title': '分配数量', 'key': 'allocatedAmount' },
{ 'title': '退库中数量', 'key': 'backAmount' }, { 'title': '退库中数量', 'key': 'backAmount' },
{ 'title': '已退库数量', 'key': 'backedAmount' }, { 'title': '已退库数量', 'key': 'backedAmount' },
{ 'title': '出库类型', 'key': 'outType', 'minWidth': 100 }, { 'title': '出库类型', 'key': 'outType', 'minWidth': 100 },
{ 'title': '批次号', 'key': 'inventory.lotNo' }, { 'title': '批次号', 'key': 'batchNumber' },
{ 'title': '序列号', 'key': 'inventory.serno' }, { 'title': '序列号', 'key': 'serNo' },
{ 'title': '入库时间', 'key': 'inventory.createTime' }, { 'title': '入库时间', 'key': 'inStorageTime' },
{ 'title': '状态', 'key': 'outStorageState' }, { 'title': '状态', 'key': 'state' },
{ 'title': '架次', 'key': 'inventory.sorties' }, { 'title': '架次', 'key': 'sorties' },
{ 'title': '版次', 'key': 'inventory.softConfPieceNo' } { 'title': '版次', 'key': 'versionNo' }
], ],
tableData: [], tableData: [],
dialogTitle: '', dialogTitle: '',
...@@ -188,24 +188,25 @@ export default { ...@@ -188,24 +188,25 @@ export default {
return resData return resData
}, },
tools() { tools() {
const data = [{ const data = [
name: '占用', // {
icon: '/icons/c-creatBook.png', // name: '占用',
handler: { // icon: '/icons/c-creatBook.png',
click: () => { // handler: {
this.HandleBeforeOccupy() // click: () => {
} // this.HandleBeforeOccupy()
} // }
}, // }
{ // },
name: '发起配套出库申请', // {
icon: '/icons/c-sensN.png', // name: '发起配套出库申请',
handler: { // icon: '/icons/c-sensN.png',
click: () => { // handler: {
this.handleSubmit() // click: () => {
} // this.handleSubmit()
} // }
}, // }
// },
{ {
name: this.hideMaterial ? '显示材料' : '隐藏材料', name: this.hideMaterial ? '显示材料' : '隐藏材料',
icon: '/icons/c-scan.png', icon: '/icons/c-scan.png',
...@@ -268,12 +269,7 @@ export default { ...@@ -268,12 +269,7 @@ export default {
get(`/ExtSupportingItem/searchTakeInfo?supportingItemId=${row.id}`).then(res => { get(`/ExtSupportingItem/searchTakeInfo?supportingItemId=${row.id}`).then(res => {
this.tableData.forEach((item, index) => { this.tableData.forEach((item, index) => {
if (item.id === row.id) { if (item.id === row.id) {
item.internalDataList = res.items.map(row => { item.internalDataList = res.items
row.outType = row.subTypeDisplayName.slice(0, 2)
row.backedAmount = row.backedAmount || 0
row.backAmount = row.backAmount || 0
return row
})
} }
}) })
}).catch(err => { }).catch(err => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment