|
|
|
|
@ -64,16 +64,16 @@
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['wms:outStockBill:add']">新增 </el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<!--<el-col :span="1.5">-->
|
|
|
|
|
<!-- <el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate()" v-hasPermi="['wms:outStockBill:edit']"-->
|
|
|
|
|
<!-- >修改-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<!--</el-col>-->
|
|
|
|
|
<!--<el-col :span="1.5">-->
|
|
|
|
|
<!-- <el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete()" v-hasPermi="['wms:outStockBill:remove']"-->
|
|
|
|
|
<!-- >删除-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<!--</el-col>-->
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate()" v-hasPermi="['wms:outStockBill:edit']"
|
|
|
|
|
>修改
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete()" v-hasPermi="['wms:outStockBill:remove']"
|
|
|
|
|
>删除
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<!--<el-col :span="1.5">-->
|
|
|
|
|
<!-- <el-button type="warning" plain icon="Download" @click="handleExport" v-hasPermi="['wms:outStockBill:export']">导出 </el-button>-->
|
|
|
|
|
<!--</el-col>-->
|
|
|
|
|
@ -95,10 +95,10 @@
|
|
|
|
|
<el-table-column label="物料编码" align="center" prop="productCode" />
|
|
|
|
|
<el-table-column label="物料名称" align="center" prop="productName" />
|
|
|
|
|
<el-table-column label="批次号" align="center" prop="batchNumber" />
|
|
|
|
|
<el-table-column label="单价" align="center" prop="unitPrice" />
|
|
|
|
|
<!--<el-table-column label="单价" align="center" prop="unitPrice" />-->
|
|
|
|
|
<el-table-column label="出库数量" align="center" prop="outStockAmount" />
|
|
|
|
|
<el-table-column label="单位" align="center" prop="unitName" />
|
|
|
|
|
<el-table-column label="总价" align="center" prop="totalPrice" />
|
|
|
|
|
<!--<el-table-column label="总价" align="center" prop="totalPrice" />-->
|
|
|
|
|
</el-table>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
@ -253,7 +253,7 @@
|
|
|
|
|
<el-table-column label="批次号" align="center" prop="batchNumber" />
|
|
|
|
|
<el-table-column label="物料编码" align="center" prop="productCode" />
|
|
|
|
|
<el-table-column label="物料名称" align="center" prop="productName" />
|
|
|
|
|
<el-table-column label="单价" align="center" prop="unitPrice" width="80" />
|
|
|
|
|
<!--<el-table-column label="单价" align="center" prop="unitPrice" width="80" />-->
|
|
|
|
|
<el-table-column label="当前库存" align="center" prop="inventoryAmount" width="90" />
|
|
|
|
|
<el-table-column label="出库数量" align="center" prop="outStockAmount" width="140">
|
|
|
|
|
<template #default="scope">
|
|
|
|
|
@ -263,19 +263,19 @@
|
|
|
|
|
:precision="2"
|
|
|
|
|
:step="1"
|
|
|
|
|
:max="scope.row.inventoryAmount"
|
|
|
|
|
@change="calculateTotalPrice(scope.row)"
|
|
|
|
|
controls-position="right"
|
|
|
|
|
size="small"
|
|
|
|
|
placeholder="请输入出库数量"
|
|
|
|
|
/>
|
|
|
|
|
<!--@change="calculateTotalPrice(scope.row)"-->
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="单位" align="center" prop="unitName" width="80" />
|
|
|
|
|
<el-table-column label="总价" align="center" prop="totalPrice" width="80">
|
|
|
|
|
<!-- <el-table-column label="总价" align="center" prop="totalPrice" width="80">
|
|
|
|
|
<template #default="scope">
|
|
|
|
|
{{ scope.row.totalPrice || '0.00' }}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table-column>-->
|
|
|
|
|
|
|
|
|
|
<el-table-column label="操作" align="center" fixed="right" class-name="small-padding fixed-width" width="60">
|
|
|
|
|
<template #default="scope">
|
|
|
|
|
@ -289,15 +289,15 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<template #footer>
|
|
|
|
|
<div class="dialog-footer" style="display: flex; justify-content: space-between; align-items: center; width: 100%">
|
|
|
|
|
<div class="total-price-summary">
|
|
|
|
|
<span style="font-weight: bold; color: #409eff">总价合计: {{ totalPriceSum }} 元</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="dialog-footer">
|
|
|
|
|
<el-button :loading="buttonLoading" type="primary" @click="submitForm">确 定</el-button>
|
|
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<!--<div class="dialog-footer" style="display: flex; justify-content: space-between; align-items: center; width: 100%">-->
|
|
|
|
|
<!--<div class="total-price-summary">-->
|
|
|
|
|
<!-- <span style="font-weight: bold; color: #409eff">总价合计: {{ totalPriceSum }} 元</span>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
<div class="dialog-footer">
|
|
|
|
|
<el-button :loading="buttonLoading" type="primary" @click="submitForm">确 定</el-button>
|
|
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
</template>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
</div>
|
|
|
|
|
@ -583,10 +583,10 @@ const submitForm = () => {
|
|
|
|
|
warehouseId: form.value.warehouseId,
|
|
|
|
|
materielId: item.materielId,
|
|
|
|
|
batchNumber: item.batchNumber,
|
|
|
|
|
unitPrice: item.unitPrice,
|
|
|
|
|
// unitPrice: item.unitPrice,
|
|
|
|
|
outStockAmount: item.outStockAmount,
|
|
|
|
|
unitName: item.unitName,
|
|
|
|
|
totalPrice: item.totalPrice,
|
|
|
|
|
// totalPrice: item.totalPrice,
|
|
|
|
|
inProjectId: item.projectId,
|
|
|
|
|
outProjectId: form.value.projectId,
|
|
|
|
|
inventoryDetailsId: item.inventoryDetailsId,
|
|
|
|
|
|