|
|
|
@ -26,77 +26,77 @@
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row> -->
|
|
|
|
|
<el-card class="box-card" :body-style="{ padding: '0px' }">
|
|
|
|
|
<div slot="header" class="clearfix">
|
|
|
|
|
<span>即将过期货物列表</span>
|
|
|
|
|
<el-button style="float: right; padding: 3px 0" type="text" @click="goMoreCargo">查看所有货物</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<el-table v-if="cargoList.length" v-loading="cargoLoading" :data="cargoList" :show-header="true"
|
|
|
|
|
:row-class-name="tableRowClassName" @row-dblclick="cargoClick" height="400">
|
|
|
|
|
<el-table-column width="100" label="有效期至" prop="expiryDate" align="center"></el-table-column>
|
|
|
|
|
<el-table-column width="100" label="货物" prop="cargoName" align="center"></el-table-column>
|
|
|
|
|
<el-table-column width="100" label="项号" prop="bookNumber" align="center"></el-table-column>
|
|
|
|
|
<!-- <el-table-column width="100" label="库场" prop="stockName" align="center"></el-table-column>-->
|
|
|
|
|
<el-table-column width="200" label="货主" show-overflow-tooltip prop="custName"></el-table-column>
|
|
|
|
|
<el-table-column width="150" label="船舶" prop="vesselName"></el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
<el-empty v-else>
|
|
|
|
|
<el-button type="none" plain @click="getCargoList">刷新</el-button>
|
|
|
|
|
</el-empty>
|
|
|
|
|
<el-pagination layout="prev, pager, next, jumper" :total="cargoTotal" small hide-on-single-page
|
|
|
|
|
:current-page.sync="cargoParam.pageNum" :page-size.sync="cargoParam.pageSize" @current-change="getCargoList" />
|
|
|
|
|
</el-card>
|
|
|
|
|
<el-card class="box-card" :body-style="{ padding: '0px' }">
|
|
|
|
|
<div slot="header" class="clearfix">
|
|
|
|
|
<span>出库提离即将到期单据列表</span>
|
|
|
|
|
<el-button style="float: right; padding: 3px 0" type="text" @click="goMoreBillCargo">查看所有出库单据</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<el-table v-if="outBillCargoList.length" v-loading="outBillCargoLoading" :data="outBillCargoList" :show-header="true"
|
|
|
|
|
:row-class-name="tableRowClassName" @row-dblclick="outBillCargoClick" height="400">
|
|
|
|
|
<el-table-column width="100" label="有效期至" prop="expiryDate" align="center"></el-table-column>
|
|
|
|
|
<el-table-column width="100" label="报关单号" prop="customsNo" align="center"></el-table-column>
|
|
|
|
|
<el-table-column width="100" label="货物" prop="cargoName" align="center"></el-table-column>
|
|
|
|
|
<el-table-column width="100" label="项号" prop="bookNumber" align="center"></el-table-column>
|
|
|
|
|
<el-table-column width="100" label="单据编号" prop="billNumber" align="center"></el-table-column>
|
|
|
|
|
<el-table-column width="100" label="货物流向" prop="cargoFlow" align="center"></el-table-column>
|
|
|
|
|
<el-table-column width="200" label="货主" show-overflow-tooltip prop="custName"></el-table-column>
|
|
|
|
|
<el-table-column width="150" label="船舶" prop="vesselName"></el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
<el-empty v-else>
|
|
|
|
|
<el-button type="none" plain @click="getOutBillCargo">刷新</el-button>
|
|
|
|
|
</el-empty>
|
|
|
|
|
<el-pagination layout="prev, pager, next, jumper" :total="outBillCargoTotal" small hide-on-single-page
|
|
|
|
|
:current-page.sync="outBillCargoParam.pageNum" :page-size.sync="outBillCargoParam.pageSize" @current-change="getOutBillCargo" />
|
|
|
|
|
</el-card>
|
|
|
|
|
<el-card class="box-card" :body-style="{ padding: '0px' }">
|
|
|
|
|
<div slot="header" class="clearfix">
|
|
|
|
|
<span>即将过期仓库列表</span>
|
|
|
|
|
<el-button style="float: right; padding: 3px 0" type="text" @click="goMoreStock">查看所有仓库</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<el-table v-if="stockList.length" v-loading="stockLoading" :data="stockList" :row-class-name="tableRowClassName"
|
|
|
|
|
@row-dblclick="stockClick" height="400">
|
|
|
|
|
<el-table-column width="100" label="有效期至" prop="validityEnd" align="center"></el-table-column>
|
|
|
|
|
<el-table-column width="150" label="仓库代码" prop="stockCode" align="center"></el-table-column>
|
|
|
|
|
<el-table-column label="仓库" prop="stockName" align="center"></el-table-column>
|
|
|
|
|
<el-empty slot="empty">
|
|
|
|
|
<el-button type="none" plain @click="getStockList">刷新</el-button>
|
|
|
|
|
</el-empty>
|
|
|
|
|
</el-table>
|
|
|
|
|
<el-empty v-else>
|
|
|
|
|
<el-button type="none" plain @click="getCargoList">刷新</el-button>
|
|
|
|
|
</el-empty>
|
|
|
|
|
<el-pagination layout="prev, pager, next, jumper" :total="stockTotal" small hide-on-single-page
|
|
|
|
|
:current-page.sync="stockParam.pageNum" :page-size.sync="stockParam.pageSize" @current-change="getStockList" />
|
|
|
|
|
</el-card>
|
|
|
|
|
<el-dialog title="查看即将过期货物详情" width="70%" :visible.sync="openCargo" append-to-body>
|
|
|
|
|
<CargoDesc :cargo-stock-id="cargoStock.id"></CargoDesc>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
<el-dialog title="查看即将过期仓库详情" :visible.sync="openStock" append-to-body>
|
|
|
|
|
<StockDesc :stock-id="warehouse.id"></StockDesc>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
<el-dialog title="查看出库提离即将到期单据详情" :visible.sync="openOutBillCargo" append-to-body>
|
|
|
|
|
<OutBillCargoDesc :out-bill-cargo-id="outBillCargo.id"></OutBillCargoDesc>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
<!-- <el-card class="box-card" :body-style="{ padding: '0px' }">-->
|
|
|
|
|
<!-- <div slot="header" class="clearfix">-->
|
|
|
|
|
<!-- <span>即将过期货物列表</span>-->
|
|
|
|
|
<!-- <el-button style="float: right; padding: 3px 0" type="text" @click="goMoreCargo">查看所有货物</el-button>-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<!-- <el-table v-if="cargoList.length" v-loading="cargoLoading" :data="cargoList" :show-header="true"-->
|
|
|
|
|
<!-- :row-class-name="tableRowClassName" @row-dblclick="cargoClick" height="400">-->
|
|
|
|
|
<!-- <el-table-column width="100" label="有效期至" prop="expiryDate" align="center"></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column width="100" label="货物" prop="cargoName" align="center"></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column width="100" label="项号" prop="bookNumber" align="center"></el-table-column>-->
|
|
|
|
|
<!--<!– <el-table-column width="100" label="库场" prop="stockName" align="center"></el-table-column>–>-->
|
|
|
|
|
<!-- <el-table-column width="200" label="货主" show-overflow-tooltip prop="custName"></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column width="150" label="船舶" prop="vesselName"></el-table-column>-->
|
|
|
|
|
<!-- </el-table>-->
|
|
|
|
|
<!-- <el-empty v-else>-->
|
|
|
|
|
<!-- <el-button type="none" plain @click="getCargoList">刷新</el-button>-->
|
|
|
|
|
<!-- </el-empty>-->
|
|
|
|
|
<!-- <el-pagination layout="prev, pager, next, jumper" :total="cargoTotal" small hide-on-single-page-->
|
|
|
|
|
<!-- :current-page.sync="cargoParam.pageNum" :page-size.sync="cargoParam.pageSize" @current-change="getCargoList" />-->
|
|
|
|
|
<!-- </el-card>-->
|
|
|
|
|
<!-- <el-card class="box-card" :body-style="{ padding: '0px' }">-->
|
|
|
|
|
<!-- <div slot="header" class="clearfix">-->
|
|
|
|
|
<!-- <span>出库提离即将到期单据列表</span>-->
|
|
|
|
|
<!-- <el-button style="float: right; padding: 3px 0" type="text" @click="goMoreBillCargo">查看所有出库单据</el-button>-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<!-- <el-table v-if="outBillCargoList.length" v-loading="outBillCargoLoading" :data="outBillCargoList" :show-header="true"-->
|
|
|
|
|
<!-- :row-class-name="tableRowClassName" @row-dblclick="outBillCargoClick" height="400">-->
|
|
|
|
|
<!-- <el-table-column width="100" label="有效期至" prop="expiryDate" align="center"></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column width="100" label="报关单号" prop="customsNo" align="center"></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column width="100" label="货物" prop="cargoName" align="center"></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column width="100" label="项号" prop="bookNumber" align="center"></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column width="100" label="单据编号" prop="billNumber" align="center"></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column width="100" label="货物流向" prop="cargoFlow" align="center"></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column width="200" label="货主" show-overflow-tooltip prop="custName"></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column width="150" label="船舶" prop="vesselName"></el-table-column>-->
|
|
|
|
|
<!-- </el-table>-->
|
|
|
|
|
<!-- <el-empty v-else>-->
|
|
|
|
|
<!-- <el-button type="none" plain @click="getOutBillCargo">刷新</el-button>-->
|
|
|
|
|
<!-- </el-empty>-->
|
|
|
|
|
<!-- <el-pagination layout="prev, pager, next, jumper" :total="outBillCargoTotal" small hide-on-single-page-->
|
|
|
|
|
<!-- :current-page.sync="outBillCargoParam.pageNum" :page-size.sync="outBillCargoParam.pageSize" @current-change="getOutBillCargo" />-->
|
|
|
|
|
<!-- </el-card>-->
|
|
|
|
|
<!-- <el-card class="box-card" :body-style="{ padding: '0px' }">-->
|
|
|
|
|
<!-- <div slot="header" class="clearfix">-->
|
|
|
|
|
<!-- <span>即将过期仓库列表</span>-->
|
|
|
|
|
<!-- <el-button style="float: right; padding: 3px 0" type="text" @click="goMoreStock">查看所有仓库</el-button>-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<!-- <el-table v-if="stockList.length" v-loading="stockLoading" :data="stockList" :row-class-name="tableRowClassName"-->
|
|
|
|
|
<!-- @row-dblclick="stockClick" height="400">-->
|
|
|
|
|
<!-- <el-table-column width="100" label="有效期至" prop="validityEnd" align="center"></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column width="150" label="仓库代码" prop="stockCode" align="center"></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column label="仓库" prop="stockName" align="center"></el-table-column>-->
|
|
|
|
|
<!-- <el-empty slot="empty">-->
|
|
|
|
|
<!-- <el-button type="none" plain @click="getStockList">刷新</el-button>-->
|
|
|
|
|
<!-- </el-empty>-->
|
|
|
|
|
<!-- </el-table>-->
|
|
|
|
|
<!-- <el-empty v-else>-->
|
|
|
|
|
<!-- <el-button type="none" plain @click="getCargoList">刷新</el-button>-->
|
|
|
|
|
<!-- </el-empty>-->
|
|
|
|
|
<!-- <el-pagination layout="prev, pager, next, jumper" :total="stockTotal" small hide-on-single-page-->
|
|
|
|
|
<!-- :current-page.sync="stockParam.pageNum" :page-size.sync="stockParam.pageSize" @current-change="getStockList" />-->
|
|
|
|
|
<!-- </el-card>-->
|
|
|
|
|
<!-- <el-dialog title="查看即将过期货物详情" width="70%" :visible.sync="openCargo" append-to-body>-->
|
|
|
|
|
<!-- <CargoDesc :cargo-stock-id="cargoStock.id"></CargoDesc>-->
|
|
|
|
|
<!-- </el-dialog>-->
|
|
|
|
|
<!-- <el-dialog title="查看即将过期仓库详情" :visible.sync="openStock" append-to-body>-->
|
|
|
|
|
<!-- <StockDesc :stock-id="warehouse.id"></StockDesc>-->
|
|
|
|
|
<!-- </el-dialog>-->
|
|
|
|
|
<!-- <el-dialog title="查看出库提离即将到期单据详情" :visible.sync="openOutBillCargo" append-to-body>-->
|
|
|
|
|
<!-- <OutBillCargoDesc :out-bill-cargo-id="outBillCargo.id"></OutBillCargoDesc>-->
|
|
|
|
|
<!-- </el-dialog>-->
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
@ -160,9 +160,9 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
// this.getmsg();
|
|
|
|
|
this.getStockList();
|
|
|
|
|
this.getCargoList();
|
|
|
|
|
this.getOutBillCargo();
|
|
|
|
|
// this.getStockList();
|
|
|
|
|
// this.getCargoList();
|
|
|
|
|
// this.getOutBillCargo();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
tableRowClassName({ row, rowIndex }) {
|
|
|
|
|