代码修改
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item :label="'备注'" prop="remark"><!--客户-->
|
||||
<el-form-item :label="'备注'" prop="remark">
|
||||
<el-input
|
||||
v-model="formData.remark"
|
||||
:placeholder="'请输入备注'"
|
||||
@@ -43,78 +43,22 @@
|
||||
|
||||
<!-- 物资明细表格 -->
|
||||
<el-table v-loading="loading" :data="materialList">
|
||||
<!-- <el-table-column label="仓库编码" align="center" prop="warehouseId" />-->
|
||||
<el-table-column label="仓库" align="center" prop="warehouseName" />
|
||||
<el-table-column label="合同号" align="center" prop="cargoNo" width="160"/>
|
||||
<el-table-column label="产品号" align="center" prop="phase" width="160"/>
|
||||
<el-table-column label="代号" align="center" prop="fid" width="160"/>
|
||||
<el-table-column label="台次" align="center" prop="power" width="160"/>
|
||||
<el-table-column label="物料编码" align="center" prop="productId" /><!--物资编号-->
|
||||
<el-table-column label="物料名称" align="center" prop="productName" /><!--物资名称-->
|
||||
<!-- <el-table-column label="批次" align="center" prop="lotNo" />-->
|
||||
<!-- <el-table-column label="规格型号" align="center" prop="productSpec" />-->
|
||||
<!-- <el-table-column label="供应商" align="center" prop="supplierName" />-->
|
||||
<!-- <el-table-column label="客户编码" align="center" prop="outId" />-->
|
||||
<!-- <el-table-column label="客户名称" align="center" prop="customerName" width="230">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="scope.row.customerName"-->
|
||||
<!-- placeholder="点击选择客户"-->
|
||||
<!-- readonly-->
|
||||
<!-- size="mini"-->
|
||||
<!-- @focus="openRowCustomerSelector(scope.row)"-->
|
||||
<!-- />-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<el-table-column :label="'数量'" align="center" prop="quantity" width="150"><!--数量-->
|
||||
<el-table-column label="合同号" align="center" prop="orderId" width="160"/>
|
||||
<el-table-column label="产品号" align="center" prop="power" width="160"/>
|
||||
<el-table-column label="代号" align="center" prop="distribution" width="160"/>
|
||||
<el-table-column label="台次" align="center" prop="spec" width="160"/>
|
||||
<el-table-column label="物料编码" align="center" prop="productId" />
|
||||
<el-table-column label="物料名称" align="center" prop="productName" />
|
||||
<el-table-column label="单重" align="center" prop="netWeight" />
|
||||
<el-table-column label="路线" align="center" prop="grossWeight" />
|
||||
<el-table-column label="供应商" align="center" prop="phase" />
|
||||
<el-table-column label="部门" align="center" prop="model" />
|
||||
<el-table-column label="数量" align="center" prop="quantity" width="150">
|
||||
<template slot-scope="scope">
|
||||
<el-input-number v-model="scope.row.quantity" :min="1" size="mini" @change="handleQuantityChange(scope.row)" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column label="状态" align="center" prop="spec">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.turnover_type" :value="scope.row.spec"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="来源" align="center" prop="unit" >
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.origin_type" :value="scope.row.unit"/>
|
||||
</template>
|
||||
</el-table-column>-->
|
||||
<!-- <el-table-column label="入库单价" align="center" prop="price" />-->
|
||||
<!-- <el-table-column label="产品质量" align="center" prop="voltage" >
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.quality_type" :value="scope.row.voltage"/>
|
||||
</template>
|
||||
</el-table-column>-->
|
||||
|
||||
|
||||
<!-- <el-table-column label="用途" align="center" prop="model" >
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.purpose_type" :value="scope.row.model"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="套账" align="center" prop="entryid" >
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.account_type" :value="scope.row.entryid"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="单位" align="center" prop="productUnit" />
|
||||
<el-table-column label="图号" align="center" prop="productDrawNo" />-->
|
||||
|
||||
<!-- <el-table-column label="物料状态" align="center" prop="productStatus" >
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.product_type" :value="scope.row.productStatus"/>
|
||||
</template>
|
||||
</el-table-column>-->
|
||||
<!-- <el-table-column label="常用编码" align="center" prop="parentId" />
|
||||
<el-table-column label="是否启用" align="center" prop="isUsed" >
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.sys_yes_no" :value="scope.row.isUsed"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="创建时间" align="center" prop="createTime" />
|
||||
<el-table-column label="创建用户" align="center" prop="createSys" />-->
|
||||
|
||||
<el-table-column :label="'操作'" align="center" class-name="small-padding fixed-width"><!--操作-->
|
||||
<template slot-scope="scope">
|
||||
@@ -124,7 +68,7 @@
|
||||
</el-table>
|
||||
|
||||
<!-- 选择物资弹窗 -->
|
||||
<el-dialog :title="'选择物资'" :visible.sync="materialDialog" width="1700px" append-to-body><!--选择物资-->
|
||||
<el-dialog :title="'选择物资'" :visible.sync="materialDialog" width="80%" custom-class="material-dialog" append-to-body><!--选择物资-->
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px">
|
||||
|
||||
<el-form-item label="合同号" prop="orderId">
|
||||
@@ -159,14 +103,6 @@
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="物料编码" prop="productId"><!–物资编码–>
|
||||
<el-input
|
||||
v-model="queryParams.productId"
|
||||
:placeholder="'请输入物料编码'"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>-->
|
||||
<el-form-item label="物料名称" prop="productName"><!--物资名称-->
|
||||
<el-input
|
||||
v-model="queryParams.productName"
|
||||
@@ -175,15 +111,6 @@
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="规格型号" prop="spec">
|
||||
<el-input
|
||||
v-model="queryParams.spec"
|
||||
placeholder="请输入规格型号"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">{{'搜索'}}<!--搜索--></el-button>
|
||||
@@ -193,65 +120,19 @@
|
||||
|
||||
<el-table v-loading="materialLoading" :data="materialOptions" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="序号" align="center" prop="onlyIdentity" />
|
||||
<el-table-column label="仓库编码" align="center" prop="warehouseId" />
|
||||
<el-table-column label="仓库" align="center" prop="warehouseName" />
|
||||
<el-table-column label="id" align="center" prop="onlyIdentity" />
|
||||
<el-table-column label="物料编码" align="center" prop="productId" />
|
||||
<el-table-column label="物料名称" align="center" prop="productName" />
|
||||
<el-table-column label="数量" align="center" prop="quantity" />
|
||||
<el-table-column label="仓库id" align="center" prop="warehouseId" />
|
||||
<el-table-column label="合同号" align="center" prop="orderId" />
|
||||
<el-table-column label="产品号" align="center" prop="power" />
|
||||
<el-table-column label="代号" align="center" prop="distribution" />
|
||||
<el-table-column label="台次" align="center" prop="spare5" />
|
||||
|
||||
<el-table-column label="物料编码" align="center" prop="productId" />
|
||||
<!-- <el-table-column label="批次" align="center" prop="lotNo" />-->
|
||||
<el-table-column label="物料名称" align="center" prop="productName" />
|
||||
<el-table-column label="规格型号" align="center" prop="spec" />
|
||||
<!-- <el-table-column label="图号" align="center" prop="cargoNo" />-->
|
||||
<el-table-column label="库存数量" align="center" prop="quantity" />
|
||||
|
||||
<!-- <el-table-column label="来源" align="center" prop="spare1">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.origin_type" :value="scope.row.spare1"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="套账" align="center" prop="spare3">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.account_type" :value="scope.row.spare3"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="用途" align="center" prop="spare4">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.purpose_type" :value="scope.row.spare4"/>
|
||||
</template>
|
||||
</el-table-column>-->
|
||||
<!-- <el-table-column label="入库单价" align="center" prop="spare6" />-->
|
||||
<!-- <el-table-column label="状态" align="center" prop="voltage">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.turnover_type" :value="scope.row.voltage"/>
|
||||
</template>
|
||||
</el-table-column>-->
|
||||
<!-- <el-table-column label="供应商" align="center" prop="phase" />-->
|
||||
<!-- <el-table-column label="供应商" align="center" prop="supplierName" />-->
|
||||
|
||||
<!-- <el-table-column label="质量等级" align="center" prop="spare8">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.quality_type" :value="scope.row.spare8"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="单价" align="center" prop="price" />
|
||||
|
||||
<el-table-column label="物料状态" align="center" prop="productStatus">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.product_type" :value="scope.row.productStatus"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="常用编码" align="center" prop="parentId" />
|
||||
<el-table-column label="启用标识" align="center" prop="spare7">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.sys_yes_no" :value="scope.row.spare7"/>
|
||||
</template>
|
||||
</el-table-column>-->
|
||||
<!-- <el-table-column label="创建用户" align="center" prop="createSys" />-->
|
||||
<!-- <el-table-column label="单位" align="center" prop="unit" />-->
|
||||
<el-table-column label="单重" align="center" prop="netWeight" />
|
||||
<el-table-column label="路线" align="center" prop="grossWeight" />
|
||||
<el-table-column label="供应商" align="center" prop="phase" />
|
||||
<el-table-column label="部门" align="center" prop="model" />
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
@@ -268,104 +149,6 @@
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 选择客户弹窗 -->
|
||||
<el-dialog :title="'客户管理'" :visible.sync="customerDialog" width="800px" append-to-body>
|
||||
<el-form :model="customerQueryParams" ref="customerQueryForm" size="small" :inline="true" label-width="100px">
|
||||
<el-form-item :label="'客户编号'" prop="customerNo"><!--客户编号-->
|
||||
<el-input
|
||||
v-model="customerQueryParams.customerNo"
|
||||
:placeholder="'请输入客户编号'"
|
||||
clearable
|
||||
@keyup.enter.native="handleCustomerQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item :label="'客户名称'" prop="customerName"><!--客户名称-->
|
||||
<el-input
|
||||
v-model="customerQueryParams.customerName"
|
||||
:placeholder="'请输入客户名称'"
|
||||
clearable
|
||||
@keyup.enter.native="handleCustomerQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleCustomerQuery">搜索<!--搜索--></el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetCustomerQuery">重置<!--重置--></el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-table ref="customerTable" v-loading="customerLoading" :data="customerList" @row-click="handleCustomerRowClick" highlight-current-row>
|
||||
<el-table-column :label="'客户编号'" align="left" prop="customerNo" /><!--客户编号-->
|
||||
<el-table-column :label="'客户名称'" align="left" prop="customerName" /><!--客户名称-->
|
||||
<!-- <el-table-column :label="$t('basCustomer.simpleName')" align="left" prop="simpleName" />客户简称 -->
|
||||
<el-table-column :label="'是否可用'" align="left" prop="useable">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.is_available" :value="scope.row.useable"/>
|
||||
</template>
|
||||
</el-table-column><!--是否可用-->
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="customerTotal > 0"
|
||||
:total="customerTotal"
|
||||
:page.sync="customerQueryParams.pageNum"
|
||||
:limit.sync="customerQueryParams.pageSize"
|
||||
@pagination="getCustomerList"
|
||||
/>
|
||||
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="confirmSelectCustomer">确定<!--确 定--></el-button>
|
||||
<el-button @click="cancelSelectCustomer">取消<!--取 消--></el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 选择供应商弹窗 -->
|
||||
<el-dialog :title="'选择供应商'" :visible.sync="supplierDialog" width="800px" append-to-body>
|
||||
<el-form :model="supplierQueryParams" ref="supplierQueryForm" size="small" :inline="true" label-width="100px">
|
||||
<el-form-item :label="'供应商编号'" prop="supplierNo">
|
||||
<el-input
|
||||
v-model="supplierQueryParams.supplierNo"
|
||||
:placeholder="'请输入供应商编号'"
|
||||
clearable
|
||||
@keyup.enter.native="handleSupplierQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item :label="'供应商名称'" prop="supplierName">
|
||||
<el-input
|
||||
v-model="supplierQueryParams.supplierName"
|
||||
:placeholder="'请输入供应商名称'"
|
||||
clearable
|
||||
@keyup.enter.native="handleSupplierQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleSupplierQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetSupplierQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-table ref="supplierTable" v-loading="supplierLoading" :data="supplierList" @row-click="handleSupplierRowClick" highlight-current-row>
|
||||
<el-table-column :label="'供应商编号'" align="left" prop="supplierNo" />
|
||||
<el-table-column :label="'供应商名称'" align="left" prop="supplierName" />
|
||||
<el-table-column :label="'是否可用'" align="left" prop="useable">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.is_available" :value="scope.row.useable"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="supplierTotal > 0"
|
||||
:total="supplierTotal"
|
||||
:page.sync="supplierQueryParams.pageNum"
|
||||
:limit.sync="supplierQueryParams.pageSize"
|
||||
@pagination="getSupplierListForDialog"
|
||||
/>
|
||||
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="confirmSelectSupplier">确定</el-button>
|
||||
<el-button @click="cancelSelectSupplier">取消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -642,36 +425,21 @@ export default {
|
||||
|
||||
this.materialList = this.materialList.concat(
|
||||
newMaterials.map(item => ({
|
||||
onlyIdentity: item.onlyIdentity,
|
||||
productId: item.productId,
|
||||
productName: item.productName,
|
||||
quantity: item.quantity,
|
||||
quantityOrignal: item.quantity,
|
||||
spec: item.voltage,
|
||||
supplierId: item.phase,
|
||||
supplierName: item.supplierName,
|
||||
phase: item.power,
|
||||
fid: item.distribution,
|
||||
cargoNo: item.orderId,
|
||||
entryid: item.spare3,
|
||||
unit: item.spare1,
|
||||
model: item.spare4,
|
||||
price:item.spare6,
|
||||
power:item.spare5,
|
||||
warehouseId: item.warehouseId,
|
||||
warehouseName: item.warehouseName,
|
||||
lotNo: item.lotNo,
|
||||
voltage:item.spare8,
|
||||
onlyIdentity: item.onlyIdentity,
|
||||
productPrice:item.price,
|
||||
productSpec:item.spec,
|
||||
productUnit:item.unit,
|
||||
productDrawNo:item.cargoNo,
|
||||
productStatus:item.productStatus,
|
||||
parentId: item.parentId,
|
||||
isUsed:item.spare7,
|
||||
createTime: item.createTime,
|
||||
createSys:item.createSys
|
||||
|
||||
orderId: item.orderId,
|
||||
power: item.power,
|
||||
distribution: item.distribution,
|
||||
spec: item.spare5,
|
||||
netWeight: item.netWeight,
|
||||
grossWeight: item.grossWeight,
|
||||
phase: item.phase,
|
||||
model: item.model,
|
||||
|
||||
}))
|
||||
);
|
||||
@@ -759,4 +527,14 @@ export default {
|
||||
width: auto;
|
||||
min-width: fit-content;
|
||||
}
|
||||
.material-dialog {
|
||||
height: 50vh;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.material-dialog >>> .el-dialog__body {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -152,11 +152,15 @@
|
||||
<dict-tag :options="dict.type.bill_resource" :value="scope.row.stockoutSource"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="上位单号" align="left" prop="erpStockoutId" width="150"/><!--入库订单-->
|
||||
<!-- <el-table-column :label="'出口'" align="left" prop="exitId" />-->
|
||||
<!-- <el-table-column :label="'客户编码'" align="left" prop="customerNo" /><!– 客户编码 –>-->
|
||||
<!-- <el-table-column label="客户名称" align="left" prop="customerName" />-->
|
||||
<el-table-column label="建单人" align="left" prop="createManName" /> <!-- 建单人 -->
|
||||
<el-table-column label="上位单号" align="left" prop="erpStockoutId" width="150"/><!--入库订单-->
|
||||
<el-table-column label="出口" align="left" prop="exitId" ><!--出口-->
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.exit_type" :value="scope.row.exitId"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="领料人" align="left" prop="classNowId" />
|
||||
<!-- <el-table-column label="客户名称" align="left" prop="customerName" />-->
|
||||
<el-table-column label="创建时间" align="left" prop="createDate" width="160"/><!-- 创建时间 -->
|
||||
<el-table-column label="开始时间" align="left" prop="startDate" width="160"/><!-- 开始时间 -->
|
||||
<el-table-column label="确认时间" align="left" prop="finishDate" width="160"/> <!-- 确认时间 -->
|
||||
@@ -176,88 +180,31 @@
|
||||
<el-table v-loading="detailLoading" :data="outStockDetailList" style="margin-top: 20px;" @selection-change="handleDetailSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column :label="'出库子单编号'" align="center" prop="stockoutDetailId" width="160" /> <!-- 出库子单编号 -->
|
||||
<!-- <el-table-column label="仓库" align="center" prop="warehouseId" >
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.warehouse" :value="scope.row.warehouseId"/>
|
||||
</template>
|
||||
</el-table-column>-->
|
||||
<el-table-column label="合同号" align="center" prop="cargoNo" width="160"/>
|
||||
<el-table-column label="产品号" align="center" prop="phase" width="160"/>
|
||||
<el-table-column label="代号" align="center" prop="fid" width="160"/>
|
||||
<el-table-column label="台次" align="center" prop="power" width="160"/>
|
||||
<el-table-column label="物料编码" align="center" prop="productId" /> <!-- 物资编码 -->
|
||||
<el-table-column label="合同号" align="center" prop="orderId" width="160"/>
|
||||
<el-table-column label="产品号" align="center" prop="power" width="160"/>
|
||||
<el-table-column label="代号" align="center" prop="distribution" width="160"/>
|
||||
<el-table-column label="台次" align="center" prop="spec" width="160"/>
|
||||
<el-table-column label="单重" align="center" prop="netWeight" />
|
||||
<el-table-column label="路线" align="center" prop="grossWeight" width="160"/>
|
||||
<el-table-column label="供应商" align="center" prop="phase" width="160"/>
|
||||
<el-table-column label="物料编码" align="center" prop="productId" />
|
||||
<el-table-column label="物料名称" align="center" prop="productName" />
|
||||
<!-- <el-table-column :label="'批次'" align="center" prop="lotNo"/>-->
|
||||
<!-- <el-table-column label="规格型号" align="center" prop="productSpec" />-->
|
||||
<!-- <el-table-column label="供应商" align="center" prop="supplierName" />-->
|
||||
<!-- <el-table-column label="客户" align="center" prop="customerName" />-->
|
||||
<el-table-column label="计划数量" align="center" prop="quantity" /> <!-- 计划数量 -->
|
||||
<el-table-column label="分配数量" align="center" prop="allotQuantity" /> <!-- 分配数量 -->
|
||||
<el-table-column label="实际数量" align="center" prop="assignNum" /> <!-- 实际数量 -->
|
||||
<!-- <el-table-column label="回传状态" align="center" prop="swStatus" >
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.sw_status" :value="scope.row.swStatus"/>
|
||||
</template>
|
||||
</el-table-column>-->
|
||||
<!-- <el-table-column :label="'入库单价'" align="center" prop="price"/>-->
|
||||
<!-- <el-table-column :label="'来源'" align="center" prop="unit">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.origin_type" :value="scope.row.unit"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :label="'状态'" align="center" prop="spec">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.turnover_type" :value="scope.row.spec"/>
|
||||
</template>
|
||||
</el-table-column>-->
|
||||
<!-- <el-table-column label="产品质量" align="center" prop="voltage" >
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.quality_type" :value="scope.row.voltage"/>
|
||||
</template>
|
||||
</el-table-column>-->
|
||||
|
||||
|
||||
<!-- <el-table-column label="分销" align="center" prop="distribution" />-->
|
||||
<!-- <el-table-column label="用途" align="center" prop="model" >
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.purpose_type" :value="scope.row.model"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="套账" align="center" prop="entryid" >
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.account_type" :value="scope.row.entryid"/>
|
||||
</template>
|
||||
</el-table-column>-->
|
||||
|
||||
<!-- <el-table-column label="单位" align="center" prop="productUnit" />-->
|
||||
<!-- <el-table-column label="图号" align="center" prop="productDrawNo" />-->
|
||||
<!-- <el-table-column label="物料状态" align="center" prop="productStatus" >
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.product_type" :value="scope.row.productStatus"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="常用编码" align="center" prop="parentId" />
|
||||
<el-table-column label="是否启用" align="center" prop="isUsed" >
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.sys_yes_no" :value="scope.row.isUsed"/>
|
||||
</template>
|
||||
</el-table-column>-->
|
||||
<!-- <el-table-column label="创建时间" align="center" prop="createTime" />
|
||||
<el-table-column label="创建用户" align="center" prop="createSys" />-->
|
||||
<el-table-column label="计划数量" align="center" prop="quantity" />
|
||||
<el-table-column label="分配数量" align="center" prop="allotQuantity" />
|
||||
<el-table-column label="实际数量" align="center" prop="assignNum" />
|
||||
|
||||
</el-table>
|
||||
|
||||
<!-- <pagination-->
|
||||
<!-- v-show="detailTotal>0"-->
|
||||
<!-- :total="detailTotal"-->
|
||||
<!-- :page.sync="detailQueryParams.pageNum"-->
|
||||
<!-- :limit.sync="detailQueryParams.pageSize"-->
|
||||
<!-- @pagination="getDetailList"-->
|
||||
<!-- />-->
|
||||
|
||||
<!-- 审核弹窗 -->
|
||||
<el-dialog :title="'审核'" :visible.sync="auditDialogVisible" width="400px" append-to-body>
|
||||
<el-form ref="auditForm" :model="auditForm" :rules="auditRules" label-width="80px">
|
||||
<el-form-item label="领料人" prop="pickUser">
|
||||
<el-input
|
||||
v-model="auditForm.pickUser"
|
||||
placeholder="请输入领料人"
|
||||
clearable
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item :label="'选择出口'" prop="exitId">
|
||||
<el-select v-model="auditForm.exitId" :placeholder="'请选择出口'" clearable>
|
||||
<el-option
|
||||
@@ -401,7 +348,7 @@ import {listWarehouse} from "@/api/bas/warehouse";
|
||||
|
||||
export default {
|
||||
name: "OutStockWithDetail",
|
||||
dicts: ['bill_resource','sw_status','out_bill_type', 'out_bill_status', 'product_type', 'quality_type', 'turnover_type', 'sys_yes_no','account_type','origin_type','purpose_type','warehouse'],
|
||||
dicts: ['bill_resource','out_bill_type', 'out_bill_status','exit_type'],
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
@@ -428,7 +375,8 @@ export default {
|
||||
auditDialogVisible: false,
|
||||
// 审核表单数据
|
||||
auditForm: {
|
||||
exitId: null
|
||||
exitId: null,
|
||||
pickUser:null
|
||||
},
|
||||
// 库存明细弹窗显示状态
|
||||
stockDialogVisible: false,
|
||||
@@ -448,8 +396,8 @@ export default {
|
||||
},
|
||||
// 出口选项
|
||||
exitOptions: [
|
||||
{ exitId: '1', exitName: '北端'},
|
||||
{ exitId: '2', exitName: '南端'},
|
||||
{ exitId: '1', exitName: '入库端'},
|
||||
{ exitId: '2', exitName: '出库端'},
|
||||
|
||||
],
|
||||
|
||||
@@ -624,6 +572,7 @@ export default {
|
||||
|
||||
this.auditDialogVisible = true
|
||||
this.auditForm.exitId = null
|
||||
this.auditForm.pickUser = null
|
||||
return
|
||||
}
|
||||
|
||||
@@ -726,7 +675,8 @@ export default {
|
||||
stockoutIds: this.selectedRows.map(row => row.stockoutId),
|
||||
status: this.selectedRows[0].status,
|
||||
newStatus: this.currentAuditStatus,
|
||||
exitId: this.auditForm.exitId
|
||||
exitId: this.auditForm.exitId,
|
||||
pickUser: this.auditForm.pickUser
|
||||
}
|
||||
// console.log("单据状态修改(含出口信息):", params)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user