Browse Source

备品备件

java8
ruanqi 11 months ago
parent
commit
40a9ecdfb1
  1. 2
      src/api/ecss/ecss.js
  2. 452
      src/views/modules/ecss/codelnotify.vue

2
src/api/ecss/ecss.js

@ -3,3 +3,5 @@ import { createAPI } from "@/utils/httpRequest.js";
export const saveEcssCoDelNotifyByExcel = data => createAPI(`/ecss/coDel/saveEcssCoDelNotifyByExcel`,'post',data) export const saveEcssCoDelNotifyByExcel = data => createAPI(`/ecss/coDel/saveEcssCoDelNotifyByExcel`,'post',data)
export const searchEcssCoDelNotifyHeader = data => createAPI(`/ecss/coDel/searchEcssCoDelNotifyHeader`,'post',data)
export const searchEcssCoDelNotifyDetail = data => createAPI(`/ecss/coDel/searchEcssCoDelNotifyDetail`,'post',data)

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

@ -6,8 +6,11 @@
</el-form> </el-form>
<el-table <el-table
@row-click="changeData"
highlight-current-row
:height="height" :height="height"
:data="dataList" :data="dataList"
ref="mainTable"
border border
v-loading="dataListLoading" v-loading="dataListLoading"
style="width: 100%;"> style="width: 100%;">
@ -15,14 +18,17 @@
header-align="center" header-align="center"
align="center" align="center"
width="150" width="150"
fixed="left"
label="操作"> label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<a type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</a>
<a type="text" size="small" @click="deleteHandle(scope.row.id)">删除</a>
<a type="text" size="small" @click="updateModel(scope.row)">修改</a>
<a type="text" size="small" @click="addOrUpdateHandle(scope.row)">下达</a>
<a type="text" size="small" @click="addOrUpdateHandle(scope.row)">仓库确认</a>
<a type="text" size="small" @click="deleteHandle(scope.row)">删除</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
v-for="(item,index) in columnList" :key="index"
v-for="(item,index) in columnList1" :key="index"
:sortable="item.columnSortable" :sortable="item.columnSortable"
:prop="item.columnProp" :prop="item.columnProp"
:header-align="item.headerAlign" :header-align="item.headerAlign"
@ -47,17 +53,56 @@
:total="totalPage" :total="totalPage"
layout="total, sizes, prev, pager, next, jumper"> layout="total, sizes, prev, pager, next, jumper">
</el-pagination> </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 type="text" size="small" @click="deleteNotifySOS(scope.row)">删除</a>
</template>
</el-table-column>
</el-table>
</el-tab-pane>
</el-tabs>
<!-- 导入 --> <!-- 导入 -->
<del-upload-excel ref="delUploadExcel" @refreshPageTables="searchTable" v-drag></del-upload-excel>
<del-upload-excel ref="delUploadExcel" @refreshTable="searchTable" v-drag></del-upload-excel>
</div> </div>
</template> </template>
<script> <script>
import delUploadExcel from "./del_upload_excel.vue"; import delUploadExcel from "./del_upload_excel.vue";
import {} from "@/api/sysLanguage.js" import {} from "@/api/sysLanguage.js"
import {
searchEcssCoDelNotifyHeader,
searchEcssCoDelNotifyDetail,
}from "@/api/ecss/ecss.js"
export default { export default {
name: "null", name: "null",
components:{ components:{
@ -70,6 +115,7 @@
totalPage: 0, totalPage: 0,
height: 200, height: 200,
dataList:[], dataList:[],
dataList2:[],
dataListLoading: false, dataListLoading: false,
searchData: { searchData: {
page: 1, page: 1,
@ -80,7 +126,8 @@
buttons:{ buttons:{
search:'查询', search:'查询',
}, },
columnList: [
activeName:'detail',
columnList1: [
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 801001, functionId: 801001,
@ -125,7 +172,7 @@
tableName: "关务系统发货通知单", tableName: "关务系统发货通知单",
columnProp: "delNo", columnProp: "delNo",
headerAlign: "center", headerAlign: "center",
align: "left",
align: "center",
columnLabel: "发货通知单号", columnLabel: "发货通知单号",
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
@ -133,36 +180,36 @@
sortLv: 0, sortLv: 0,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 80
columnWidth: 110
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 801001, functionId: 801001,
serialNumber: '801001Table1ItemNo',
serialNumber: '801001Table1ReadyDate',
tableId: "801001Table1", tableId: "801001Table1",
tableName: "关务系统发货通知单", tableName: "关务系统发货通知单",
columnProp: "itemNo",
columnProp: "readyDate",
headerAlign: "center", headerAlign: "center",
align: "left",
columnLabel: "行号",
align: "center",
columnLabel: "ReadyDate",
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
sortLv: 0, sortLv: 0,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 80
columnWidth: 100
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 801001, functionId: 801001,
serialNumber: '801001Table1NotifyDate',
serialNumber: '801001Table1CustomerName',
tableId: "801001Table1", tableId: "801001Table1",
tableName: "关务系统发货通知单", tableName: "关务系统发货通知单",
columnProp: "notifyDate",
columnProp: "customerName",
headerAlign: "center", headerAlign: "center",
align: "center",
columnLabel: "发货日期",
align: "left",
columnLabel: "客户名称",
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -174,13 +221,13 @@
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 801001, functionId: 801001,
serialNumber: '801001Table1NotifyStatus',
serialNumber: '801001Table1ShippingMode',
tableId: "801001Table1", tableId: "801001Table1",
tableName: "关务系统发货通知单", tableName: "关务系统发货通知单",
columnProp: "notifyStatus",
columnProp: "shippingMode",
headerAlign: "center", headerAlign: "center",
align: "left", align: "left",
columnLabel: "通知单状态",
columnLabel: "ShippingMode",
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -192,13 +239,13 @@
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 801001, functionId: 801001,
serialNumber: '801001Table1SalesOrder',
serialNumber: '801001Table1Destination',
tableId: "801001Table1", tableId: "801001Table1",
tableName: "关务系统发货通知单", tableName: "关务系统发货通知单",
columnProp: "salesOrder",
columnProp: "destination",
headerAlign: "center", headerAlign: "center",
align: "left", align: "left",
columnLabel: "销售订单号",
columnLabel: "Destination",
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -210,135 +257,173 @@
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 801001, functionId: 801001,
serialNumber: '801001Table1Line',
serialNumber: '801001Table1NotifyStatus',
tableId: "801001Table1", tableId: "801001Table1",
tableName: "关务系统发货通知单", tableName: "关务系统发货通知单",
columnProp: "line",
columnProp: "notifyStatus",
headerAlign: "center", headerAlign: "center",
align: "right",
columnLabel: "销售单行号",
align: "left",
columnLabel: "通知单状态",
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
sortLv: 0, sortLv: 0,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 80
columnWidth: 100
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 801001, functionId: 801001,
serialNumber: '801001Table1ReadyDate',
serialNumber: '801001Table1NotifyDate',
tableId: "801001Table1", tableId: "801001Table1",
tableName: "关务系统发货通知单", tableName: "关务系统发货通知单",
columnProp: "readyDate",
columnProp: "notifyDate",
headerAlign: "center", headerAlign: "center",
align: "center", align: "center",
columnLabel: "ReadyDate",
columnLabel: "发货日期",
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
sortLv: 0, sortLv: 0,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 100
columnWidth: 120
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 801001, functionId: 801001,
serialNumber: '801001Table1CustomerName',
serialNumber: '801001Table1ErpDelNo',
tableId: "801001Table1", tableId: "801001Table1",
tableName: "关务系统发货通知单", tableName: "关务系统发货通知单",
columnProp: "customerName",
columnProp: "erpDelNo",
headerAlign: "center", headerAlign: "center",
align: "left", align: "left",
columnLabel: "客户名称",
columnLabel: "ERP发货单号",
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
sortLv: 0, sortLv: 0,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 120
columnWidth: 100
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 801001, functionId: 801001,
serialNumber: '801001Table1CustomerPO',
serialNumber: '801001Table1CreateBy',
tableId: "801001Table1", tableId: "801001Table1",
tableName: "关务系统发货通知单", tableName: "关务系统发货通知单",
columnProp: "customerPO",
columnProp: "createBy",
headerAlign: "center", headerAlign: "center",
align: "left", align: "left",
columnLabel: "客户采购单号",
columnLabel: "创建人",
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
sortLv: 0, sortLv: 0,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 100
columnWidth: 80
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 801001, functionId: 801001,
serialNumber: '801001Table1Version',
serialNumber: '801001Table1CreateDate',
tableId: "801001Table1", tableId: "801001Table1",
tableName: "关务系统发货通知单", tableName: "关务系统发货通知单",
columnProp: "version",
columnProp: "createDate",
headerAlign: "center", headerAlign: "center",
align: "left",
columnLabel: "Version",
align: "center",
columnLabel: "创建时间",
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
sortLv: 0, sortLv: 0,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 100
columnWidth: 130
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 801001, functionId: 801001,
serialNumber: '801001Table1Status',
serialNumber: '801001Table1UpdateBy',
tableId: "801001Table1", tableId: "801001Table1",
tableName: "关务系统发货通知单", tableName: "关务系统发货通知单",
columnProp: "status",
columnProp: "updateBy",
headerAlign: "center", headerAlign: "center",
align: "left", align: "left",
columnLabel: "Status",
columnLabel: "修改人",
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
sortLv: 0, sortLv: 0,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 100
columnWidth: 80
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 801001, functionId: 801001,
serialNumber: '801001Table1Family',
serialNumber: '801001Table1UpdateDate',
tableId: "801001Table1", tableId: "801001Table1",
tableName: "关务系统发货通知单", tableName: "关务系统发货通知单",
columnProp: "family",
columnProp: "updateDate",
headerAlign: "center", headerAlign: "center",
align: "left",
columnLabel: "Family",
align: "center",
columnLabel: "修改时间",
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
sortLv: 0, sortLv: 0,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 100
columnWidth: 130
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 801001, functionId: 801001,
serialNumber: '801001Table1PartNo',
serialNumber: '801001Table1Remark',
tableId: "801001Table1", tableId: "801001Table1",
tableName: "关务系统发货通知单", tableName: "关务系统发货通知单",
columnProp: "remark",
headerAlign: "center",
align: "left",
columnLabel: "Remark",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 300
},
],
columnList2: [
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table2ItemNo',
tableId: "801001Table2",
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: 801001,
serialNumber: '801001Table2PartNo',
tableId: "801001Table2",
tableName: "关务系统发货通知单明细",
columnProp: "partNo", columnProp: "partNo",
headerAlign: "center", headerAlign: "center",
align: "left", align: "left",
@ -354,9 +439,9 @@
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 801001, functionId: 801001,
serialNumber: '801001Table1PartDescription',
tableId: "801001Table1",
tableName: "关务系统发货通知单",
serialNumber: '801001Table2PartDescription',
tableId: "801001Table2",
tableName: "关务系统发货通知单明细",
columnProp: "partDescription", columnProp: "partDescription",
headerAlign: "center", headerAlign: "center",
align: "left", align: "left",
@ -372,9 +457,9 @@
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 801001, functionId: 801001,
serialNumber: '801001Table1Qty',
tableId: "801001Table1",
tableName: "关务系统发货通知单",
serialNumber: '801001Table2Qty',
tableId: "801001Table2",
tableName: "关务系统发货通知单明细",
columnProp: "qty", columnProp: "qty",
headerAlign: "center", headerAlign: "center",
align: "right", align: "right",
@ -390,13 +475,49 @@
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 801001, functionId: 801001,
serialNumber: '801001Table1Lt',
tableId: "801001Table1",
tableName: "关务系统发货通知单",
columnProp: "lt",
serialNumber: '801001Table2SalesOrder',
tableId: "801001Table2",
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: 801001,
serialNumber: '801001Table2Line',
tableId: "801001Table2",
tableName: "关务系统发货通知单明细",
columnProp: "line",
headerAlign: "center", headerAlign: "center",
align: "right", align: "right",
columnLabel: "LT (wks)",
columnLabel: "销售单行号",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table2CustomerPO',
tableId: "801001Table2",
tableName: "关务系统发货通知单明细",
columnProp: "customerPO",
headerAlign: "center",
align: "left",
columnLabel: "客户采购单号",
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -408,13 +529,13 @@
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 801001, functionId: 801001,
serialNumber: '801001Table1CmcComment',
tableId: "801001Table1",
tableName: "关务系统发货通知单",
columnProp: "cmcComment",
serialNumber: '801001Table2Version',
tableId: "801001Table2",
tableName: "关务系统发货通知单明细",
columnProp: "version",
headerAlign: "center", headerAlign: "center",
align: "left", align: "left",
columnLabel: "CMC Comment",
columnLabel: "Version",
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -426,13 +547,13 @@
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 801001, functionId: 801001,
serialNumber: '801001Table1Destination',
tableId: "801001Table1",
tableName: "关务系统发货通知单",
columnProp: "destination",
serialNumber: '801001Table2Status',
tableId: "801001Table2",
tableName: "关务系统发货通知单明细",
columnProp: "status",
headerAlign: "center", headerAlign: "center",
align: "left", align: "left",
columnLabel: "Destination",
columnLabel: "Status",
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -444,13 +565,13 @@
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 801001, functionId: 801001,
serialNumber: '801001Table1SaleType',
tableId: "801001Table1",
tableName: "关务系统发货通知单",
columnProp: "saleType",
serialNumber: '801001Table2Family',
tableId: "801001Table2",
tableName: "关务系统发货通知单明细",
columnProp: "family",
headerAlign: "center", headerAlign: "center",
align: "left", align: "left",
columnLabel: "内外销方式",
columnLabel: "Family",
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -462,13 +583,31 @@
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 801001, functionId: 801001,
serialNumber: '801001Table1AwbBl',
tableId: "801001Table1",
tableName: "关务系统发货通知单",
columnProp: "awbBl",
serialNumber: '801001Table2Lt',
tableId: "801001Table2",
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: 801001,
serialNumber: '801001Table2CmcComment',
tableId: "801001Table2",
tableName: "关务系统发货通知单明细",
columnProp: "cmcComment",
headerAlign: "center", headerAlign: "center",
align: "left", align: "left",
columnLabel: "AWB/ BL#",
columnLabel: "CMC Comment",
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -480,13 +619,13 @@
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 801001, functionId: 801001,
serialNumber: '801001Table1ShippingNumber',
tableId: "801001Table1",
tableName: "关务系统发货通知单",
columnProp: "shippingNumber",
serialNumber: '801001Table2SaleType',
tableId: "801001Table2",
tableName: "关务系统发货通知单明细",
columnProp: "saleType",
headerAlign: "center", headerAlign: "center",
align: "left", align: "left",
columnLabel: "ShippingNumber",
columnLabel: "内外销方式",
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -498,13 +637,13 @@
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 801001, functionId: 801001,
serialNumber: '801001Table1ShippingMode',
tableId: "801001Table1",
tableName: "关务系统发货通知单",
columnProp: "shippingMode",
serialNumber: '801001Table2AwbBl',
tableId: "801001Table2",
tableName: "关务系统发货通知单明细",
columnProp: "awbBl",
headerAlign: "center", headerAlign: "center",
align: "left", align: "left",
columnLabel: "ShippingMode",
columnLabel: "AWB/ BL#",
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -516,9 +655,27 @@
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 801001, functionId: 801001,
serialNumber: '801001Table1ForwarderInfo',
tableId: "801001Table1",
tableName: "关务系统发货通知单",
serialNumber: '801001Table2ShippingNumber',
tableId: "801001Table2",
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: 801001,
serialNumber: '801001Table2ForwarderInfo',
tableId: "801001Table2",
tableName: "关务系统发货通知单明细",
columnProp: "forwarderInfo", columnProp: "forwarderInfo",
headerAlign: "center", headerAlign: "center",
align: "left", align: "left",
@ -534,9 +691,9 @@
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 801001, functionId: 801001,
serialNumber: '801001Table1Currency',
tableId: "801001Table1",
tableName: "关务系统发货通知单",
serialNumber: '801001Table2Currency',
tableId: "801001Table2",
tableName: "关务系统发货通知单明细",
columnProp: "currency", columnProp: "currency",
headerAlign: "center", headerAlign: "center",
align: "left", align: "left",
@ -552,9 +709,9 @@
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 801001, functionId: 801001,
serialNumber: '801001Table1Tp',
tableId: "801001Table1",
tableName: "关务系统发货通知单",
serialNumber: '801001Table2Tp',
tableId: "801001Table2",
tableName: "关务系统发货通知单明细",
columnProp: "tp", columnProp: "tp",
headerAlign: "center", headerAlign: "center",
align: "right", align: "right",
@ -570,9 +727,9 @@
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 801001, functionId: 801001,
serialNumber: '801001Table1TtlAmount',
tableId: "801001Table1",
tableName: "关务系统发货通知单",
serialNumber: '801001Table2TtlAmount',
tableId: "801001Table2",
tableName: "关务系统发货通知单明细",
columnProp: "ttlAmount", columnProp: "ttlAmount",
headerAlign: "center", headerAlign: "center",
align: "right", align: "right",
@ -588,9 +745,9 @@
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 801001, functionId: 801001,
serialNumber: '801001Table1SumPrice',
tableId: "801001Table1",
tableName: "关务系统发货通知单",
serialNumber: '801001Table2SumPrice',
tableId: "801001Table2",
tableName: "关务系统发货通知单明细",
columnProp: "sumPrice", columnProp: "sumPrice",
headerAlign: "center", headerAlign: "center",
align: "right", align: "right",
@ -606,9 +763,9 @@
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 801001, functionId: 801001,
serialNumber: '801001Table1So',
tableId: "801001Table1",
tableName: "关务系统发货通知单",
serialNumber: '801001Table2So',
tableId: "801001Table2",
tableName: "关务系统发货通知单明细",
columnProp: "so", columnProp: "so",
headerAlign: "center", headerAlign: "center",
align: "left", align: "left",
@ -624,9 +781,9 @@
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 801001, functionId: 801001,
serialNumber: '801001Table1Upc',
tableId: "801001Table1",
tableName: "关务系统发货通知单",
serialNumber: '801001Table2Upc',
tableId: "801001Table2",
tableName: "关务系统发货通知单明细",
columnProp: "upc", columnProp: "upc",
headerAlign: "center", headerAlign: "center",
align: "left", align: "left",
@ -642,31 +799,13 @@
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 801001, functionId: 801001,
serialNumber: '801001Table1ErpDelNo',
tableId: "801001Table1",
tableName: "关务系统发货通知单",
columnProp: "erpDelNo",
headerAlign: "center",
align: "left",
columnLabel: "ERP发货单号",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100
},
{
userId: this.$store.state.user.name,
functionId: 801001,
serialNumber: '801001Table1ErpDelItemNo',
tableId: "801001Table1",
tableName: "关务系统发货通知单",
serialNumber: '801001Table2ErpDelItemNo',
tableId: "801001Table2",
tableName: "关务系统发货通知单明细",
columnProp: "erpDelItemNo", columnProp: "erpDelItemNo",
headerAlign: "center", headerAlign: "center",
align: "right", align: "right",
columnLabel: "行号",
columnLabel: "ERP发货单行号",
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -678,9 +817,9 @@
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 801001, functionId: 801001,
serialNumber: '801001Table1Remark',
tableId: "801001Table1",
tableName: "关务系统发货通知单",
serialNumber: '801001Table2Remark',
tableId: "801001Table2",
tableName: "关务系统发货通知单明细",
columnProp: "remark", columnProp: "remark",
headerAlign: "center", headerAlign: "center",
align: "left", align: "left",
@ -694,6 +833,7 @@
columnWidth: 300 columnWidth: 300
}, },
], ],
currentRow:{},
} }
}, },
mounted() { mounted() {
@ -716,7 +856,7 @@
searchTable(){ searchTable(){
this.searchData.limit = this.pageSize this.searchData.limit = this.pageSize
this.searchData.page = this.pageIndex this.searchData.page = this.pageIndex
searchNotifyHeader(this.searchData).then(({data}) => {
searchEcssCoDelNotifyHeader(this.searchData).then(({data}) => {
// //
if (data && data.code == 0) { if (data && data.code == 0) {
this.dataList = data.page.list this.dataList = data.page.list
@ -734,11 +874,39 @@
} }
}); });
}, },
changeData(row){
this.currentRow = JSON.parse(JSON.stringify(row));
this.headerData=row;
this.refreshCurrentTabTable ();
},
importModel(){ importModel(){
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.delUploadExcel.init() this.$refs.delUploadExcel.init()
}) })
}, },
refreshCurrentTabTable(){
if(this.currentRow===''||this.currentRow===null){
this.currentRow={site:'',delNo:''}
}
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()
},
updateModel(){
},
}, },
created() { created() {

Loading…
Cancel
Save