|
|
@@ -25,23 +25,23 @@
|
|
|
style="width: 100%"
|
|
|
class="table-headermd"
|
|
|
:span-method="objectSpanMethod">
|
|
|
- <el-table-column prop="collectionName" label="物料类型" width="180">
|
|
|
+ <el-table-column prop="collectionName" label="物料类型" width="180" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span class="tipTitle" @click="tipTitle(scope.row.signDictype)">{{
|
|
|
scope.row.signDictype
|
|
|
}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="collectionName" label="物料名称" width="180">
|
|
|
+ <el-table-column prop="collectionName" label="物料名称" width="180" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span class="tipTitle" @click="tipTitle(scope.row.collectionName)">{{
|
|
|
scope.row.collectionName
|
|
|
}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="inventoryNum" width="180" label="库存" />
|
|
|
- <el-table-column prop="yfNum" width="200" label="应发本数" />
|
|
|
- <el-table-column prop="address">
|
|
|
+ <el-table-column prop="inventoryNum" width="180" label="库存" align="center" />
|
|
|
+ <el-table-column prop="yfNum" key="yfNum" width="200" v-if="yfNumFlage" label="应发本数" />
|
|
|
+ <el-table-column prop="address" align="center">
|
|
|
<template slot="header">
|
|
|
<span>发放量</span>
|
|
|
</template>
|
|
|
@@ -355,6 +355,7 @@ export default {
|
|
|
inspectionType: '',
|
|
|
equipmentCode: '',
|
|
|
taskPhotoRecognitionResult: null,
|
|
|
+ yfNumFlage: false,
|
|
|
};
|
|
|
},
|
|
|
activated() {
|
|
|
@@ -522,6 +523,8 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
this.tableData1 = collectionItemLists;
|
|
|
+ let yfNumArr = this.tableData1.filter((val) => val.yfNum);
|
|
|
+ this.yfNumFlage = yfNumArr.length ? true : false;
|
|
|
}
|
|
|
});
|
|
|
},
|