4 changed files with 1064 additions and 116 deletions
-
5src/api/ecss/ecss.js
-
50src/views/modules/ecss/codelnotify.vue
-
232src/views/modules/ecss/codelnotifyConfirm.vue
-
893src/views/modules/ecss/hsCode.vue
@ -0,0 +1,893 @@ |
|||||
|
<template> |
||||
|
<div class="mod-config"> |
||||
|
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;"> |
||||
|
<el-form-item :label="'BU:'"> |
||||
|
<el-select v-model="searchData.buNo" placeholder="请选择" > |
||||
|
<el-option label="全部" value=""></el-option> |
||||
|
<el-option |
||||
|
v-for = "i in buList" |
||||
|
:key = "i.buNo" |
||||
|
:label = "i.buDesc" |
||||
|
:value = "i.buNo"> |
||||
|
</el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item :label="'HS Code:'"> |
||||
|
<el-input v-model="searchData.hsCode" style="width: 120px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item :label="' '" > |
||||
|
<el-button @click="searchTable()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'查询'}}</el-button> |
||||
|
<el-button @click="addModelOpen()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'新增'}}</el-button> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
|
||||
|
<el-table |
||||
|
@row-click="changeData" |
||||
|
highlight-current-row |
||||
|
:height="height" |
||||
|
:data="dataList" |
||||
|
ref="mainTable" |
||||
|
border |
||||
|
v-loading="dataListLoading" |
||||
|
style="width: 100%;"> |
||||
|
<el-table-column |
||||
|
header-align="center" |
||||
|
align="center" |
||||
|
width="150" |
||||
|
fixed="left" |
||||
|
label="操作"> |
||||
|
<template slot-scope="scope"> |
||||
|
<a type="text" size="small" @click="addModelOpen(scope.row)">仓库确认</a> |
||||
|
|
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
v-for="(item,index) in columnList1" :key="index" |
||||
|
:sortable="item.columnSortable" |
||||
|
:prop="item.columnProp" |
||||
|
:header-align="item.headerAlign" |
||||
|
:show-overflow-tooltip="item.showOverflowTooltip" |
||||
|
:align="item.align" |
||||
|
:fixed="item.fixed==''?false:item.fixed" |
||||
|
:min-width="item.columnWidth" |
||||
|
:label="item.columnLabel"> |
||||
|
<template slot-scope="scope"> |
||||
|
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span> |
||||
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
||||
|
style="width: 100px; height: 80px"/></span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
|
||||
|
<el-pagination |
||||
|
@size-change="sizeChangeHandle" |
||||
|
@current-change="currentChangeHandle" |
||||
|
:current-page="pageIndex" |
||||
|
:page-sizes="[20, 50, 100, 1000]" |
||||
|
:page-size="pageSize" |
||||
|
:total="totalPage" |
||||
|
layout="total, sizes, prev, pager, next, jumper"> |
||||
|
</el-pagination> |
||||
|
<el-tabs style="font-size: 12px;min-height: 200px" class="customer-tab" v-model="activeName" type="border-card" @tab-click="tabClick" > |
||||
|
<el-tab-pane label="属性" name="detail"> |
||||
|
<el-table |
||||
|
:height="height" |
||||
|
:data="dataList2" |
||||
|
border |
||||
|
style="width: 100%;"> |
||||
|
<el-table-column |
||||
|
v-for="(item,index) in columnList2" :key="index" |
||||
|
:sortable="item.columnSortable" |
||||
|
:prop="item.columnProp" |
||||
|
:header-align="item.headerAlign" |
||||
|
:show-overflow-tooltip="item.showOverflowTooltip" |
||||
|
:align="item.align" |
||||
|
:fixed="item.fixed==''?false:item.fixed" |
||||
|
:min-width="item.columnWidth" |
||||
|
:label="item.columnLabel"> |
||||
|
<template slot-scope="scope"> |
||||
|
<span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span> |
||||
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<!-- <el-table-column--> |
||||
|
<!-- fixed="left"--> |
||||
|
<!-- header-align="center"--> |
||||
|
<!-- align="center"--> |
||||
|
<!-- width="100"--> |
||||
|
<!-- label="操作">--> |
||||
|
<!-- <template slot-scope="scope">--> |
||||
|
<!-- <a v-if="currentRow.notifyStatus==='已计划'" type="text" size="small" @click="openUpdateDetailModel(scope.row)">修改</a>--> |
||||
|
<!-- <a v-if="currentRow.notifyStatus==='已计划'" type="text" size="small" @click="deleteDelDetail(scope.row)">删除</a>--> |
||||
|
<!-- </template>--> |
||||
|
<!-- </el-table-column>--> |
||||
|
</el-table> |
||||
|
</el-tab-pane> |
||||
|
|
||||
|
</el-tabs> |
||||
|
|
||||
|
<el-dialog title="维护HSCode" :close-on-click-modal="false" v-drag :visible.sync="addModelFlag" width="500px"> |
||||
|
<el-form label-position="top" style="margin-left: 7px;margin-top: -5px;"> |
||||
|
<el-row :gutter="20"> |
||||
|
<el-col :span="8"> |
||||
|
<el-form-item :label="'BU:'"> |
||||
|
<el-select v-model="addModel.buNo" placeholder="请选择" :disabled="addModel.addFlag===0" style="width: 100%"> |
||||
|
<el-option |
||||
|
v-for = "i in buList" |
||||
|
:key = "i.buNo" |
||||
|
:label = "i.buDesc" |
||||
|
:value = "i.buNo"> |
||||
|
</el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="8"> |
||||
|
<el-form-item :label="'HS Code'" > |
||||
|
<el-input v-model="addModel.hsCode" :disabled="addDisabledFlag" ></el-input> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="8"> |
||||
|
<el-form-item :label="'属性模板'" > |
||||
|
<el-input v-model="addModel.codeNo" ></el-input> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
</el-row> |
||||
|
<el-row :gutter="20"> |
||||
|
<el-col :span="24"> |
||||
|
<el-form-item :label="'备注'" > |
||||
|
<el-input v-model="addModel.remark" ></el-input> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
</el-row> |
||||
|
</el-form> |
||||
|
<el-footer style="height:40px;margin-top: 10px;text-align:center"> |
||||
|
<el-button type="primary" @click="saveHSCode()">保存</el-button> |
||||
|
<el-button type="primary" @click="addModelFlag=false">关闭</el-button> |
||||
|
</el-footer> |
||||
|
</el-dialog> |
||||
|
|
||||
|
|
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import {} from "@/api/sysLanguage.js" |
||||
|
import { |
||||
|
searchHsCodeData, |
||||
|
saveHSCodeData, |
||||
|
}from "@/api/ecss/ecss.js" |
||||
|
import {getAllBuList}from '@/api/factory/site.js' |
||||
|
export default { |
||||
|
name: "null", |
||||
|
components:{ |
||||
|
|
||||
|
}, |
||||
|
data() { |
||||
|
return { |
||||
|
pageIndex: 1, |
||||
|
pageSize: 100, |
||||
|
totalPage: 0, |
||||
|
height: 200, |
||||
|
buList:[], |
||||
|
dataList:[], |
||||
|
dataList2:[], |
||||
|
dataListLoading: false, |
||||
|
searchData: { |
||||
|
page: 1, |
||||
|
limit: 100, |
||||
|
buNo:'', |
||||
|
hsCode:'', |
||||
|
codeNo:'', |
||||
|
username:this.$store.state.user.name, |
||||
|
}, |
||||
|
buttons:{ |
||||
|
search:'查询', |
||||
|
}, |
||||
|
addModelFlag:false, |
||||
|
addModel:{ |
||||
|
addFlag:0, |
||||
|
site:'', |
||||
|
buNo:'', |
||||
|
hsCode:'', |
||||
|
codeNo:'', |
||||
|
remark:'', |
||||
|
}, |
||||
|
addDisabledFlag:true, |
||||
|
activeName:'detail', |
||||
|
columnList1: [ |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 801003, |
||||
|
serialNumber: '801003Table1BuDesc', |
||||
|
tableId: "801003Table1", |
||||
|
tableName: "HsCode基础信息", |
||||
|
columnProp: "buDesc", |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: "BU", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 80 |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 801003, |
||||
|
serialNumber: '801003Table1HsCode', |
||||
|
tableId: "801003Table1", |
||||
|
tableName: "HsCode基础信息", |
||||
|
columnProp: "hsCode", |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: "HS Code", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 100 |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 801003, |
||||
|
serialNumber: '801003Table1CodeNo', |
||||
|
tableId: "801003Table1", |
||||
|
tableName: "HsCode基础信息", |
||||
|
columnProp: "codeNo", |
||||
|
headerAlign: "center", |
||||
|
align: "center", |
||||
|
columnLabel: "模板编码", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 100 |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 801003, |
||||
|
serialNumber: '801003Table1CreateBy', |
||||
|
tableId: "801003Table1", |
||||
|
tableName: "HsCode基础信息", |
||||
|
columnProp: "createBy", |
||||
|
headerAlign: "center", |
||||
|
align: "center", |
||||
|
columnLabel: "创建人", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 100 |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 801003, |
||||
|
serialNumber: '801003Table1CreateDate', |
||||
|
tableId: "801003Table1", |
||||
|
tableName: "HsCode基础信息", |
||||
|
columnProp: "createDate", |
||||
|
headerAlign: "center", |
||||
|
align: "center", |
||||
|
columnLabel: "创建日期", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 120 |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 801003, |
||||
|
serialNumber: '801003Table1UpdateBy', |
||||
|
tableId: "801003Table1", |
||||
|
tableName: "HsCode基础信息", |
||||
|
columnProp: "updateBy", |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: "修改人", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 100 |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 801003, |
||||
|
serialNumber: '801003Table1UpdateDate', |
||||
|
tableId: "801003Table1", |
||||
|
tableName: "HsCode基础信息", |
||||
|
columnProp: "updateDate", |
||||
|
headerAlign: "center", |
||||
|
align: "center", |
||||
|
columnLabel: "修改日期", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 100 |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 801003, |
||||
|
serialNumber: '801003Table1Remark', |
||||
|
tableId: "801003Table1", |
||||
|
tableName: "HsCode基础信息", |
||||
|
columnProp: "remark", |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: "备注", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 300 |
||||
|
}, |
||||
|
], |
||||
|
columnList2: [ |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 801003, |
||||
|
serialNumber: '801003Table2ItemNo', |
||||
|
tableId: "801003Table2", |
||||
|
tableName: "关务系统发货通知单明细", |
||||
|
columnProp: "itemNo", |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: "行号", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 80 |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 801003, |
||||
|
serialNumber: '801003Table2PartNo', |
||||
|
tableId: "801003Table2", |
||||
|
tableName: "关务系统发货通知单明细", |
||||
|
columnProp: "partNo", |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: "PN", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 100 |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 801003, |
||||
|
serialNumber: '801003Table2PartDescription', |
||||
|
tableId: "801003Table2", |
||||
|
tableName: "关务系统发货通知单明细", |
||||
|
columnProp: "partDescription", |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: "Description", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 100 |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 801003, |
||||
|
serialNumber: '801003Table2Qty', |
||||
|
tableId: "801003Table2", |
||||
|
tableName: "关务系统发货通知单明细", |
||||
|
columnProp: "qty", |
||||
|
headerAlign: "center", |
||||
|
align: "right", |
||||
|
columnLabel: "Qty (pcs)", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 100 |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 801003, |
||||
|
serialNumber: '801003Table2SalesOrder', |
||||
|
tableId: "801003Table2", |
||||
|
tableName: "关务系统发货通知单明细", |
||||
|
columnProp: "salesOrder", |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: "销售订单号", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 100 |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 801003, |
||||
|
serialNumber: '801003Table2CustomerPO', |
||||
|
tableId: "801003Table2", |
||||
|
tableName: "关务系统发货通知单明细", |
||||
|
columnProp: "customerPO", |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: "客户采购单号", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 100 |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 801003, |
||||
|
serialNumber: '801003Table2Version', |
||||
|
tableId: "801003Table2", |
||||
|
tableName: "关务系统发货通知单明细", |
||||
|
columnProp: "version", |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: "Version", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 100 |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 801003, |
||||
|
serialNumber: '801003Table2Status', |
||||
|
tableId: "801003Table2", |
||||
|
tableName: "关务系统发货通知单明细", |
||||
|
columnProp: "status", |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: "Status", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 100 |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 801003, |
||||
|
serialNumber: '801003Table2Family', |
||||
|
tableId: "801003Table2", |
||||
|
tableName: "关务系统发货通知单明细", |
||||
|
columnProp: "family", |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: "Family", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 100 |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 801003, |
||||
|
serialNumber: '801003Table2Lt', |
||||
|
tableId: "801003Table2", |
||||
|
tableName: "关务系统发货通知单明细", |
||||
|
columnProp: "lt", |
||||
|
headerAlign: "center", |
||||
|
align: "right", |
||||
|
columnLabel: "LT (wks)", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 100 |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 801003, |
||||
|
serialNumber: '801003Table2CmcComment', |
||||
|
tableId: "801003Table2", |
||||
|
tableName: "关务系统发货通知单明细", |
||||
|
columnProp: "cmcComment", |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: "CMC Comment", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 100 |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 801003, |
||||
|
serialNumber: '801003Table2SaleType', |
||||
|
tableId: "801003Table2", |
||||
|
tableName: "关务系统发货通知单明细", |
||||
|
columnProp: "saleType", |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: "内外销方式", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 100 |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 801003, |
||||
|
serialNumber: '801003Table2AwbBl', |
||||
|
tableId: "801003Table2", |
||||
|
tableName: "关务系统发货通知单明细", |
||||
|
columnProp: "awbBl", |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: "AWB/ BL#", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 100 |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 801003, |
||||
|
serialNumber: '801003Table2ShippingNumber', |
||||
|
tableId: "801003Table2", |
||||
|
tableName: "关务系统发货通知单明细", |
||||
|
columnProp: "shippingNumber", |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: "ShippingNumber", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 100 |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 801003, |
||||
|
serialNumber: '801003Table2ForwarderInfo', |
||||
|
tableId: "801003Table2", |
||||
|
tableName: "关务系统发货通知单明细", |
||||
|
columnProp: "forwarderInfo", |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: "Forwarder Info", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 100 |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 801003, |
||||
|
serialNumber: '801003Table2Currency', |
||||
|
tableId: "801003Table2", |
||||
|
tableName: "关务系统发货通知单明细", |
||||
|
columnProp: "currency", |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: "Currency", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 100 |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 801003, |
||||
|
serialNumber: '801003Table2Tp', |
||||
|
tableId: "801003Table2", |
||||
|
tableName: "关务系统发货通知单明细", |
||||
|
columnProp: "tp", |
||||
|
headerAlign: "center", |
||||
|
align: "right", |
||||
|
columnLabel: "TP", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 80 |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 801003, |
||||
|
serialNumber: '801003Table2TtlAmount', |
||||
|
tableId: "801003Table2", |
||||
|
tableName: "关务系统发货通知单明细", |
||||
|
columnProp: "ttlAmount", |
||||
|
headerAlign: "center", |
||||
|
align: "right", |
||||
|
columnLabel: "TTL Amount", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 80 |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 801003, |
||||
|
serialNumber: '801003Table2SumPrice', |
||||
|
tableId: "801003Table2", |
||||
|
tableName: "关务系统发货通知单明细", |
||||
|
columnProp: "sumPrice", |
||||
|
headerAlign: "center", |
||||
|
align: "right", |
||||
|
columnLabel: "价税合计", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 80 |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 801003, |
||||
|
serialNumber: '801003Table2So', |
||||
|
tableId: "801003Table2", |
||||
|
tableName: "关务系统发货通知单明细", |
||||
|
columnProp: "so", |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: "SO", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 100 |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 801003, |
||||
|
serialNumber: '801003Table2Upc', |
||||
|
tableId: "801003Table2", |
||||
|
tableName: "关务系统发货通知单明细", |
||||
|
columnProp: "upc", |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: "UPC", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 100 |
||||
|
}, |
||||
|
// { |
||||
|
// userId: this.$store.state.user.name, |
||||
|
// functionId: 801003, |
||||
|
// serialNumber: '801003Table2ErpDelItemNo', |
||||
|
// tableId: "801003Table2", |
||||
|
// tableName: "关务系统发货通知单明细", |
||||
|
// columnProp: "erpDelItemNo", |
||||
|
// headerAlign: "center", |
||||
|
// align: "right", |
||||
|
// columnLabel: "ERP发货单行号", |
||||
|
// columnHidden: false, |
||||
|
// columnImage: false, |
||||
|
// columnSortable: false, |
||||
|
// sortLv: 0, |
||||
|
// status: true, |
||||
|
// fixed: '', |
||||
|
// columnWidth: 60 |
||||
|
// }, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 801003, |
||||
|
serialNumber: '801003Table2Remark', |
||||
|
tableId: "801003Table2", |
||||
|
tableName: "关务系统发货通知单明细", |
||||
|
columnProp: "remark", |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: "备注", |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 300 |
||||
|
}, |
||||
|
], |
||||
|
currentRow:{}, |
||||
|
} |
||||
|
}, |
||||
|
mounted() { |
||||
|
this.$nextTick(() => { |
||||
|
this.height = (window.innerHeight - 240)/2; |
||||
|
}) |
||||
|
}, |
||||
|
methods: { |
||||
|
// 每页数 |
||||
|
sizeChangeHandle (val) { |
||||
|
this.pageSize = val |
||||
|
this.pageIndex = 1 |
||||
|
this.searchTable() |
||||
|
}, |
||||
|
// 当前页 |
||||
|
currentChangeHandle (val) { |
||||
|
this.pageIndex = val |
||||
|
this.searchTable() |
||||
|
}, |
||||
|
searchTable(){ |
||||
|
this.searchData.limit = this.pageSize |
||||
|
this.searchData.page = this.pageIndex |
||||
|
searchHsCodeData(this.searchData).then(({data}) => { |
||||
|
//区分请求成功和失败的状况 |
||||
|
if (data && data.code == 0) { |
||||
|
this.dataList = data.page.list |
||||
|
this.pageIndex = data.page.currPage |
||||
|
this.pageSize = data.page.pageSize |
||||
|
this.totalPage = data.page.totalCount |
||||
|
if(this.dataList.length>0){ |
||||
|
this.$refs.mainTable.setCurrentRow(this.dataList[0]); |
||||
|
this.changeData(this.dataList[0]) |
||||
|
}else { |
||||
|
this.changeData(null) |
||||
|
} |
||||
|
} else { |
||||
|
this.dataList = []; |
||||
|
} |
||||
|
}); |
||||
|
}, |
||||
|
changeData(row){ |
||||
|
this.currentRow = JSON.parse(JSON.stringify(row)); |
||||
|
this.headerData=row; |
||||
|
this.refreshCurrentTabTable (); |
||||
|
}, |
||||
|
refreshCurrentTabTable(){ |
||||
|
if(this.currentRow===''||this.currentRow===null){ |
||||
|
this.currentRow={site:'',hsCode:''} |
||||
|
} |
||||
|
if(this.activeName==='detail'){ |
||||
|
// searchEcssCoDelNotifyDetail(this.currentRow).then(({data}) => { |
||||
|
// //区分请求成功和失败的状况 |
||||
|
// if (data && data.code == 0) { |
||||
|
// this.dataList2 = data.rows |
||||
|
// |
||||
|
// } else { |
||||
|
// this.dataList2 = []; |
||||
|
// } |
||||
|
// }); |
||||
|
} |
||||
|
}, |
||||
|
tabClick (tab, event) { |
||||
|
// 刷新列表数据 |
||||
|
this.refreshCurrentTabTable() |
||||
|
}, |
||||
|
|
||||
|
getBu () { |
||||
|
let tempData = { |
||||
|
username: this.$store.state.user.name, |
||||
|
} |
||||
|
getAllBuList(tempData).then(({data}) => { |
||||
|
if (data.code === 0) { |
||||
|
this.buList = data.rows |
||||
|
} |
||||
|
}) |
||||
|
}, |
||||
|
addModelOpen(){ |
||||
|
this.addDisabledFlag=true |
||||
|
this.addModel={ |
||||
|
addFlag:0, |
||||
|
site:'', |
||||
|
buNo:'', |
||||
|
hsCode:'', |
||||
|
codeNo:'', |
||||
|
remark:'', |
||||
|
} |
||||
|
this.addModelFlag=true |
||||
|
}, |
||||
|
saveHSCode(){ |
||||
|
if(this.addModel.buNo==null||this.addModel.buNo===''){ |
||||
|
this.$alert('请选择BU!', '错误', { |
||||
|
confirmButtonText: '确定' |
||||
|
}) |
||||
|
return false |
||||
|
} |
||||
|
if(this.addModel.hsCode==null||this.addModel.hsCode===''){ |
||||
|
this.$alert('请输入HSCode!', '错误', { |
||||
|
confirmButtonText: '确定' |
||||
|
}) |
||||
|
return false |
||||
|
} |
||||
|
if(this.addModel.codeNo==null||this.addModel.codeNo===''){ |
||||
|
this.$alert('请选择属性模板!', '错误', { |
||||
|
confirmButtonText: '确定' |
||||
|
}) |
||||
|
return false |
||||
|
} |
||||
|
saveHSCodeData(this.addModel).then(({data}) => { |
||||
|
if (data && data.code === 0) { |
||||
|
this.searchTable() |
||||
|
this.addModelFlag = false |
||||
|
this.$message({ |
||||
|
message: '操作成功', |
||||
|
type: 'success', |
||||
|
duration: 1500, |
||||
|
onClose: () => {} |
||||
|
}) |
||||
|
} else { |
||||
|
this.$alert(data.msg, '错误', { |
||||
|
confirmButtonText: '确定' |
||||
|
}) |
||||
|
} |
||||
|
}) |
||||
|
}, |
||||
|
}, |
||||
|
created() { |
||||
|
this.getBu () |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style scoped> |
||||
|
|
||||
|
</style> |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue