作者 小范

列表包装类型优化

@@ -119,6 +119,9 @@ @@ -119,6 +119,9 @@
119 prop="packingid" 119 prop="packingid"
120 label="包装类型" 120 label="包装类型"
121 width="80"> 121 width="80">
  122 + <template slot-scope="scope">
  123 + {{gettype(scope.row.packingid)}}
  124 + </template>
122 </el-table-column> 125 </el-table-column>
123 <el-table-column 126 <el-table-column
124 prop="custcode" 127 prop="custcode"
@@ -377,6 +380,7 @@ @@ -377,6 +380,7 @@
377 ExtNewinventroyrecord, 380 ExtNewinventroyrecord,
378 selectNewInventroyrecords 381 selectNewInventroyrecords
379 } from "../../api/consigner/station"; 382 } from "../../api/consigner/station";
  383 + import packge from '@/api/nmms/packge'
380 384
381 export default { 385 export default {
382 name: "Tabulation", 386 name: "Tabulation",
@@ -449,6 +453,7 @@ @@ -449,6 +453,7 @@
449 }], 453 }],
450 zancundata:[], 454 zancundata:[],
451 formLabelWidth: '80px', 455 formLabelWidth: '80px',
  456 + packgeOptions:packge,
452 rules: { 457 rules: {
453 userName: [ 458 userName: [
454 // { required: true, message: '请输入申请人', trigger: 'blur' }, 459 // { required: true, message: '请输入申请人', trigger: 'blur' },
@@ -471,6 +476,13 @@ @@ -471,6 +476,13 @@
471 } 476 }
472 }, 477 },
473 methods:{ 478 methods:{
  479 + gettype(e){
  480 + for (var i = 0; i < this.packgeOptions.length; i++) {
  481 + if (this.packgeOptions[i].code == e) { //dictValue,dictLabel保持和上面定义一致
  482 + return this.packgeOptions[i].name;
  483 + }
  484 + }
  485 + },
474 getList() { 486 getList() {
475 const _this = this 487 const _this = this
476 selectNewInventroyrecords(this.tabulationInfo).then((response) => { 488 selectNewInventroyrecords(this.tabulationInfo).then((response) => {