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