Commit f036ebd3 by wangweidong

初始化

parents

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

# editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false
module.exports = {
root: true,
env: {
browser: true,
node: true,
jquery: true
},
parserOptions: {
parser: 'babel-eslint'
},
extends: [
'@nuxtjs',
'plugin:nuxt/recommended',
'plugin:prettier/recommended',
'prettier',
'prettier/vue'
],
plugins: [
'prettier'
],
// add your custom rules here
rules: {
'nuxt/no-cjs-in-config': 'off',
'no-console': 'off',
'no-case-declarations': 'off'
}
}
# Created by .ignore support plugin (hsz.mobi)
### Node template
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
yarn.lock
package-lock.json
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# nyc test coverage
.nyc_output
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# TypeScript v1 declaration files
typings/
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
# parcel-bundler cache (https://parceljs.org/)
.cache
# next.js build output
.next
# nuxt.js build output
.nuxt
# Nuxt generate
dist
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless
# IDE
.idea
# Service worker
sw.*
File added
package.json
package-lock.json
testEslint/
testProject/
testTslint/
testWorkspaceFolder/
{
"semi": false,
"singleQuote": true
}
# nuxt-demo
> nuxt demo
## Build Setup
``` bash
# install dependencies
$ yarn install
# serve with hot reload at localhost:3000
$ yarn run dev
# build for production and launch server
$ yarn run build
$ yarn start
# generate static project
$ yarn run generate
```
# yarn add modules(依赖名称)
# yarn (安装全部依赖)
# yarn dev (运行)
For detailed explanation on how things work, checkout [Nuxt.js docs](https://nuxtjs.org).
# layouts 界面下可以有多个文件,均为界面布局(默认是default)
#命名规则:
1)文件夹命名以小写字母开头,两个字母之间用中划线隔开
2)vue文件名称驼峰法则,小写字母开头
3)端口8026
/**
* 合作伙伴
*/
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 Qs from 'qs'
import Store from 'store2'
// 对外暴露全局常量及函数
export default {
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
headersJson: {
'Content-Type': 'application/json'
},
// 系统标签名称
tabName: function() {
return '中检平台'
},
// 用户信息
setUserInfo: function(userInfo) {
Store.session('userInfo', userInfo)
},
getUserInfo: function() {
return Store.session('userInfo')
},
getLn: function() {
return this.getCookie('ln')
},
// code
getCode: function() {
return 'llgt'
},
getCookie: function(cookieName) {
if (document.cookie.length > 0) {
let start = document.cookie.indexOf(cookieName + '=')
if (start !== -1) {
start = start + cookieName.length + 1
let end = document.cookie.indexOf(';', start)
if (end === -1) end = document.cookie.length
return document.cookie.substring(start, end)
}
}
return null
},
logout: function() {
// 清空所有缓存数据,保留主题选择、用户名、密码
const themeFile = Store.get('themeFile')
const username = Store.get('username')
const password = Store.get('password')
// Store.clearAll()
if (themeFile) {
localStorage.setItem('themeFile', themeFile)
}
Store.set('username', username)
Store.set('password', password)
},
baseURL: process.env.BASE_URL,
ssoURL: process.env.SSO_URL,
webURL: process.env.WEB_URL,
staticURL: process.env.STATIC_URL,
ncURL: process.env.NC_URL,
transformRequest: [
// 后面数组中的函数必须返回一个字符串,或 ArrayBuffer,或 Stream
function(data) {
return Qs.stringify(data)
}
]
}
/**
* 会员相关的委托(食品)
*/
import http from '../http'
export default {
// page
personalContract: data =>
http
.post('/food/v1/contract/external_personal_contract', data)
.then(res => res)
}
/**
* HTTP 请求 axios 封装
*/
import axios from 'axios'
import global from './config'
import loading from './loading'
// Axios 全局配置
const http = axios.create()
http.defaults.baseURL = global.baseURL
http.defaults.withCredentials = true
// 添加请求拦截器
http.interceptors.request.use(
config => {
if (!global.getLn()) {
window.location.href = global.ssoURL
}
const header = global.headers
// 无法获取情况下,设置登录 COOKIE
if (process.__TOKEN__) {
header.Cookie = 'uid=' + process.__TOKEN__
}
config.headers = header
config.transformRequest = global.transformRequest
return config
},
error => {
return Promise.reject(error)
}
)
// 返回数据处理
// 返回格式 {code:业务码 , data: 内容 , msg: 描述}
http.interceptors.response.use(
response => {
console.log('----response---响应结果---', response)
switch (response.data.code) {
case '-2':
global.logout()
window.location.href = global.ssoURL
break
case '1':
return response.data.data
default:
loading.toast.show(response.data.code, response.data.msg)
}
},
error => {
console.log('--error---', error)
return Promise.reject(error)
}
)
http.open = function(url, data, target) {
const form = document.createElement('form')
form.action = global.baseURL + url
form.method = 'post'
form.target = target || '_self'
if (data) {
for (const key in data) {
const input = document.createElement('textarea')
input.name = key
input.value =
typeof data[key] === 'object' ? JSON.stringify(data[key]) : data[key]
form.appendChild(input)
}
}
form.style.display = 'none'
document.body.appendChild(form)
form.submit()
}
export default http
/**
* HTTP 请求 axios dto 封装
*/
import axios from 'axios'
import global from './config'
import loading from './loading'
import http from './http'
// 自定义 Axios 全局配置
const instance = axios.create()
instance.defaults.baseURL = global.baseURL
instance.defaults.withCredentials = true
// 添加请求拦截器
instance.interceptors.request.use(
config => {
if (!global.getLn()) {
const windowHref = window.location.href
if (windowHref.indexOf('qrCode') === -1) {
window.location.href = global.ssoURL
}
}
config.headers = global.headersJson
return config
},
error => {
return Promise.reject(error)
}
)
// 返回数据处理
// 返回格式 {code:业务码 , data: 内容 , msg: 描述}
instance.interceptors.response.use(
response => {
console.log(response)
switch (response.data.code) {
case '-2':
global.logout()
window.location.href = global.ssoURL
break
case '1':
return response.data.data
default:
loading.toast.show(response.data.code, response.data.msg)
}
},
error => {
if (error.response.status === 401) {
console.log('unauthorized, logging out ...')
}
return Promise.reject(error)
}
)
http.open = function(url, data, target) {
const form = document.createElement('form')
form.action = global.baseURL + url
form.method = 'post'
form.target = target || '_self'
if (data) {
for (const key in data) {
const input = document.createElement('textarea')
input.name = key
input.value =
typeof data[key] === 'object' ? JSON.stringify(data[key]) : data[key]
form.appendChild(input)
}
}
form.style.display = 'none'
document.body.appendChild(form)
form.submit()
}
export const https = instance
This diff is collapsed. Click to expand it.
/**
* 仪器设备
*/
import http from '../http'
export default {
page: data => http.post('/res/v1/equip_info/page', data).then(res => res),
pageEquipList: data =>
http.post('/res/v1/equip_class/list', data).then(res => res),
// 资质项目选仪器设备添加
equipItemAdd: data =>
http.post('/llgt/v1/aptitude_item_rel_equip/', data).then(res => res)
}
/**
* 人员管理-人员基本信息相关
*/
import http from '../http'
export default {
page: data => http.post('/res/v1/user_group/page', data).then(res => res),
getGroup: data =>
http.get('/res/v1/user_group/get_by_uid/' + data.uid).then(res => res),
userPage: data =>
http.post('/res/v1/user_group/page_rel_user', data).then(res => res),
add: data => http.post('/res/v1/user_group/', data).then(res => res),
edit: data =>
http.put('/res/v1/user_group/' + data.id, data.obj).then(res => res),
getById: id => http.get('/res/v1/user_group/' + id).then(res => res),
setChargeman: data =>
http
.post(
'/res/v1/user_rel_group/set_leader?ids=' +
data.id +
'&leader=' +
data.leader
)
.then(res => res),
deleteByIds: ids =>
http.delete('/res/v1/user_group/?ids=' + ids).then(res => res),
deletePeopleByIds: ids =>
http
.delete('/res/v1/user_group/delete_rel_user?ids=' + ids)
.then(res => res),
levelTree: () => http.put('/res/v1/staff_level/get_tree').then(res => res),
levelTreeKeyword: data =>
http.put('/res/v1/staff_level/get_tree?name=' + data).then(res => res),
orgTreeList: data =>
http.post('/base/v1/org/org_tree', data).then(res => res),
list: data => http.post('/res/v1/staff_info/list', data).then(res => res),
relUser: data =>
http
.post(
'/res/v1/user_group/add_user_rel_group?group_id=' +
data.id +
'&userIds=' +
data.ids +
'&realNames=' +
data.names
)
.then(res => res)
}
/**
* 供应商表相关
*/
import http from '../http'
export default {
page: data => http.post('/res/v1/supplier/page', data).then(res => res)
}
/*
const actions = {
async page({commit}, data) {
await http.post('/res/v1/supplier/page', data).then(function (resp) {
commit('PAGE', resp);
});
},
async add({commit}, data) {
await http.post('/res/v1/supplier/', data).then(function (resp) {
commit('SUCCESS', resp);
});
},
async edit({commit}, data) {
await http.put('/res/v1/supplier/' + data.id, data.obj).then(function (resp) {
commit('SUCCESS', resp);
});
},
async deleteById({commit}, id) {
await http.delete('/res/v1/supplier/' + id).then(function (resp) {
commit('SUCCESS', resp);
});
},
async getListByName({commit}, name) {
await http.post('/res/v1/supplier/list/' + name).then(function (resp) {
commit('LIST', resp);
});
},
async getById({commit}, id) {
await http.get('/res/v1/supplier/' + id).then(function (resp) {
commit('GET_BY_ID', resp);
});
},
async pageSupplierByClass({commit}, data) {
await http.put('/res/v1/supplier/page_by_classify/' + data.classId, data.obj).then(function (resp) {
commit('PAGE', resp);
});
},
async pageSupplierByChemical({commit}, data) {
await http.put('/res/v1/supplier/page_by_chemical/' + data.chemicalId, data.obj).then(function (resp) {
commit('PAGE', resp);
});
},
async pageRecord({commit}, data) {
await http.post('/res/v1/supplier_record/page', data).then(function (resp) {
commit('PAGE', resp);
});
},
};
*/
/**
* 相关
* 用户编组
*/
import http from '../http'
export default {
list: data => http.post('/res/v1/user_group/list', data).then(res => res),
getUserByGroupId: data =>
http.post('/res/v1/user_group/page_rel_user', 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)
}
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
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