Browse Source

修改产品库存信息显示字段

pull/84/head
xuxiaoming 3 years ago
parent
commit
5314b72870
2 changed files with 8 additions and 7 deletions
  1. +4
    -4
      src/utils/allField.js
  2. +4
    -3
      src/views/productionPlanning/productInventory/index.vue

+ 4
- 4
src/utils/allField.js View File

@ -17,10 +17,10 @@ export function getColumnName(colName) {
}
// 下拉选择映射文本
export function mappingText(list, value, key, label) {
// console.log(list);
// console.log(value);
// console.log(key);
// console.log(label);
console.log(list);
console.log(value);
console.log(key);
console.log(label);
let text = value;
if (list && list.length) {
const item = list.find(e => e[key] == value);


+ 4
- 3
src/views/productionPlanning/productInventory/index.vue View File

@ -20,10 +20,11 @@
:show-overflow-tooltip="true"
>
<template #default="scope">
<span v-if="item === 'ArticleStock-ArtId'">{{
<!-- <span v-if="item === 'ArticleStock-ArtId'">{{
mappingText(articleList, scope.row["ArticleStock-ArtId"], 'Article-ArtId', 'Article-Descr1')
}}</span>
<span v-else>{{ scope.row[item] }}</span>
<span v-else>{{ scope.row[item] }}</span> -->
{{ scope.row[item] }}
</template>
</el-table-column>
</el-table>
@ -65,7 +66,7 @@ export default {
};
},
created(){
this.getArticleList()
// this.getArticleList()
},
mounted(){
this.getList();


Loading…
Cancel
Save