Commit 8624fad6 by wangweidong

删除多余内容

parent fd332309
/**
* 合作伙伴
*/
import http from '../http'
export default {
// page
page: data => http.post('/cms/v1/link/page', data).then(res => res),
// 添加
add: data => http.post('/cms/v1/link/', data).then(res => res),
// 编辑
edit: data => http.put('/cms/v1/link/' + data.id, data.obj).then(res => res),
// 详情
getById: id => http.get('/cms/v1/link/' + id).then(res => res),
// 删除
deleteById: id => http.delete('/cms/v1/link/' + id).then(res => res)
}
/**
* 会员
*/
import http from '../http'
export default {
// page
page: data => http.post('/cms/v1/member/page', data).then(res => res),
// 添加
add: data => http.post('/cms/v1/member/', data).then(res => res),
// 编辑
edit: data =>
http.put('/cms/v1/member/' + data.id, data.obj).then(res => res),
// 详情
getById: id => http.get('/cms/v1/member/' + id).then(res => res),
// 删除
deleteById: id => http.delete('/cms/v1/member/' + id).then(res => res)
}
/**
* 文章
*/
import http from '../http'
export default {
// page
page: data => http.post('/cms/v1/news_article/page', data).then(res => res),
// 添加
add: data => http.post('/cms/v1/news_article/', data).then(res => res),
// 编辑
edit: data =>
http.put('/cms/v1/news_article/' + data.id, data.obj).then(res => res),
// 详情
getById: id => http.get('/cms/v1/news_article/' + id).then(res => res),
// 删除
deleteById: id => http.delete('/cms/v1/news_article/' + id).then(res => res)
}
/**
* 新闻类型
*/
import http from '../http'
export default {
// page
page: data => http.post('/cms/v1/news_category/page', data).then(res => res),
// 添加
add: data => http.post('/cms/v1/news_category/', data).then(res => res),
// 编辑
edit: data =>
http.put('/cms/v1/news_category/' + data.id, data.obj).then(res => res),
// 详情
getById: id => http.get('/cms/v1/news_category/' + id).then(res => res),
// 类型tree
categoryTree: data =>
http.post('/cms/v1/news_category/list_tree', data).then(res => res)
}
/**
* 会员相关的委托(食品)
*/
import http from '../http'
export default {
// page
personalContract: data =>
http
.post('/food/v1/contract/external_personal_contract', data)
.then(res => res)
}
/**
* 数据查阅
*/
import http from '../../../http'
export default {
// 锻造数据查阅 /v1/contract_sample/page_forge_data_access
forgeDataAccessPage: data =>
http.post('/llgt/v1/contract_sample/page_forge_data_access', data),
// 锻造结果查阅
forgeResultPage: data =>
http.post(
'/llgt/v1/contract_sample/page_forge_data_query_max_inspection_count',
data
),
// 锻造低倍整合数据查阅 /v1/contract_sample/page_forge_low_integration
forgeLowPowerPage: data =>
http.post('/llgt/v1/contract_sample/page_forge_low_integration', data),
// 锻造模铸数据查阅 /v1/contract_sample/page_die_casting_result_data
forgeDieLowPowerPage: data =>
http.post('/llgt/v1/contract_sample/page_die_casting_result_data', data)
}
/**
* 数据审核
*/
import http from '../../../http'
export default {
// 锻造数据审核 /v1/contract_sample/page_forge_data_approval
forgeDataApprovalLeftPage: data =>
http.post('/llgt/v1/contract_sample/page_forge_data_approval', data),
// 锻造数据审核历史 /v1/contract_sample/page_forge_history_data_approval
forgeDataApprovalHistoryPage: data =>
http.post(
'/llgt/v1/contract_sample/page_forge_history_data_approval',
data
),
// 锻造数据审核
forgeDatSubmit: itemIds =>
http.post(
'/llgt/v1/contract_sample/submit_forge_make_audit?itemIds=' + itemIds
)
}
/**
* 数据复核
*/
import http from '../../../http'
// import { https } from '../../../https'
export default {
/**
* 锻造数据复核
* */
// 锻造数据复核Page
forgeReviewPage: data =>
http.post('/llgt/v1/contract_sample/page_forge_data_review', data),
// 锻造数据复核历史Page
forgeReviewHistoryPage: data =>
http.post('/llgt/v1/contract_sample/page_forge_history_data_review', data),
// 锻造数据录入提交至复核
forgeDataEntrySubmit: ids =>
http.post(
'/llgt/v1/contract_sample/submit_for_review_steelmaking_forge?ids=' + ids
),
// 锻造数据填写结果界面
forgeDataFillPage: data =>
http.post('llgt/v1/item/page_forge_fill_result_list', data)
}
/**
* 偏离审批
*/
import http from '../../../http'
// import { https } from '../../../https'
export default {
/**
* 锻造偏离审批
* */
// 锻造偏离审批Page
deviationApprovalPage: data =>
http.post('/llgt/v1/item/page_forge_deviate_vo', data),
// 锻造偏离审批历史Page
deviationApprovalHistoryPage: data =>
http.post('/llgt/v1/item_record/page_deviate_forge', data),
// 锻造数据录入提交至复核
forgeDataEntrySubmit: ids =>
http.post(
'/llgt/v1/contract_sample/submit_for_review_steelmaking_forge?ids=' + ids
),
// 锻造数据填写结果界面
forgeDataFillPage: data =>
http.post('llgt/v1/item/page_forge_fill_result_list', data)
}
/**
* 委外管理
*/
import http from '../../../http'
import { https } from '../../../https'
export default {
/**
* 锻造炉前报检
* */
// 锻造炉前1报检Page
forgeContractPage: data =>
http.post(
'/llgt/v1/contract_sample/page_forge_stoke_hold_inspection',
data
),
// 锻造炉前2报检Page
forgeContractTwoPage: data =>
http.post(
'/llgt/v1/contract_sample/page_forge_stoke_hold_inspection_two',
data
),
// 锻造历史报检Page
forgeContractHistoryPage: data =>
http.post('/llgt/v1/contract_sample/page_forge_six_wait_sample_list', data),
// 锻造炉前1历史报检Page
pageForgeBeforeHistory: data =>
http.post(
'/llgt/v1/contract_sample/page_forge_stoke_hold_inspection_history',
data
),
// 锻造炉前2历史报检Page
pageForgeBeforeTwoHistory: data =>
http.post(
'/llgt/v1/contract_sample/page_forge_stoke_hold_inspection_history_two',
data
),
// 锻造精炼1历史报检Page
pageForgeRefineHistory: data =>
http.post(
'/llgt/v1/contract_sample/page_forge_refine_inspection_history',
data
),
// 锻造精炼2历史报检Page
pageForgeRefineTwoHistory: data =>
http.post(
'/llgt/v1/contract_sample/page_forge_refine_inspection_history_two',
data
),
// 锻造VD1历史报检Page
pageForgeVDHistory: data =>
http.post(
'/llgt/v1/contract_sample/page_forge_vd_inspection_history',
data
),
// 锻造VD2历史报检Page
pageForgeVDTwoHistory: data =>
http.post(
'/llgt/v1/contract_sample/page_forge_vd_inspection_history_two',
data
),
// 锻造连铸历史报检Page
pageForgeCCastingHistory: data =>
http.post(
'/llgt/v1/contract_sample/page_forge_continuous_casting_inspection_history',
data
),
// 锻造低倍历史报检Page
pageForgeLowPowerHistory: data =>
http.post(
'/llgt/v1/contract_sample/page_forge_low_power_inspection_history',
data
),
// 锻造模铸历史报检Page
pageForgeDieCastingHistory: data =>
http.post(
'/llgt/v1/contract_sample/page_forge_die_casting_inspection_history',
data
),
// 锻造炉前提交
submitForge: ids =>
http.post('/llgt/v1/contract_sample/submit_forge_inspection?ids=' + ids),
// 锻造炉前再次送检
submitForgeAgain: id =>
http.post('/llgt/v1/contract_sample/forge_inspection_again?id=' + id),
// 锻造炉前1添加
submitForgeAdd: data =>
https.post(
'/llgt/v1/contract_sample/add_forge_stove_before',
JSON.stringify(data)
),
// 锻造炉前2添加
submitForgeTwoAdd: data =>
https.post(
'/llgt/v1/contract_sample/add_forge_stove_before_two',
JSON.stringify(data)
),
// 锻造精炼编辑
submitRefineEdit: data =>
https.post(
'/llgt/v1/contract_sample/update_before_the_furnace',
JSON.stringify(data)
),
// 锻造炉前编辑
submitForgeEdit: ({ id, obj }) =>
http.post('/llgt/v1/contract_sample/inspection_update_save/?id=' + id, obj),
// 锻造炉前 获取铁水炉号
submitForgeIronNumber: data =>
http.post('/llgt/v1/nc/list_steel_forge_stove', data),
// 生产检测流程
processList: data =>
https.post('/llgt/v1/contract_sample/list_product_test_process', data),
// 锻造1精炼报检
forgeRefinePage: data =>
http.post('/llgt/v1/contract_sample/page_forge_refine_inspection', data),
// 锻造2精炼报检
forgeRefineTwoPage: data =>
http.post(
'/llgt/v1/contract_sample/page_forge_refine_inspection_two',
data
),
// 锻造VD1报检
forgeVdPage: data =>
http.post('/llgt/v1/contract_sample/page_forge_vd_inspection', data),
// 锻造VD2报检
forgeVdTwoPage: data =>
http.post('/llgt/v1/contract_sample/page_forge_vd_inspection_two', data),
// 锻造连铸报检
forgeContinuousPage: data =>
http.post(
'/llgt/v1/contract_sample/page_forge_continuous_casting_inspection',
data
),
// 锻造低倍报检
forgeLowPowerPage: data =>
http.post('/llgt/v1/contract_sample/page_forge_low_power_inspection', data),
// 锻造模铸报检
forgeDieCastingPage: data =>
http.post(
'/llgt/v1/contract_sample/page_forge_die_casting_inspection',
data
)
}
/**
* 委外管理
*/
import http from '../../../http'
// import { https } from '../../../https'
export default {
/**
* 锻造炉前报检
* */
// 锻造报检Page
forgeFurnaceContractPage: data =>
http.post('/llgt/v1/contract_sample/page_forge_six_wait_sample_list', data)
}
/**
* 报告审核
*/
import http from '../../../http'
// import { https } from '../../../https'
export default {
/**
* 锻造炉前报检
* */
// 报告审核Page
forgeReportPage: data =>
http.post('/llgt/v1/contract_sample/page_forge_report_check', data),
// 报告审核历史Page
forgeReportHistoryPage: data =>
http.post('/llgt/v1/contract_sample/page_forge_report_check_history', data)
}
/**
* 报告编制
*/
import http from '../../../http'
// import { https } from '../../../https'
export default {
/**
* 锻造报告编制
* */
// 锻造报告编制Page
forgeReportCompilationPage: data =>
http.post('/llgt/v1/contract_sample/page_forge_report_make', data),
// 锻造报告编制历史Page
forgeReportCompilationHistoryPage: data =>
http.post('/llgt/v1/contract_sample/page_forge_report_make_history', data)
}
/**
* 报告签发
*/
import http from '../../../http'
// import { https } from '../../../https'
export default {
/**
* 锻造报告签发
* */
// 锻造报告签发Page
forgeReportIssuePage: data =>
http.post('/llgt/v1/contract_sample/page_forge_report_issue', data),
// 锻造报告签发历史Page
forgeReportIssueHistroryPage: data =>
http.post('/llgt/v1/contract_sample/page_forge_report_issue_history', data)
}
/**
* 数据录入
*/
import http from '../../../http'
// import { https } from '../../../https'
export default {
/**
* 锻造数据录入
* */
// 锻造数据录入Page
forgeDataEntryPage: data =>
http.post('/llgt/v1/contract_sample/page_forge_six_entry_list', data),
// 锻造数据录入历史Page
forgeDataEntryHistoryPage: data =>
http.post(
'/llgt/v1/contract_sample/page_forge_six_entry_list_history',
data
),
// 锻造数据录入提交至复核
forgeDataEntrySubmit: ids =>
http.post(
'/llgt/v1/contract_sample/submit_for_review_steelmaking_forge?ids=' + ids
),
// 锻造数据填写结果界面
forgeDataFillPage: data =>
http.post('llgt/v1/item/page_forge_fill_result_list', data)
}
/**
* 样本接收
*/
import http from '../../../http'
// import { https } from '../../../https'
export default {
/**
* 锻造样本接收
* */
// 锻造样本接收Page
forgeFurnaceReceivePage: data =>
http.post('/llgt/v1/contract_sample/page_forge_sample_receive', data),
// 锻造样本接收历史Page
forgeFurnaceReceiveHistoryPage: data =>
http.post(
'/llgt/v1/contract_sample/page_forge_six_history_sample_receive_list',
data
),
// 锻造样本接收
forgeSampleReceive: ids =>
http.post('/llgt/v1/contract_sample/submit_forge_sample_receive?ids=' + ids)
}
/**
* 炼钢数据查阅
*/
import http from '../../../http'
export default {
// 炼钢数据查阅 /v1/contract_sample/page_steelmaking_data_access
steelMakingDataAccessPage: data =>
http.post('/llgt/v1/contract_sample/page_steelmaking_data_access', data),
// 炼钢数据查阅 低倍整合PAGE /v1/contract_sample/page_steelmaking_low_power_list
steelMakingReviewLowPowerPage: data =>
http.post('/llgt/v1/contract_sample/page_low_integration', data),
// 炼钢准许报告编制 /v1/contract_sample/allow_steel_make_report
steelAllowSteelReport: id =>
http.post('/llgt/v1/contract_sample/allow_steel_make_report?ids=' + id),
// 炼钢查看炼铁检测结果来源 /v1/item/page_steel_make_consult_iron_data
steelConsultIronPage: data =>
http.post('/llgt/v1/item/page_steel_make_consult_iron_data', data)
}
/**
* 炼钢数据录入
*/
import http from '../../../http'
export default {
/**
* 炼钢炉前报检
* */
// 炼钢待数据录入PAGE /v1/contract_sample/page_steelmaking_entry_list
steelMakingEntryPage: data =>
http
.post('/llgt/v1/contract_sample/page_steelmaking_entry_list', data)
.then(res => res),
// 炼钢待数据录入历史PAGE
steelMakingEntryHistoryPage: data =>
http
.post('/llgt/v1/item/page_steel_make_data_input_history', data)
.then(res => res),
// 炼钢填写检测结果 /v1/item/page_fill_result_list
steelMakingEntryData: data =>
http.post('/llgt/v1/item/page_fill_result_list', data).then(res => res),
/**
* 炼钢偏离审批
* */
// 炼钢偏离审批 /v1/item/page_steelmaking_deviate_vo
steelMakingDeviateData: data =>
http
.post('/llgt/v1/item/page_steelmaking_deviate_vo', data)
.then(res => res),
/**
* 炼钢提交至复核
* @param data
* @returns {Q.Promise<any> | Promise | Q.Promise<T | never> | * | PromiseLike<T | never> | Promise<T | never>}
*/
steelMakingSubmitForReview: ids =>
http
.post(
'/llgt/v1/contract_sample/submit_for_review_steelmaking_forge?ids=' +
ids
)
.then(res => res)
}
/**
* 炼钢数据
*/
import http from '../../../http'
export default {
// 炼钢数据复核 /v1/contract_sample/page_steelmaking_data_review
steelMakingDataLeft: data =>
http
.post('/llgt/v1/contract_sample/page_steelmaking_data_review', data)
.then(res => res),
// 炼钢数据复核历史PAGE /v1/contract_sample/page_steelmaking_history_data_review
steelMakingReviewHistoryPage: data =>
http
.post('/llgt/v1/item/page_steel_make_data_review_history', data)
.then(res => res),
// 炼钢数据审核PAGE /v1/contract_sample/page_steelmaking_data_approval
steelMakingApprovalPage: data =>
http
.post('/llgt/v1/contract_sample/page_steelmaking_data_approval', data)
.then(res => res),
// 炼钢数据审核历史PAGE /v1/contract_sample/page_steelmaking_history_data_approval
steelMakingDataApprovalHistoryPage: data =>
http
.post('/llgt/v1/item/page_steel_make_data_audit_history', data)
.then(res => res)
}
/**
* 炼钢偏离审批
*/
import http from '../../../http'
export default {
// 炼钢偏离审批PAGE /v1/item/page_steelmaking_deviate_vo
steelMakingDeviatePage: data =>
http
.post('/llgt/v1/item/page_steelmaking_deviate_vo', data)
.then(res => res),
// 炼钢偏离审批历史PAGE /v1/item/page_steelmaking_record_deviate_vo
steelMakingDeviateHistoryPage: data =>
http.post('/llgt/v1/item_record/page_deviate_steel', data).then(res => res)
}
/**
* 炼钢报检登记
*/
import http from '../../../http'
import { https } from '../../../https'
export default {
/**
* 炼钢炉前报检
* */
// 炼钢炉前报检PAGE /v1/contract_sample/page_before_the_furnace_list
steelMakingFurnacePage: data =>
http
.post('/llgt/v1/contract_sample/page_before_the_furnace_list', data)
.then(res => res),
// 炼钢炉前报检历史PAGE /v1/contract_sample/page_before_the_furnace_history_list
steelMakingFurnaceHistoryPage: data =>
http
.post(
'/llgt/v1/contract_sample/page_before_the_furnace_history_list',
data
)
.then(res => res),
// 炼钢炉前提交
steelMakingFurnaceSubmit: ids =>
http
.post('/llgt/v1/contract_sample/submit_four_steelmaking?ids=' + ids)
.then(res => res),
// 炼钢炉前添加 /v1/contract_sample/add_before_the_furnace
steelMakingFurnaceAdd: data =>
https
.post(
'/llgt/v1/contract_sample/add_before_the_furnace',
JSON.stringify(data)
)
.then(res => res),
// 炼钢炉前编辑 /v1/contract_sample/update_before_the_furnace
steelMakingFurnaceEdit: data =>
https
.post(
'/llgt/v1/contract_sample/update_before_the_furnace',
JSON.stringify(data)
)
.then(res => res),
editBindSmelt: data =>
http.put('/llgt/v1/contract_sample/' + data.id, data).then(res => res),
// 炼钢炉前详情 /v1/contract_sample/{id}
steelMakingFurnaceDetail: id =>
http
.post('/llgt/v1/contract_sample/inspection_update/' + id)
.then(res => res),
// 炼钢炉前再次送检 /v1/contract_sample/steelmaking_inspection_again
steelMakingInspectionAgain: id =>
http
.post('/llgt/v1/contract_sample/steelmaking_inspection_again?id=' + id)
.then(res => res)
}
/**
* 炼钢报检登记
*/
import http from '../../../http'
import { https } from '../../../https'
export default {
/**
* 炼钢炉前报检
* */
// 炼钢炉前报检PAGE /v1/contract_sample/page_before_the_furnace_list
steelMakingFurnacePage: data =>
http
.post('/llgt/v1/contract_sample/page_before_the_furnace_list', data)
.then(res => res),
// 炼钢炉前报检历史PAGE /v1/contract_sample/page_before_the_furnace_history_list
steelMakingFurnaceHistoryPage: data =>
http
.post(
'/llgt/v1/contract_sample/page_before_the_furnace_history_list',
data
)
.then(res => res),
// 炼钢炉前提交
steelMakingFurnaceSubmit: ids =>
http
.post('/llgt/v1/contract_sample/submit_four_steelmaking?ids=' + ids)
.then(res => res)
}
/**
* 炼钢审核报告
*/
import http from '../../../http'
export default {
// 炼钢待审核PAGE /v1/contract_sample/page_sub_contractor_report_check
steelMakingReportCheckPage: data =>
http
.post('/llgt/v1/contract_sample/page_sub_contractor_report_check', data)
.then(res => res),
// 炼钢历史待审核历史PAGE /v1/contract_sample/page_sub_contractor_report_check_history
steelMakingReportCheckHistoryPage: data =>
http
.post(
'/llgt/v1/contract_sample/page_sub_contractor_report_check_history',
data
)
.then(res => res)
}
/**
* 炼钢样本
*/
import http from '../../../http'
export default {
// 炼钢待编制报告 /v1/contract_sample/page_steelmaking_report_make
steelMakingReportMakePage: data =>
http
.post('/llgt/v1/contract_sample/page_steelmaking_report_make', data)
.then(res => res),
// 炼钢待编制历史报告 /v1/contract_sample/page_sub_contractor_report_make_history
steelMakingReportHistoryPage: data =>
http
.post(
'/llgt/v1/contract_sample/page_sub_contractor_report_make_history',
data
)
.then(res => res),
// 炼钢样本接收 /v1/contract_sample/receive_four_steelmaking
steelMakingSampleReceive: ids =>
http
.post('/llgt/v1/contract_sample/receive_four_steelmaking?ids=' + ids)
.then(res => res)
}
/**
* 炼钢样本
*/
import http from '../../../http'
export default {
// 炼钢待签发报告 /v1/contract_sample/page_sub_contractor_report_issue
steelMakingReportIssuePage: data =>
http
.post('/llgt/v1/contract_sample/page_sub_contractor_report_issue', data)
.then(res => res),
// 炼钢待签发历史报告 /v1/contract_sample/page_sub_contractor_report_issue_history
steelMakingReportIssueHistoryPage: data =>
http
.post(
'/llgt/v1/contract_sample/page_sub_contractor_report_issue_history',
data
)
.then(res => res),
// 炼钢样本接收 /v1/contract_sample/receive_four_steelmaking
steelMakingSampleReceive: ids =>
http
.post('/llgt/v1/contract_sample/receive_four_steelmaking?ids=' + ids)
.then(res => res)
}
/**
* 炼钢检测样本库
*/
import http from '../../../http'
export default {
// 炼钢检测样本Page /v1/sample_library_steelmaking/page_sample_library_steelmaking_list
steelMakingSampleLibraryPage: data =>
http
.post(
'/llgt/v1/sample_library_steelmaking/page_sample_library_steelmaking_list',
data
)
.then(res => res),
// 炼钢技术标准库
steelMakingJudePage: data =>
http.post('/llgt/v1/aptitude_judge/page', data).then(res => res),
// 炼钢添加物料 /v1/sample_library_steelmaking/add
steelMakingAdd: data =>
http.post('/llgt/v1/sample_library_steelmaking/add', data).then(res => res),
// 炼钢编辑物料 /v1/sample_library_steelmaking/update
steelMakingUpdate: data =>
http
.post('/llgt/v1/sample_library_steelmaking/update', data)
.then(res => res),
// 炼钢查询物料 /v1/sample_library_steelmaking/find_one/{id}
steelMakingFind: id =>
http
.get('/llgt/v1/sample_library_steelmaking/find_one/' + id)
.then(res => res),
// 炼钢删除物料 /v1/sample_library_steelmaking/delete
steelMakingDelete: id =>
http
.delete('/llgt/v1/sample_library_steelmaking/delete?ids=' + id)
.then(res => res)
}
/**
* 炼钢样本
*/
import http from '../../../http'
export default {
// 炼钢样本接收 /v1/contract_sample/page_before_the_furnace_sample_receive_list
steelMakingSampleReceptionPage: data =>
http
.post(
'/llgt/v1/contract_sample/page_before_the_furnace_sample_receive_list',
data
)
.then(res => res),
// 炼钢历史样本接收 /v1/contract_sample/page_before_the_furnace_history_sample_receive_list
beforeFurnaceReceptionHistoryPage: data =>
http
.post(
'/llgt/v1/contract_sample/page_before_the_furnace_history_sample_receive_list',
data
)
.then(res => res),
// 轧钢历史样本接收 /v1/contract_sample/page_steel_rolling_receive_history
steelMakingSampleReceptionHistoryPage: data =>
http
.post('/llgt/v1/contract_sample/page_steel_rolling_receive_history', data)
.then(res => res),
// 钢管历史样本 /v1/contract_sample/page_steel_pipe_receive_history
steelMakingPipeHistoryPage: data =>
http
.post('/llgt/v1/contract_sample/page_steel_pipe_receive_history', data)
.then(res => res),
// 炼钢样本接收 /v1/contract_sample/receive_four_steelmaking
steelMakingSampleReceive: ids =>
http
.post('/llgt/v1/contract_sample/receive_four_steelmaking?ids=' + ids)
.then(res => res)
}
/**
* 钢管数据审核
*/
import http from '../../../http'
// import { http } from '../../../https'
export default {
// 待数据审核
steelWaitAuditPage: data =>
http.post('/llgt/v1/contract_sample/page_wait_data_audit_sample', data),
// 数据审核提交
steelPipeSubmitReview: itemIds =>
http.post('/llgt/v1/contract_sample/submit_pipe_audit?ids=' + itemIds)
}
/**
* 钢管数据录入
*/
import http from '../../../http'
// import { http } from '../../../https'
export default {
// 数据录入
steelWaitEntryPage: data =>
http.post('/llgt/v1/contract_sample/page_wait_input_sample', data),
// 数据录入 提交至复核
steelPipeSubmitReviewPage: ids =>
http.post('/llgt/v1/contract_sample/submit_steel_pipe_to_review?ids=' + ids)
}
/**
* 钢管数据复核
*/
import http from '../../../http'
// import { http } from '../../../https'
export default {
// 待数据复核
steelWaitPage: data =>
http.post('/llgt/v1/contract_sample/page_wait_data_review_sample', data),
// 数据复核 检测项目
steelWaitDataReviewPage: data =>
http.post(
'/llgt/v1/item/page_item_wait_data_review?contractSampleIds=' +
data.contractSampleIds,
data
),
// 数据复核提交
steelPipeCheckSubmit: itemIds =>
http.post('/llgt/v1/item/submit_c__data_review?itemIds=' + itemIds),
// 数据录入 填写结果 检测项目
steelPipeFillResult: data =>
http.post('/llgt/v1/item/page_item_data_input', data)
}
/**
* 钢管组批管理
*/
import http from '../../../http'
import { https } from '../../../https'
export default {
/**
* 钢坯组批
* */
// 钢坯组批
steelPipeGroupPage: data =>
http.post('/llgt/v1/dispatch/page_billet_by_wait_form_batch', data),
// 外购钢坯组批
steelOutByPipeGroupPage: data =>
http.post('/llgt/v1/dispatch/page_out_by_wait_form_batch', data),
// 历史组批
steelPipeGroupHistoryPage: data =>
http.post('/llgt/v1/form_batch/page_form_batch_history', data),
// 完成组批
steelGroupFinsh: data =>
https.post('/llgt//v1/form_batch/end_form_batch', JSON.stringify(data))
}
/**
* 钢管过程管理
*/
import http from '../../../http'
// import { http } from '../../../https'
export default {
// 钢管1过程待报检
steelPipeProgressPage: data =>
http.post('/llgt/v1/contract_sample/page_steel_pipe_progress_ins', data),
// 钢管2过程待报检
steelPipeProgressTwoPage: data =>
http.post(
'/llgt/v1/contract_sample/page_steel_pipe_progress_ins_two',
data
),
// 钢管3过程待报检
steelPipeProgressThreePage: data =>
http.post(
'/llgt/v1/contract_sample/page_steel_pipe_progress_ins_three',
data
),
// 钢管过程待报检提交
steelPipeProgressSubmit: ids =>
http.post(
'llgt/v1/contract_sample/submit_steel_pipe_inspection/?ids=' + ids
),
// 钢管1过程历史报检
steelPipeProgressHistoryPage: data =>
http.post(
'/llgt/v1/contract_sample/page_steel_pipe_progress_ins_history',
data
),
// 钢管2过程历史报检
steelPipeProgressHistoryTwoPage: data =>
http.post(
'/llgt/v1/contract_sample/page_steel_pipe_progress_ins_history_two',
data
),
// 钢管3过程历史报检
steelPipeProgressHistoryThreePage: data =>
http.post(
'/llgt/v1/contract_sample/page_steel_pipe_progress_ins_history_three',
data
)
}
/**
* 钢管成品管理
*/
import http from '../../../http'
import { https } from '../../../https'
// import { http } from '../../../https'
export default {
// C类钢管绑定组批分页
steelPipeGroupPage: data =>
http.post('/llgt/v1/form_batch_rel_sample/page', data),
// C类钢管绑定组批删除
groupDeleteById: ids =>
http.delete('/llgt/v1/form_batch_rel_sample/?ids=' + ids),
// C类钢管绑定组批炉号
steelPipeGroupBind: data =>
https.post('/llgt/v1/form_batch_rel_sample/add_form_batch_sample', data),
// C类查询报检单
steelPipeGroupBatch: data =>
http.post('/llgt/v1/contract_sample/page_sample_for_form_batch', data),
// 钢管1成品待报检
steelPipeProductAdd: data =>
http.post('/llgt/v1/contract_sample/add_steel_pipe_inspection', data),
// 钢管1组批page
steelBatchLianzuSample: data =>
http.post('/llgt/v1/contract_sample/page_form_batch_lianzu_sample', data),
// 钢管1成品待报检
steelPipeProductPage: data =>
http.post('/llgt/v1/contract_sample/page_steel_pipe_product_ins', data),
// 钢管2成品待报检
steelPipeProductTwoPage: data =>
http.post('/llgt/v1/contract_sample/page_steel_pipe_product_ins_two', data),
// 钢管3成品待报检
steelPipeProductThreePage: data =>
http.post(
'/llgt/v1/contract_sample/page_steel_pipe_product_ins_three',
data
),
// 钢管1成品历史报检
steelPipeProductHistoryPage: data =>
http.post(
'/llgt/v1/contract_sample/page_steel_pipe_product_ins_history',
data
),
// 钢管2成品历史报检
steelPipeProductHistoryTwoPage: data =>
http.post(
'/llgt/v1/contract_sample/page_steel_pipe_product_ins_history_two',
data
),
// 钢管3成品历史报检
steelPipeProductHistoryThreePage: data =>
http.post(
'/llgt/v1/contract_sample/page_steel_pipe_product_ins_history_three',
data
)
}
/**
* 钢管报告审核
*/
import http from '../../../http'
// import { http } from '../../../https'
export default {
// 钢管报告审核
steelPipeReportCheckPage: data =>
http.post('/llgt/v1/contract_sample/page_steel_pipe_report_check', data),
// 钢管报告审核
steelPipeReportCheckHistoryPage: data =>
http.post(
'/llgt/v1/contract_sample/page_steel_pipe_product_ins_history',
data
)
}
/**
* 钢管报告编制
*/
import http from '../../../http'
// import { http } from '../../../https'
export default {
// 钢管报告编制
steelReportMakePage: data =>
http.post('/llgt/v1/contract_sample/page_steel_pipe_report_make', data),
// 钢管成品历史报检
steelReportMakeHistoryPage: data =>
http.post(
'/llgt/v1/contract_sample/page_steel_pipe_report_make_history',
data
)
}
/**
* 钢管报告签发
*/
import http from '../../../http'
// import { http } from '../../../https'
export default {
// 钢管报告签发
steelReportIssuePage: data =>
http.post('/llgt/v1/contract_sample/page_steel_pipe_report_issue', data),
// 钢管成品历史报检
steelReportIssueHistoryPage: data =>
http.post(
'/llgt/v1/contract_sample/page_steel_pipe_report_issue_history',
data
)
}
/**
* 钢管样本接收
*/
import http from '../../../http'
// import { http } from '../../../https'
export default {
// 钢管样本接收Page
steelPipeReceivePage: data =>
http.post('/llgt/v1/contract_sample/page_steel_pipe_receive', data),
// 钢管样本接收Submit
steelPipeReceive: ids =>
http.post('/llgt/v1/contract_sample/submit_steel_pipe_receive/?ids=' + ids)
}
/**
* 钢管分配任务
*/
import http from '../../../http'
// import { http } from '../../../https'
export default {
// 钢管待分配任务
steelTaskWaitPage: data =>
http.post('/llgt/v1/contract_sample/page_steel_pipe_task_arrange', data),
// 钢管待分配任务检测项目
steelTaskWaitItemPage: data =>
http.post(
'/llgt/v1/item/page_item_wait_task_arrange?contractSampleIds=' +
data.contractSampleIds,
data
)
}
/**
* 轧钢数据审核
*/
import http from '../../http'
// import { https } from '../../https'
export default {
// 轧钢数据待审核page
tieSteelDataReviewPage: data =>
http.post(
'/llgt/v1/contract_sample/page_steel_rolling_wait_data_audit_sample',
data
),
// 轧钢数据审核提交
tieSteelSubmitReview: itemIds =>
http.post('/llgt/v1/contract_sample/submit_c_audit?ids=' + itemIds)
}
/**
* 轧钢样本
*/
import http from '../../http'
// import { https } from '../../https'
export default {
// 轧钢录入样本page
tieSteelSampleInputPage: data =>
http.post(
'/llgt/v1/contract_sample/page_steel_rolling_wait_input_sample',
data
)
}
/**
* 轧钢数据复核
*/
import http from '../../http'
// import { https } from '../../https'
export default {
// 轧钢数据复核
tieSteelSampleDataReviewPage: data =>
http.post(
'/llgt/v1/contract_sample/page_steel_rolling_wait_data_review_sample',
data
)
}
/**
* 轧钢组批
*/
import http from '../../http'
import { https } from '../../https'
export default {
// 轧钢钢坯组批
tieSteelBatchPage: data =>
http.post('/llgt/v1/dispatch/page_steel_rolling_wait_form_batch', data),
// 轧钢外购钢坯分页
tieSteelOutBatchPage: data =>
http.post(
'/llgt/v1/dispatch/page_steel_rolling_out_by_wait_form_batch',
data
),
// 轧钢历史分页
tieSteelHistoryPage: data =>
http.post(
'/llgt/v1/form_batch/page_steel_rolling_form_batch_history',
data
),
// 轧钢组批完成
tieSteelBatchFinish: data =>
https.post(
'/llgt/v1/form_batch/end_steel_rolling_form_batch',
JSON.stringify(data)
)
}
/**
* 轧钢组批报检
*/
import http from '../../http'
// import { https } from '../../https'
export default {
// 轧钢1过程报检
tieSteelProcessPage: data =>
http.post('/llgt/v1/contract_sample/page_steel_rolling_progress_ins', data),
// 轧钢2过程报检
tieSteelProcessTwoPage: data =>
http.post(
'/llgt/v1/contract_sample/page_steel_rolling_progress_ins_two',
data
),
// 轧钢1过程历史报检
tieSteelProcessHistoryPage: data =>
http.post(
'/llgt/v1/contract_sample/page_steel_rolling_progress_ins_history',
data
),
// 轧钢2过程历史报检
tieSteelProcessHistoryTwoPage: data =>
http.post(
'/llgt/v1/contract_sample/page_steel_rolling_progress_ins_history_two',
data
)
}
/**
* 轧钢组批报检
*/
import http from '../../http'
// import { https } from '../../https'
export default {
// 轧钢成品报检添加
tieSteelProductAdd: data =>
http.post('/llgt/v1/contract_sample/add_steel_rolling_inspection', data),
// 轧钢1成品报检
tieSteelProductPage: data =>
http.post('/llgt/v1/contract_sample/page_steel_rolling_product_ins', data),
// 轧钢2成品报检
tieSteelProductTwoPage: data =>
http.post(
'/llgt/v1/contract_sample/page_steel_rolling_product_ins_two',
data
),
// 轧钢1成品历史报检
tieSteelProductHistoryPage: data =>
http.post(
'/llgt/v1/contract_sample/page_steel_rolling_product_ins_history',
data
),
// 轧钢2成品历史报检
tieSteelProductHistoryTwoPage: data =>
http.post(
'/llgt/v1/contract_sample/page_steel_rolling_product_ins_history_two',
data
),
// 轧钢成品历史 异常退回
tieSteelProductHistoryBack: data =>
http.post('/llgt/v1/contract_sample/back_because_exception', data),
// 锻造历史 异常退回
forgeFurnaceContractHistoryBack: data =>
http.post('/llgt/v1/contract_sample/back_forge_because_exception', data)
}
/**
* 轧钢报告管理
*/
import http from '../../http'
// import { https } from '../../https'
export default {
// 轧钢待报告编制page
tieSteelReportMakePage: data =>
http.post('/llgt/v1/contract_sample/page_steel_rolling_report_make', data),
// 轧钢报告编制历史page
tieSteelReportMakeHistoryPage: data =>
http.post(
'/llgt/v1/contract_sample/page_steel_rolling_report_make_history',
data
),
// 轧钢报告待审核page
tieSteelReportCheckPage: data =>
http.post('/llgt/v1/contract_sample/page_steel_rolling_report_check', data),
// 轧钢报告审核历史page
tieSteelReportCheckHistoryPage: data =>
http.post(
'/llgt/v1/contract_sample/page_steel_rolling_report_check_history',
data
),
// 轧钢报告待签发page
tieSteelReportIssuePage: data =>
http.post('/llgt/v1/contract_sample/page_steel_rolling_report_issue', data),
// 轧钢报告签发历史page
tieSteelReportIssueHistoryPage: data =>
http.post(
'/llgt/v1/contract_sample/page_steel_rolling_report_issue_history',
data
)
}
/**
* 轧钢样本接收
*/
import http from '../../http'
// import { https } from '../../https'
export default {
// 轧钢样本接收
tieSteelSampleReceivePage: data =>
http.post('/llgt/v1/contract_sample/page_steel_rolling_receive', data),
// 轧钢过程历史报检
tieSteelProductHistoryPage: data =>
http.post(
'/llgt/v1/contract_sample/page_steel_rolling_product_ins_history',
data
)
}
/**
* 轧钢任务分配
*/
import http from '../../http'
// import { https } from '../../https'
export default {
// 轧钢待分配任务
tieSteelArrangePage: data =>
http.post('/llgt/v1/contract_sample/page_steel_rolling_task_arrange', data),
// 轧钢过程历史报检
tieSteelProductHistoryPage: data =>
http.post(
'/llgt/v1/contract_sample/page_steel_rolling_product_ins_history',
data
)
}
/**
* 委外管理
*/
import http from '../../http'
import { https } from '../../https'
export default {
/**
* 外委登记
* */
// 外委报检登记
externalContractAdd: data =>
https
.post('/llgt/v1/contract_sample/add_sub_contractor', JSON.stringify(data))
.then(res => res),
// 外委报检编辑 /v1/contract_sample/update_one_sub_contractor
externalContractEdit: data =>
https
.put(
'/llgt/v1/contract_sample/update_sub_contractor',
JSON.stringify(data)
)
.then(res => res),
// 外委检测项目删除 /v1/item/delete/{id}
externalItemDelete: ids =>
http.delete('/llgt/v1/item/delete?ids=' + ids).then(res => res),
// 外委报检提交 /v1/contract_sample/submit_sub_contractor_material/
externalItemSubmit: ids =>
http
.post(
'/llgt/v1/contract_sample/submit_sub_contractor_material/?ids=' + ids
)
.then(res => res),
// 外委报检登记Page /v1/contract_sample/page_sub_contractor_registration
externalContractPage: data =>
http
.post('/llgt/v1/contract_sample/page_sub_contractor_registration', data)
.then(res => res),
// 外委报检详情Page /v1/contract_sample/find_one_sub_contractor/
externalSubDetail: id =>
http
.get('/llgt/v1/contract_sample/find_one_sub_contractor/' + id)
.then(res => res),
// 外委报检历史登记Page /v1/contract_sample/page_sub_contractor_history
externalContractHistoryPage: data =>
http
.post('/llgt/v1/contract_sample/page_sub_contractor_history', data)
.then(res => res),
/**
* 委外单位
* */
// 外委单位管理Page /v1/contract_sample_sub_contractor_company/page
contractorCompanyPage: data =>
http
.post('/llgt/v1/contract_sample_sub_contractor_company/page', data)
.then(res => res),
// 外委单位添加 /v1/contract_sample_sub_contractor_company/add
contractorCompanyAdd: data =>
http
.post('/llgt/v1/contract_sample_sub_contractor_company/add', data)
.then(res => res),
// 外委单位编辑 /v1/contract_sample_sub_contractor_company/{id}
contractorCompanyEdit: data =>
http
.put(
'/llgt/v1/contract_sample_sub_contractor_company/' + data.id,
data.obj
)
.then(res => res),
// 外委单位获取详情 /v1/contract_sample_sub_contractor_company/{id}
contractorCompanyDetail: id =>
http
.get('/llgt/v1/contract_sample_sub_contractor_company/' + id)
.then(res => res),
// 外委单位删除 /v1/contract_sample_sub_contractor_company/delete/
contractorCompanyDelete: id =>
http
.delete('/llgt/v1/contract_sample_sub_contractor_company/delete/' + id)
.then(res => res),
/**
* 外委结果录入
* */
// 待数据录入PAGE /v1/contract_sample/page_sample_list
sampleListPage: data =>
http
.post('/llgt/v1/contract_sample/page_sample_list', data)
.then(res => res),
// 待数据录入提交
externalDataSubmit: id =>
http
.post('/llgt/v1/contract_sample/submit_for_end?ids=' + id)
.then(res => res),
// 确认
submitById: id =>
http
.post(
'/llgt/v1/contract_sample/sub_batch_confirmation_project?itemIds=' + id
)
.then(res => res),
// 历史任务PAGE /v1/item/page_history
contractorHistory: data =>
http.post('/llgt/v1/item/page_history', data).then(res => res),
/**
* 外委数据查询
* */
// 外委数据查询PAGE /v1/contract_sample/page_sub_contractor_complete_history
completeHistory: data =>
http
.post(
'/llgt/v1/contract_sample/page_sub_contractor_complete_history',
data
)
.then(res => res),
// 外委数据查询查看检测项目 PAGE /v1/contract_sample/page_detection_view_list
completeDetectionView: data =>
http.post('/llgt/v1/item/page_detection_view_list', data).then(res => res),
// page 记得要修改 todo
page: data =>
http.post('/llgt/v1/sample_attachment/page', data).then(res => res),
// 添加
add: data => http.post('/llgt/v1/category/', data).then(res => res),
// 编辑
edit: data =>
http.put('/llgt/v1/category/' + data.id, data.obj).then(res => res),
// 详情
getById: id =>
http
.post('/llgt/v1/contract_sample/inspection_update/' + id)
.then(res => res),
// 删除
deleteById: ids =>
http.delete('/llgt/v1/sample_attachment/?ids=' + ids).then(res => res),
// 类型tree
categoryTree: data =>
http.post('/llgt/v1/category/list', data).then(res => res)
}
/**
* 检测类型管理
*/
import http from '../../http'
export default {
// page 记得要修改 todo
page: data =>
http.post('/llgt/v1/sample_attachment/page', data).then(res => res),
// 添加
add: data => http.post('/llgt/v1/category/', data).then(res => res),
// 编辑
edit: data =>
http.put('/llgt/v1/category/' + data.id, data.obj).then(res => res),
// 详情
getById: id => http.get('/llgt/v1/category/' + id).then(res => res),
// 删除
deleteById: ids =>
http.delete('/llgt/v1/sample_attachment/?ids=' + ids).then(res => res),
// 类型tree
categoryTree: data =>
http.post('/llgt/v1/category/list', data).then(res => res)
}
/**
* 进厂原料报检
*/
import http from '../http'
import { https } from '../https'
export default {
// page
page: data =>
http
.post('/llgt/v1/contract_sample/page_material_inspection', data)
.then(res => res),
pageHis: data =>
http
.post('/llgt/v1/contract_sample/page_material_inspection_history', data)
.then(res => res),
otherPage: data =>
http
.post('/llgt/v1/contract_sample/page_other_material_inspection', data)
.then(res => res),
otherPageHis: data =>
http
.post(
'/llgt/v1/contract_sample/page_other_material_inspection_history',
data
)
.then(res => res),
// 添加-进场
originalAdd: data =>
http
.post('/llgt/v1/contract_sample/add?itemIds=' + data.itemIds, data)
.then(res => res),
// 添加-其他
otherAdd: data =>
http
.post('/llgt/v1/contract_sample/add_other?itemIds=' + data.itemIds, data)
.then(res => res),
// 添加-炼铁1铁水检测
addSmeltIronInspection: data =>
http
.post(
'/llgt/v1/contract_sample/add_smelt_iron_inspection?itemIds=' +
data.itemIds,
data
)
.then(res => res),
// 添加-炼铁2铁水检测
addSmeltIronTwoInspection: data =>
http.post(
'/llgt/v1/contract_sample/add_smelt_iron_inspection_two?itemIds=' +
data.itemIds,
data
),
// 添加外购钢坯
addOutBuyBillet: data =>
http.post(
'/llgt/v1/contract_sample/add_out_buy_billet?itemIds=' + data.itemIds,
data
),
// 炼铁铁水检测历史记录
pageSmeltIronInspectionHis: data =>
http
.post('/llgt/v1/contract_sample/page_smelt_iron_inspection_history', data)
.then(res => res),
// 编辑
edit: data =>
http
.post(
'/llgt/v1/contract_sample/inspection_update_save/?id=' + data.id,
data.obj
)
.then(res => res),
// 不符合编辑
nonConformedit: data =>
http
.post(
'/llgt/v1/contract_sample/save_no_conformity/?id=' + data.id,
data.obj
)
.then(res => res),
// 详情
getById: id => http.get('/llgt/v1/contract_sample/' + id).then(res => res),
// 删除
deleteById: id =>
http.delete('/llgt/v1/contract_sample/' + id).then(res => res),
// 提交
submitById: id =>
http
.post('/llgt/v1/contract_sample/submit_material/?ids=' + id)
.then(res => res),
// 提交铁水检测报检
submitSmeltIronInspectionById: id =>
http
.post('/llgt/v1/contract_sample/submit_smelt_iron_inspection/?ids=' + id)
.then(res => res),
// 中止
endById: id =>
http
.post('/llgt/v1/contract_sample/page_material_submit_stop/?ids=' + id)
.then(res => res),
// 检测类型-进场
originalList: data =>
http.post('/llgt/v1/category/page_original', data).then(res => res),
// 检测类型-其他
otherList: data =>
http.post('/llgt/v1/category/page_other', data).then(res => res),
// 编辑page
pageEdit: id =>
http
.post('/llgt/v1/contract_sample/inspection_update/' + id)
.then(res => res),
pageSmeltIronInspection: data =>
http
.post('/llgt/v1/contract_sample/page_smelt_iron_inspection', data)
.then(res => res),
generatorReport: data =>
https
.post(
'/llgt/v1/contract_sample/start_nc_inspection',
JSON.stringify(data.items)
)
.then(res => res),
// 查询炼铁炉号
smeltIronPage: data => http.post('/llgt/v1/nc/list_smelt_iron_stove', data),
// 查询2号炉炼铁炉号
smeltIronTwoNumPage: data =>
http.post('/llgt/v1/nc/list_smelt_iron_stove_two', data),
// 炼铁2铁水报检Page
smeltIronTwoPage: data =>
http.post('/llgt/v1/contract_sample/page_smelt_iron_inspection_two', data),
// 炼铁2铁水报检历史Page
smeltIronTwoHistoryPage: data =>
http.post(
'/llgt/v1/contract_sample/page_smelt_iron_inspection_history_two',
data
),
inspectionAgain: id =>
http
.post('/llgt/v1/contract_sample/inspection_again?id=' + id)
.then(res => res)
}
import { tieSteelProductContract } from '../index'
const minix = {
data() {
return {
iconMsg: [
{
type: 'pt-a-equip',
id: '',
name: '绑定组批炉号'
},
{ type: 'pt-a-cloud', id: '', name: '附件' },
{ type: 'pt-a-end', id: '', name: '异常退回' },
{ type: 'pt-a-clock', id: '', name: '操作日志' }
]
}
},
methods: {
_iconClick(res, data) {
switch (res) {
case '再次送检':
this._againSend(data.id)
break
case '绑定组批炉号':
this._bindGroupNumber(data)
break
case '附件':
this._upload(data.id)
break
case '异常退回':
this.$refs.reason._open('退回原因', data.id)
break
case '操作日志':
this._record(data.id)
break
}
},
// 异常退回
async _resultData(remark, msg, id) {
const result = await tieSteelProductContract.tieSteelProductHistoryBack({
ids: id,
reason: remark
})
if (result) this._resultChange('退回成功!')
},
_resultChange(msg) {
this._formSearch()
this.$Message.success(msg)
}
}
}
export default minix
import { tieSteelProductContract } from '../index'
const minix = {
data() {
return {
iconMsg: [
{ type: 'pt-a-cloud', id: '', name: '附件' },
{ type: 'pt-a-end', id: '', name: '异常退回' },
{ type: 'pt-a-clock', id: '', name: '操作日志' }
]
}
},
methods: {
_iconClick(res, data) {
switch (res) {
case '附件':
this._upload(data.id)
break
case '异常退回':
this.$refs.reason._open('退回原因', data.id)
break
case '操作日志':
this._record(data.id)
break
}
},
// 异常退回
async _resultData(remark, msg, id) {
const result = await tieSteelProductContract.tieSteelProductHistoryBack({
ids: id,
reason: remark
})
if (result) this._resultChange('退回成功!')
},
_resultChange(msg) {
this._formSearch()
this.$Message.success(msg)
}
}
}
export default minix
/**
* 不符合项复检
*/
import http from '../../http'
export default {
// 复检报检PAGE /v1/contract_sample/page_repeat_plan_history_examination
pageExamination: data =>
http
.post(
'/llgt/v1/contract_sample/page_repeat_plan_history_examination',
data
)
.then(res => res),
// 历史报检PAGE /v1/contract_sample/page_repeat_plan_history
pageExaminationHistory: data =>
http
.post('/llgt/v1/contract_sample/page_repeat_plan_history', data)
.then(res => res),
// 复检报检提交 /v1/contract_sample/processing_retaliation_submit
processingRetaliationSubmit: ids =>
http
.post('/llgt/v1/contract_sample/processing_retaliation_submit?ids=' + ids)
.then(res => res),
// 详情
getById: id =>
http
.post('/llgt/v1/contract_sample/inspection_update/' + id)
.then(res => res),
// 添加
add: data => http.post('/llgt/v1/sample_library/add', data).then(res => res),
// 编辑
edit: data =>
http.put('/llgt/v1/sample_library/' + data.id, data.obj).then(res => res),
// 删除
deleteById: id =>
http.delete('/llgt/v1/sample_library/?ids=' + id).then(res => res)
}
/**
* 不符合项登记
*/
import http from '../../http'
export default {
// 不符合项登记分页 /v1/contract_sample/page_on_conformance
nonPageConformance: data =>
http
.post('/llgt/v1/contract_sample/page_on_conformance', data)
.then(res => res),
// 不符合项登记 历史分页 /v1/contract_sample/page_on_conformance_history
nonPageConformanceHistory: data =>
http
.post('/llgt/v1/contract_sample/page_on_conformance_history', data)
.then(res => res),
// 不符合项提交 /v1/contract_sample/submit_treatment_plan
submitTreatment: ids =>
http
.post('/llgt/v1/contract_sample/submit_treatment_plan?ids=' + ids)
.then(res => res),
// 处理意见保存 /v1/contract_sample/processing_opinions
processingOpinionsSave: data =>
http
.post('/llgt/v1/contract_sample/processing_opinions', data)
.then(res => res),
// 登记详情
getById: id => http.get('/llgt/v1/contract_sample/' + id).then(res => res),
// 查看不符合项 合格项 /v1/aptitude_rel_package/page_my_sample_item_pass
pageSampleItemPass: data =>
http
.post('/llgt/v1/aptitude_rel_package/page_my_sample_item_pass', data)
.then(res => res),
// 查看不符合项 不合格项 /v1/aptitude_rel_package/page_my_sample_item_unqualified
pageSampleItemUnqualified: data =>
http
.post(
'/llgt/v1/aptitude_rel_package/page_my_sample_item_unqualified',
data
)
.then(res => res),
// 添加
add: data => http.post('/llgt/v1/sample_library/add', data).then(res => res),
// 编辑
edit: data =>
http.put('/llgt/v1/sample_library/' + data.id, data.obj).then(res => res),
// 删除
deleteById: id =>
http.delete('/llgt/v1/sample_library/?ids=' + id).then(res => res)
}
/**
* 复检结果查询
*/
import http from '../../http'
export default {
// 复检结果查询 /v1/contract_sample/page_repeat_plan_inquiry
pageRepeatInquiry: data =>
http
.post('/llgt/v1/contract_sample/page_repeat_plan_inquiry', data)
.then(res => res),
// 添加
add: data => http.post('/llgt/v1/sample_library/add', data).then(res => res),
// 编辑
edit: data =>
http.put('/llgt/v1/sample_library/' + data.id, data.obj).then(res => res),
// 详情
getById: id => http.get('/llgt/v1/sample_library/' + id).then(res => res),
// 删除
deleteById: id =>
http.delete('/llgt/v1/sample_library/?ids=' + id).then(res => res)
}
/**
* 处理方案评审
*/
import http from '../../http'
export default {
// 处理方案评审PAGE /v1/contract_sample/page_treatment_plan
pageTreatmentPlan: data =>
http
.post('/llgt/v1/contract_sample/page_treatment_plan', data)
.then(res => res),
// 处理方案评审 历史PAGE /v1/contract_sample/page_treatment_plan_history
pageTreatmentHistory: data =>
http
.post('/llgt/v1/contract_sample/page_treatment_plan_history', data)
.then(res => res),
// 检测项目 /v1/item/pageVO
testItemPage: data =>
http.post('/llgt/v1/item/pageVO', data).then(res => res),
// 处理方案评审通过 /v1/contract_sample/submit_treatment_approval
submitTreatmentApproval: ids =>
http
.post('/llgt/v1/contract_sample/submit_treatment_approval?ids=' + ids)
.then(res => res),
// 处理方案评审驳回 /v1/contract_sample/submit_treatment_return
submitTreatmentReturn: data =>
http
.post('/llgt/v1/contract_sample/submit_treatment_return?ids=' + data.id, {
remark: data.reason
})
.then(res => res),
// 添加
add: data => http.post('/llgt/v1/sample_library/add', data).then(res => res),
// 编辑
edit: data =>
http.put('/llgt/v1/sample_library/' + data.id, data.obj).then(res => res),
// 详情
getById: id => http.get('/llgt/v1/sample_library/' + id).then(res => res),
// 删除
deleteById: id =>
http.delete('/llgt/v1/sample_library/?ids=' + id).then(res => res)
}
/**
* 工作台
*/
import http from '../../http'
export default {
// page
originalRecordsPage: data =>
http.post('/print/v1/template/page', data).then(res => res),
// 填写原始记录
originalRecordsAdd: data =>
http
.post(
'/llgt/v1/item/save_form_for_item?formId=' +
data.formId +
'&ids=' +
data.ids
)
.then(res => res),
originalRecordsEdit: data =>
http
.post(
'/llgt/v1/item/edit_form_for_item?formId=' +
data.formId +
'&ids=' +
data.ids
)
.then(res => res)
}
/**
* 检测项目管理
*/
import http from '../../http'
import { https } from '../../https'
export default {
// page
page: data => http.post('/llgt/v1/aptitude_item/page', data).then(res => res),
// pageVo
pageVo: data =>
http.post('/llgt/v1/aptitude_item/page_vo', data).then(res => res),
// 添加
add: data => http.post('/llgt/v1/aptitude_item/', data).then(res => res),
// 编辑
edit: data =>
http.put('/llgt/v1/aptitude_item/' + data.id, data.obj).then(res => res),
// 详情
getById: data =>
http
.post('/llgt/v1/aptitude_item/page_vo', { id: data.id })
.then(res => res),
// 删除
deleteById: id =>
http.delete('/llgt/v1/aptitude_item/?ids=' + id).then(res => res),
// 报检-导入检测项目left
materialTestItem: data =>
http
.post('/llgt/v1/aptitude_item/page_get_library_item', data)
.then(res => res),
// 检测人员page
pageUser: data =>
http.post('/llgt/v1/aptitude_personnel/page', data).then(res => res),
// 添加检测人员
addPerson: data =>
https
.post('/llgt/v1/aptitude_personnel/add/', JSON.stringify(data))
.then(res => res),
// 批量添加检测人员
addPersonByIds: data =>
https
.post('/llgt/v1/aptitude_personnel/batch_add/', JSON.stringify(data))
.then(res => res),
// 删除检测人员
deletePerson: id =>
http.delete('/llgt/v1/aptitude_personnel/?ids=' + id).then(res => res)
}
/**
* 判定标准管理
*/
import http from '../../http'
export default {
// page
page: data =>
http.post('/llgt/v1/aptitude_judge/page', data).then(res => res),
// 添加
add: data => http.post('/llgt/v1/aptitude_judge/', data).then(res => res),
// 编辑
edit: data =>
http.put('/llgt/v1/aptitude_judge/' + data.id, data.obj).then(res => res),
// 详情
getById: id => http.get('/llgt/v1/aptitude_judge/' + id).then(res => res),
// 删除
deleteById: id =>
http.delete('/llgt/v1/aptitude_judge/?ids=' + id).then(res => res)
}
/**
* 检测项目管理
*/
import http from '../../http'
export default {
// page
page: data =>
http.post('/llgt/v1/aptitude_package/page', data).then(res => res),
// 添加
add: data => http.post('/llgt/v1/aptitude_package/', data).then(res => res),
// 编辑
edit: data =>
http.put('/llgt/v1/aptitude_package/' + data.id, data.obj).then(res => res),
// 详情
getById: id => http.get('/llgt/v1/aptitude_package/' + id).then(res => res),
// 删除
deleteById: id =>
http.delete('/llgt/v1/aptitude_package/?ids=' + id).then(res => res)
}
/**
* 检测项目
*/
import http from '../../http'
export default {
// 查看已有的绑定项目
addedPage: data =>
http
.post('/llgt/v1/aptitude_rel_package/page_old_item', data)
.then(res => res),
// 绑样本库 查看绑定项目
sampleLibrary: data =>
http.post('/llgt/v1/sample_library_item/page_sample_library_item', data),
// 查看检测项目
pageContractSampleTestItem: data =>
http.post('/llgt/v1/item/pageVO', data).then(res => res),
// One 查看项目接口
addedPageOne: data =>
http
.post('/llgt/v1/aptitude_rel_package/page_my_sample_inspected', data)
.then(res => res),
// 检测项目包-管理检测项目
testPackagePage: data =>
http
.post('/llgt/v1/aptitude_rel_package/page_pack_my', data)
.then(res => res),
// 检测项目包-未添加
packPage: data =>
http.post('/llgt/v1/aptitude_rel_package/page_pack', data).then(res => res),
// 检测项目包-保存
savepackPage: data =>
http
.post(
'/llgt/v1/aptitude_rel_package/batch_add_item_to_package/?ItemIds=' +
data.ItemIds,
{ packageId: data.packageId }
)
.then(res => res),
// 物料绑定的检测项目
sampleItemPage: data =>
http
.post('/llgt/v1/aptitude_rel_package/page_my_sample_inspected', data)
.then(res => res),
// 报检单绑定的检测项目
contractItemPage: data =>
http
.post('/llgt/v1/aptitude_rel_package/page_my_sample_item', data)
.then(res => res),
// 删除
deleteById: id =>
http.delete('/llgt/v1/aptitude_rel_package/?ids=' + id).then(res => res)
// // 添加
// add: data => http.post('/llgt/v1/category/', data).then(res => res),
// // 编辑
// edit: data =>
// http.put('/llgt/v1/category/' + data.id, data.obj).then(res => res),
// // 详情
// getById: id => http.get('/llgt/v1/category/' + id).then(res => res),
// // 类型tree
// categoryTree: data =>
// http.post('/llgt/v1/category/list', data).then(res => res)
}
/**
*检测依据管理
*/
import http from '../../http'
export default {
// page
page: data => http.post('/llgt/v1/standard/page', data).then(res => res),
// 添加
add: data => http.post('/llgt/v1/standard/', data).then(res => res),
// 编辑
edit: data =>
http.put('/llgt/v1/standard/' + data.id, data.obj).then(res => res),
// 详情
getById: id => http.get('/llgt/v1/standard/' + id).then(res => res),
// 删除
deleteById: id =>
http.delete('/llgt/v1/standard/?ids=' + id).then(res => res),
// list
list: data => http.post('/llgt/v1/standard/list_data', data).then(res => res)
}
/**
* 检测类型管理
*/
import http from '../../http'
export default {
// page
page: data => http.post('/llgt/v1/category/page', data).then(res => res),
// 添加
add: data => http.post('/llgt/v1/category/add/', data).then(res => res),
// 编辑
edit: data =>
http.put('/llgt/v1/category/' + data.id, data.obj).then(res => res),
// 详情
getById: id => http.get('/llgt/v1/category/' + id).then(res => res),
// 删除
deleteById: id =>
http.delete('/llgt/v1/category/?ids=' + id).then(res => res),
// 类型tree
categoryTree: data =>
http.post('/llgt/v1/category/list', data).then(res => res),
// A类型tree
categoryClassTree: data =>
http.post('/llgt/v1/category/list_class', data).then(res => res),
// 炼钢类型tree
categorySteelTree: data =>
http.post('/llgt/v1/category/list', data).then(res => res)
}
/**
* 操作日志
*/
import http from '../http'
export default {
// page
page: data => http.post('/llgt/v1/news_category/page', data).then(res => res),
// 检测项目操作日志
sampleItemPage: data =>
http.post('/llgt/v1/aptitude_item_record/page', data).then(res => res),
pageItemRecord: data =>
http.post('/llgt/v1/item_record/page', data).then(res => res),
// 查看检测结果
testResultPage: data =>
http
.post('/llgt/v1/aptitude_rel_package/page_my_sample_item/', data)
.then(res => res),
// 查看检测结果
pageSteelIntegrationItem: data =>
http
.post('/llgt/v1/item/page_forge_low_power_list/', data)
.then(res => res),
// 数据查阅-查看检测结果
testResultPages: data =>
http
.post('/llgt/v1/aptitude_rel_package/data_access_right', data)
.then(res => res),
// 轧钢数据查阅-查看检测结果 检测结果来源 化学成分和热低倍
tieSteelTestResultPages: data =>
http
.post('/llgt/v1/aptitude_rel_package/data_class_c_item', data)
.then(res => res),
// 报告管理 操作日志 /v1/sample_record/page
reportRecordPages: data =>
http.post('/llgt/v1/sample_record/page', data).then(res => res),
reportRecordNcPages: data =>
http.post('/llgt/v1/sample_nc_log/page', data).then(res => res),
itemRecordNcPages: data =>
http.post('/llgt/v1/item_nc_log/page', data).then(res => res),
// sample_record/page
pageSampleRecord: data =>
http
.post('/llgt/v1/sample_record/page', data)
.then(res => res)
.then(res => res),
// 查看检测结果 /v1/contract_record/page
reportManageLog: data =>
http.post('/llgt/v1/contract_record/page', data).then(res => res),
// sample_record/page
pageDispatchHis: data =>
http.post('/llgt/v1/dispatch/page', data).then(res => res),
// 历史组批 检测项目 v1/item/page_form_batch_his_item
pageDispatchItemHis: data =>
http.post('/llgt/v1/item/page_form_batch_his_item', data)
}
/**
* 样本库管理
*/
import http from '../../http'
// import { https } from '../../https'
export default {
// 待审分页 /v1/contract_sample/page_report_check
pageReportCheck: data =>
http
.post('/llgt/v1/contract_sample/page_report_check', data)
.then(res => res),
// B类炼铁检测待审分页 /v1/contract_sample/page_report_check
pageSmeltIronReportCheck: data =>
http.post('/llgt/v1/canning/page_report_audit', data).then(res => res),
// 待审报告提交 /v1/contract_sample/submit_report_check
pageReportSubmit: ids =>
http
.post('/llgt/v1/contract_sample/submit_report_check?ids=' + ids)
.then(res => res),
// B类炼铁检测待审报告提交
submitSmeltIronReportCheck: ids =>
http
.post('/llgt/v1/canning/submit_report_check?ids=' + ids)
.then(res => res),
// 待审报告 驳回 /v1/contract_sample/back_report_check
pageReportBack: data =>
http
.post(
'/llgt/v1/contract_sample/back_report_check?ids=' +
data.ids +
'&reason=' +
data.reason
)
.then(res => res),
// 炼铁待审报告 驳回 /v1/canning/back_report_check
pageCanningReportBack: data =>
http.post(
'/llgt/v1/canning/back_report_check?ids=' +
data.ids +
'&reason=' +
data.reason
),
// 炼铁报告签发 驳回 /v1/canning/back_report_issue
pageCanningIssueReportBack: data =>
http
.post(
'/llgt/v1/canning/back_report_issue?ids=' +
data.ids +
'&reason=' +
data.reason
)
.then(res => res),
// 待审历史报告编制 /v1/contract_sample/page_report_check_history
pageHisReport: data =>
http
.post('/llgt/v1/contract_sample/page_report_check_history', data)
.then(res => res),
// B类炼铁检测待审历史报告审核
pageSmeltIronReportCheckHistory: data =>
http
.post('/llgt/v1/canning/page_report_audit_history', data)
.then(res => res),
list: data =>
http.post('/llgt/v1/sample_library/list', data).then(res => res),
// 添加
add: data => http.post('/llgt/v1/sample_library/add', data).then(res => res),
// 编辑
edit: data =>
http.put('/llgt/v1/sample_library/' + data.id, data.obj).then(res => res),
// 详情
getById: id => http.get('/llgt/v1/sample_library/' + id).then(res => res),
// 删除
deleteById: id =>
http.delete('/llgt/v1/sample_library/?ids=' + id).then(res => res)
}
/**
* 样本库管理
*/
import http from '../../http'
import { https } from '../../https'
export default {
// base 报告模板
baseReportTemplate: data =>
http.post('/base/v1/file_template/page', data).then(res => res),
// 生成报告接口 /v1/contract_sample/report_generate
reportGenerate: data =>
https
.post('/llgt/v1/contract_sample/report_generate', JSON.stringify(data))
.then(res => res),
// B类炼铁生成报告接口
reportSmeltIronGenerate: data =>
https
.post('/llgt/v1/canning/report_generate', JSON.stringify(data))
.then(res => res),
// 待编制分页 /v1/contract_sample/page_report_make
pageReportMake: data =>
http
.post('/llgt/v1/contract_sample/page_report_make', data)
.then(res => res),
// B类炼铁检测待编制分页
pageSmeltIronReportMake: data =>
http.post('/llgt/v1/canning/page_report_make', data).then(res => res),
// B类炼铁检测合罐后检测项目分页
pageSmeltIronCanningItem: data =>
http.post('/llgt/v1/canning_item/page_vo', data).then(res => res),
// 报告编制提交 /v1/contract_sample/submit_report_make
pageReportSubmit: ids =>
http
.post('/llgt/v1/contract_sample/submit_report_make?ids=' + ids)
.then(res => res),
// B类炼铁检测报告编制提交
submitSmeltIronReportMake: ids =>
http.post('/llgt/v1/canning/submit_report_make?ids=' + ids),
// 历史报告编制 /v1/contract_sample/page_report_make_history
pageHisReport: data =>
http
.post('/llgt/v1/contract_sample/page_report_make_history', data)
.then(res => res),
// B类炼铁检测历史报告编制
pageSmeltIronReportMakeHistory: data =>
http
.post('/llgt/v1/canning/page_report_make_history', data)
.then(res => res),
// 历史版本
listHisVersion: data =>
http
.post('/llgt/v1/contract_report/page?contractId=' + data.id, data.obj)
.then(res => res),
// 炼铁历史版本
ironHisVersion: data =>
http
.post('/llgt/v1/canning_report/page?contractId=' + data.id, data.obj)
.then(res => res),
// 历史版本 报告预览 /v1/contract_report/report_preview_history
listHisPreview: id =>
http
.post('/llgt/v1/contract_report/report_preview_history?id=' + id)
.then(res => res),
// 预览报告 llgt/v1/contract_report/report_preview_login?
previewReport: id =>
http
.post('/llgt/v1/contract_report/report_preview_login?id=' + id)
.then(res => res),
// 预览质保书 /v1/warranties_report/preview_warranty
previewWarranty: id =>
http.post('/llgt/v1/warranties_report/preview_warranty?id=' + id),
// 预览报告
previewSmeltIronReport: id =>
http
.post('/llgt/v1/canning_report/report_preview_login?id=' + id)
.then(res => res),
// 检测项目 v1/aptitude_rel_package/data_access_right
testItemPage: data =>
http
.post('/llgt/v1/aptitude_rel_package/data_access_right', data)
.then(res => res),
// 轧钢、钢管报告管理-查看检测结果 检测结果来源 化学成分和热低倍
tieSteelTestResultPages: data =>
http
.post('/llgt/v1/aptitude_rel_package/data_class_c_item', data)
.then(res => res),
// 炼钢/锻造报告编制检测项目 v1/aptitude_rel_package/data_access_right
testSteelItemPage: data =>
http
.post('/llgt/v1/item/page_forge_low_power_list/', data)
.then(res => res),
// 添加
add: data => http.post('/llgt/v1/sample_library/add', data).then(res => res),
// 编辑
edit: data =>
http.put('/llgt/v1/sample_library/' + data.id, data.obj).then(res => res),
// 详情
getById: id => http.get('/llgt/v1/sample_library/' + id).then(res => res),
// 删除
deleteById: id =>
http.delete('/llgt/v1/sample_library/?ids=' + id).then(res => res)
}
/**
* 样本库管理
*/
import http from '../../http'
export default {
// 待签发分页 /v1/contract_sample/page_report_issue
pageReportIssue: data =>
http
.post('/llgt/v1/contract_sample/page_report_issue', data)
.then(res => res),
// B类炼铁检测待签发分页 /v1/contract_sample/page_report_issue
pageSmeltIronReportIssue: data =>
http.post('/llgt/v1/canning/page_report_issue', data).then(res => res),
// 报告签发提交 /v1/contract_sample/submit_report_issue
pageReportSubmit: ids =>
http
.post('/llgt/v1/contract_sample/submit_report_issue?ids=' + ids)
.then(res => res),
// B类炼铁检测报告签发提交
submitSmeltIronReportIssue: ids =>
http
.post('/llgt/v1/canning/submit_report_issue?ids=' + ids)
.then(res => res),
// 历史报告编制 /v1/contract_sample/page_report_issue_history
pageHisReport: data =>
http
.post('/llgt/v1/contract_sample/page_report_issue_history', data)
.then(res => res),
// B类炼铁检测历史报告签发 /v1/contract_sample/page_report_issue_history
pageSmeltIronReportIssueHistory: data =>
http
.post('/llgt/v1/canning/page_report_issue_history', data)
.then(res => res),
// B类炼铁检测合罐前数据查询
pageSmeltIronCanningBeforeConsult: data =>
http
.post(
'/llgt/v1/contract_sample/page_smelt_iron_canning_before_consult',
data
)
.then(res => res),
// B类炼铁检测合罐前数据查询
pageSmeltIronStoveCodeForSteel: data =>
http
.post(
'/llgt/v1/contract_sample/page_smelt_iron_stove_code_for_steel',
data
)
.then(res => res),
// B类炼铁检测合罐后数据查询
pageCanningAfter: data =>
http.post('/llgt/v1/canning/page_vo', data).then(res => res),
// B类炼铁检测合罐后检测项目数据查询
pageCanningAfterItem: data =>
http.post('/llgt/v1/canning_item/page_vo', data).then(res => res),
smeltIronCanReport: id =>
http.post('/llgt/v1/canning/can_report_make?ids=' + id).then(res => res),
// 历史版本
listHisVersion: data =>
http.post('/llgt/v1/sample_attachment/list', data).then(res => res),
// 预览报告 llgt/v1/contract_report/report_preview_login?
previewReport: id =>
http
.post('/llgt/v1/contract_report/report_preview_login?id=' + id)
.then(res => res),
// 检测项目 /v1/item/page_vo
testItemPage: data =>
http.post('/llgt/v1/item/page_vo', data).then(res => res),
// 添加
add: data => http.post('/llgt/v1/sample_library/add', data).then(res => res),
// 编辑
edit: data =>
http.put('/llgt/v1/sample_library/' + data.id, data.obj).then(res => res),
// 详情
getById: id => http.get('/llgt/v1/sample_library/' + id).then(res => res),
// 删除
deleteById: id =>
http.delete('/llgt/v1/sample_library/?ids=' + id).then(res => res)
}
/**
* 样本库管理
*/
import http from '../../http'
export default {
// 报告档案进场原料PAGE /v1/contract_sample/page_report_file
reportRawPage: data =>
http
.post('/llgt/v1/contract_sample/page_report_file', data)
.then(res => res),
// 检测项目 /v1/item/pageVO
testItemPage: data =>
http.post('/llgt/v1/item/pageVO', data).then(res => res),
// 复检查看检测项目 v1/aptitude_rel_package/data_access_right
testRecheckItemPage: data =>
http
.post('/llgt/v1/aptitude_rel_package/data_access_right', data)
.then(res => res),
// 预览报告 llgt/v1/contract_report/report_preview_login?
previewReport: id =>
http
.post('/llgt/v1/contract_report/report_preview_login?id=' + id)
.then(res => res),
// 预览炼铁合罐报告
previewReportSmeltIronCanning: id =>
http
.post('/llgt/v1/canning_report/report_preview_login?id=' + id)
.then(res => res),
// 报告档案其他原料PAGE /v1/contract_sample/page_report_else_file
reportOtherPage: data =>
http
.post('/llgt/v1/contract_sample/page_report_else_file', data)
.then(res => res),
// 报告档案炼铁PAGE
pageReportDocumentSmeltIron: data =>
http.post('/llgt/v1/canning/page_report_document', data).then(res => res)
}
/**
* 样本库项目管理
*/
import http from '../../http'
export default {
// 物料绑定项目-保存
sampleItemSavePage: data =>
http.post(
'/llgt/v1/sample_library_item/add_item/?aptitudeItemIds=' + data.ItemIds,
{ sampleLibraryId: data.sampleLibraryId }
),
// 物料绑定排序
sampleItemSaveOrder: (id, data) =>
http.put('/llgt/v1/sample_library_item/' + id, data),
// page
page: data =>
http.post('/llgt/v1/sample_library_item/page', data).then(res => res),
list: data =>
http.post('/llgt/v1/sample_library_item/list', data).then(res => res),
// 添加
add: data =>
http.post('/llgt/v1/sample_library_item/add', data).then(res => res),
// 编辑
edit: data =>
http
.put('/llgt/v1/sample_library_item/' + data.id, data.obj)
.then(res => res),
// 详情
getById: id =>
http.get('/llgt/v1/sample_library_item/' + id).then(res => res),
// 删除
deleteById: id =>
http.delete('/llgt/v1/sample_library_item/?ids=' + id).then(res => res)
}
/**
* 样本库管理
*/
import http from '../../http'
export default {
// page
page: data =>
http.post('/llgt/v1/sample_library/page', data).then(res => res),
list: data =>
http.post('/llgt/v1/sample_library/list', data).then(res => res),
// 添加
add: data => http.post('/llgt/v1/sample_library/add', data).then(res => res),
// 编辑
edit: data =>
http.put('/llgt/v1/sample_library/' + data.id, data.obj).then(res => res),
// 详情
getById: id => http.get('/llgt/v1/sample_library/' + id).then(res => res),
// 删除
deleteById: id =>
http.delete('/llgt/v1/sample_library/?ids=' + id).then(res => res)
}
/**
* 样本制备
*/
import http from '../../http'
export default {
// 备样管理PAGE /v1/contract_sample_backups/page_backups
prePage: data =>
http
.post('/llgt/v1/contract_sample_backups/page_backups', data)
.then(res => res),
// 备样管理PAGE /v1/contract_sample_backups/page_backups
pageSamplebackups: data =>
http
.post('/llgt/v1/contract_sample_backups/page_backups_manage', data)
.then(res => res),
// 编辑 /v1/contract_sample_backups/{id}
preEdit: data =>
http
.put('/llgt/v1/contract_sample_backups/' + data.id, data.obj)
.then(res => res),
// 处理编辑保存
dealEdit: data =>
http
.post('/llgt/v1/contract_sample_backups/backups_sample_handle', data)
.then(res => res),
// 历史备样 /v1/contract_sample_backups/page_handled
histPage: data =>
http
.post('/llgt/v1/contract_sample_backups/page_handled', data)
.then(res => res),
// 详情
getById: id => http.get('/llgt/v1/category/' + id).then(res => res),
// 删除
deleteById: ids =>
http.delete('/wjl/v1/contract_attachment/?ids=' + ids).then(res => res)
}
/**
* 样本制备
*/
import http from '../../http'
import { https } from '../../https'
export default {
// page 样本制备 /v1/contract_sample/page_wait_preparation
waitPage: data =>
http
.post('/llgt/v1/contract_sample/page_wait_preparation', data)
.then(res => res),
// page 制备记录 /v1/contract_sample/page_end_preparation
recordsPage: data =>
http
.post('/llgt/v1/contract_sample/page_end_preparation', data)
.then(res => res),
// page 制备记录详情页 /v1/contract_sample_backups/page_sample_make_details
recordsSampleDetailPage: data =>
http
.post('/llgt/v1/contract_sample_backups/page_sample_make_details', data)
.then(res => res),
// 制备完成
backupsAdd: data =>
https
.post(
'/llgt/v1/contract_sample_backups/bath_sample_preparation_end',
JSON.stringify(data)
)
.then(res => res),
// 调度确认
dispatchConfirm: data =>
https
.post('/llgt/v1/contract_sample/dispatch_confirm', JSON.stringify(data))
.then(res => res),
// 编辑
edit: data =>
http.put('/llgt/v1/category/' + data.id, data.obj).then(res => res),
// 详情页 /v1/contract_sample/{id}
getById: id => http.get('/llgt/v1/contract_sample/' + id).then(res => res),
// 删除
deleteById: ids =>
http.delete('/wjl/v1/contract_attachment/?ids=' + ids).then(res => res),
// 类型tree
categoryTree: data =>
http.post('/llgt/v1/category/list', data).then(res => res)
}
/**
* 样本制备
*/
import http from '../../http'
export default {
// 数据审核(待推送数据) /v1/contract_sample/page_nc_test_value_push
senderNcPushReceive: data =>
http.post('/llgt/v1/contract_sample/page_nc_test_value_push', data),
// 数据审核(待推送数据) 重新推送 /v1/contract_sample/start_nc_test_value_push
senderNcPushPushByIds: id =>
http
.post('/llgt/v1/contract_sample/start_nc_test_value_push?id=' + id)
.then(res => res),
// 质量审核(待推送数据) /v1/contract_sample/page_nc_judge_push
senderNcJudePush: data =>
http
.post('/llgt/v1/contract_sample/page_nc_judge_push', data)
.then(res => res),
// 质量审核(待推送数据) 重新推送 /v1/contract_sample/nc_judge_push
senderNcJudePushByIds: ids =>
http
.post('/llgt/v1/contract_sample/nc_judge_push?ids=' + ids)
.then(res => res),
// 送样人样本接收 PAGE /v1/contract_sample_backups/page_sender_sample_receive
senderPage: data =>
http.post(
'/llgt/v1/contract_sample_backups/page_sender_sample_receive',
data
),
// 送样人接收 /v1/contract_sample/submit_sender_receive
senderReceive: ids =>
http
.post('/llgt/v1/contract_sample/submit_sender_receive?ids=' + ids)
.then(res => res),
// 送样人接收(新接口) /v1/contract_sample_backups/send_sample_receive
senderReceiveNew: ids =>
http.post(
'/llgt/v1/contract_sample_backups/send_sample_receive?ids=' + ids
),
// 送样人扫码接收 llgt/v1/contract_sample/scan_sender_receive?sampleCode=
senderScanReceive: ids =>
http
.post(
'/llgt/v1/contract_sample_backups/scan_sender_receive?sampleCode=' + ids
)
.then(res => res),
// 实验样本接收 PAGE /v1/contract_sample_backups/page_lab_sample_receive
labPage: data =>
http
.post('/llgt/v1/contract_sample_backups/page_lab_sample_receive', data)
.then(res => res),
// 实验室样本接收 /v1/contract_sample/submit_lab_receive
labReceive: ids =>
http
.post('/llgt/v1/contract_sample/submit_lab_receive?ids=' + ids)
.then(res => res),
// 实验室样本接收(新接口) /v1/contract_sample_backups/send_lab_receive
labReceiveNew: ids =>
http.post('/llgt/v1/contract_sample_backups/send_lab_receive?ids=' + ids),
// 实验室扫码接收 /v1/contract_sample/scan_lab_receive
labScanReceive: ids =>
http
.post(
'/llgt/v1/contract_sample_backups/scan_lab_receive?sampleCode=' + ids
)
.then(res => res),
// 历史任务 PAGE
historyPage: data =>
http.post(
'/llgt/v1/contract_sample_backups/page_lab_sample_receive_history',
data
),
// 送样人历史任务 PAGE
senderHistoryPage: data =>
http
.post(
'/llgt/v1/contract_sample_backups/page_sender_sample_receive_history',
data
)
.then(res => res),
// 编辑 /v1/contract_sample_backups/{id}
preEdit: data =>
http
.put('/llgt/v1/contract_sample_backups/' + data.id, data.obj)
.then(res => res),
// 处理编辑保存
dealEdit: data =>
http
.post('/llgt/v1/contract_sample_backups/backups_sample_handle', data)
.then(res => res),
// 历史备样 /v1/contract_sample_backups/page_handled
histPage: data =>
http
.post('/llgt/v1/contract_sample_backups/page_handled', data)
.then(res => res),
// 详情
getById: id => http.get('/llgt/v1/category/' + id).then(res => res),
// 获取报检单
getContractSampleById: id =>
http.get('/llgt/v1/contract_sample/' + id).then(res => res),
// 删除
deleteById: ids =>
http.delete('/wjl/v1/contract_attachment/?ids=' + ids).then(res => res),
// 编辑
editContractSample: data =>
http.put('/llgt/v1/contract_sample/' + data.id, data.obj).then(res => res),
// 编辑
editContractSampleDispatch: data =>
http
.put('/llgt/v1/contract_sample/update_dispatch_/' + data.id, data.obj)
.then(res => res),
// 炼铁铁水样本接收page界面
pageSmeltIronReceive: data =>
http
.post('/llgt/v1/contract_sample/page_smelt_iron_sample_receive', data)
.then(res => res),
// 炼铁铁水样本接收历史记录page界面
pageSmeltIronReceiveHistory: data =>
http
.post(
'/llgt/v1/contract_sample/page_smelt_iron_sample_receive_history',
data
)
.then(res => res),
// 炼铁铁水样本接收提交
smeltIronSampleReceive: ids =>
http
.post('/llgt/v1/contract_sample/submit_smelt_iron_receive/?ids=' + ids)
.then(res => res),
// (仓库调度)炼钢钢坯调度
pageDispatchSteelBillet: data =>
http
.post('/llgt/v1/contract_sample/page_dispatch_steel_billet', data)
.then(res => res),
// (仓库调度)炼钢钢坯调度历史记录
pageDispatchSteelBilletHistory: data =>
http
.post('/llgt/v1/contract_sample/page_dispatch_steel_billet_history', data)
.then(res => res),
// (仓库调度)炼钢钢坯调度
pageDispatchForgeBillet: data =>
http
.post('/llgt/v1/contract_sample/page_dispatch_forge_billet', data)
.then(res => res),
// (仓库调度)炼钢钢坯调度历史查询
pageDispatchForgeBilletHistory: data =>
http
.post('/llgt/v1/contract_sample/page_dispatch_forge_billet_history', data)
.then(res => res),
// (仓库调度)外购钢坯调度
pageDispatchOutBuyBillet: data =>
http
.post('/llgt/v1/contract_sample/page_dispatch_out_buy_billet', data)
.then(res => res),
// (仓库调度)外购钢坯调度历史记录
pageDispatchOutBuyBilletHistory: data =>
http
.post(
'/llgt/v1/contract_sample/page_dispatch_out_buy_billet_history',
data
)
.then(res => res),
// 终止调度
stopDispatch: data =>
http
.post(
'/llgt/v1/contract_sample/dispatch_stop?ids=' +
data.ids +
'&reason=' +
data.reason
)
.then(res => res)
}
/**
* 抽检报检执行
*/
import http from '../../http'
export default {
// 抽检报检执行PAGE /v1/contract_sample/page_sampling_register_execute
pageRegisterExecute: data =>
http
.post('/llgt/v1/contract_sample/page_sampling_register_execute', data)
.then(res => res),
// 抽检报检执行历史PAGE /v1/contract_sample/page_sampling_register_execute_history
pageRegisterHistory: data =>
http
.post(
'/llgt/v1/contract_sample/page_sampling_register_execute_history',
data
)
.then(res => res),
// 预览报告 llgt/v1/contract_report/report_preview_login?
previewReport: id =>
http
.post('/llgt/v1/contract_report/report_preview_login?id=' + id)
.then(res => res),
// 抽检执行接口 /v1/sampling_register/execute_sampling
executeByIds: id =>
http
.post('/llgt/v1/sampling_register/execute_sampling?ids=' + id)
.then(res => res),
// 抽检执行 编辑 /v1/contract_sample/{id}
samplingEdit: id =>
http.get('/llgt/v1/contract_sample/' + id).then(res => res)
}
/**
* 抽检登记
*/
import http from '../../http'
export default {
// 抽检登记 /v1/contract_sample/page_issued
pageSamplingReview: data =>
http.post('/llgt/v1/contract_sample/page_issued', data).then(res => res),
// 预览报告 llgt/v1/contract_report/report_preview_login?
previewReport: id =>
http
.post('/llgt/v1/contract_report/report_preview_login?id=' + id)
.then(res => res),
// 检测项目 /v1/item/pageVO
testItemPage: data =>
http.post('/llgt/v1/item/pageVO', data).then(res => res),
// 发起抽检 /v1/sampling_register/start_sampling_register
startSamplingRegister: data =>
http
.post(
'/llgt/v1/sampling_register/start_sampling_register?contractSampleIds=' +
data.id +
'&reason=' +
data.obj
)
.then(res => res),
// 历史登记 /v1/contract_sample/page_sampling_register_history
pageHistoryRegister: data =>
http
.post('/llgt/v1/contract_sample/page_sampling_register_history', data)
.then(res => res),
// 添加
add: data => http.post('/llgt/v1/sample_library/add', data).then(res => res),
// 编辑
edit: data =>
http.put('/llgt/v1/sample_library/' + data.id, data.obj).then(res => res),
// 详情
getById: id => http.get('/llgt/v1/sample_library/' + id).then(res => res),
// 删除
deleteById: id =>
http.delete('/llgt/v1/sample_library/?ids=' + id).then(res => res)
}
/**
* 抽检结果查询
*/
import http from '../../http'
export default {
// 抽检结果查询PAGE /v1/contract_sample/page_sampling_result_history
pageResultHistory: data =>
http
.post('/llgt/v1/contract_sample/page_sampling_result_history', data)
.then(res => res),
// 预览报告 llgt/v1/contract_report/report_preview_login?
previewReport: id =>
http
.post('/llgt/v1/contract_report/report_preview_login?id=' + id)
.then(res => res)
}
/**
* 抽检报检评审
*/
import http from '../../http'
export default {
// 抽检待评审页面 /v1/contract_sample/page_sampling_register_review
pageSamplingReview: data =>
http
.post('/llgt/v1/contract_sample/page_sampling_register_review', data)
.then(res => res),
// 抽检历史评审PAGE /v1/contract_sample/page_sampling_register_review_history
pageSamplingHistory: data =>
http
.post(
'/llgt/v1/contract_sample/page_sampling_register_review_history',
data
)
.then(res => res),
// 预览报告 llgt/v1/contract_report/report_preview_login?
previewReport: id =>
http
.post('/llgt/v1/contract_report/report_preview_login?id=' + id)
.then(res => res),
// 抽检评审通过 /v1/sampling_register/pass_sampling_register
passSamplingRegister: id =>
http
.post('/llgt/v1/sampling_register/pass_sampling_register?ids=' + id)
.then(res => res),
// 抽检评审驳回 /v1/sampling_register/back_sampling_register
backSamplingRegister: data =>
http
.post(
'/llgt/v1/sampling_register/back_sampling_register?ids=' +
data.id +
'&reason=' +
data.obj
)
.then(res => res),
// 添加
add: data => http.post('/llgt/v1/sample_library/add', data).then(res => res),
// 编辑
edit: data =>
http.put('/llgt/v1/sample_library/' + data.id, data.obj).then(res => res),
// 详情
getById: id => http.get('/llgt/v1/sample_library/' + id).then(res => res),
// 删除
deleteById: id =>
http.delete('/llgt/v1/sample_library/?ids=' + id).then(res => res)
}
/**
* 统计分析
*/
import http from '../../http'
export default {
// 进场原料合格率
approachMaterialPage: data =>
http.post('/llgt/v1/statistics/page_class_a_materiel_pass_rate', data),
exportFile: data => http.post('/wjl-metering/v1/maintain_unit/input', data)
}
/**
* 统计分析
* 锻造模块
*/
import http from '../../http'
export default {
// 锻造日报表统计
forgeDayReport: data =>
http.post('/llgt/v1/statistics/page_forge_day_report_form', data),
// 锻造月度化学分析报告
forgeMonthlyChemical: data =>
http.post('/llgt/v1/statistics/page_forge_month_chemical_statistics', data),
// 锻造月度考核统计 A区
forgeMonthlyClassBanA: data =>
http.post(
'/llgt/v1/statistics/page_forge_month_class_ban_statistics',
data
),
// 锻造月度考核统计 B区
forgeMonthlyClassBanB: data =>
http.post(
'/llgt/v1/statistics/page_forge_month_class_ban_statistics_one',
data
),
// 锻造月度考核统计 C区
forgeMonthlyClassBanC: data =>
http.post(
'/llgt/v1/statistics/page_forge_month_class_ban_statistics_two',
data
),
// 锻造月度考核统计 D区
forgeMonthlyClassBanD: data =>
http.post('/llgt/v1/statistics/page_forge_product_line_one', data),
// 锻造月度考核统计 E区
forgeMonthlyClassBanE: data =>
http.post('/llgt/v1/statistics/page_forge_product_line_two', data),
// 锻造电炉渣与锻造精炼渣 A区
forgeSlagAndRefiningA: data =>
http.post('/llgt/v1/statistics/page_forge_electric_slag_statistics', data),
// 锻造电炉渣与锻造精炼渣 B区
forgeSlagAndRefiningB: data =>
http.post('/llgt/v1/statistics/page_forge_scouring_slag_statistics', data),
// 粒钢检测统计
granularityResults: data =>
http.post('/llgt/v1/statistics/page_granularity_statistics', data)
}
/**
* 统计分析
* A类炼铁、炼钢、轧钢、钢管模块需要的统计
*/
import http from '../../http'
export default {
// 中心质量实验室不合格进场原料统计
materialCenterFail: data =>
http.post('/llgt/v1/statistics/page_materiel_center_fail', data),
// 轧钢成品检测合格率情况统计
steelRollingPass: data =>
http.post(
'/llgt/v1/statistics/page_steel_rolling_pass_rate_statistics',
data
),
// 钢管成品检测合格率情况统计
steelPipePass: data =>
http.post('/llgt/v1/statistics/page_steel_pipe_pass_rate_statistics', data)
}
/**
* 统计分析
* 进场原料质量汇总
*/
import http from '../../http'
export default {
// A类原料物料分页
rawMaterialQuality: data =>
http.post('/llgt/v1/statistics/page_class_a_materiel_quality', data),
// 取制样日不合格物料项目统计
materialDayRate: data =>
http.post('/llgt/v1/statistics/page_materiel_day_failed_rate', data),
// 物料检测统计
materialTestStatistics: data =>
http.post('/llgt/v1/statistics/page_sample_item_statistics', data)
}
/**
* 数据查阅
*/
import http from '../../http'
export default {
// page
page: data => http.post('/llgt/v1/contract_sample/page_data_access', data),
// page
pageSmeltIronDataConsult: data =>
http.post('/llgt/v1/contract_sample/page_smelt_iron_data_consult', data),
// 钢管数据查阅分页
steelPipeDataPage: data =>
http.post('/llgt/v1/contract_sample/page_steel_pipe_data_consult', data),
// 钢管数据查阅 准许报告编制
steelPipeDataCanMake: ids =>
http.post('/llgt/v1/contract_sample/submit_pipe_can_make?ids=' + ids),
// 钢管数据查阅 手动判定
steelManualJude: (ids, ...data) =>
http.post(
'/llgt/v1/contract_sample/submit_pipe_quality_grade?ids=' + ids,
data[0]
),
// 轧钢数据查阅分页
steelPipeConsultPage: data =>
http.post('/llgt/v1/contract_sample/page_steel_rolling_data_consult', data)
}
/**
* 数据审核
*/
import http from '../../http'
export default {
// page
pageLeft: data =>
http
.post('/llgt/v1/contract_sample/page_data_approval', data)
.then(res => res),
// B类炼铁检测数据审核
pageSmeltIronDataAudit: data =>
http
.post('/llgt/v1/contract_sample/page_smelt_iron_data_audit', data)
.then(res => res),
// 右侧
pageRight: data =>
http
.post(
'/llgt/v1/aptitude_rel_package/page_data_examine/?contractSampleIds=' +
data.contractSampleIds,
data
)
.then(res => res),
// 历史审核
pageHis: data =>
http
.post('/llgt/v1/aptitude_rel_package/page_history_checking_to_data', data)
.then(res => res),
// B类炼铁检测历史审核
pageSmeltIronDataAuditHistory: data =>
http
.post(
'/llgt/v1/aptitude_rel_package/page_smelt_iron_data_audit_history',
data
)
.then(res => res),
// C类轧钢历史审核
steelRollingAuditHistoryPage: data =>
http.post('/llgt/v1/item/page_steel_rolling_data_audit_history', data),
// C类钢管历史审核
steelPipeAuditHistoryPage: data =>
http
.post('/llgt/v1/item/page_steel_pipe_data_audit_history', data)
.then(res => res),
// 退回
returnById: data =>
http
.post(
'/llgt/v1/contract_sample/to_examine_rejected?itemIds=' + data.ids,
data
)
.then(res => res),
// 提交
submitById: id =>
http
.post('/llgt/v1/contract_sample/to_examine_submission?itemIds=' + id)
.then(res => res),
// 炼钢提交
submitSteelMakeAuditById: id =>
http
.post('/llgt/v1/contract_sample/submit_steel_make_audit?itemIds=' + id)
.then(res => res),
// 提交
submitSmeltIronDataAudit: id =>
http
.post('/llgt/v1/item/submit_smelt_iron_data_audit?itemIds=' + id)
.then(res => res)
}
/**
* 数据录入
*/
import http from '../../http'
import { https } from '../../https'
export default {
// 查看仪器详情 /v1/item_rel_equip/page
externalRelDetail: data =>
http.post('/llgt/v1/item_rel_equip/page', data).then(res => res),
// 样本库查看仪器详情 /llgt/v1/sample_library_item/page
libraryRelDetail: data =>
http.post('/llgt/v1/sample_library_item/page', data).then(res => res),
// 样本库查看仪器详情 删除 /v1/sample_library_item/
libraryDeleteByIds: ids =>
http.delete('/llgt/v1/sample_library_item/' + ids).then(res => res),
// 查看仪器删除 /v1/item_rel_equip/
externalRelDelete: ids =>
http.delete('/llgt/v1/item_rel_equip/?ids=' + ids).then(res => res),
// 委外数据录入PAGE /v1/item/page_for_entry_list
externalFillData: data =>
http.post('/llgt/v1/item/page_for_entry_list', data).then(res => res),
// 待检任务列表
pageWaitTest: data =>
http
.post('/llgt/v1/contract_sample/page_task_inspected', data)
.then(res => res),
// 数据录入-左侧
dataEntryLeft: data =>
http
.post('/llgt/v1/contract_sample/page_data_entry', data)
.then(res => res),
// 数据录入-右侧
dataEntryRight: data =>
http
.post('/llgt/v1/aptitude_rel_package/page_my_sample_data_entry', data)
.then(res => res),
// 外购 数据录入
pageOutBuyItemInput: data =>
http.post('/llgt/v1/item/page_out_buy_item_input', data).then(res => res),
// 查看检测项目
pageSampleItem: data =>
http.post('/llgt/v1/item/pageVO', data).then(res => res),
// 提交至复核
submitForReview: id =>
http
.post('/llgt/v1/contract_sample/submit_for_review?ids=' + id)
.then(res => res),
// B类炼铁提交至复核
submitSmeltIronToReview: id =>
http
.post('/llgt/v1/contract_sample/submit_smelt_iron_to_review?ids=' + id)
.then(res => res),
// 确认
submitById: id =>
http
.post('/llgt/v1/contract_sample/batch_confirmation_project?itemIds=' + id)
.then(res => res),
// 历史任务
pageHis: data =>
http
.post('/llgt/v1/aptitude_rel_package/page_history_checking_items', data)
.then(res => res),
// 填写检测结果
testValue: data =>
http
.post('/llgt/v1/contract_sample/value_in_batches/' + data.itemIds, {
testValue: data.testValue
})
.then(res => res),
// 修改检测项目顺序
orderByChange: data =>
http
.post('/llgt/v1/contract_sample/change_order_by/' + data.itemIds, {
orderBy: data.orderBy
})
.then(res => res),
// 批量判定
judge: data =>
http
.post(
'/llgt/v1/contract_sample/batch_decision/?itemIds=' + data.itemIds,
{ singleJudge: data.singleJudge }
)
.then(res => res),
// 偏离原因申请
submitDeviate: data =>
http.post('/llgt/v1/item/submit_deviate', data).then(res => res),
// 数据录入 选择仪器设备PAGE
selectEquipPage: data =>
http.post('/res/v1/equip_info/page', data).then(res => res),
// 选仪器设备添加
equipAdd: data =>
https
.post('/llgt/v1/item_rel_equip/bath_add', JSON.stringify(data))
.then(res => res),
// 样本库 检测项目选仪器设备
sampleEquipAdd: data =>
http.post('/llgt/v1/sample_library_item/bind_equip', data).then(res => res),
// B类炼铁检测检测数据录入样本列表
pageSmeltIronSampleDataInput: data =>
http
.post('/llgt/v1/contract_sample/page_smelt_iron_sample_data_input', data)
.then(res => res),
// B类炼铁检测检测数据录入项目填写列表
pageSmeltIronItemInput: data =>
http
.post('/llgt/v1/item/page_smelt_iron_item_input', data)
.then(res => res),
// B类炼铁检测检测数据录入项目历史列表
pageSmeltIronInputHis: data =>
http
.post('/llgt/v1/aptitude_rel_package/page_smelt_iron_input_history', data)
.then(res => res),
// C类轧钢数据录入项目历史列表
pageTieSteelHis: data =>
http.post('/llgt/v1/item/page_steel_rolling_data_input_history', data),
// C类轧钢数据录入项目历史列表
pageSteelRollingHis: data =>
http.post('/llgt/v1/item/page_steel_pipe_data_input_history', data),
// 炼铁合炉后 检测结果修改
ironTestValueEdit: ({ itemIds, ...rest }) =>
http.put(`/llgt/v1/canning_item/${itemIds}`, rest)
}
/**
* 数据复核
*/
import http from '../../http'
export default {
// page
pageLeft: data =>
http
.post('/llgt/v1/contract_sample/page_data_review', data)
.then(res => res),
// 右侧
pageRight: data =>
http
.post(
'/llgt/v1/aptitude_rel_package/page_data_review/?contractSampleIds=' +
data.contractSampleIds,
data
)
.then(res => res),
pageHis: data =>
http
.post(
'/llgt/v1/contract_sample/page_other_material_quality_audit_history',
data
)
.then(res => res),
pageSmeltIronDataReview: data =>
http
.post('/llgt/v1/contract_sample/page_smelt_iron_data_review', data)
.then(res => res),
pageSmeltIronDataReviewHistory: data =>
http
.post(
'/llgt/v1/aptitude_rel_package/page_smelt_iron_data_review_history',
data
)
.then(res => res),
pageHisRecheck: data =>
http
.post(
'/llgt/v1/aptitude_rel_package/page_history_checking_to_review',
data
)
.then(res => res),
// 钢管数据复核
pageSteelHisReview: data =>
http
.post('/llgt/v1/item/page_steel_pipe_data_review_history', data)
.then(res => res),
// 轧钢数据复核
tieSteelHisReview: data =>
http.post('/llgt/v1/item/page_steel_rolling_data_review_history', data),
// 提交
submitById: id =>
http
.post('/llgt/v1/contract_sample/submission?itemIds=' + id)
.then(res => res),
// 驳回
returnById: data =>
http
.post(
'/llgt/v1/contract_sample/submission_rejected?itemIds=' + data.ids,
data
)
.then(res => res)
}
/**
* 偏离审批
*/
import http from '../../http'
export default {
// page
page: data =>
http.post('/llgt/v1/item/page_deviate_vo', data).then(res => res),
pageHis: data =>
http.post('/llgt/v1/item_record/page_deviate', data).then(res => res),
// B类炼铁偏离审批
pageSmeltIronDeviationApproval: data =>
http
.post('/llgt/v1/item/page_smelt_iron_deviate_vo', data)
.then(res => res),
// B类炼铁偏离审批历史记录
pageSmeltIronHis: data =>
http
.post('/llgt/v1/item_record/page_smelt_iron_deviate_record', data)
.then(res => res),
// C类钢管偏离审批分页
pageDeviatePipe: data =>
http.post('/llgt/v1/item/page_steel_pipe_deviate_vo', data),
// C类钢管偏离记录分页
pageDeviatePipeHis: data =>
http.post('/llgt/v1/item_record/page_deviate_steel_pipe', data),
// C类轧钢偏离审批分页
pageDeviateRollinge: data =>
http.post('/llgt/v1/item/page_steel_rolling_deviate_vo', data),
// C类轧钢偏离记录分页
pageDeviateRollingeHis: data =>
http.post('/llgt/v1/item_record/page_deviate_steel_rolling', data),
// 通过
submitById: id =>
http.post('/llgt/v1/item/submit_deviate_pass?ids=' + id).then(res => res),
// 驳回
returnById: data =>
http
.post('/llgt/v1/item/submit_deviate_back?ids=' + data.ids, {
reason: data.reason
})
.then(res => res)
}
/**
* 交接班登记
*/
import http from '../../http'
export default {
// 实验室交接page
getLabPage: data =>
http.post('/llgt/v1/handover/page_lab', data).then(res => res),
// 取制样交接page
getSamplePage: data =>
http.post('/llgt/v1/handover/page_get_make_sample', data).then(res => res),
// 待确认
PwaitPage: data =>
http.post('/llgt/v1/handover/page_handover', data).then(res => res),
list: data => http.post('/llgt/v1/handover/list', data).then(res => res),
// 添加实验室交接
addLab: data => http.post('/llgt/v1/handover/add_lab', data).then(res => res),
// 添加取制样交接
addSample: data =>
http.post('/llgt/v1/handover/add_get_make_sample', data).then(res => res),
// 编辑
edit: data =>
http.put('/llgt/v1/handover/' + data.id, data.obj).then(res => res),
// 详情
getById: id => http.get('/llgt/v1/handover/' + id).then(res => res),
// 删除
deleteById: id =>
http.delete('/llgt/v1/handover/?ids=' + id).then(res => res),
// list
pageVo: data => http.post('/llgt/v1/handover/page_vo', data).then(res => res),
// 确认
confirmById: id =>
http.post('/llgt/v1/handover/add_successor?ids=' + id).then(res => res),
// 提交
submitById: id =>
http.post('/llgt/v1/handover/submit?ids=' + id).then(res => res)
}
/**
* 质量审核
*/
import http from '../../http'
export default {
// page
page: data =>
http
.post('/llgt/v1/contract_sample/page_other_material_quality_audit', data)
.then(res => res),
pageHis: data =>
http
.post(
'/llgt/v1/contract_sample/page_other_material_quality_audit_history',
data
)
.then(res => res),
// 通过
submitById: id =>
http
.post('/llgt/v1/contract_sample/quality_judgment_passed?ids=' + id)
.then(res => res),
// 驳回
returnById: data => {
return http
.post(
'/llgt/v1/contract_sample/quality_judgment_reject?ids=' + data.ids,
{ reason: data.reason }
)
.then(res => res)
}
}
/**
* 质量判定
*/
import http from '../../http'
export default {
// page
page: data =>
http
.post('/llgt/v1/contract_sample/page_material_inspection_determine', data)
.then(res => res),
// 提交
submit: id =>
http
.post('/llgt/v1/contract_sample/quality_judgment_submit?ids=' + id)
.then(res => res),
// 编辑
edit: data =>
http
.post('/llgt/v1/contract_sample/quality_judgment_edito', data)
.then(res => res),
pageHis: data =>
http
.post(
'/llgt/v1/contract_sample/page_material_inspection_history_determine',
data
)
.then(res => res)
}
/**
* 任务分配
*/
import http from '../../http'
export default {
// 自动分配
automaticAssign: id =>
http.post('/llgt/v1/contract_sample/automatic?ids=' + id).then(res => res),
// 轧钢、钢管按项目分配
automaticSteelAssign: id =>
http
.post('/llgt/v1/item/auto_task_arrange_person?itemIds=' + id)
.then(res => res),
// 轧钢任务调度
steelRollingAssign: data =>
http.post(
'/llgt/v1/contract_sample/page_steel_rolling_task_dispatch_sample',
data
),
// 钢管任务调度
steelAssign: data =>
http.post('/llgt/v1/contract_sample/page_steel_task_dispatch_sample', data),
// 按人分配
userAssign: data =>
http
.post(
'/llgt/v1/contract_sample/automatic_person?itemIds=' + data.ids,
data.obj
)
.then(res => res),
// 钢管按人分配
steelPipeAssign: data =>
http
.post('/llgt/v1/item/task_arrange_person?itemIds=' + data.ids, data.obj)
.then(res => res),
// 按项目分配
groupAssign: id =>
http
.post('/llgt/v1/contract_sample/automatic_item?itemIds=' + id)
.then(res => res),
// 待分配任务左侧分页列表
pageAssignedWait: data =>
http
.post('/llgt/v1/contract_sample/page_assigned_wait', data)
.then(res => res),
// 待分配右侧分页
pageAssignedWaitRight: data =>
http
.post(
'/llgt/v1/aptitude_rel_package/page_my_sample_allocated/?contractSampleIds=' +
data.contractSampleIds,
data
)
.then(res => res),
// 任务调度左侧分页列表
pageSchedulingLeft: data =>
http
.post('/llgt/v1/contract_sample/page_assigned_dispatch', data)
.then(res => res),
// 任务调度右侧分页
pageSchedulingRight: data =>
http
.post(
'/llgt/v1/aptitude_rel_package/page_my_sample_dispatch/?contractSampleIds=' +
data.contractSampleIds,
data
)
.then(res => res),
// A类任务调度右侧分页
pageASchedulingRight: data =>
http
.post(
'/llgt/v1/aptitude_rel_package/page_my_sample_dispatch_a/?contractSampleIds=' +
data.contractSampleIds,
data
)
.then(res => res),
// 调整检测人
changeTester: data =>
http
.post(
'/llgt/v1/contract_sample/automatic_testing_person?itemIds=' +
data.items,
data.tempData
)
.then(res => res),
// 导入检测项目
importItem: data =>
http
.post(
'/llgt/v1/sample_library_item/add_items/?contractSampleIds=' +
data.contractSampleIds,
{ aptitudeIds: data.aptitudeIds }
)
.then(res => res),
// 删除检测项目
deleteItem: data => http.delete('/llgt/v1/item/?ids=' + data).then(res => res)
}
/**
* 质保书编制
*/
import http from '../../http'
export default {
// 已归档 /v1/warranties/page_filed
warrantyFiledPage: data =>
http.post('/llgt/v1/warranties/page_filed', data).then(res => res),
warrantyTimesPage: data =>
http.post('/llgt/v1/warranty_scan/page', data).then(res => res)
}
/**
* 质保书编制
*/
import http from '../../http'
import { https } from '../../https'
export default {
// 质保书分页 /v1/warranties/page
warrantyPage: data =>
http.post('/llgt/v1/warranties/page', data).then(res => res),
// 查询质保书
warrantyById: ({ invoice }) =>
http.post('/llgt/v1/warranties/get_warranty_by_invoice?invoice=' + invoice),
// 生成质保书
warrantyMake: data =>
https.post('/llgt/v1/warranties/make_warranty', JSON.stringify(data)),
// 查看质保书详情页
warrantyMakeDetail: data =>
http.post('/llgt/v1/warranties_report/page', data),
// 下载质保书
warrantyMakeDownload: ids =>
http.post('/llgt/v1/warranties_report/?ids=' + ids),
// 删除质保书
warrantyMakeDelete: ids => http.delete('/llgt/v1/warranties/?ids=' + ids),
// 质保书归档 /v1/warranties/filed
warrantyMakeFiled: ids => http.post('/llgt/v1/warranties/filed/?ids=' + ids),
// 查看质保书检测项目详情
warrantyMakeItemDetail: data =>
http.post('/llgt/v1/warranties_rel_sample/page', data)
}
<template>
<div>
<div class="layout-content-padding">
<div class="layout-content-main">
<el-tabs v-model="activeName" @tab-click="_changeTabs">
<el-tab-pane label="锻造连铸报检" name="report">
<forgeContinuousContract ref="reportTabs"></forgeContinuousContract>
</el-tab-pane>
<el-tab-pane label="历史报检" name="his">
<forgeContinuousContractHistory ref="hisTabs"></forgeContinuousContractHistory>
</el-tab-pane>
</el-tabs>
</div>
</div>
</div>
</template>
<script>
import forgeContinuousContract from './tabs/forgeContinuousContract'
import forgeContinuousContractHistory from './tabs/forgeContinuousContractHistory'
export default {
components: { forgeContinuousContract, forgeContinuousContractHistory },
data() {
return {
activeName: 'report'
}
},
mounted() {
this.activeName = 'report'
this._page()
},
methods: {
_changeTabs(tab, event) {
if (tab.name === 'report') {
this._page()
} else {
this.$refs.hisTabs._clearPage()
this.$refs.hisTabs._page()
}
},
_page() {
this.$refs.reportTabs._clearPage()
this.$refs.reportTabs._page()
}
}
}
</script>
<template>
<div>
<Row>
<!--查询-->
<Col span="24">
<Form
v-show="searchOpen"
id="forge-continuous-form"
inline
onsubmit="return false"
:label-width="130"
class="search-form"
>
<label class="label-sign" />
<Form-item class="search-item" label="炉号(锻造连铸):" style="margin-left: -15px">
<Input name="sampleCode" placeholder="请输入炉号(锻造连铸)" clearable @on-enter="_formSearch" />
</Form-item>
<Form-item class="search-item" label="钢种:" style="margin-left: -75px;">
<Input name="name" placeholder="请输入钢种" clearable @on-enter="_formSearch" />
</Form-item>
<Form-item class="search-btn">
<Button type="primary" @click="_formSearch">
搜索
</Button>
</Form-item>
</Form>
</Col>
<!--按钮-->
<Col span="24">
<btn-list :msg="btn" :open="searchOpen" show-search-btn="true" @on-result-change="_btnClick" />
</Col>
<!--table-->
<Col span="24">
<element-table
ref="pageTable"
:page-columns="pageColumns"
:table-height="tableHeight"
:get-page="getPage"
:opt-col-width="140"
:icon-msg="iconMsg"
show-check-box
select-data
@on-result-change="_tableResultChange"
>
<el-table-column
v-for="item in pageColumns"
:key="item.key"
show-overflow-tooltip
sortable
:prop="item.key"
align="center"
:label="item.title"
:width="item.width"
:min-width="200"
:fixed="item.fixed?item.fixed:undefined"
>
<template slot-scope="scope">
<span v-if="item.dateTime">
{{ scope.row[item.key]?$dateformat(scope.row[item.key],'yyyy-mm-dd HH:MM:ss'):'' }}
</span>
<span v-else-if="item.status" class="cell-blue-color">
{{ scope.row[item.key] === undefined ? '': scope.row[item.key].display}}
</span>
<span v-else>
{{ scope.row[item.key] }}
</span>
</template>
</el-table-column>
</element-table>
</Col>
</Row>
<!--锻造连铸编辑-->
<forgeContinuousContractEdit ref="continuousEdit" @on-result-change="_formSearch"></forgeContinuousContractEdit>
<!--操作日志-->
<sampleRecord ref="recordModal" />
<!--附件-->
<fileManage ref="fileModal" @on-result-change="_fileResult"/>
</div>
</template>
<script>
import {
forgeFurnaceContract,
steelMakingFurnaceContract,
materialInspectionContract
} from '../../../../api'
import sampleRecord from '../../../record/sampleRecord'
import fileManage from '../../../sample-manage/fileManage/fileManage'
import forgeContinuousContractEdit from '../forgeContinuousContractEdit'
export default {
components: {
sampleRecord,
fileManage,
forgeContinuousContractEdit
},
data() {
return {
searchOpen: true,
formObj: {
sampleCode: '',
name: '',
supplier: ''
},
selectIds: [],
selectData: [],
btn: [{ type: 'success', id: '', name: '提交' }],
pageColumns: [
{
title: '炉号(锻造连铸)',
key: 'sampleCode',
width: 180,
fixed: 'left'
},
{ title: '炉号来源', key: 'preCode', width: 180 },
{ title: '送检次数', key: 'inspectionCounts', width: 120 },
{ title: '班别', key: 'classBan', width: 120 },
{ title: '检测类型', key: 'category', width: 120 },
{ title: '状态', key: 'progress', status: true, width: 120 },
{ title: '钢种', key: 'name', width: 120 },
{ title: '物料编号', key: 'modelSpec' },
{ title: '技术标准', key: 'judgeBasis' },
{ title: '报检单位', key: 'declarationInspection' },
{ title: '生产检测流程', key: 'testProcess' },
{ title: '备注', key: 'remark' }
],
getPage: {},
iconMsg: [
{ type: 'pt-a-submit', id: '', name: '提交' },
{ type: 'pt-a-edit', id: '', name: '编辑' },
{ type: 'pt-a-cloud', id: '', name: '附件' },
{ type: 'pt-a-end', id: '', name: '中止' },
{ type: 'pt-a-clock', id: '', name: '操作日志' }
]
}
},
computed: {
tableHeight: function() {
if (this.searchOpen) {
return this.$tableHeight('', 305)
} else {
return this.$tableHeight('', 261)
}
}
},
methods: {
_formSearch() {
this.$refs.pageTable._pageChange(1)
},
_page: async function() {
const data = this.$serialize('forge-continuous-form')
Object.assign(data, this.$refs.pageTable._searchParams())
const result = await forgeFurnaceContract.forgeContinuousPage(data)
if (result) {
this.getPage = result
this.$refs.pageTable._initTable()
}
},
_clearPage() {
$('#forge-continuous-form')
.find('input')
.each(function() {
$(this).val('')
})
},
_searchParams(formId) {
return this.$refs.pageTable._searchParams(formId)
},
_btnClick(msg, data) {
switch (msg) {
case '提交':
this._submitByIds()
break
case 'search':
this.searchOpen = !this.searchOpen
break
}
},
_tableResultChange(msg, data) {
switch (msg) {
case 'page':
this._page()
break
case 'iconClick':
this._iconClick(data.name, data.rowData)
break
case 'selectData':
this.selectIds = data.map(({ id: i }) => i)
this.selectData = data
break
}
},
_iconClick(res, data) {
switch (res) {
case '提交':
if (!data.sampleCode) return this.$Message.warning('炉号未填写!')
this._submitById(data.id)
break
case '编辑':
this._editModal(data.id)
break
case '附件':
this._upload(data.id)
break
case '中止':
this._endById(data.id)
break
case '操作日志':
this._record(data.id)
break
}
},
// 提交
_submitById(id) {
this.$Modal.confirm({
title: '提示',
content: '确定提交该数据?',
onOk: () => {
this._submitOk(id)
}
})
},
_submitByIds() {
// 批量提交
const ids = this.selectIds
if (ids.length === 0)
return this.$Message.warning('请选择一条或多条数据!')
try {
this.selectData.forEach(item => {
if (!item.sampleCode) throw new Error('含有未填写炉号的样品,请确认!')
})
} catch (e) {
return this.$Message.warning(e.message)
}
this.$Modal.confirm({
title: '提示',
content: '确定提交 ' + ids.length + ' 条记录?',
onOk: () => {
this._submitOk(ids)
}
})
},
_submitOk: async function(id) {
const result = await forgeFurnaceContract.submitForge(id)
if (result) {
this.$Message.success('提交成功')
this._page()
}
},
// 附件
_upload(id) {
const tempData = {
id: id,
uploadFileUrl: '/llgt/v1/sample_attachment/upload/',
downloadFileUrl: '/llgt/v1/sample_attachment/download/'
}
this.$refs.fileModal._open(tempData, 'sampleId')
},
// 文件返回的数据
_fileResult(msg, data) {
switch (msg) {
case 'file-page':
this.$refs.fileModal._openFile(data)
break
case 'delete-page':
this.$refs.fileModal._delPage('', data)
break
case 'success':
this.$Message.success('删除成功!')
this.$refs.fileModal._page()
break
default:
this.$refs.fileModal._page()
}
},
_editModal: async function(id) {
const result = await steelMakingFurnaceContract.steelMakingFurnaceDetail(
id
)
if (result) {
this.$refs.continuousEdit._open(result)
}
},
// 中止
_endById(id) {
this.$Modal.confirm({
title: '提示',
content: '确定中止该记录?',
onOk: () => {
this._endOk(id)
}
})
},
_endOk: async function(id) {
const result = await materialInspectionContract.endById(id)
if (result) {
this.$Message.success('中止成功')
this._page()
}
},
// 操作日志
_record(id) {
this.$refs.recordModal._open(id)
}
}
}
</script>
<template>
<div>
<!--内容-->
<Row>
<!--查询-->
<Col span="24">
<Form
v-show="searchOpen"
id="forge-continuous-history-form"
inline
onsubmit="return false"
:label-width="130"
class="search-form"
>
<label class="label-sign"></label>
<Form-item class="search-item" label="炉号(锻造连铸):" style="margin-left: -15px;">
<Input name="sampleCode" placeholder="请输入炉号(锻造连铸)" clearable @on-enter="_formSearch" />
</Form-item>
<Form-item class="search-item" label="送检次数:" style="margin-left: -50px;">
<Input name="inspectionCounts" placeholder="请输入送检次数" clearable @on-enter="_formSearch" />
</Form-item>
<Form-item class="search-item" label="钢种:" style="margin-left: -65px;">
<Input name="name" placeholder="请输入钢种" clearable @on-enter="_formSearch" />
</Form-item>
<Form-item class="search-item" label="状态:" style="margin-left: -68px;">
<Input name="status" placeholder="请输入状态" clearable @on-enter="_formSearch" />
</Form-item>
<Form-item class="search-btn">
<Button type="primary" @click="_formSearch">
搜索
</Button>
</Form-item>
</Form>
</Col>
<!--按钮-->
<Col span="24">
<btn-list :msg="btn" :open="searchOpen" show-search-btn="true" @on-result-change="_btnClick" />
</Col>
<!--table-->
<Col span="24">
<element-table
ref="pageTable"
:page-columns="pageColumns"
:table-height="tableHeight"
:get-page="getPage"
:opt-col-width="130"
:icon-msg="iconMsg"
show-check-box
@on-result-change="_tableResultChange"
>
<el-table-column
v-for="item in pageColumns"
:key="item.key"
show-overflow-tooltip
sortable
:prop="item.key"
:label="item.title"
:width="item.width"
:min-width="200"
:fixed="item.fixed?item.fixed:undefined"
>
<template slot-scope="scope">
<span v-if="item.dateTime">
{{ scope.row[item.key]?$dateformat(scope.row[item.key],'yyyy-mm-dd HH:MM:ss'):'' }}
</span>
<span v-else-if="item.type">
{{scope.row[item.key] === undefined ? '': scope.row[item.key].display}}
</span>
<span v-else-if="item.status">
{{scope.row[item.key] === undefined ? '': scope.row[item.key].display}}
</span>
<span v-else>
{{ scope.row[item.key] }}
</span>
</template>
</el-table-column>
</element-table>
</Col>
</Row>
<!--操作日志-->
<sampleRecord ref="recordModal" />
<!--附件-->
<fileManage ref="fileModal" @on-result-change="_fileResult"/>
<!-- 退回原因 -->
<Reason ref="reason" @on-result-change="_resultData"></Reason>
</div>
</template>
<script>
import { forgeFurnaceContract, tieSteelProductContract } from '../../../../api'
import sampleRecord from '../../../record/sampleRecord'
import fileManage from '../../../sample-manage/fileManage/fileManage'
import Reason from '../../../../components/base/Reason'
// import minix from '../../../../api/llgt/mixinCommon'
export default {
components: { sampleRecord, fileManage, Reason },
// mixins: [minix],
data() {
return {
searchOpen: true,
formObj: {
sampleCode: '',
name: '',
supplier: '',
status: ''
},
pageColumns: [
{
title: '炉号(锻造连铸)',
key: 'sampleCode',
width: 150,
fixed: 'left'
},
{ title: '炉号来源', key: 'preCode', width: 180 },
{ title: '送检次数', key: 'inspectionCounts', width: 120 },
{ title: '班别', key: 'classBan', width: 120 },
{ title: '检测类型', key: 'category', width: 120 },
{ title: '状态', key: 'status', status: true, width: 120 },
{ title: '钢种', key: 'name', width: 120 },
{ title: '物料编号', key: 'modelSpec', width: 120 },
{ title: '技术标准', key: 'judgeBasis', width: 120 },
{ title: '报检单位', key: 'declarationInspection', width: 120 },
{ title: '生产检测流程', key: 'testProcess', width: 120 },
{ title: '报检人', key: 'declarationName', width: 120 },
{
title: '报检时间',
key: 'inspectionDate',
width: 160,
dateTime: true
},
{ title: '实验室接收人', key: 'labReceiver' },
{ title: '实验室接收时间', key: 'labReceiverTime', dateTime: true },
{ title: '备注', key: 'remark', width: 120 }
],
getPage: {},
selectIds: [],
btn: [{ id: '', type: 'error', name: '退回' }],
iconMsg: [
{ type: 'pt-a-cloud', id: '', name: '附件' },
{
type: 'pt-a-end',
id: 'forging-continuous-contract-abnormal-return',
name: '异常退回'
},
{ type: 'pt-a-clock', id: '', name: '操作日志' }
]
}
},
computed: {
tableHeight: function() {
if (this.searchOpen) {
return this.$tableHeight('', 305)
} else {
return this.$tableHeight('', 261)
}
}
},
methods: {
_formSearch() {
this.$refs.pageTable._pageChange(1)
},
_page: async function() {
const data = this.$serialize('forge-continuous-history-form')
data.category = '锻造VD检测'
Object.assign(data, this.$refs.pageTable._searchParams())
const result = await forgeFurnaceContract.pageForgeCCastingHistory(data)
if (result) {
this.getPage = result
this.$refs.pageTable._initTable()
}
},
_clearPage() {
$('#forge-continuous-history-form')
.find('input')
.each(function() {
$(this).val('')
})
},
_searchParams(formId) {
return this.$refs.pageTable._searchParams(formId)
},
_btnClick(msg, data) {
switch (msg) {
case '退回':
this._backByIds()
break
case 'search':
this.searchOpen = !this.searchOpen
break
}
},
_backByIds() {
const ids = this.selectIds
if (ids.length === 0) return this.$Message.warning('请至少选择一条数据!')
this.$refs.reason._open('退回原因', ids.join(','))
},
_tableResultChange(msg, data) {
switch (msg) {
case 'page':
this._page()
break
case 'iconClick':
this._iconClick(data.name, data.rowData)
break
case 'selectIds':
this.selectIds = data
break
}
},
_iconClick(res, data) {
switch (res) {
case '附件':
this._upload(data.id)
break
case '再次送检':
this._againSend(data.id)
break
case '异常退回':
this.$refs.reason._open('退回原因', data.id)
break
case '操作日志':
this._record(data.id)
break
}
},
// 异常退回
async _resultData(remark, msg, id) {
const result = await tieSteelProductContract.tieSteelProductHistoryBack({
ids: id,
reason: remark
})
if (result) this._resultChange('退回成功!')
},
_resultChange(msg) {
this._formSearch()
this.$Message.success(msg)
},
// 再次送检
_againSend(id) {
this.$Modal.confirm({
title: '提示',
content: '确定要再次送检吗?',
onOk: async () => {
const result = await forgeFurnaceContract.submitForgeAgain(id)
if (result) {
this.$Message.success('送检成功!')
this._formSearch()
}
}
})
},
// 附件
_upload(id) {
const tempData = {
id: id,
uploadFileUrl: '/llgt/v1/sample_attachment/upload/',
downloadFileUrl: '/llgt/v1/sample_attachment/download/'
}
this.$refs.fileModal._open(tempData, 'sampleId')
},
// 文件返回的数据
_fileResult(msg, data) {
switch (msg) {
case 'file-page':
this.$refs.fileModal._openFile(data)
break
case 'delete-page':
this.$refs.fileModal._delPage('', data)
break
case 'success':
this.$Message.success('删除成功!')
this.$refs.fileModal._page()
break
default:
this.$refs.fileModal._page()
}
},
// 操作日志
_record(id) {
this.$refs.recordModal._open(id)
}
}
}
</script>
<template>
<div>
<div class="layout-content-padding">
<div class="layout-content-main">
<el-tabs v-model="activeName" @tab-click="_changeTabs">
<el-tab-pane label="数据查阅" name="access">
<forgeDataAccess ref="auditTab" />
</el-tab-pane>
<el-tab-pane label="低倍后整合数据" name="low">
<forgeDataAccessLowPower ref="lowTabs" />
</el-tab-pane>
<el-tab-pane label="模铸结果数据" name="model">
<forgeDataAccessModelResult ref="modelTabs" />
</el-tab-pane>
</el-tabs>
</div>
</div>
</div>
</template>
<script>
import forgeDataAccess from './tabs/forgeDataAccess'
import forgeDataAccessLowPower from './tabs/forgeDataAccessLowPower'
import forgeDataAccessModelResult from './tabs/forgeDataAccessModelResult'
export default {
components: {
forgeDataAccess,
forgeDataAccessLowPower,
forgeDataAccessModelResult
},
data() {
return {
activeName: 'access'
}
},
mounted() {
this.activeName = 'access'
this._page()
},
methods: {
_changeTabs(tab, event) {
if (tab.name === 'access') {
this._page()
} else if (tab.name === 'low') {
this.$refs.lowTabs._clearPage()
this.$refs.lowTabs._open()
} else {
this.$refs.modelTabs._clearPage()
this.$refs.modelTabs._open()
}
},
_page() {
// this.$refs.auditTab._clearPage()
this.$refs.auditTab._open()
}
}
}
</script>
<template>
<div>
<Row>
<!--查询-->
<Col span="24">
<Form
v-show="searchOpen"
id="forge-data-access-form"
inline
onsubmit="return false"
:label-width="90"
class="search-form"
>
<label class="label-sign" />
<Form-item class="search-item" label="炉号:" style="margin-left: -28px">
<Input v-model="formObj.sampleCode" placeholder="请输入炉号" clearable @on-enter="_formSearch" />
</Form-item>
<Form-item class="search-item" label="钢种:">
<Input v-model="formObj.name" placeholder="请输入钢种" clearable @on-enter="_formSearch" />
</Form-item>
<Form-item label="检测类型:" class="search-item" prop="category">
<Input v-model="formObj.category" placeholder="请输入检测类型" clearable @on-enter="_formSearch" />
</Form-item>
<Form-item class="search-item" label="报检单位:">
<Input v-model="formObj.declarationInspection" placeholder="请输入报检单位" clearable @on-enter="_formSearch" />
</Form-item>
<Form-item class="search-item" label="报检时间:" style="margin-left: -28px">
<Date-picker
ref="inspectionDate"
type="daterange"
split-panels
style="width:100%;"
placeholder="请选择报检时间"
:editable="false"
@on-change="_ctimeChange"
/>
<input type="hidden" name="inspectionBegin">
<input type="hidden" name="inspectionEnd">
</Form-item>
<Form-item class="search-item" label="检测完成时间:">
<DatePicker v-model="formObj.auditDatTime" type="datetimerange" placeholder="请选择完成时间" format="yyyy-MM-dd HH:mm:ss"
style="width:290px;"></DatePicker>
</Form-item>
<Form-item class="search-btn" style="margin-left: 100px;">
<Button type="primary" @click="_formSearch">
搜索
</Button>
</Form-item>
</Form>
</Col>
<!--按钮-->
<Col span="24">
<btn-list :msg="btn" :open="searchOpen" show-search-btn="true" @on-result-change="_btnClick" />
</Col>
<!--table-->
<Col span="24">
<element-table
id="dataAccessTable"
ref="pageTable"
:page-columns="pageColumns"
:table-height="tableHeight"
:get-page="getPage"
:opt-col-width="80"
:icon-msg="iconMsg"
select-data
@on-result-change="_tableResultChange"
>
<el-table-column
v-for="item in pageColumns"
:key="item.key"
show-overflow-tooltip
sortable
:prop="item.key"
:label="item.title"
:width="item.width"
:min-width="200"
:fixed="item.fixed?item.fixed:undefined"
>
<template slot-scope="scope">
<span v-if="item.dateTime">
{{ scope.row[item.key]?$dateformat(scope.row[item.key],'yyyy-mm-dd HH:MM:ss'):'' }}
</span>
<span v-else-if="item.type" class="blue-color">
{{ scope.row[item.key] === undefined ? '': scope.row[item.key].display }}
</span>
<span v-else>
{{ scope.row[item.key] }}
</span>
</template>
</el-table-column>
</element-table>
</Col>
</Row>
<!--检测项目-->
<testResult ref="testItemModal" />
</div>
</template>
<script>
import { forgeDataAccess } from '../../../../api'
import testResult from '../../../test-manage/data-access/testResultLook'
const defVal = {
sampleCode: '',
name: '',
category: '',
declarationInspection: '',
inspectionBegin: '',
inspectionEnd: '',
auditDatTime: []
}
export default {
components: { testResult },
data() {
return {
searchOpen: false,
formObj: defVal,
btn: [{ type: 'success', id: '', name: '导出' }],
pageColumns: [
{ title: '炉号', key: 'sampleCode', width: 150, fixed: 'left' },
{ title: '送检次数', key: 'inspectionCounts', width: 130 },
{ title: '钢种', key: 'name', width: 120 },
{ title: '物料编号', key: 'modelSpec', width: 120 },
{ title: '技术标准', key: 'judgeBasis', width: 120 },
{ title: '检测类型', key: 'category', width: 120 },
{ title: '报检单位', key: 'declarationInspection', width: 120 },
{ title: '生产检测流程', key: 'testProcess', width: 260 },
{
title: '是否合格',
key: 'qualifiedProduct',
width: 120
},
{
title: '报检时间',
key: 'inspectionDate',
dateTime: true,
width: 160
},
{
title: '检测完成时间',
key: 'auditDate',
dateTime: true,
width: 160
},
{ title: '备注', key: 'remark' }
],
getPage: {},
iconMsg: [{ type: 'pt-a-chemistry', id: '', name: '查看检测项目' }],
qualifiedList: [
{ value: '是', label: '是' },
{ value: '否', label: '否' }
],
selectIds: [],
selectData: []
}
},
computed: {
tableHeight: function() {
if (this.searchOpen) {
return this.$tableHeight('', 345)
} else {
return this.$tableHeight('', 262)
}
}
},
methods: {
_open() {
this.formObj = {
sampleCode: '',
name: '',
category: '',
declarationInspection: '',
inspectionBegin: '',
inspectionEnd: '',
auditDatTime: [
new Date(new Date().setHours(0, 0, 0) - 86400000),
new Date(new Date().setHours(23, 59, 59))
]
}
this._page()
},
_ctimeChange(data) {
$('input[name="inspectionBegin"]').val(data[0])
$('input[name="inspectionEnd"]').val(data[1])
},
_auditDateChange(data) {
$('input[name="auditDateBegin"]').val(data[0])
$('input[name="auditDateEnd"]').val(data[1])
},
_formSearch() {
this.$refs.pageTable._pageChange(1)
},
_page: async function() {
const {
sampleCode,
name,
category,
declarationInspection,
inspectionBegin,
inspectionEnd,
auditDatTime
} = this.formObj
const [auditDateBegin, auditDateEnd] = auditDatTime.map(
item => item && this.$dateformat(item, 'yyyy-mm-dd HH:MM:ss')
)
const data = {
sampleCode,
name,
category,
declarationInspection,
inspectionBegin,
inspectionEnd,
auditDateBegin,
auditDateEnd
}
// const data = this.$serialize('forge-data-access-form')
Object.assign(data, this.$refs.pageTable._searchParams())
const result = await forgeDataAccess.forgeDataAccessPage(
this.$serializeForm(data)
)
if (result) {
this.getPage = result
this.$refs.pageTable._initTable()
}
},
_clearPage() {
$('#forge-data-access-form')
.find('input')
.each(function() {
$(this).val('')
})
this.$refs.inspectionDate.handleClear()
this.$refs.auditDate.handleClear()
},
_searchParams(formId) {
return this.$refs.pageTable._searchParams(formId)
},
_btnClick(msg, data) {
switch (msg) {
case '导出':
this._export()
break
case 'search':
this.searchOpen = !this.searchOpen
break
}
},
_tableResultChange(msg, data) {
switch (msg) {
case 'page':
this._page()
break
case 'selectData':
const ids = []
data.forEach(i => {
ids.push(i.id)
})
this.selectIds = ids
this.selectData = data
break
case 'iconClick':
this._iconClick(data.name, data.rowData)
break
}
},
_iconClick(res, data) {
switch (res) {
case '查看检测项目':
this._testItem(data.id)
break
}
},
// 检测项目
_testItem(id) {
this.$refs.testItemModal._open(id)
},
_export() {
this.$Modal.confirm({
title: '提示',
content: '最多可导出5000条数据,确定导出吗?',
onOk: async () => {
const result = await forgeDataAccess.forgeDataAccessPage(
this._searchParamsTemp()
)
// 导出全部数据
if (result) {
this.$exportExcel(
'dataAccessTable',
'数据查阅',
this.pageColumns,
result.records
)
}
}
})
},
// 参数
_searchParamsTemp() {
const data = this.$serializeForm(this.formObj)
return this.$extend(data, { page: 1, rows: 5000 })
}
}
}
</script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment