|
|
@ -134,17 +134,12 @@ |
|
|
import { |
|
|
import { |
|
|
getToolInfoList, // 工具信息查询 |
|
|
getToolInfoList, // 工具信息查询 |
|
|
getToolInstanceList, //工具实例信息查询 |
|
|
getToolInstanceList, //工具实例信息查询 |
|
|
|
|
|
removeToolInfo,/*删除工具信息*/ |
|
|
} from '@/api/tool/tool_info.js' |
|
|
} from '@/api/tool/tool_info.js' |
|
|
|
|
|
|
|
|
/*组件*/ |
|
|
/*组件*/ |
|
|
import Chooselist from '@/views/modules/common/Chooselist'; /*选择组件*/ |
|
|
import Chooselist from '@/views/modules/common/Chooselist'; /*选择组件*/ |
|
|
import toolInfoAddUpdate from "./components/com_tool_info_add_update"; /*工具新增和修改组件*/ |
|
|
import toolInfoAddUpdate from "./components/com_tool_info_add_update"; /*工具新增和修改组件*/ |
|
|
import { |
|
|
|
|
|
deleteProjectFile, |
|
|
|
|
|
getFileContentList, |
|
|
|
|
|
downLoadProjectFile, |
|
|
|
|
|
getProjectUserRole, |
|
|
|
|
|
} from "@/api/project/project.js" |
|
|
|
|
|
|
|
|
|
|
|
/*組件*/ |
|
|
/*組件*/ |
|
|
export default { |
|
|
export default { |
|
|
@ -166,17 +161,6 @@ export default { |
|
|
startDate:'', |
|
|
startDate:'', |
|
|
endDate:'', |
|
|
endDate:'', |
|
|
}, |
|
|
}, |
|
|
modelData:{ |
|
|
|
|
|
site:'', |
|
|
|
|
|
applyNo:'', |
|
|
|
|
|
prNo:'', |
|
|
|
|
|
remark1:'', |
|
|
|
|
|
poNo:'', |
|
|
|
|
|
supplierName:'', |
|
|
|
|
|
allCost:'', |
|
|
|
|
|
remark2:'', |
|
|
|
|
|
}, |
|
|
|
|
|
modelFlag:false, |
|
|
|
|
|
currentRow:{}, |
|
|
currentRow:{}, |
|
|
height: 200, |
|
|
height: 200, |
|
|
dataList:[], |
|
|
dataList:[], |
|
|
@ -688,6 +672,24 @@ export default { |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
/*删除工具的确认选项*/ |
|
|
|
|
|
deleteToolInfoConfirm(toolInfo) { |
|
|
|
|
|
this.$confirm('是否删除工具标识号:'+ toolInfo.toolId+'?', '提示', { |
|
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
|
type: 'warning' |
|
|
|
|
|
}).then(() => { |
|
|
|
|
|
removeToolInfo(toolInfo).then(({data}) => { |
|
|
|
|
|
if (data.code === 200) { |
|
|
|
|
|
this.$message.success('操作成功!'); |
|
|
|
|
|
this.refreshTooInfoData(); |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$message.error(data.msg); |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
//切换工具触发 |
|
|
//切换工具触发 |
|
|
changeData(row) { |
|
|
changeData(row) { |
|
|
this.currentRow = JSON.parse(JSON.stringify(row)); |
|
|
this.currentRow = JSON.parse(JSON.stringify(row)); |
|
|
|