备件申领-总价单价 故障描述 查看维修工单bug

master
A0010407 11 months ago
parent 14126b2f22
commit 0e5663e8f1

@ -518,13 +518,21 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="故障描述" prop="workFaultDesc"> <el-form-item label="故障描述" prop="workFaultDesc">
<el-input <el-select
v-model="form.workFaultDesc" v-model="form.workFaultDesc"
placeholder="请输入故障描述" @change="$forceUpdate()"
clearable
filterable
style="width: 280px" style="width: 280px"
type="textarea" @keyup.enter.native="handleQuery"
:autosize="{ minRows: 2, maxRows: 4 }" >
/> <el-option
v-for="item in workFaultDescOption"
:key="item.faultCode"
:label="item.faultSubclass"
:value="item.faultSubclass"
></el-option>
</el-select>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
@ -1061,7 +1069,11 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="维修用时" prop="workCostTime"> <el-form-item label="维修用时" prop="workCostTime">
<el-input v-model="form.workCostTime" style="width: 250px" disabled> <el-input
v-model="form.workCostTime"
style="width: 250px"
disabled
>
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -1092,11 +1104,11 @@
<el-select <el-select
v-model="form.workReason" v-model="form.workReason"
placeholder="请选择故障原因" placeholder="请选择故障原因"
@change="$forceUpdate()" @change="$forceUpdate()"
clearable clearable
filterable filterable
style="width: 250px" style="width: 250px"
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
> >
<el-option <el-option
v-for="item in workReasonOption" v-for="item in workReasonOption"
@ -1112,11 +1124,11 @@
<el-select <el-select
v-model="form.repairMeasures" v-model="form.repairMeasures"
placeholder="请选择处理措施" placeholder="请选择处理措施"
@change="$forceUpdate()" @change="$forceUpdate()"
clearable clearable
filterable filterable
style="width: 250px" style="width: 250px"
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
> >
<el-option <el-option
v-for="item in repairMeasuresOption" v-for="item in repairMeasuresOption"
@ -1450,12 +1462,12 @@
<el-form-item label="故障原因" prop="workReason"> <el-form-item label="故障原因" prop="workReason">
<el-select <el-select
v-model="form.workReason" v-model="form.workReason"
@change="$forceUpdate()" @change="$forceUpdate()"
disabled disabled
clearable clearable
filterable filterable
style="width: 250px" style="width: 250px"
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
> >
<el-option <el-option
v-for="item in workReasonOption" v-for="item in workReasonOption"
@ -1470,12 +1482,12 @@
<el-form-item label="处理措施" prop="repairMeasures"> <el-form-item label="处理措施" prop="repairMeasures">
<el-select <el-select
v-model="form.repairMeasures" v-model="form.repairMeasures"
@change="$forceUpdate()" @change="$forceUpdate()"
clearable clearable
filterable filterable
disabled disabled
style="width: 250px" style="width: 250px"
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
> >
<el-option <el-option
v-for="item in repairMeasuresOption" v-for="item in repairMeasuresOption"
@ -1520,6 +1532,7 @@ import {
} from "@/api/device/repairOrder"; } from "@/api/device/repairOrder";
import { listFaultReason } from "@/api/device/faultReason"; import { listFaultReason } from "@/api/device/faultReason";
import { listFaultMeasures } from "@/api/device/faultMeasures"; import { listFaultMeasures } from "@/api/device/faultMeasures";
import { listFaultDescription } from "@/api/device/faultDescription";
import { getMaintenanceTeamList } from "@/api/device/equTeam"; import { getMaintenanceTeamList } from "@/api/device/equTeam";
import ItemSelect from "./selectSingleEquipment.vue"; import ItemSelect from "./selectSingleEquipment.vue";
import ItemSelectPerson from "./selectSinglePerson.vue"; import ItemSelectPerson from "./selectSinglePerson.vue";
@ -1566,8 +1579,10 @@ export default {
"text-align": "center", "text-align": "center",
width: "250px", width: "250px",
}, },
//
workFaultDescOption : [],
// //
repairMeasuresOption : [], repairMeasuresOption: [],
// //
workReasonOption: [], workReasonOption: [],
// //
@ -1723,6 +1738,7 @@ export default {
this.getEquFaultTypeTree(); this.getEquFaultTypeTree();
this.getWorkReason(); this.getWorkReason();
this.getRepairMeasures(); this.getRepairMeasures();
this.getOrderDesc();
}, },
methods: { methods: {
// //
@ -1738,7 +1754,13 @@ export default {
let { _data } = duration; let { _data } = duration;
console.log("打印维修时间", _data); console.log("打印维修时间", _data);
// //
this.form.workCostTime = (_data.days*24 + _data.hours + (_data.minutes/60) + (_data.seconds/3600)).toFixed(1)+ "小时" ; this.form.workCostTime =
(
_data.days * 24 +
_data.hours +
_data.minutes / 60 +
_data.seconds / 3600
).toFixed(1) + "小时";
} }
}, },
// - // -
@ -1774,6 +1796,13 @@ export default {
this.loading = false; this.loading = false;
}); });
}, },
/** 查询故障描述列表 */
getOrderDesc() {
this.loading = true;
listFaultDescription(this.auxiliaryQueryParams).then((response) => {
this.workFaultDescOption = response.rows;
});
},
/** 查询维修原因列表 */ /** 查询维修原因列表 */
getWorkReason() { getWorkReason() {
this.loading = true; this.loading = true;
@ -1829,8 +1858,7 @@ export default {
}, },
// - // -
cancelQueryWriteForm() { cancelQueryWriteForm() {
this.openWrite = false; this.queryWrite = false;
this.reset();
}, },
// //
reset() { reset() {

@ -99,6 +99,18 @@
prop="applyPeople" prop="applyPeople"
width="80" width="80"
/> />
<el-table-column
label="单价"
align="center"
prop="unitPrice"
width="100"
/>
<el-table-column
label="总价"
align="center"
prop="totalPrice"
width="100"
/>
<el-table-column <el-table-column
label="批准人" label="批准人"
align="center" align="center"
@ -326,6 +338,8 @@ export default {
spareApplyList.workCode = this.queryParams.workCode; spareApplyList.workCode = this.queryParams.workCode;
spareApplyList.storageId = item.storageId; spareApplyList.storageId = item.storageId;
spareApplyList.amount = item.amount; spareApplyList.amount = item.amount;
spareApplyList.unitPrice = item.unitPrice;
spareApplyList.totalPrice = (item.spareQuantity)*(item.unitPrice);
spareApplyLists.push(spareApplyList); spareApplyLists.push(spareApplyList);
}); });
this.form.spareApplyLists = spareApplyLists; this.form.spareApplyLists = spareApplyLists;

@ -104,6 +104,7 @@
<span>{{ scope.row.amount - scope.row.storageAmount }}</span> <span>{{ scope.row.amount - scope.row.storageAmount }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="单价" align="center" prop="unitPrice" />
<el-table-column label="领用数量" align="center" prop="spareQuantity"> <el-table-column label="领用数量" align="center" prop="spareQuantity">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input <el-input

@ -205,6 +205,18 @@
width="150" width="150"
/> />
<el-table-column label="领用数量" align="center" prop="spareQuantity" /> <el-table-column label="领用数量" align="center" prop="spareQuantity" />
<el-table-column
label="单价"
align="center"
prop="unitPrice"
width="100"
/>
<el-table-column
label="总价"
align="center"
prop="totalPrice"
width="100"
/>
<!-- <el-table-column label="使用组线" align="center" prop="spareGroupLine" /> --> <!-- <el-table-column label="使用组线" align="center" prop="spareGroupLine" /> -->
<el-table-column <el-table-column
label="领用时间" label="领用时间"

Loading…
Cancel
Save