设备备品备件台账 优化 1.加入展示列,隐藏展示列

master
A0010407 11 months ago
parent 15080fa7b2
commit 06da8fb08c

@ -26,7 +26,25 @@
style="width: 150px" style="width: 150px"
/> />
</el-form-item> </el-form-item>
<el-form-item label="备件类型" prop="spareType"> <el-form-item label="设备厂家" prop="spareSupplier">
<el-input
v-model="queryParams.spareSupplier"
placeholder="请输入设备厂家"
clearable
@keyup.enter.native="handleQuery"
style="width: 150px"
/>
</el-form-item>
<el-form-item label="所属设备名称" prop="ownEquipmentName">
<el-input
v-model="queryParams.ownEquipmentName"
placeholder="请输入所属设备名称"
clearable
@keyup.enter.native="handleQuery"
style="width: 150px"
/>
</el-form-item>
<!-- <el-form-item label="备件类型" prop="spareType">
<el-select <el-select
v-model="queryParams.spareType" v-model="queryParams.spareType"
placeholder="请选择备件类型" placeholder="请选择备件类型"
@ -42,7 +60,7 @@
:value="item.spareType" :value="item.spareType"
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item> -->
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" type="primary"
@ -110,47 +128,39 @@
<el-table <el-table
v-loading="loading" v-loading="loading"
:data="sparePartsLedgerList" :data="sparePartsLedgerList"
@selection-change="handleSelectionChange" border
> >
<el-table-column type="selection" width="55" align="center" />
<!-- 序号 --> <!-- 序号 -->
<el-table-column <el-table-column type="index" width="90" align="center" :index="indexMethod" label="序号"/>
type="index" <!-- 缺了所属设备编码设备数量所在产线 -->
width="90" <el-table-column label="所属设备名称" align="center" prop="ownEquipmentName" width="120"/>
align="center" <!-- 供应商字段里 设备厂家 -->
:index="indexMethod" <el-table-column label="设备厂家" align="center" prop="spareSupplier" width="200"/>
label="序号" <el-table-column label="备品备件号" align="center" prop="materialCode" width="120"/>
/> <el-table-column label="备品备件名称" align="center" prop="materialDesc" width="120"/>
<el-table-column <el-table-column label="规格型号" align="center" prop="spareMode" width="200"/>
label="备品备件号" <el-table-column label="单机装配数量" align="center" prop="unitQuantity" width="50"/>
align="center" <el-table-column label="单价" align="center" prop="unitPrice" width="50"/>
prop="materialCode" <el-table-column label="单位" align="center" prop="userDefined1" width="50"/>
width="120" <el-table-column label="代用件" align="center" prop="substituteParts" width="50"/>
/> <el-table-column label="安全库存" align="center" prop="safeStock" width="50"/>
<el-table-column <el-table-column label="现有库存" align="center" prop="amount" width="50"/>
label="备品备件描述" <el-table-column label="采购方式" align="center" prop="procurementMethod" width="150"/>
align="center" <!-- 生产厂商暂时没有用 -->
prop="materialDesc" <!-- <el-table-column label="生产厂商" align="center" prop="spareManufacturer" width="200"/> -->
width="120" <el-table-column label="更换周期(月)" align="center" prop="spareReplacementCycle"/>
/> <el-table-column label="采购周期(天)" align="center" prop="procurementCycle"/>
<el-table-column <el-table-column label="期初结存" align="center" prop="openingBalance"/>
<el-table-column label="入库记录" align="center" prop="inputRecords"/>
<el-table-column label="出库记录" align="center" prop="outputRecords"/>
<el-table-column label="期末盘点" align="center" prop="endInventory"/>
<el-table-column label="期末金额" align="center" prop="endMoney"/>
<!-- <el-table-column
label="备品备件类型" label="备品备件类型"
align="center" align="center"
prop="spareType" prop="spareType"
width="120" width="120"
/> />
<el-table-column label="规格型号" align="center" prop="spareMode" />
<el-table-column
label="生产厂商"
align="center"
prop="spareManufacturer"
/>
<el-table-column label="供应商" align="center" prop="spareSupplier" />
<el-table-column
label="循环周期"
align="center"
prop="spareReplacementCycle"
/>
<el-table-column <el-table-column
label="计量单位" label="计量单位"
align="center" align="center"
@ -175,7 +185,7 @@
label="库存下限" label="库存下限"
align="center" align="center"
prop="spareInventoryUpper" prop="spareInventoryUpper"
/> /> -->
<el-table-column <el-table-column
v-if="false" v-if="false"
label="工厂号" label="工厂号"
@ -183,28 +193,13 @@
prop="factoryCode" prop="factoryCode"
/> />
<el-table-column label="创建人" align="center" prop="createBy" /> <el-table-column label="创建人" align="center" prop="createBy" />
<el-table-column <el-table-column label="创建时间" align="center" prop="gmtCreate" width="180">
label="创建时间"
align="center"
prop="gmtCreate"
width="180"
>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.gmtCreate, "{y}-{m}-{d}") }}</span> <span>{{ parseTime(scope.row.gmtCreate, "{y}-{m}-{d}") }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column label="最后更新人" align="center" prop="lastModifiedBy" width="100"/>
label="最后更新人" <el-table-column label="最后更新时间" align="center" prop="gmtModified" width="200">
align="center"
prop="lastModifiedBy"
width="100"
/>
<el-table-column
label="最后更新时间"
align="center"
prop="gmtModified"
width="200"
>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.gmtModified, "{y}-{m}-{d}") }}</span> <span>{{ parseTime(scope.row.gmtModified, "{y}-{m}-{d}") }}</span>
</template> </template>
@ -476,6 +471,7 @@ export default {
spareConversionRatio: null, spareConversionRatio: null,
spareInventoryFloor: null, spareInventoryFloor: null,
spareInventoryUpper: null, spareInventoryUpper: null,
ownEquipmentName : null,
}, },
options: [ options: [
{ {
@ -648,6 +644,7 @@ export default {
`sparePartsLedger_${new Date().getTime()}.xlsx` `sparePartsLedger_${new Date().getTime()}.xlsx`
); );
}, },
}, },
}; };
</script> </script>

Loading…
Cancel
Save