Browse Source

导出进出口总表

ecss-tx
han\hanst 2 months ago
parent
commit
a2739c8de2
  1. 13
      src/views/modules/ecss/codelnotify.vue
  2. 4
      src/views/modules/ecss/declaration.vue

13
src/views/modules/ecss/codelnotify.vue

@ -73,6 +73,9 @@
<el-form-item label=" "> <el-form-item label=" ">
<el-button @click="exportGoodsList()" type="primary" style="margin-left: 2px">{{'导出出口货物委托书'}}</el-button> <el-button @click="exportGoodsList()" type="primary" style="margin-left: 2px">{{'导出出口货物委托书'}}</el-button>
</el-form-item> </el-form-item>
<!-- <el-form-item label=" ">
<el-button @click="exportImportExportSummary()" type="primary" style="margin-left: 2px">{{'导出进出口总表'}}</el-button>
</el-form-item>-->
<el-form-item label=" "> <el-form-item label=" ">
<el-button @click="openCustomerInfoDialog()" type="primary" style="margin-left: 2px">{{'客户信息'}}</el-button> <el-button @click="openCustomerInfoDialog()" type="primary" style="margin-left: 2px">{{'客户信息'}}</el-button>
</el-form-item> </el-form-item>
@ -2888,6 +2891,16 @@
dropColumns: [],//dropColumns: ["netWeight"] dropColumns: [],//dropColumns: ["netWeight"]
}); });
}, },
/** 进出口总表导出:与当前查询条件一致,后台按 ReadyDate 月份插入黄色分隔行 */
exportImportExportSummary() {
const param = Object.assign({}, this.searchData, {
username: this.$store.state.user.name
})
const ts = new Date()
const pad = n => (n < 10 ? '0' + n : '' + n)
const fname = '进出口总表_' + ts.getFullYear() + pad(ts.getMonth() + 1) + pad(ts.getDate()) + pad(ts.getHours()) + pad(ts.getMinutes()) + pad(ts.getSeconds()) + '.xlsx'
ExportUtil.export('/ecss/coDel/downloadImportExportSummary', param, fname)
},
getSummaries(param) { getSummaries(param) {
const { columns } = param; const { columns } = param;
const sums = []; const sums = [];

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

@ -346,7 +346,7 @@
</el-row> </el-row>
</el-form> </el-form>
<el-table v-show="currentRow.buNo==='02-Hardtag' || currentRow.buNo==='04-MHM'"
<!-- <el-table v-show="currentRow.buNo==='02-Hardtag' || currentRow.buNo==='04-MHM'"
:height="240" :height="240"
:data="propertiesList" :data="propertiesList"
stripe stripe
@ -376,7 +376,7 @@
</el-select> </el-select>
</template> </template>
</el-table-column> </el-table-column>
</el-table>
</el-table>-->
<el-table v-show="currentRow.buNo==='03-RFID'" <el-table v-show="currentRow.buNo==='03-RFID'"
:height="180" :height="180"
:data="notifyPartDetailList" :data="notifyPartDetailList"

Loading…
Cancel
Save