This commit is contained in:
GaoHao
2024-10-17 11:35:33 +08:00
5 changed files with 67 additions and 79 deletions

View File

@@ -23,8 +23,8 @@
<template v-slot="scope">
<el-select v-model="scope.row.conInfoId" filterable remote reserve-keyword placeholder="请输入关键词"
:remote-method="remoteMethod" :loading="loading" @change="selectionChange($event, scope.row)">
<el-option v-for="item in options" :key="item.consId" :label="item.conName"
:value="item.consId">
<el-option v-for="item in options" :key="item.id" :label="item.conName"
:value="item.id">
</el-option>
</el-select>
<div class="tips" v-if="scope.row.stockNumber">库存{{ scope.row.stockNumber }}</div>
@@ -65,8 +65,8 @@
<el-select v-model="item.conInfoId" filterable remote reserve-keyword placeholder="请输入关键词"
:remote-method="remoteMethod" :loading="loading"
@change="skuSelectionChange($event, item)">
<el-option v-for="item in options" :key="item.consId" :label="item.conName"
:value="item.consId">
<el-option v-for="item in options" :key="item.id" :label="item.conName"
:value="item.id">
</el-option>
</el-select>
<div class="tips" v-if="scope.row.stockNumber">库存{{ scope.row.stockNumber }}</div>
@@ -188,13 +188,13 @@ export default {
},
// 商品选择耗材
selectionChange(e, row) {
let item = this.options.find(item => item.consId == e)
let item = this.options.find(item => item.id == e)
row.name = item.conName
row.conUnit = item.conUnit
},
// 规格选择耗材
skuSelectionChange(e, row) {
let item = this.options.find(item => item.consId == e)
let item = this.options.find(item => item.id == e)
row.name = item.conName
row.conUnit = item.conUnit
},

View File

@@ -49,12 +49,12 @@
</div>
<div class="info">
<div class="row">
<span>增加数量</span>
<span>增加数量:</span>
<span class="link" @click="showStockHistory('addCountNumber')">{{ countInfo.addCountNumber || 0 }}</span>
</div>
<div class="row">
<div class="row">
<span>手动增加</span>
<span>手动增加:</span>
<span class="link" @click="showStockHistory('addNumber')">{{ countInfo.addNumber || 0 }}</span>
</div>
<div class="line"></div>
@@ -71,12 +71,12 @@
</div>
<div class="info">
<div class="row">
<span>减少数量</span>
<span>减少数量:</span>
<span class="link" @click="showStockHistory('subCountNumber')">{{ countInfo.subCountNumber || 0 }}</span>
</div>
<div class="row">
<div class="row">
<span>手动减少</span>
<span>手动减少:</span>
<span class="link" @click="showStockHistory('subNumber')">{{ countInfo.subNumber || 0 }}</span>
</div>
<div class="line"></div>