Browse Source

创建报关单如果有品牌需要保存brand

master
han\hanst 5 days ago
parent
commit
e3a9ecb73c
  1. 8
      src/views/modules/ecss/createDeclaration.vue
  2. 23
      src/views/modules/ecss/declaration.vue

8
src/views/modules/ecss/createDeclaration.vue

@ -385,6 +385,14 @@
label="HS Code" label="HS Code"
min-width="80"> min-width="80">
</el-table-column> </el-table-column>
<el-table-column
v-if="currentRow.buNo !== '01-Label' && currentRow.buNo !== '03-RFID'"
prop="brand"
header-align="center"
align="left"
label="品牌"
min-width="100">
</el-table-column>
<el-table-column <el-table-column
prop="qty" prop="qty"
header-align="center" header-align="center"

23
src/views/modules/ecss/declaration.vue

@ -113,6 +113,7 @@
style="width: 100%;"> style="width: 100%;">
<el-table-column <el-table-column
v-for="(item,index) in columnList2" :key="index" v-for="(item,index) in columnList2" :key="index"
v-if="shouldShowDetailColumn(item)"
:sortable="item.columnSortable" :sortable="item.columnSortable"
:prop="item.columnProp" :prop="item.columnProp"
:header-align="item.headerAlign" :header-align="item.headerAlign"
@ -1716,6 +1717,24 @@
fixed: '', fixed: '',
columnWidth: 100 columnWidth: 100
}, },
{
userId: this.$store.state.user.name,
functionId: 801006,
serialNumber: '801006Table2HsCodeDesc',
tableId: "801006Table2",
tableName: "报关单子记录",
columnProp: "brand",
headerAlign: "center",
align: "left",
columnLabel: "品牌",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
},
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 801006, functionId: 801006,
@ -1869,6 +1888,10 @@
}) })
}, },
methods: { methods: {
shouldShowDetailColumn(item) {
const isLabelOrRfid = this.currentRow && (this.currentRow.buNo === '01-Label' || this.currentRow.buNo === '03-RFID')
return !(item.columnProp === 'brand' && isLabelOrRfid)
},
// //
sizeChangeHandle (val) { sizeChangeHandle (val) {
this.pageSize = val this.pageSize = val

Loading…
Cancel
Save