Commit ab52550c by wangchunyang

盘点样式调整

parent d04916a9
...@@ -44,7 +44,6 @@ ...@@ -44,7 +44,6 @@
readonly readonly
@focus="openLocationSelector" @focus="openLocationSelector"
:suffix-icon="''" :suffix-icon="''"
:disabled="!searchParams.warehouseId"
> >
<template v-if="queryLocationName" #suffix> <template v-if="queryLocationName" #suffix>
<i <i
...@@ -84,13 +83,13 @@ ...@@ -84,13 +83,13 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="批次编号" align="center" prop="batchCode" min-width="150px" > <!-- <el-table-column label="批次编号" align="center" prop="batchCode" min-width="150px" >
<template slot-scope="scope"> <template slot-scope="scope">
<div class="disabled-input"> <div class="disabled-input">
{{ scope.row.batchCode }} {{ scope.row.batchCode }}
</div> </div>
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column label="仓库" align="center" prop="warehouseName" min-width="150px" > <el-table-column label="仓库" align="center" prop="warehouseName" min-width="150px" >
<template slot-scope="scope"> <template slot-scope="scope">
<div class="disabled-input"> <div class="disabled-input">
...@@ -157,43 +156,39 @@ ...@@ -157,43 +156,39 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="adjustedType" align="center" label="调整原因类型" min-width="150px"> <el-table-column prop="adjustedType" align="center" label="调整原因类型" min-width="150px">
<template v-if="isConfirm" slot-scope="scope"> <template slot-scope="scope">
<div <template v-if="isConfirm">
class="disabled-input" <div>
> {{ getAdjustReasonName(scope.row.adjustedType) }}
{{ getAdjustReasonName(scope.row.adjustedType) }} </div>
</div> </template>
</template> <template v-if="!isConfirm">
<template v-else slot-scope="scope"> <el-select
<!-- <template slot-scope="scope"> --> v-model="scope.row.adjustedType"
<el-select placeholder="请选择调整原因类型"
v-model="scope.row.adjustedType" :style="getAdjustTypeErrorStyle(scope.row)"
placeholder="请选择调整原因类型" @change="handleItemChange(scope.row)"
:disabled="isConfirm" clearable
:style="getAdjustTypeErrorStyle(scope.row)" size="small"
@change="handleItemChange(scope.row)" >
clearable <el-option
size="small" v-for="item in dict.type.adjusted_type"
> :key="item.value"
<el-option :label="item.label"
v-for="item in dict.type.adjusted_type" :value="item.value"
:key="item.value" />
:label="item.label" </el-select>
:value="item.value" </template>
/>
</el-select>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="调整原因" align="center" prop="adjustmentReason" min-width="150px" > <el-table-column label="调整原因" align="center" prop="adjustmentReason" min-width="150px" >
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="isConfirm"> <template v-if="isConfirm">
<div <div>
class="disabled-input"
>
{{ scope.row.adjustmentReason }} {{ scope.row.adjustmentReason }}
</div> </div>
</template> </template>
<template v-else> <template v-if="!isConfirm">
<el-input <el-input
v-model="scope.row.adjustmentReason" v-model="scope.row.adjustmentReason"
placeholder="请输入调整原因" placeholder="请输入调整原因"
...@@ -204,7 +199,7 @@ ...@@ -204,7 +199,7 @@
</template> </template>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="调整人" align="center" prop="adjustedBy" v-if="isConfirm" min-width="150px" > <!-- <el-table-column label="调整人" align="center" prop="adjustedBy" v-if="isConfirm" min-width="150px" >
<template slot-scope="scope"> <template slot-scope="scope">
<div class="disabled-input"> <div class="disabled-input">
{{ scope.row.adjustedBy }} {{ scope.row.adjustedBy }}
...@@ -217,7 +212,7 @@ ...@@ -217,7 +212,7 @@
{{ scope.row.adjustedAt }} {{ scope.row.adjustedAt }}
</div> </div>
</template> </template>
</el-table-column> </el-table-column> -->
</el-table> </el-table>
</div> </div>
<pagination <pagination
...@@ -307,7 +302,8 @@ export default { ...@@ -307,7 +302,8 @@ export default {
: true : true
return matchMaterial && matchWarehouse && matchLocation return matchMaterial && matchWarehouse && matchLocation
}) })
console.log('itemlist', filtered)
console.log(this.isConfirm)
// 更新总数+分页 // 更新总数+分页
this.total = filtered.length this.total = filtered.length
const start = (this.searchParams.pageNum - 1) * this.searchParams.pageSize const start = (this.searchParams.pageNum - 1) * this.searchParams.pageSize
...@@ -339,9 +335,9 @@ export default { ...@@ -339,9 +335,9 @@ export default {
// 供列表筛选:存仓库编码333(匹配列表里的warehouseId:333 // 供列表筛选:存仓库编码333(匹配列表里的warehouseId:333
this.searchParams.warehouseId = warehouse.warehouseId this.searchParams.warehouseId = warehouse.warehouseId
this.queryWarehouseName = warehouse.warehousesName || warehouse.warehouseId this.queryWarehouseName = warehouse.warehousesName || warehouse.warehouseId
// 仓库选择后,清空库位信息 // // 仓库选择后,清空库位信息
this.queryLocationName = null // this.queryLocationName = null
this.searchParams.locationId = null // this.searchParams.locationId = null
this.handleQuery() this.handleQuery()
}, },
...@@ -349,9 +345,9 @@ export default { ...@@ -349,9 +345,9 @@ export default {
clearQueryWarehouse() { clearQueryWarehouse() {
this.queryWarehouseName = null this.queryWarehouseName = null
this.searchParams.warehouseId = null this.searchParams.warehouseId = null
// 清空仓库时,同时清空库位 // // 清空仓库时,同时清空库位
this.queryLocationName = null // this.queryLocationName = null
this.searchParams.locationId = null // this.searchParams.locationId = null
this.handleQuery() this.handleQuery()
}, },
...@@ -495,6 +491,8 @@ export default { ...@@ -495,6 +491,8 @@ export default {
}, },
/** 获取调整原因名称 */ /** 获取调整原因名称 */
getAdjustReasonName(status) { getAdjustReasonName(status) {
console.log('status', status)
console.log('typelist', this.dict.type.adjusted_type)
const item = this.dict.type.adjusted_type.find(item => item.value === status) const item = this.dict.type.adjusted_type.find(item => item.value === status)
return item ? item.label : '未知' return item ? item.label : '未知'
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论