fix:修改养护通知单点击新增
This commit is contained in:
parent
21f1bea009
commit
ca417bd01e
@ -43,6 +43,15 @@ export function getMaintenanceNoticeList(params) {
|
||||
});
|
||||
}
|
||||
|
||||
// 获取工单推测数据
|
||||
export function getMaintenanceDetail(data) {
|
||||
return request({
|
||||
url: "/maintenance-notice/getInferredData",
|
||||
method: "post",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
// 生成养护通知单
|
||||
export function addMaintenanceNotice(data) {
|
||||
return request({
|
||||
|
||||
@ -143,7 +143,7 @@ export function getNoticeList(params) {
|
||||
//获取大屏工单信息
|
||||
export function getWorkOrderList(params) {
|
||||
return request({
|
||||
url: "/bigscreen/v2/getMaintenanceCount",
|
||||
url: "/maintenance-notice/getMaintenanceCount",
|
||||
method: "get",
|
||||
params,
|
||||
});
|
||||
|
||||
@ -275,6 +275,10 @@ export default {
|
||||
name: "EditDialog",
|
||||
components: { FssmScroll, DiseaseDialog, FssmMap },
|
||||
props: {
|
||||
dialogItemObj:{
|
||||
type: Object,
|
||||
default: () => {},
|
||||
},
|
||||
dialogItem: {
|
||||
type: Array,
|
||||
default: () => [],
|
||||
@ -489,6 +493,15 @@ export default {
|
||||
deep: true,
|
||||
immediate: true,
|
||||
},
|
||||
dialogItemObj:{
|
||||
handler(val) {
|
||||
this.changeDetailed(val.diseFirstType);
|
||||
this.changeRampIntOrientation(val.rampInterchangeCode);
|
||||
this.editForm = Object.assign(this.editForm, val);
|
||||
},
|
||||
deep: true,
|
||||
immediate: true,
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.handleDiseRoadPart()
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
* @Author: SunTao 328867980@qq.com
|
||||
* @Date: 2024-11-20 11:58:33
|
||||
* @LastEditors: SunTao 328867980@qq.com
|
||||
* @LastEditTime: 2025-02-25 10:51:19
|
||||
* @LastEditTime: 2025-02-26 14:47:59
|
||||
* @FilePath: \znxjxt-ui\src\views\xj\document\maintenance-notice\index.vue
|
||||
* @Description: 养护通知单
|
||||
-->
|
||||
@ -282,6 +282,7 @@
|
||||
:segmentList="segmentList"
|
||||
:tableDefect="tableDefect"
|
||||
:dialogItem="dialogItem"
|
||||
:dialogItemObj="dialogItemObj"
|
||||
@cancel="addCancel"
|
||||
/>
|
||||
</el-dialog>
|
||||
@ -338,6 +339,7 @@ import {
|
||||
getRoadDirectionList,
|
||||
getStationLocation,
|
||||
getDiseFirstType,
|
||||
getMaintenanceDetail,
|
||||
} from "@/api/xj/document";
|
||||
export default {
|
||||
name: "MaintenanceNotice",
|
||||
@ -426,8 +428,10 @@ export default {
|
||||
// 列表勾选数组
|
||||
checkIds: [],
|
||||
|
||||
// 编辑弹窗信息绑定
|
||||
// 编辑弹窗列表绑定
|
||||
dialogItem: [],
|
||||
// 编辑弹窗数据绑定
|
||||
dialogItemObj: {},
|
||||
// 编辑弹窗显隐控制
|
||||
addVisible: false,
|
||||
// 查看弹窗显隐控制
|
||||
@ -672,7 +676,16 @@ export default {
|
||||
* @return {*}
|
||||
*/
|
||||
handleAdd() {
|
||||
getMaintenanceDetail(this.checkIds)
|
||||
.then(({ code, data, msg }) => {
|
||||
if (code === 200) {
|
||||
this.dialogItemObj = data;
|
||||
$modal.msgWarning(msg);
|
||||
}
|
||||
})
|
||||
.finally(() => {
|
||||
this.addVisible = true;
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
@ -731,19 +744,10 @@ export default {
|
||||
addCancel() {
|
||||
this.addVisible = false;
|
||||
this.dialogItem = [];
|
||||
this.dialogItemObj = {};
|
||||
this.getList();
|
||||
},
|
||||
|
||||
/**
|
||||
* @description: 查看弹窗关闭事件
|
||||
* @param {*}
|
||||
* @return {*}
|
||||
*/
|
||||
viewCancel() {
|
||||
this.dialogItem = [];
|
||||
this.viewVisible = false;
|
||||
},
|
||||
|
||||
/**
|
||||
* @description: 打开查看图片弹窗
|
||||
* @param {*} item
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user