|
@@ -1,43 +1,21 @@
|
|
<template>
|
|
<template>
|
|
<div class="tenant">
|
|
<div class="tenant">
|
|
<div class="content">
|
|
<div class="content">
|
|
- <byTable
|
|
|
|
- :source="sourceList.data"
|
|
|
|
- :pagination="sourceList.pagination"
|
|
|
|
- :config="config"
|
|
|
|
- :loading="loading"
|
|
|
|
- :selectConfig="selectConfig"
|
|
|
|
- highlight-current-row
|
|
|
|
- :action-list="[
|
|
|
|
|
|
+ <byTable :source="sourceList.data" :pagination="sourceList.pagination" :config="config" :loading="loading" :selectConfig="selectConfig"
|
|
|
|
+ highlight-current-row :action-list="[
|
|
{
|
|
{
|
|
text: '手动出库',
|
|
text: '手动出库',
|
|
action: () => openModal(),
|
|
action: () => openModal(),
|
|
},
|
|
},
|
|
- ]"
|
|
|
|
- @get-list="getList"
|
|
|
|
- >
|
|
|
|
|
|
+ ]" @get-list="getList">
|
|
</byTable>
|
|
</byTable>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <el-dialog
|
|
|
|
- title="手动出库"
|
|
|
|
- v-if="dialogVisible"
|
|
|
|
- v-model="dialogVisible"
|
|
|
|
- width="1000"
|
|
|
|
- v-loading="loadingDialog"
|
|
|
|
- >
|
|
|
|
- <byForm
|
|
|
|
- :formConfig="formConfig"
|
|
|
|
- :formOption="formOption"
|
|
|
|
- v-model="formData.data"
|
|
|
|
- :rules="rules"
|
|
|
|
- ref="submit"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-dialog title="手动出库" v-if="dialogVisible" v-model="dialogVisible" width="1000" v-loading="loadingDialog">
|
|
|
|
+ <byForm :formConfig="formConfig" :formOption="formOption" v-model="formData.data" :rules="rules" ref="submit">
|
|
<template #workOrderId>
|
|
<template #workOrderId>
|
|
<div style="width: 100%">
|
|
<div style="width: 100%">
|
|
- <el-button type="primary" @click="openOrder = true"
|
|
|
|
- >选择工单</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ <el-button type="primary" @click="openOrder = true">选择工单</el-button>
|
|
<div style="margin-top: 10px" v-if="selectOrder">
|
|
<div style="margin-top: 10px" v-if="selectOrder">
|
|
已选择: {{ selectOrder }}
|
|
已选择: {{ selectOrder }}
|
|
</div>
|
|
</div>
|
|
@@ -46,69 +24,27 @@
|
|
<template #details>
|
|
<template #details>
|
|
<div style="width: 100%">
|
|
<div style="width: 100%">
|
|
<el-button type="primary" @click="clickAdd()">添加明细</el-button>
|
|
<el-button type="primary" @click="clickAdd()">添加明细</el-button>
|
|
- <el-table
|
|
|
|
- :data="formData.data.list"
|
|
|
|
- style="width: 100%; margin-top: 16px"
|
|
|
|
- >
|
|
|
|
- <el-table-column
|
|
|
|
- prop="productCode"
|
|
|
|
- label="产品编码"
|
|
|
|
- width="140"
|
|
|
|
- />
|
|
|
|
- <el-table-column
|
|
|
|
- prop="productName"
|
|
|
|
- label="产品名称"
|
|
|
|
- min-width="160"
|
|
|
|
- />
|
|
|
|
- <el-table-column
|
|
|
|
- prop="productSpec"
|
|
|
|
- label="规格型号"
|
|
|
|
- width="160"
|
|
|
|
- />
|
|
|
|
- <el-table-column
|
|
|
|
- prop="productUnit"
|
|
|
|
- label="单位"
|
|
|
|
- width="100"
|
|
|
|
- :formatter="
|
|
|
|
|
|
+ <el-table :data="formData.data.list" style="width: 100%; margin-top: 16px">
|
|
|
|
+ <el-table-column prop="productCode" label="产品编码" width="140" />
|
|
|
|
+ <el-table-column prop="productName" label="产品名称" min-width="160" />
|
|
|
|
+ <el-table-column prop="productSpec" label="规格型号" width="160" />
|
|
|
|
+ <el-table-column prop="productUnit" label="单位" width="100" :formatter="
|
|
(row) => dictValueLabel(row.productUnit, productUnit)
|
|
(row) => dictValueLabel(row.productUnit, productUnit)
|
|
- "
|
|
|
|
- />
|
|
|
|
- <el-table-column
|
|
|
|
- prop="productQuantity"
|
|
|
|
- label="库存数量"
|
|
|
|
- width="120"
|
|
|
|
- />
|
|
|
|
|
|
+ " />
|
|
|
|
+ <el-table-column prop="productQuantity" label="库存数量" width="120" />
|
|
<el-table-column label="出库数量" width="160">
|
|
<el-table-column label="出库数量" width="160">
|
|
<template #default="{ row, $index }">
|
|
<template #default="{ row, $index }">
|
|
<div style="width: 100%">
|
|
<div style="width: 100%">
|
|
- <el-form-item
|
|
|
|
- :prop="'list.' + $index + '.quantity'"
|
|
|
|
- :rules="rules.quantity"
|
|
|
|
- :inline-message="true"
|
|
|
|
- >
|
|
|
|
- <el-input-number
|
|
|
|
- v-model="row.quantity"
|
|
|
|
- placeholder="请输入出库数量"
|
|
|
|
- style="width: 100%"
|
|
|
|
- :precision="0"
|
|
|
|
- :controls="false"
|
|
|
|
- :min="1"
|
|
|
|
- onmousewheel="return false;"
|
|
|
|
- />
|
|
|
|
|
|
+ <el-form-item :prop="'list.' + $index + '.quantity'" :rules="rules.quantity" :inline-message="true">
|
|
|
|
+ <el-input-number v-model="row.quantity" placeholder="请输入出库数量" style="width: 100%" :precision="0" :controls="false" :min="1"
|
|
|
|
+ onmousewheel="return false;" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column
|
|
|
|
- align="center"
|
|
|
|
- label="操作"
|
|
|
|
- width="80"
|
|
|
|
- fixed="right"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-table-column align="center" label="操作" width="80" fixed="right">
|
|
<template #default="{ row, $index }">
|
|
<template #default="{ row, $index }">
|
|
- <el-button type="primary" link @click="handleDelete($index)"
|
|
|
|
- >删除</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ <el-button type="primary" link @click="handleDelete($index)">删除</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -117,35 +53,17 @@
|
|
</byForm>
|
|
</byForm>
|
|
<template #footer>
|
|
<template #footer>
|
|
<el-button @click="dialogVisible = false" size="large">取 消</el-button>
|
|
<el-button @click="dialogVisible = false" size="large">取 消</el-button>
|
|
- <el-button type="primary" @click="submitForm()" size="large"
|
|
|
|
- >确 定</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ <el-button type="primary" @click="submitForm()" size="large">确 定</el-button>
|
|
</template>
|
|
</template>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
- <el-dialog
|
|
|
|
- v-model="openProduct"
|
|
|
|
- title="选择商品"
|
|
|
|
- width="80%"
|
|
|
|
- append-to-body
|
|
|
|
- >
|
|
|
|
- <InventoryInquiry
|
|
|
|
- :selectStatus="true"
|
|
|
|
- :warehouseId="formData.data.warehouseId"
|
|
|
|
- @cancel="openProduct = false"
|
|
|
|
- @select="pushGoods"
|
|
|
|
- :key="formData.data.warehouseId"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-dialog v-model="openProduct" title="选择商品" width="80%" append-to-body>
|
|
|
|
+ <InventoryInquiry :selectStatus="true" :warehouseId="formData.data.warehouseId" @cancel="openProduct = false" @select="pushGoods"
|
|
|
|
+ :key="formData.data.warehouseId">
|
|
</InventoryInquiry>
|
|
</InventoryInquiry>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
- <el-dialog
|
|
|
|
- v-model="openOrder"
|
|
|
|
- title="工单选择"
|
|
|
|
- width="80%"
|
|
|
|
- append-to-body
|
|
|
|
- destroy-on-close
|
|
|
|
- >
|
|
|
|
|
|
+ <el-dialog v-model="openOrder" title="工单选择" width="80%" append-to-body destroy-on-close>
|
|
<WorkOrder :isShowSelect="true" @handleSelectRow="handleSelectRow">
|
|
<WorkOrder :isShowSelect="true" @handleSelectRow="handleSelectRow">
|
|
</WorkOrder>
|
|
</WorkOrder>
|
|
<template #footer>
|
|
<template #footer>
|