添加分页 添加仓库数据权限
This commit is contained in:
@@ -90,13 +90,21 @@
|
||||
|
||||
<el-table v-loading="materialLoading" :data="materialOptions" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column :label="$t('checkCreate.materialCode')" align="left" prop="productId" /> <!-- 物资编码 -->
|
||||
<el-table-column :label="$t('checkCreate.materialName')" align="left" prop="productName" /> <!-- 物资名称 -->
|
||||
<el-table-column :label="$t('checkCreate.quantity')" align="right" prop="quantity" /> <!-- 数量 -->
|
||||
<el-table-column :label="$t('checkCreate.lotNo')" align="left" prop="lotNo" /> <!-- 批次 -->
|
||||
<el-table-column :label="$t('checkCreate.warehouse')" align="left" prop="warehouseName" /> <!-- 仓库 -->
|
||||
<el-table-column :label="$t('checkCreate.materialCode')" align="left" prop="productId" />
|
||||
<el-table-column :label="$t('checkCreate.materialName')" align="left" prop="productName" />
|
||||
<el-table-column :label="$t('checkCreate.quantity')" align="right" prop="quantity" />
|
||||
<el-table-column :label="$t('checkCreate.lotNo')" align="left" prop="lotNo" />
|
||||
<el-table-column :label="$t('checkCreate.warehouse')" align="left" prop="warehouseName" />
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total > 0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getMaterialList"
|
||||
/>
|
||||
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="confirmSelectMaterials">{{ $t('checkCreate.confirm') }}</el-button> <!-- 确定 -->
|
||||
<el-button @click="cancelSelectMaterials">{{ $t('checkCreate.cancel') }}</el-button> <!-- 取消 -->
|
||||
@@ -145,6 +153,14 @@
|
||||
<el-table-column :label="$t('checkCreate.warehouse')" align="left" prop="warehouseName" />
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="trayTotal > 0"
|
||||
:total="trayTotal"
|
||||
:page.sync="trayQueryParams.pageNum"
|
||||
:limit.sync="trayQueryParams.pageSize"
|
||||
@pagination="getMaterialByTrayCodeList"
|
||||
/>
|
||||
|
||||
<!-- 托盘详情弹窗 -->
|
||||
<el-dialog
|
||||
:title="$t('checkCreate.trayDetail')"
|
||||
@@ -188,6 +204,10 @@
|
||||
loading: false,
|
||||
materialLoading: false,
|
||||
trayLoading: false,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 托盘总条数
|
||||
trayTotal: 0,
|
||||
// 表单验证规则
|
||||
rules: {
|
||||
warehouseId: [
|
||||
@@ -288,6 +308,7 @@
|
||||
if (this.formData.checkType==='1'){
|
||||
listProductAndStock(this.queryParams).then(response => {
|
||||
this.materialOptions = response.rows;
|
||||
this.total = response.total;
|
||||
this.materialLoading = false;
|
||||
});
|
||||
}
|
||||
@@ -300,6 +321,7 @@
|
||||
this.trayQueryParams.status = 2;
|
||||
listCargoSpace(this.trayQueryParams).then(response => {
|
||||
this.trayOptions = response.rows;
|
||||
this.trayTotal = response.total;
|
||||
this.trayLoading = false;
|
||||
});
|
||||
}
|
||||
|
||||
@@ -298,12 +298,6 @@
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column :label="$t('checkJobIn.jobDetailId')" align="left" prop="jobDetailId" /> <!--子任务ID-->
|
||||
<el-table-column :label="$t('checkJobIn.jobId')" align="left" prop="jobId" /> <!--任务ID-->
|
||||
<el-table-column :label="$t('checkJobIn.lotNo')" align="left" prop="lotNo" /> <!--批次号-->
|
||||
<el-table-column :label="$t('checkJobIn.inDate')" align="left" prop="inDate" width="180"> <!--入库时间-->
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.inDate, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :label="$t('checkJobIn.inOrOutId')" align="left" prop="inOrOutId" /> <!--单据ID-->
|
||||
<el-table-column :label="$t('checkJobIn.inOrOutDId')" align="left" prop="inOrOutDId" /> <!--子单据ID-->
|
||||
<el-table-column :label="$t('checkJobIn.productId')" align="left" prop="productId" /> <!--物料编码-->
|
||||
@@ -311,6 +305,11 @@
|
||||
<el-table-column :label="$t('checkJobIn.englishDesc')" align="left" prop="extraField.englishDesc" /> <!-- 英文描述 -->
|
||||
<el-table-column :label="$t('checkJobIn.netWeight')" align="right" prop="extraField.netWeight" /> <!-- 净重 -->
|
||||
<el-table-column :label="$t('checkJobIn.inQuantity')" align="right" prop="inQuantity" /> <!--入库数量-->
|
||||
<el-table-column :label="$t('checkJobIn.inDate')" align="left" prop="inDate" width="180"> <!--入库时间-->
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.inDate, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
|
||||
@@ -88,11 +88,18 @@
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column :label="$t('addOutStockout.materialCode')" align="left" prop="productId" /><!--物资编码-->
|
||||
<el-table-column :label="$t('addOutStockout.materialName')" align="left" prop="productName" /><!--物资名称-->
|
||||
<!-- <el-table-column :label="$t('addOutStockout.batchNo')" align="left" prop="lotNo" /><!–批号–>-->
|
||||
<el-table-column :label="$t('addOutStockout.quantity')" align="right" prop="quantity" /><!--数量-->
|
||||
<el-table-column :label="$t('addOutStockout.warehouse')" align="left" prop="warehouseId" /><!--仓库-->
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total > 0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getMaterialList"
|
||||
/>
|
||||
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="confirmSelectMaterials">{{$t('addOutStockout.confirm')}}<!--确 定--></el-button>
|
||||
<el-button @click="cancelSelectMaterials">{{$t('addOutStockout.cancel')}}<!--取 消--></el-button>
|
||||
@@ -104,15 +111,21 @@
|
||||
<script>
|
||||
import { listProductAndStock,saveOutStock } from "@/api/out/outStockout";
|
||||
import {listWarehouse} from "@/api/bas/warehouse";
|
||||
import Pagination from "@/components/Pagination";
|
||||
|
||||
export default {
|
||||
name: "AddOutStock",
|
||||
dicts: ['out_bill_type', 'bill_status'],
|
||||
components: {
|
||||
Pagination
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: false,
|
||||
materialLoading: false,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 表单验证规则
|
||||
rules: {
|
||||
warehouseId: [
|
||||
@@ -183,6 +196,7 @@ export default {
|
||||
this.materialLoading = true;
|
||||
listProductAndStock(this.queryParams).then(response => {
|
||||
this.materialOptions = response.rows;
|
||||
this.total = response.total;
|
||||
this.materialLoading = false;
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user