Commit 335751c4 by chuishuo

列表字段居中

parent 1f3d0207
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
<el-table v-loading="loading" :data="stocktakesList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="stocktakesList" @selection-change="handleSelectionChange">
<el-table-column label="计划日期" align="center" prop="plannedDates" width="180" /> <el-table-column label="计划日期" align="center" prop="plannedDates" width="180" />
<el-table-column label="物料" prop="materialId" fixed> <el-table-column label="物料" align="center" prop="materialId" fixed>
<template slot-scope="scope"> <template slot-scope="scope">
{{ getDictLabel(materialDict, scope.row.materialId, 'sap_no', 'material_name') }} {{ getDictLabel(materialDict, scope.row.materialId, 'sap_no', 'material_name') }}
</template> </template>
...@@ -142,12 +142,12 @@ ...@@ -142,12 +142,12 @@
{{ getDictLabel(materialDict, scope.row.materialId, 'sap_no', 'material_name') || '无' }} {{ getDictLabel(materialDict, scope.row.materialId, 'sap_no', 'material_name') || '无' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="SAP物料号" prop="sapNo" /> <el-table-column label="SAP物料号" align="center" prop="sapNo" />
<el-table-column label="仓库" prop="warehousesName" /> <el-table-column label="仓库" align="center" prop="warehousesName" />
<el-table-column label="库位" prop="locationName" /> <el-table-column label="库位" align="center" prop="locationName" />
<el-table-column label="危险类别" prop="hazardName" /> <el-table-column label="危险类别" align="center" prop="hazardName" />
<el-table-column label="差异数量" prop="varianceQuantity" /> <el-table-column label="差异数量" align="center" prop="varianceQuantity" />
<el-table-column label="差异金额" prop="varianceAmount"> <el-table-column label="差异金额" align="center" prop="varianceAmount">
<template slot-scope="scope"> <template slot-scope="scope">
{{ formatAmount(scope.row.varianceAmount) }} {{ formatAmount(scope.row.varianceAmount) }}
</template> </template>
......
...@@ -77,19 +77,19 @@ ...@@ -77,19 +77,19 @@
border border
size="small"> size="small">
<el-table-column label="子表ID" align="center" width="150px" prop="id" v-if="false" /> <el-table-column label="子表ID" align="center" width="150px" prop="id" v-if="false" />
<el-table-column label="物料" prop="materialId" width="150px" fixed> <el-table-column label="物料" align="center" prop="materialId" width="150px" fixed>
<template slot-scope="scope"> <template slot-scope="scope">
<div class="el-input__inner disabled-input" style="padding: 0 15px; height: 32px; line-height: 32px;"> <div class="el-input__inner disabled-input" style="padding: 0 15px; height: 32px; line-height: 32px;">
{{ getDictLabel(materialDict, scope.row.materialId, 'sap_no', 'material_name') }} {{ getDictLabel(materialDict, scope.row.materialId, 'sap_no', 'material_name') }}
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="批次编号" prop="batchCode" width="150px" > <el-table-column label="批次编号" align="center" prop="batchCode" width="150px" >
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.batchCode" placeholder="请输入批次编号" disabled /> <el-input v-model="scope.row.batchCode" placeholder="请输入批次编号" disabled />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="仓库" prop="warehouseName" width="150px" > <el-table-column label="仓库" align="center" prop="warehouseName" width="150px" >
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.warehouseName" placeholder="请输入仓库" disabled /> <el-input v-model="scope.row.warehouseName" placeholder="请输入仓库" disabled />
<!-- <div class="el-input__inner disabled-input" style="padding: 0 15px; height: 32px; line-height: 32px;">--> <!-- <div class="el-input__inner disabled-input" style="padding: 0 15px; height: 32px; line-height: 32px;">-->
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
<!-- </div>--> <!-- </div>-->
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="库位" prop="locationName" width="150px" > <el-table-column label="库位" align="center" prop="locationName" width="150px" >
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <div class="el-input__inner disabled-input" style="padding: 0 15px; height: 32px; line-height: 32px;">--> <!-- <div class="el-input__inner disabled-input" style="padding: 0 15px; height: 32px; line-height: 32px;">-->
<!-- {{ scope.row.location_name || scope.row.locationId || '未知库位' }}--> <!-- {{ scope.row.location_name || scope.row.locationId || '未知库位' }}-->
...@@ -105,12 +105,12 @@ ...@@ -105,12 +105,12 @@
<el-input v-model="scope.row.locationName" placeholder="请输入库位" disabled /> <el-input v-model="scope.row.locationName" placeholder="请输入库位" disabled />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="系统数量" prop="systemQuantity" width="150px" > <el-table-column label="系统数量" align="center" prop="systemQuantity" width="150px" >
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.systemQuantity" placeholder="请输入系统数量" disabled /> <el-input v-model="scope.row.systemQuantity" placeholder="请输入系统数量" disabled />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="实际数量" prop="actualQuantity" width="150px" > <el-table-column label="实际数量" align="center" prop="actualQuantity" width="150px" >
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.actualQuantity" <el-input v-model="scope.row.actualQuantity"
placeholder="请输入实际数量" placeholder="请输入实际数量"
...@@ -120,31 +120,31 @@ ...@@ -120,31 +120,31 @@
/> />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="差异数量" prop="varianceQuantity" width="150px" > <el-table-column label="差异数量" align="center" prop="varianceQuantity" width="150px" >
<template slot-scope="scope"> <template slot-scope="scope">
<el-input type="number" v-model="scope.row.varianceQuantity" placeholder="请输入差异数量" disabled /> <el-input type="number" v-model="scope.row.varianceQuantity" placeholder="请输入差异数量" disabled />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="单价" prop="unitPrice" width="150px" > <el-table-column label="单价" align="center" prop="unitPrice" width="150px" >
<template slot-scope="scope"> <template slot-scope="scope">
<div class="el-input__inner disabled-input" style="padding: 0 15px; height: 32px; line-height: 32px;"> <div class="el-input__inner disabled-input" style="padding: 0 15px; height: 32px; line-height: 32px;">
{{ formatAmount(scope.row.unitPrice) }} {{ formatAmount(scope.row.unitPrice) }}
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="差异金额" prop="varianceAmount" width="150px" > <el-table-column label="差异金额" align="center" prop="varianceAmount" width="150px" >
<template slot-scope="scope"> <template slot-scope="scope">
<div class="el-input__inner disabled-input" style="padding: 0 15px; height: 32px; line-height: 32px;"> <div class="el-input__inner disabled-input" style="padding: 0 15px; height: 32px; line-height: 32px;">
{{ formatAmount(scope.row.varianceAmount) }} {{ formatAmount(scope.row.varianceAmount) }}
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="是否已调整" prop="adjusted" v-if="isConfirm" width="150px" > <el-table-column label="是否已调整" align="center" prop="adjusted" v-if="isConfirm" width="150px" >
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.adjusted" placeholder="请输入是否已调整0否1是" disabled /> <el-input v-model="scope.row.adjusted" placeholder="请输入是否已调整0否1是" disabled />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="调整原因" prop="adjustmentReason" width="150px" > <el-table-column label="调整原因" align="center" prop="adjustmentReason" width="150px" >
<template slot-scope="scope"> <template slot-scope="scope">
<el-input <el-input
v-model="scope.row.adjustmentReason" v-model="scope.row.adjustmentReason"
...@@ -156,12 +156,12 @@ ...@@ -156,12 +156,12 @@
/> />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="调整人" prop="adjustedBy" v-if="isConfirm" width="150px" > <el-table-column label="调整人" align="center" prop="adjustedBy" v-if="isConfirm" width="150px" >
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.adjustedBy" placeholder="请输入调整人" disabled /> <el-input v-model="scope.row.adjustedBy" placeholder="请输入调整人" disabled />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="调整时间" prop="adjustedAt"v-if="isConfirm" width="150px" > <el-table-column label="调整时间" align="center" prop="adjustedAt"v-if="isConfirm" width="150px" >
<template slot-scope="scope"> <template slot-scope="scope">
<el-date-picker clearable v-model="scope.row.adjustedAt" type="date" value-format="yyyy-MM-dd" placeholder="请选择调整时间" disabled /> <el-date-picker clearable v-model="scope.row.adjustedAt" type="date" value-format="yyyy-MM-dd" placeholder="请选择调整时间" disabled />
</template> </template>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论