|
|
|
@ -96,91 +96,92 @@
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="10">
|
|
|
|
|
<el-form-item label="计划完成日期:" prop="planTime">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="repairOrder.planTime"
|
|
|
|
|
type="datetime"
|
|
|
|
|
placeholder="选择日期"
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
clearable
|
|
|
|
|
disabled
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
>
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
|
|
<el-col :span="10">
|
|
|
|
|
<el-form-item class="query-form-item" label="维修人:">
|
|
|
|
|
<el-select v-model="repairOrder.repariName"
|
|
|
|
|
placeholder="请选择维修人"
|
|
|
|
|
clearable="true"
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
disabled
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in userList"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:label="item.employeeName"
|
|
|
|
|
:value="item.userid">
|
|
|
|
|
<span style="float: left">{{ item.employeeName }}</span>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<!--<el-col :span="10">-->
|
|
|
|
|
<!-- <el-form-item label="计划完成日期:" prop="planTime">-->
|
|
|
|
|
<!-- <el-date-picker-->
|
|
|
|
|
<!-- v-model="repairOrder.planTime"-->
|
|
|
|
|
<!-- type="datetime"-->
|
|
|
|
|
<!-- placeholder="选择日期"-->
|
|
|
|
|
<!-- style="width: 90%"-->
|
|
|
|
|
<!-- clearable-->
|
|
|
|
|
<!-- disabled-->
|
|
|
|
|
<!-- value-format="yyyy-MM-dd HH:mm:ss"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- </el-date-picker>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!--</el-col>-->
|
|
|
|
|
<el-col :span="10">
|
|
|
|
|
<el-form-item class="query-form-item" label="审核人:">
|
|
|
|
|
<el-input v-model="repairOrder.auditUserName" placeholder="请输入审核人" style="width: 90%"
|
|
|
|
|
disabled clearable></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="10">
|
|
|
|
|
<el-form-item label="维修开始时间:" prop="repariStartTime">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="repairOrder.repariStartTime"
|
|
|
|
|
type="datetime"
|
|
|
|
|
placeholder="选择日期"
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
clearable
|
|
|
|
|
disabled
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
>
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="10">
|
|
|
|
|
<el-form-item label="维修结束时间:" prop="repariEndTime">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="repairOrder.repariEndTime"
|
|
|
|
|
type="datetime"
|
|
|
|
|
placeholder="选择日期"
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
clearable
|
|
|
|
|
disabled
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
>
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<!--<el-col :span="10">-->
|
|
|
|
|
<!-- <el-form-item class="query-form-item" label="维修人:">-->
|
|
|
|
|
<!-- <el-select v-model="repairOrder.repariName"-->
|
|
|
|
|
<!-- placeholder="请选择维修人"-->
|
|
|
|
|
<!-- clearable="true"-->
|
|
|
|
|
<!-- style="width: 90%"-->
|
|
|
|
|
<!-- disabled-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <el-option-->
|
|
|
|
|
<!-- v-for="item in userList"-->
|
|
|
|
|
<!-- :key="item.id"-->
|
|
|
|
|
<!-- :label="item.employeeName"-->
|
|
|
|
|
<!-- :value="item.userid">-->
|
|
|
|
|
<!-- <span style="float: left">{{ item.employeeName }}</span>-->
|
|
|
|
|
<!-- </el-option>-->
|
|
|
|
|
<!-- </el-select>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!--</el-col>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
<!--<el-row>-->
|
|
|
|
|
<!--<el-col :span="10">-->
|
|
|
|
|
<!-- <el-form-item label="维修开始时间:" prop="repariStartTime">-->
|
|
|
|
|
<!-- <el-date-picker-->
|
|
|
|
|
<!-- v-model="repairOrder.repariStartTime"-->
|
|
|
|
|
<!-- type="datetime"-->
|
|
|
|
|
<!-- placeholder="选择日期"-->
|
|
|
|
|
<!-- style="width: 90%"-->
|
|
|
|
|
<!-- clearable-->
|
|
|
|
|
<!-- disabled-->
|
|
|
|
|
<!-- value-format="yyyy-MM-dd HH:mm:ss"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- </el-date-picker>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!--</el-col>-->
|
|
|
|
|
<!--<el-col :span="10">-->
|
|
|
|
|
<!-- <el-form-item label="维修结束时间:" prop="repariEndTime">-->
|
|
|
|
|
<!-- <el-date-picker-->
|
|
|
|
|
<!-- v-model="repairOrder.repariEndTime"-->
|
|
|
|
|
<!-- type="datetime"-->
|
|
|
|
|
<!-- placeholder="选择日期"-->
|
|
|
|
|
<!-- style="width: 90%"-->
|
|
|
|
|
<!-- clearable-->
|
|
|
|
|
<!-- disabled-->
|
|
|
|
|
<!-- value-format="yyyy-MM-dd HH:mm:ss"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- </el-date-picker>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!--</el-col>-->
|
|
|
|
|
|
|
|
|
|
<!--</el-row>-->
|
|
|
|
|
<el-row>
|
|
|
|
|
<!--<el-col :span="10">-->
|
|
|
|
|
<!-- <el-form-item label="报修说明:">-->
|
|
|
|
|
<!-- <el-input v-model="repairOrder.msg" placeholder="请输入报修信息" style="width: 90%"-->
|
|
|
|
|
<!-- disabled clearable></el-input>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!--</el-col>-->
|
|
|
|
|
<el-col :span="10">
|
|
|
|
|
<el-form-item label="报修说明:">
|
|
|
|
|
<el-input v-model="repairOrder.msg" placeholder="请输入报修信息" style="width: 90%"
|
|
|
|
|
disabled clearable></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="10">
|
|
|
|
|
<el-form-item label="维修说明:">
|
|
|
|
|
<el-input v-model="repairOrder.repariRemark" placeholder="请输入报修信息" style="width: 90%"
|
|
|
|
|
<el-form-item label="备注:">
|
|
|
|
|
<el-input v-model="repairOrder.remark" placeholder="请输入报修信息" style="width: 90%"
|
|
|
|
|
disabled clearable></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
@ -190,6 +191,29 @@
|
|
|
|
|
</el-form>
|
|
|
|
|
</el-card>
|
|
|
|
|
|
|
|
|
|
<el-card class="el-card">
|
|
|
|
|
<el-table v-loading="loading" :data="detailList" style="width: 100%" border highlight-current-row>
|
|
|
|
|
<el-table-column label="序号" type="index" width="60"></el-table-column>
|
|
|
|
|
<el-table-column label="项目内容" prop="content" width="300"></el-table-column>
|
|
|
|
|
<el-table-column label="备注" prop="remark" show-overflow-tooltip="true"></el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
</el-card>
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
|
title="报修配置详情"
|
|
|
|
|
:visible.sync="deviceProjectSelectVisible"
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
|
width="40%"
|
|
|
|
|
v-if="deviceProjectSelectVisible"
|
|
|
|
|
>
|
|
|
|
|
<DeviceInspectPlanProjectSet
|
|
|
|
|
:detailQuery="detailQuery"
|
|
|
|
|
:closeDialog="detailCloseDialogc"
|
|
|
|
|
>
|
|
|
|
|
</DeviceInspectPlanProjectSet>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
@ -202,6 +226,7 @@ import {updateStatusAndTime, updateStatusAndImg} from "@/api/inventory/deviceRep
|
|
|
|
|
import {getDeptDeviceList} from "@/api/inventory/deptDevice";
|
|
|
|
|
import store from "@/store";
|
|
|
|
|
import {warehouseUserList} from "@/api/system/invWarehouse"
|
|
|
|
|
import {filterByorderIdFk} from "@/api/inventory/deviceRepairOrderDetail";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
@ -232,6 +257,9 @@ export default {
|
|
|
|
|
limit: 10
|
|
|
|
|
},
|
|
|
|
|
deviceList: [],
|
|
|
|
|
detailList:[],
|
|
|
|
|
detailQuery:{},
|
|
|
|
|
deviceProjectSelectVisible:false,
|
|
|
|
|
deviceTotal: 0,
|
|
|
|
|
deptName: null,
|
|
|
|
|
invName: null,
|
|
|
|
@ -378,11 +406,28 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
selectDevicerepairOrderDelect(obj) {
|
|
|
|
|
filterByorderIdFk(obj).then((res) => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
if (res.code === 20000) {
|
|
|
|
|
this.detailList = res.data || [];
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.message);
|
|
|
|
|
this.detailList = [];
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.$message.error(error.message);
|
|
|
|
|
this.detailList = [];
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
|
|
|
|
|
if(this.repairOrder.id !=null){
|
|
|
|
|
this.selectDevicerepairOrderDelect({orderIdFk: this.repairOrder.orderId})
|
|
|
|
|
}
|
|
|
|
|
this.getDeptList();
|
|
|
|
|
this.getuserList();
|
|
|
|
|
},
|
|
|
|
|