Browse Source

备品备件

java8
ruanqi 11 months ago
parent
commit
3071f8b809
  1. 5
      src/api/ecss/ecss.js
  2. 50
      src/views/modules/ecss/codelnotify.vue
  3. 232
      src/views/modules/ecss/codelnotifyConfirm.vue
  4. 893
      src/views/modules/ecss/hsCode.vue

5
src/api/ecss/ecss.js

@ -20,3 +20,8 @@ export const deleteEcssDelDetail= data => createAPI(`/ecss/coDel/deleteEcssDelDe
export const confirmEcssDel= data => createAPI(`/ecss/coDel/confirmEcssDel`,'post',data)
export const cancerConfirmEcssDel= data => createAPI(`/ecss/coDel/cancerConfirmEcssDel`,'post',data)
export const searchEcssCoDelNotifyHeaderForCK = data => createAPI(`/ecss/coDel/searchEcssCoDelNotifyHeaderForCK`,'post',data)
export const searchHsCodeData = data => createAPI(`/ecss/coDel/searchHsCodeData`,'post',data)
export const saveHSCodeData = data => createAPI(`/ecss/coDel/saveHSCodeData`,'post',data)

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

@ -49,6 +49,20 @@
<el-form-item :label="' '" >
<el-button @click="searchTable()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'查询'}}</el-button>
<el-button @click="importModel()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'导入'}}</el-button>
<download-excel
:fields="fields()"
:data="exportData"
type="xls"
:name="exportName"
:header="exportHeader"
:footer="exportFooter"
:fetch="createExportData"
:before-generate="startDownload"
:before-finish="finishDownload"
worksheet="导出信息"
class="el-button el-button--primary el-button--medium">
{{ '导出' }}
</download-excel>
</el-form-item>
</el-form>
@ -1114,6 +1128,12 @@
},
],
currentRow:{},
// start
exportData: [],
exportName: '发货通知单'+this.dayjs().format('YYYYMMDDHHmmss'),
exportHeader: ["发货通知单"],
exportFooter: [],
// end
}
},
mounted() {
@ -1348,6 +1368,36 @@
}
})
},
//excel
async createExportData() {
this.searchData.limit = -1
this.searchData.page = 1
await searchEcssCoDelNotifyHeader(this.searchData).then(({data}) => {
this.exportList= data.page.list;
})
return this.exportList;
},
startDownload() {
// this.exportData = this.dataList
},
finishDownload() {
},
fields() {
let json = "{"
this.columnList1.forEach((item, index) => {
if (index == this.columnList1.length - 1) {
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\""
} else {
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + ","
}
})
json += "}"
let s = eval("(" + json + ")")
return s
},
},
created() {
this.getBu ()

232
src/views/modules/ecss/codelnotifyConfirm.vue

@ -175,7 +175,7 @@
<script>
import {} from "@/api/sysLanguage.js"
import {
searchEcssCoDelNotifyHeader,
searchEcssCoDelNotifyHeaderForCK,
searchEcssCoDelNotifyDetail,
confirmEcssDel,
cancerConfirmEcssDel,
@ -227,9 +227,9 @@
columnList1: [
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table1BuDesc',
tableId: "801001Table1",
functionId: 801002,
serialNumber: '801002Table1BuDesc',
tableId: "801002Table1",
tableName: "关务系统发货通知单",
columnProp: "buDesc",
headerAlign: "center",
@ -245,9 +245,9 @@
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table1CmcInvoice',
tableId: "801001Table1",
functionId: 801002,
serialNumber: '801002Table1CmcInvoice',
tableId: "801002Table1",
tableName: "关务系统发货通知单",
columnProp: "cmcInvoice",
headerAlign: "center",
@ -263,9 +263,9 @@
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table1DelNo',
tableId: "801001Table1",
functionId: 801002,
serialNumber: '801002Table1DelNo',
tableId: "801002Table1",
tableName: "关务系统发货通知单",
columnProp: "delNo",
headerAlign: "center",
@ -281,9 +281,9 @@
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table1ReadyDate',
tableId: "801001Table1",
functionId: 801002,
serialNumber: '801002Table1ReadyDate',
tableId: "801002Table1",
tableName: "关务系统发货通知单",
columnProp: "readyDate",
headerAlign: "center",
@ -299,9 +299,9 @@
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table1CustomerName',
tableId: "801001Table1",
functionId: 801002,
serialNumber: '801002Table1CustomerName',
tableId: "801002Table1",
tableName: "关务系统发货通知单",
columnProp: "customerName",
headerAlign: "center",
@ -317,9 +317,9 @@
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table1ShippingMode',
tableId: "801001Table1",
functionId: 801002,
serialNumber: '801002Table1ShippingMode',
tableId: "801002Table1",
tableName: "关务系统发货通知单",
columnProp: "shippingMode",
headerAlign: "center",
@ -335,9 +335,9 @@
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table1Destination',
tableId: "801001Table1",
functionId: 801002,
serialNumber: '801002Table1Destination',
tableId: "801002Table1",
tableName: "关务系统发货通知单",
columnProp: "destination",
headerAlign: "center",
@ -353,9 +353,9 @@
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table1NotifyStatus',
tableId: "801001Table1",
functionId: 801002,
serialNumber: '801002Table1NotifyStatus',
tableId: "801002Table1",
tableName: "关务系统发货通知单",
columnProp: "notifyStatus",
headerAlign: "center",
@ -371,9 +371,9 @@
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table1NotifyDate',
tableId: "801001Table1",
functionId: 801002,
serialNumber: '801002Table1NotifyDate',
tableId: "801002Table1",
tableName: "关务系统发货通知单",
columnProp: "notifyDate",
headerAlign: "center",
@ -389,9 +389,9 @@
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table1ErpDelNo',
tableId: "801001Table1",
functionId: 801002,
serialNumber: '801002Table1ErpDelNo',
tableId: "801002Table1",
tableName: "关务系统发货通知单",
columnProp: "erpDelNo",
headerAlign: "center",
@ -407,9 +407,9 @@
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table1CreateBy',
tableId: "801001Table1",
functionId: 801002,
serialNumber: '801002Table1CreateBy',
tableId: "801002Table1",
tableName: "关务系统发货通知单",
columnProp: "createBy",
headerAlign: "center",
@ -425,9 +425,9 @@
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table1CreateDate',
tableId: "801001Table1",
functionId: 801002,
serialNumber: '801002Table1CreateDate',
tableId: "801002Table1",
tableName: "关务系统发货通知单",
columnProp: "createDate",
headerAlign: "center",
@ -443,9 +443,9 @@
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table1UpdateBy',
tableId: "801001Table1",
functionId: 801002,
serialNumber: '801002Table1UpdateBy',
tableId: "801002Table1",
tableName: "关务系统发货通知单",
columnProp: "updateBy",
headerAlign: "center",
@ -461,9 +461,9 @@
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table1UpdateDate',
tableId: "801001Table1",
functionId: 801002,
serialNumber: '801002Table1UpdateDate',
tableId: "801002Table1",
tableName: "关务系统发货通知单",
columnProp: "updateDate",
headerAlign: "center",
@ -479,9 +479,9 @@
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table1Remark',
tableId: "801001Table1",
functionId: 801002,
serialNumber: '801002Table1Remark',
tableId: "801002Table1",
tableName: "关务系统发货通知单",
columnProp: "remark",
headerAlign: "center",
@ -499,9 +499,9 @@
columnList2: [
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table2ItemNo',
tableId: "801001Table2",
functionId: 801002,
serialNumber: '801002Table2ItemNo',
tableId: "801002Table2",
tableName: "关务系统发货通知单明细",
columnProp: "itemNo",
headerAlign: "center",
@ -517,9 +517,9 @@
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table2PartNo',
tableId: "801001Table2",
functionId: 801002,
serialNumber: '801002Table2PartNo',
tableId: "801002Table2",
tableName: "关务系统发货通知单明细",
columnProp: "partNo",
headerAlign: "center",
@ -535,9 +535,9 @@
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table2PartDescription',
tableId: "801001Table2",
functionId: 801002,
serialNumber: '801002Table2PartDescription',
tableId: "801002Table2",
tableName: "关务系统发货通知单明细",
columnProp: "partDescription",
headerAlign: "center",
@ -553,9 +553,9 @@
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table2Qty',
tableId: "801001Table2",
functionId: 801002,
serialNumber: '801002Table2Qty',
tableId: "801002Table2",
tableName: "关务系统发货通知单明细",
columnProp: "qty",
headerAlign: "center",
@ -571,9 +571,9 @@
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table2SalesOrder',
tableId: "801001Table2",
functionId: 801002,
serialNumber: '801002Table2SalesOrder',
tableId: "801002Table2",
tableName: "关务系统发货通知单明细",
columnProp: "salesOrder",
headerAlign: "center",
@ -589,9 +589,9 @@
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table2CustomerPO',
tableId: "801001Table2",
functionId: 801002,
serialNumber: '801002Table2CustomerPO',
tableId: "801002Table2",
tableName: "关务系统发货通知单明细",
columnProp: "customerPO",
headerAlign: "center",
@ -607,9 +607,9 @@
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table2Version',
tableId: "801001Table2",
functionId: 801002,
serialNumber: '801002Table2Version',
tableId: "801002Table2",
tableName: "关务系统发货通知单明细",
columnProp: "version",
headerAlign: "center",
@ -625,9 +625,9 @@
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table2Status',
tableId: "801001Table2",
functionId: 801002,
serialNumber: '801002Table2Status',
tableId: "801002Table2",
tableName: "关务系统发货通知单明细",
columnProp: "status",
headerAlign: "center",
@ -643,9 +643,9 @@
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table2Family',
tableId: "801001Table2",
functionId: 801002,
serialNumber: '801002Table2Family',
tableId: "801002Table2",
tableName: "关务系统发货通知单明细",
columnProp: "family",
headerAlign: "center",
@ -661,9 +661,9 @@
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table2Lt',
tableId: "801001Table2",
functionId: 801002,
serialNumber: '801002Table2Lt',
tableId: "801002Table2",
tableName: "关务系统发货通知单明细",
columnProp: "lt",
headerAlign: "center",
@ -679,9 +679,9 @@
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table2CmcComment',
tableId: "801001Table2",
functionId: 801002,
serialNumber: '801002Table2CmcComment',
tableId: "801002Table2",
tableName: "关务系统发货通知单明细",
columnProp: "cmcComment",
headerAlign: "center",
@ -697,9 +697,9 @@
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table2SaleType',
tableId: "801001Table2",
functionId: 801002,
serialNumber: '801002Table2SaleType',
tableId: "801002Table2",
tableName: "关务系统发货通知单明细",
columnProp: "saleType",
headerAlign: "center",
@ -715,9 +715,9 @@
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table2AwbBl',
tableId: "801001Table2",
functionId: 801002,
serialNumber: '801002Table2AwbBl',
tableId: "801002Table2",
tableName: "关务系统发货通知单明细",
columnProp: "awbBl",
headerAlign: "center",
@ -733,9 +733,9 @@
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table2ShippingNumber',
tableId: "801001Table2",
functionId: 801002,
serialNumber: '801002Table2ShippingNumber',
tableId: "801002Table2",
tableName: "关务系统发货通知单明细",
columnProp: "shippingNumber",
headerAlign: "center",
@ -751,9 +751,9 @@
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table2ForwarderInfo',
tableId: "801001Table2",
functionId: 801002,
serialNumber: '801002Table2ForwarderInfo',
tableId: "801002Table2",
tableName: "关务系统发货通知单明细",
columnProp: "forwarderInfo",
headerAlign: "center",
@ -769,9 +769,9 @@
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table2Currency',
tableId: "801001Table2",
functionId: 801002,
serialNumber: '801002Table2Currency',
tableId: "801002Table2",
tableName: "关务系统发货通知单明细",
columnProp: "currency",
headerAlign: "center",
@ -787,9 +787,9 @@
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table2Tp',
tableId: "801001Table2",
functionId: 801002,
serialNumber: '801002Table2Tp',
tableId: "801002Table2",
tableName: "关务系统发货通知单明细",
columnProp: "tp",
headerAlign: "center",
@ -805,9 +805,9 @@
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table2TtlAmount',
tableId: "801001Table2",
functionId: 801002,
serialNumber: '801002Table2TtlAmount',
tableId: "801002Table2",
tableName: "关务系统发货通知单明细",
columnProp: "ttlAmount",
headerAlign: "center",
@ -823,9 +823,9 @@
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table2SumPrice',
tableId: "801001Table2",
functionId: 801002,
serialNumber: '801002Table2SumPrice',
tableId: "801002Table2",
tableName: "关务系统发货通知单明细",
columnProp: "sumPrice",
headerAlign: "center",
@ -841,9 +841,9 @@
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table2So',
tableId: "801001Table2",
functionId: 801002,
serialNumber: '801002Table2So',
tableId: "801002Table2",
tableName: "关务系统发货通知单明细",
columnProp: "so",
headerAlign: "center",
@ -859,9 +859,9 @@
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table2Upc',
tableId: "801001Table2",
functionId: 801002,
serialNumber: '801002Table2Upc',
tableId: "801002Table2",
tableName: "关务系统发货通知单明细",
columnProp: "upc",
headerAlign: "center",
@ -877,9 +877,9 @@
},
// {
// userId: this.$store.state.user.name,
// functionId: 801001,
// serialNumber: '801001Table2ErpDelItemNo',
// tableId: "801001Table2",
// functionId: 801002,
// serialNumber: '801002Table2ErpDelItemNo',
// tableId: "801002Table2",
// tableName: "",
// columnProp: "erpDelItemNo",
// headerAlign: "center",
@ -895,9 +895,9 @@
// },
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table2Remark',
tableId: "801001Table2",
functionId: 801002,
serialNumber: '801002Table2Remark',
tableId: "801002Table2",
tableName: "关务系统发货通知单明细",
columnProp: "remark",
headerAlign: "center",
@ -935,7 +935,7 @@
searchTable(){
this.searchData.limit = this.pageSize
this.searchData.page = this.pageIndex
searchEcssCoDelNotifyHeader(this.searchData).then(({data}) => {
searchEcssCoDelNotifyHeaderForCK(this.searchData).then(({data}) => {
//
if (data && data.code == 0) {
this.dataList = data.page.list

893
src/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>
Loading…
Cancel
Save