Showing
7 changed files
with
76 additions
and
12 deletions
| ... | @@ -143,5 +143,46 @@ export function exportDeclareData(data) { | ... | @@ -143,5 +143,46 @@ export function exportDeclareData(data) { |
| 143 | }); | 143 | }); |
| 144 | } | 144 | } |
| 145 | 145 | ||
| 146 | +//获取客户列表 | ||
| 147 | +export function getCustomerList(data) { | ||
| 148 | + return request({ | ||
| 149 | + url: '/bus-customer/customers/getCustomerList', | ||
| 150 | + method: 'post', | ||
| 151 | + data:{ | ||
| 152 | + "pageIndex": 1, | ||
| 153 | + "pageSize": 1000, | ||
| 154 | + }, | ||
| 155 | + }) | ||
| 156 | +} | ||
| 157 | + | ||
| 158 | +//获取口岸表数据 | ||
| 159 | +export function getPortList(data) { | ||
| 160 | + return request({ | ||
| 161 | + url: '/bus-customer/portInfo/getPortList', | ||
| 162 | + method: 'post', | ||
| 163 | + data:{ | ||
| 164 | + "pageIndex": 1, | ||
| 165 | + "pageSize": 1000, | ||
| 166 | + }, | ||
| 167 | + }) | ||
| 168 | +} | ||
| 169 | + | ||
| 170 | +//获取申报信息 | ||
| 171 | +export function getDeclareData(data) { | ||
| 172 | + return request({ | ||
| 173 | + url: '/bus-customer/declareData/get/'+data.declareId, | ||
| 174 | + method: 'get', | ||
| 175 | + params: data, | ||
| 176 | + }) | ||
| 177 | +} | ||
| 178 | +//更新申报信息 | ||
| 179 | +export function updateDeclareData(data) { | ||
| 180 | + return request({ | ||
| 181 | + url: '/bus-customer/declareData/update', | ||
| 182 | + method: 'post', | ||
| 183 | + data | ||
| 184 | + }) | ||
| 185 | +} | ||
| 186 | + | ||
| 146 | 187 | ||
| 147 | 188 | ... | ... |
| ... | @@ -303,7 +303,9 @@ export default { | ... | @@ -303,7 +303,9 @@ export default { |
| 303 | }, | 303 | }, |
| 304 | pageSizes: { | 304 | pageSizes: { |
| 305 | type: Array, | 305 | type: Array, |
| 306 | - default: [10, 20, 30, 40, 50, 100], | 306 | + default(){ |
| 307 | + return [10, 20, 30, 40, 50, 100] | ||
| 308 | + }, | ||
| 307 | }, | 309 | }, |
| 308 | expandRowKeys: { | 310 | expandRowKeys: { |
| 309 | type: Array, | 311 | type: Array, |
| ... | @@ -436,8 +438,10 @@ export default { | ... | @@ -436,8 +438,10 @@ export default { |
| 436 | } | 438 | } |
| 437 | this.$nextTick(() => { | 439 | this.$nextTick(() => { |
| 438 | if (table) { | 440 | if (table) { |
| 441 | + console.log('debug==',tableBody.clientHeight,this.maxHeight); | ||
| 442 | + | ||
| 439 | table.style.maxHeight = this.maxHeight; | 443 | table.style.maxHeight = this.maxHeight; |
| 440 | - tableBody.clientHeight >= this.maxHeight | 444 | + tableBody.clientHeight >= parseInt(this.maxHeight) |
| 441 | ? (table.style.height = this.maxHeight - 40 + "px") | 445 | ? (table.style.height = this.maxHeight - 40 + "px") |
| 442 | : (table.style.height = tableBody.clientHeight + "px"); | 446 | : (table.style.height = tableBody.clientHeight + "px"); |
| 443 | this.$refs.tables.doLayout(); | 447 | this.$refs.tables.doLayout(); | ... | ... |
| ... | @@ -24,7 +24,7 @@ router.beforeEach((to, from, next) => { | ... | @@ -24,7 +24,7 @@ router.beforeEach((to, from, next) => { |
| 24 | store.dispatch('GetInfo').then((res) => { | 24 | store.dispatch('GetInfo').then((res) => { |
| 25 | // if (res.success) { | 25 | // if (res.success) { |
| 26 | store.dispatch('GenerateRoutes').then(accessRoutes => { | 26 | store.dispatch('GenerateRoutes').then(accessRoutes => { |
| 27 | - store.dispatch("GetDict", ['DECLARE_F_FLAG', 'MEASUREMENT_UNIT', 'RECEIPT_STATUS', 'DECLARE_APPTYPE', 'CURRENCY', 'DECLARE_STATISTICS_FLAG', 'ORDER_DECLARATION_PARTY','APP_STATUS']); | 27 | + store.dispatch("GetDict", ['DECLARE_F_FLAG', 'MEASUREMENT_UNIT','PACKAGE_TYPE_CODE', 'RECEIPT_STATUS', 'DECLARE_APPTYPE', 'CURRENCY','COUNTRY_REGION_CODE', 'DECLARE_STATISTICS_FLAG', 'ORDER_DECLARATION_PARTY','APP_STATUS']); |
| 28 | // 根据roles权限生成可访问的路由表 | 28 | // 根据roles权限生成可访问的路由表 |
| 29 | router.addRoutes(accessRoutes) // 动态添加可访问路由表 | 29 | router.addRoutes(accessRoutes) // 动态添加可访问路由表 |
| 30 | next({ ...to, replace: true }) // hack方法 确保addRoutes已完成 | 30 | next({ ...to, replace: true }) // hack方法 确保addRoutes已完成 | ... | ... |
| ... | @@ -94,7 +94,13 @@ export const constantRoutes = [ | ... | @@ -94,7 +94,13 @@ export const constantRoutes = [ |
| 94 | name: 'ReportingData', | 94 | name: 'ReportingData', |
| 95 | meta: { title: '申报数据管理', icon: 'upload' } | 95 | meta: { title: '申报数据管理', icon: 'upload' } |
| 96 | }, | 96 | }, |
| 97 | - | 97 | + { |
| 98 | + path: '/editReportingData', | ||
| 99 | + component: (resolve) => require(['@/views/editReportingData/index'], resolve), | ||
| 100 | + hidden: true, | ||
| 101 | + name: 'EditReportingData', | ||
| 102 | + meta: { title: '申报数据编辑', icon: 'edit' } | ||
| 103 | + }, | ||
| 98 | ] | 104 | ] |
| 99 | }, | 105 | }, |
| 100 | { | 106 | { | ... | ... |
This diff is collapsed. Click to expand it.
src/views/editReportingData/index.vue
0 → 100644
This diff is collapsed. Click to expand it.
| ... | @@ -310,6 +310,13 @@ | ... | @@ -310,6 +310,13 @@ |
| 310 | </div> | 310 | </div> |
| 311 | </TablePopover> | 311 | </TablePopover> |
| 312 | </template> | 312 | </template> |
| 313 | + <template slot="optionColumn"> | ||
| 314 | + <el-table-column align="left" label="操作" width="100"> | ||
| 315 | + <template slot-scope="scope"> | ||
| 316 | + <el-button type="text" @click="update(scope.row)"> 修改 </el-button> | ||
| 317 | + </template> | ||
| 318 | + </el-table-column> | ||
| 319 | + </template> | ||
| 313 | </Table> | 320 | </Table> |
| 314 | <DialogVue | 321 | <DialogVue |
| 315 | :outerVisible="outerVisible" | 322 | :outerVisible="outerVisible" |
| ... | @@ -463,7 +470,7 @@ export default { | ... | @@ -463,7 +470,7 @@ export default { |
| 463 | exportDeclareLoading:false, | 470 | exportDeclareLoading:false, |
| 464 | }, | 471 | }, |
| 465 | textareaVisible: {}, | 472 | textareaVisible: {}, |
| 466 | - tableMaxheight: 653, | 473 | + tableMaxheight: null, |
| 467 | outerVisible: false, | 474 | outerVisible: false, |
| 468 | dropdownName: "一键申报", | 475 | dropdownName: "一键申报", |
| 469 | dropdownCode: "full", | 476 | dropdownCode: "full", |
| ... | @@ -477,7 +484,10 @@ export default { | ... | @@ -477,7 +484,10 @@ export default { |
| 477 | // this.getCancellationReasons() | 484 | // this.getCancellationReasons() |
| 478 | }, | 485 | }, |
| 479 | mounted() { | 486 | mounted() { |
| 480 | - this.tableMaxheight = window.innerHeight - 300; | 487 | + this.tableMaxheight = window.innerHeight - 355; |
| 488 | + window.addEventListener('resize',()=>{ | ||
| 489 | + this.tableMaxheight = window.innerHeight - 355; | ||
| 490 | + },false) | ||
| 481 | }, | 491 | }, |
| 482 | watch: { | 492 | watch: { |
| 483 | $route(val, oldval) { | 493 | $route(val, oldval) { |
| ... | @@ -639,10 +649,8 @@ export default { | ... | @@ -639,10 +649,8 @@ export default { |
| 639 | // } | 649 | // } |
| 640 | this.search(1); | 650 | this.search(1); |
| 641 | this.outerVisible = false; | 651 | this.outerVisible = false; |
| 642 | - this.$nextTick(()=>{ | 652 | + this.tableMaxheight = window.innerHeight - 355; |
| 643 | - window.location.reload() | 653 | + this.$forceUpdate() |
| 644 | - }) | ||
| 645 | - | ||
| 646 | }, | 654 | }, |
| 647 | popoverChange(val) { | 655 | popoverChange(val) { |
| 648 | console.log(val); | 656 | console.log(val); |
| ... | @@ -785,8 +793,13 @@ export default { | ... | @@ -785,8 +793,13 @@ export default { |
| 785 | cancelRevoke(){ | 793 | cancelRevoke(){ |
| 786 | this.loadings.dropDownLoading = false; | 794 | this.loadings.dropDownLoading = false; |
| 787 | this.revokeVisible = false | 795 | this.revokeVisible = false |
| 788 | - } | 796 | + }, |
| 789 | - | 797 | + update(val) { |
| 798 | + this.$router.push({ | ||
| 799 | + name: "EditReportingData", | ||
| 800 | + params: { data: val }, | ||
| 801 | + }); | ||
| 802 | + }, | ||
| 790 | 803 | ||
| 791 | }, | 804 | }, |
| 792 | }; | 805 | }; | ... | ... |
-
Please register or login to post a comment