| | |
| | | <win-md :title="setting.title" @close="close" :width="'1200px'"> |
| | | <el-row :gutter="20" style="margin-bottom: 20px" type="flex" align="middle"> |
| | | <el-col :span="6">盘点单号:{{ formData.businessFormCode }}</el-col> |
| | | <el-col :span="6">盘点任务:{{ formData.businessTaskCode }}</el-col> |
| | | <el-col :span="6">盘点仓库:{{ formData.warehouseId }}</el-col> |
| | | <el-col :span="6">盘点任务:{{ formData.businessFormName }}</el-col> |
| | | <el-col :span="6">盘点仓库:{{ formData.warehouseName }}</el-col> |
| | | </el-row> |
| | | <el-table v-loading="loading" :data="formData.tableData" height="100%" :stripe="true" class="the-table"> |
| | | <el-table v-loading="loading" :data="formData.formInventoryGoodsList" height="500" :stripe="true" class="the-table"> |
| | | <el-table-column prop="goodsTemplateName" label="物品名称"> </el-table-column> |
| | | <el-table-column prop="baseGoodsModelsId" label="型号" align="center"> </el-table-column> |
| | | <el-table-column prop="inventoryCounts" label="应盘数量" align="center"></el-table-column> |
| | | <el-table-column prop="inventoryCounts" label="实盘数量" align="center"></el-table-column> |
| | | <el-table-column prop="inventoryCounts" label="状态" align="center"></el-table-column> |
| | | <el-table-column prop="baseGoodsModelsName" label="型号" align="center"> </el-table-column> |
| | | <el-table-column prop="inventoryCount" label="应盘数量" align="center"></el-table-column> |
| | | <el-table-column prop="realNum" label="实盘数量" align="center"></el-table-column> |
| | | <el-table-column prop="states" label="状态" align="center"> |
| | | <template slot-scope="{row}"> |
| | | {{row.inventoryResultType}} |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | |
| | | <div slot="footer" align="center" class="dialog-footer"> |
| | | <my-button name="暂存" site="form" type="primary" @click="close" /> |
| | | <my-button name="完成盘点" site="form" type="success" @click="save" /> |
| | | </div> |
| | | </win-md> |
| | | </template> |
| | | |
| | | <script> |
| | | import winMd from '@/components/win/win-md'; |
| | | import myButton from '@/components/myButton/myButton'; |
| | | import {inventoryDetail} from '@/api/stock/inventory'; |
| | | |
| | | export default { |
| | | components: { winMd, myButton }, |
| | | props: { |
| | |
| | | loading: false, |
| | | formData: { |
| | | businessFormCode: '2023080812', |
| | | businessTaskCode: '2023年9月盘点单', |
| | | warehouseId: '开封市仓库', |
| | | tableData: [], |
| | | businessFormName: '2023年9月盘点单', |
| | | warehouseName: '开封市仓库', |
| | | formInventoryGoodsList: [], |
| | | }, |
| | | }; |
| | | }, |
| | | created() { |
| | | for (let i = 0; i < 10; i++) { |
| | | this.formData.tableData.push({ |
| | | goodsTemplateName: '施乐黑色碳粉', |
| | | baseGoodsModelsId: '施乐c2201', |
| | | classification: 'A', |
| | | unit: '套', |
| | | kc: 10, |
| | | price: 20, |
| | | inventoryResult: 200, |
| | | inventoryCounts: 0, |
| | | }); |
| | | } |
| | | inventoryDetail({ id: this.setting.id }).then((res) => { |
| | | this.formData = res; |
| | | }); |
| | | }, |
| | | methods: { |
| | | close() { |