发货记录

This commit is contained in:
zhangdingyu
2019-12-02 14:10:04 +08:00
parent c063efad44
commit 46308b43d1
2 changed files with 112 additions and 152 deletions

View File

@@ -131,6 +131,8 @@ export default {
}, },
// 获取树状数据 // 获取树状数据
getTreeData() { getTreeData() {
this.tableData1 = []
this.tableData2 = []
for (let i = 0; i < this.Machine.length; i++) { for (let i = 0; i < this.Machine.length; i++) {
if (this.MachineValue === this.Machine[i].value) { if (this.MachineValue === this.Machine[i].value) {
this.机床图号 = this.Machine[i].label this.机床图号 = this.Machine[i].label

View File

@@ -1,30 +1,17 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-card> <el-card>
<el-input v-model="invoiceNumber" placeholder="请输入发货单号" clearable style="width: 150px;margin-right: 10px" size="mini"/> <el-input v-model="invoiceNumber" placeholder="发货单号和收货单位" clearable style="width: 200px;margin-right: 10px" size="small"/>
<el-input v-model="receivingUnit" placeholder="请输入收货单位" clearable style="width: 150px;margin-right: 10px" size="mini"/> <!--<el-input v-model="receivingUnit" placeholder="请输入收货单位" clearable style="width: 150px;margin-right: 10px" size="mini"/>-->
<el-button type="success" icon="el-icon-menu" size="mini" style="margin-left: 10px" @click="openSearch">查询</el-button> <el-button type="success" icon="el-icon-menu" size="mini" style="margin-left: 10px" @click="openSearch">查询</el-button>
</el-card> </el-card>
<el-card> <el-card>
<el-table <el-col :span="10">
:data="tableDataSearchList" <el-table :data="tableDataSearchList" style="width: 100%" height="600" border stripe size="mini" highlight-current-row @row-click="searchListItem">
style="width: 100%; max-height: 500px"
height="650"
border
stripe
size="mini"
highlight-current-row
@row-click="searchListItem">
<!-- <el-table-->
<!-- :data="tableDataSearchList"-->
<!-- highlight-current-row-->
<!-- style="width: 100%; max-height: 500px"-->
<!-- border-->
<!-- size="mini"-->
<!-- @row-click="searchListItem">-->
<el-table-column align="center" label="状态" width="60px"> <el-table-column align="center" label="状态" width="60px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.是否发出.toString() === '1' ? '已发出' : '未发出' }} <span v-if="scope.row.是否发出.toString() === '1'" style="color: green">已发出</span>
<span v-else>未发出</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="发货单号" width="120px"> <el-table-column align="center" label="发货单号" width="120px">
@@ -32,27 +19,27 @@
{{ scope.row.发货单编号 }} {{ scope.row.发货单编号 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="发货单名"> <el-table-column align="center" label="发货单名" width="100px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.发货单名称 }} {{ scope.row.发货单名称 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="收货单位" width="180px"> <el-table-column align="center" label="收货单位" width="180px" show-overflow-tooltip="">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.收货单位 }} {{ scope.row.收货单位 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="收货地址" width="150px" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.收货地址 }}
</template>
</el-table-column>
<el-table-column align="center" label="收货人员" width="80px"> <el-table-column align="center" label="收货人员" width="80px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.收货人员 }} {{ scope.row.收货人员 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="联系电话"> <el-table-column align="center" label="收货地址" width="150px" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.收货地址 }}
</template>
</el-table-column>
<el-table-column align="center" label="联系电话" width="110px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.联系电话 }} {{ scope.row.联系电话 }}
</template> </template>
@@ -67,55 +54,26 @@
{{ scope.row.司机姓名 }} {{ scope.row.司机姓名 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="司机电话"> <el-table-column align="center" label="司机电话" width="110px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.司机电话 }} {{ scope.row.司机电话 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="制单人"> <el-table-column align="center" label="制单人" width="100px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.制单人 }} {{ scope.row.制单人 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="审核人"> <el-table-column align="center" label="发货时间" width="110px">
<template slot-scope="scope">
{{ scope.row.审核人 }}
</template>
</el-table-column>
<el-table-column align="center" label="发货人">
<template slot-scope="scope">
{{ scope.row.发货人 }}
</template>
</el-table-column>
<el-table-column align="center" label="制单时间" show-overflow-tooltip>
<template slot-scope="scope">
<span v-if="scope.row.操作日期 === null"/>
<span v-else>{{ scope.row.操作日期.substr(0,10) }}</span>
</template>
</el-table-column>
<el-table-column align="center" label="审核时间">
<template slot-scope="scope">
<span v-if="scope.row.审核日期 === null"/>
<span v-else>{{ scope.row.审核日期.substr(0,10) }}</span>
</template>
</el-table-column>
<el-table-column align="center" label="发货时间">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.发出时间 === null"/> <span v-if="scope.row.发出时间 === null"/>
<span v-else>{{ scope.row.发出时间.substr(0,10) }}</span> <span v-else>{{ scope.row.发出时间.substr(0,10) }}</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</el-card> </el-col>
<el-card> <el-col :span="14">
<el-table <el-table v-loading="listLoading" :data="tableData" highlight-current-row style="width: 100%" height="560" border size="mini">
v-loading="listLoading"
:data="tableData"
highlight-current-row
style="width: 100%"
height="560"
border
size="mini">
<el-table-column align="center" label="货品类别" width="80"> <el-table-column align="center" label="货品类别" width="80">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag effect="dark" size="small" type="success">{{ scope.row.货品类别 }}</el-tag> <el-tag effect="dark" size="small" type="success">{{ scope.row.货品类别 }}</el-tag>
@@ -126,7 +84,7 @@
{{ scope.row.货品编号 }} {{ scope.row.货品编号 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="货品名称"> <el-table-column align="center" label="货品名称" width="150px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.货品名称 }} {{ scope.row.货品名称 }}
</template> </template>
@@ -141,7 +99,7 @@
{{ scope.row.货品型号 }} {{ scope.row.货品型号 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="数量" width="130"> <el-table-column align="center" label="数量" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="disabledPick === false"> <template v-if="disabledPick === false">
<el-input-number v-model="scope.row.数量" :min="1" label="描述文字" size="mini" controls-position="right" style="width:100px" @change="handleChange"/> <el-input-number v-model="scope.row.数量" :min="1" label="描述文字" size="mini" controls-position="right" style="width:100px" @change="handleChange"/>
@@ -157,6 +115,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</el-col>
</el-card> </el-card>
</div> </div>
</template> </template>
@@ -185,7 +144,6 @@ export default {
this.receivingUnit !== null && this.receivingUnit !== '' ? this.receivingUnit_check = 1 : this.receivingUnit_check = 0 this.receivingUnit !== null && this.receivingUnit !== '' ? this.receivingUnit_check = 1 : this.receivingUnit_check = 0
InvoiceListSearch(this.invoiceNumber, this.receivingUnit, this.invoiceNumber_check, this.receivingUnit_check).then(response => { InvoiceListSearch(this.invoiceNumber, this.receivingUnit, this.invoiceNumber_check, this.receivingUnit_check).then(response => {
if (response.data.length !== 0) { if (response.data.length !== 0) {
console.log(response)
this.tableDataSearchList = response.data this.tableDataSearchList = response.data
} }
}) })