库存根据权限新增修改删除

This commit is contained in:
liuhanqing
2026-01-18 10:55:40 +08:00
parent 93c3019eb1
commit bd5201e56f
5 changed files with 98 additions and 15 deletions

View File

@@ -156,7 +156,7 @@
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['system:stock:add']"
v-hasPermi="['stock:management:add']"
>新增</el-button>
</el-col>
<el-col :span="1.5">
@@ -261,7 +261,18 @@
</div>
<el-form ref="form" :model="form" :rules="rules" label-width="90px">
<el-form-item label="合同号" prop="orderId">
<el-input v-model="form.orderId" placeholder="请输入合同号" />
</el-form-item>
<el-form-item label="产品号" prop="power">
<el-input v-model="form.power" placeholder="请输入产品号" />
</el-form-item>
<el-form-item label="代号" prop="distribution">
<el-input v-model="form.distribution" placeholder="请输入代号" />
</el-form-item>
<el-form-item label="台次" prop="spare5">
<el-input v-model="form.spare5" placeholder="请输入台次" />
</el-form-item>
<el-form-item label="物料" prop="productId"> <!-- 物料 -->
<el-input
v-model="form.productName"
@@ -290,6 +301,7 @@
</el-input>
</el-form-item>
<el-form-item label="库存状态" prop="stockStatus"> <!-- 库存状态 -->
<el-select v-model="form.stockStatus" placeholder="请选择库存状态">
<el-option
@@ -727,6 +739,7 @@ export default {
this.form.trayCode = this.currentMasterRow.trayCode
this.form.warehouseId = this.currentMasterRow.warehouseId
this.form.cargoSpaceId = this.currentMasterRow.cargoSpaceId
this.form.cargoSpaceName = this.currentMasterRow.cargoSpaceName
this.open = true
this.title = "添加库存信息" // 添加库存信息
},
@@ -737,6 +750,14 @@ export default {
getManagement(stockId).then(response => {
this.form = response.data
this.open = true
this.form.trayCode = this.currentMasterRow.trayCode
this.form.warehouseId = this.currentMasterRow.warehouseId
this.form.cargoSpaceId = this.currentMasterRow.cargoSpaceId
this.form.cargoSpaceName = this.currentMasterRow.cargoSpaceName
this.form.productId = response.data.productId
this.form.productName =response.data.productName
console.log(this.form)
console.log(this.currentMasterRow)
this.title = "修改库存信息" // 修改库存信息
})
},
@@ -749,7 +770,6 @@ export default {
warehouseId: row.warehouseId,
model:row.model
}
console.log(this.deptForm)
this.openDept = true
this.titleDept = "托盘转运部门"
},