作者 小范

列表包装类型优化

... ... @@ -119,6 +119,9 @@
prop="packingid"
label="包装类型"
width="80">
<template slot-scope="scope">
{{gettype(scope.row.packingid)}}
</template>
</el-table-column>
<el-table-column
prop="custcode"
... ... @@ -377,6 +380,7 @@
ExtNewinventroyrecord,
selectNewInventroyrecords
} from "../../api/consigner/station";
import packge from '@/api/nmms/packge'
export default {
name: "Tabulation",
... ... @@ -449,6 +453,7 @@
}],
zancundata:[],
formLabelWidth: '80px',
packgeOptions:packge,
rules: {
userName: [
// { required: true, message: '请输入申请人', trigger: 'blur' },
... ... @@ -471,6 +476,13 @@
}
},
methods:{
gettype(e){
for (var i = 0; i < this.packgeOptions.length; i++) {
if (this.packgeOptions[i].code == e) { //dictValue,dictLabel保持和上面定义一致
return this.packgeOptions[i].name;
}
}
},
getList() {
const _this = this
selectNewInventroyrecords(this.tabulationInfo).then((response) => {
... ...