Commit 66f2039e 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:prettier/recommended'
],
plugins: [
'prettier'
],
// add your custom rules here
rules: {
'no-console': 'off',
}
}
# Created by .ignore support plugin (hsz.mobi)
### Node template
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
yarn.lock
# 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.*
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命令 npm install -g yarn
# 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文件名称驼峰法则,小写字母开头
# static静态服务地址修改
> 只需要改nuxt.config.js里面的staticURL变量就行
import http from '../http'
export default {
pageAptitudeItem: data =>
http.post('/v1/aptitude/page', data).then(res => res),
deleteById: id => http.delete('/v1/aptitude/delete/' + id).then(res => res),
pageCatalogueItem: data =>
http.post('/v1/aptitude/page-catalogue-item', data).then(res => res),
pageForCatalogue: data =>
http.post('/v1/aptitude/page-for-catalogue', data).then(res => res),
getById: id => http.get('/v1/aptitude/' + id).then(res => res),
edit: data =>
http.put('/v1/aptitude?id=' + data.id, data.obj).then(res => res),
add: data => http.post('/v1/aptitude/', data).then(res => res)
}
import http from '../http'
export default {
pageSampleType: data =>
http.post('/v1/test_type/page', data).then(res => res),
pagePointType: data =>
http.post('/v1/test_type/page_point', data).then(res => res),
getById: id => http.get('/v1/test_type/' + id).then(res => res),
edit: data =>
http.put('/v1/test_type?id=' + data.id, data.obj).then(res => res),
add: data => http.post('/v1/test_type/', data).then(res => res),
addPoint: data => http.post('/v1/test_type/add-point', data).then(res => res),
getStandardList: data =>
http.post('/v1/test_type/list-string', data).then(res => res),
deleteById: id => http.delete('/v1/test_type/' + id).then(res => res),
categoryClassTree: data =>
http.post('/v1/test_type/list-class', data).then(res => res),
pointClassTree: data =>
http.post('/v1/test_type/list-point-class', data).then(res => res)
}
import http from '../http'
export default {
pageStandard: data => http.post('/v1/standard/page', data).then(res => res),
getById: id => http.get('/v1/standard/' + id).then(res => res),
edit: data =>
http.put('/v1/standard?id=' + data.id, data.obj).then(res => res),
add: data => http.post('/v1/standard/', data).then(res => res),
deleteById: id => http.post('/v1/standard/delete/' + id).then(res => res),
list: data => http.post('/v1/standard/list_data', data).then(res => res)
}
/**
* 全局相关配置
*/
import Store from 'store2'
import Qs from 'qs'
// 对外暴露全局常量及函数
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')
}, // 缓存导航和按钮权限信息等
setCommonInfo: function(msg, data) {
Store.session(msg, data)
},
// 获取导航和按钮权限信息等
getCommonInfo: function(data) {
const str = Store.session(data)
return str || ''
},
// 获取tooken
getToken: function() {
return localStorage.getItem('accessToken')
},
// // 多语言
// setLang: function(data) {
// localStorage.setItem('lang', data)
// },
// getLang: function() {
// const lang = localStorage.getItem('lang')
// ? localStorage.getItem('lang')
// : 'cn'
// return lang
// },
// code
getCode: function() {
return 'sys'
},
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.session('showBtnList', '')
Store.session('nav', '')
Store.session('userInfo', '')
Store.session('isLock', '')
// Store.clearAll()
if (themeFile) {
localStorage.setItem('themeFile', themeFile)
}
Store.set('username', username)
Store.set('password', password)
},
env: process.env.NODE_ENV,
baseURL: process.env.BASE_URL,
ssoURL: process.env.SSO_URL,
webURL: process.env.WEB_URL,
// 静态服务地址
staticURL: process.env.STATIC_URL,
transformRequest: [
// 后面数组中的函数必须返回一个字符串,或 ArrayBuffer,或 Stream
function(data) {
return Qs.stringify(data)
}
],
// 参数为json
transformRequestJSON: [
function(data) {
return JSON.stringify(data)
}
]
}
import http from '../http'
export default {
page: data => http.post('/v1/chemical_category/page', data).then(res => res),
getTree: data =>
http.put('/v1/chemical_category/get_tree', data).then(res => res),
getTreeListAll: data =>
http.get('/v1/chemical_category/category_tree_all', data).then(res => res),
excludeRoleList: data =>
http
.post('/v1/chemical_category/list_include_role/' + data)
.then(res => res),
getById: id => http.get('/v1/chemical_category/' + id).then(res => res),
edit: data =>
http.put('/v1/chemical_category?id=' + data.id, data.obj).then(res => res),
add: data => http.post('/v1/chemical_category/', data).then(res => res),
addRoleCategory: data =>
http
.post(
'/v1/chemical_category/role_category/' +
data.id +
'?categoryIds=' +
data.idsList
)
.then(res => res)
}
import http from '../http'
export default {
page: data => http.post('/v1/chemical_classify/page', data).then(res => res),
getById: id => http.get('/v1/chemical_classify/' + id).then(res => res),
edit: data =>
http.put('/v1/chemical_classify?id=' + data.id, data.obj).then(res => res),
add: data => http.post('/v1/chemical_classify/', data).then(res => res),
saveClassifyConsume: data =>
http
.post(
'/v1/chemical_classify/rel_chemical_' +
data.classifyId +
'?chemicalIds=' +
data.chemicalIds
)
.then(res => res),
removeClassifyConsume: data =>
http
.delete(
'/v1/chemical_classify/rel_chemical_' +
data.classifyId +
'?chemicalIds=' +
data.chemicalIds
)
.then(res => res)
}
import http from '../http'
export default {
page: data =>
http.post('/v1/chemical_delivery_order/page', data).then(res => res),
pageTemp: data =>
http.post('/v1/chemical_delivery_order/page_temp', data).then(res => res),
pageWaitDelivery: data =>
http
.post('/v1/chemical_delivery_order/page_wait_delivery', data)
.then(res => res),
getById: id => http.get('/v1/chemical_delivery_order/' + id).then(res => res),
edit: data =>
http
.put('/v1/chemical_delivery_order?id=' + data.id, data.obj)
.then(res => res),
add: data =>
http
.post('/v1/chemical_delivery_order/' + data.approve, data)
.then(res => res),
flowSubmit: data =>
http
.post('/v1/chemical_delivery_order/flow_submit?ids=' + data)
.then(res => res),
approve: data =>
http
.post('/v1/chemical_delivery_order/flow_approve/' + data.id, data)
.then(res => res)
}
import http from '../http'
export default {
page: data => http.post('/v1/chemical/page', data).then(res => res),
pageVO: data => http.post('/v1/chemical/page_vo', data).then(res => res),
pageIncludeClassify: data =>
http
.post('/v1/chemical/page_include_classify/' + data.classifyId, data)
.then(res => res),
pageExcludeClassify: data =>
http
.post('/v1/chemical/page_exclude_classify/' + data.classifyId, data)
.then(res => res),
getTree: data => http.put('/v1/chemical/get_tree', data).then(res => res),
getById: id => http.get('/v1/chemical/' + id).then(res => res),
edit: data =>
http.put('/v1/chemical?id=' + data.id, data.obj).then(res => res),
add: data => http.post('/v1/chemical/', data).then(res => res)
}
import http from '../http'
export default {
page: data =>
http.post('/v1/chemical_rel_purchase/page', data).then(res => res),
pagePurchaseOrder: data =>
http
.post('/v1/chemical_purchase_order/page-purchase-order', data)
.then(res => res),
pageWaitPurchase: data =>
http
.post('/v1/chemical_purchase_order/page-wait-purchase', data)
.then(res => res),
getTree: data =>
http.put('/v1/chemical_rel_purchase/get_tree', data).then(res => res),
getById: id => http.get('/v1/chemical_purchase_order/' + id).then(res => res),
edit: data =>
http
.put('/v1/chemical_rel_purchase?id=' + data.id, data.obj)
.then(res => res),
add: data => http.post('/v1/chemical_rel_purchase/', data).then(res => res),
submitOrderFlow: data =>
http
.post('/v1/chemical_purchase_order/flow_submit?ids=' + data.id, data)
.then(res => res),
approve: data =>
http
.post('/v1/chemical_purchase_order/approve/' + data.taskId, data)
.then(res => res),
addConsumeRelPurchase: data =>
http
.post('/v1/chemical_rel_purchase/?chemicalIds=' + data)
.then(res => res),
// 采购单
savePurOrder: data =>
http.post('/v1/chemical_purchase_order/save_order', data).then(res => res)
}
import http from '../http'
export default {
page: data =>
http.post('/v1/chemical_rel_delivery/page', data).then(res => res),
pageTemp: data =>
http.post('/v1/chemical_rel_delivery/page_temp', data).then(res => res),
pageByOrderId: data =>
http.post('/v1/chemical_rel_delivery/page_order_id', data).then(res => res),
pageApprove: data =>
http
.post('/v1/chemical_rel_delivery/page_approve_order_id', data)
.then(res => res),
getById: id => http.get('/v1/chemical_rel_delivery/' + id).then(res => res),
edit: data =>
http
.put('/v1/chemical_rel_delivery?id=' + data.id, data.obj)
.then(res => res),
add: data => http.post('/v1/chemical_rel_delivery/', data).then(res => res),
fastOut: data =>
http
.post('/v1/chemical_rel_delivery/out_all_stock_' + data.orderId, data)
.then(res => res),
editQuantity: data =>
http
.put(
'/v1/chemical_rel_delivery/wait_approval_' +
data.id +
'?quantity=' +
data.quantity
)
.then(res => res)
}
import http from '../http'
export default {
page: data =>
http.post('/v1/chemical_rel_purchase/page', data).then(res => res),
pageChemicalTemp: data =>
http.post('/v1/chemical_rel_purchase/page_temp', data).then(res => res),
pageByBuyOrder: data =>
http.post('/v1/chemical_rel_purchase/page-order-id', data).then(res => res),
getTree: data =>
http.put('/v1/chemical_rel_purchase/get_tree', data).then(res => res),
getById: id => http.get('/v1/chemical_rel_purchase/' + id).then(res => res),
edit: data =>
http
.put('/v1/chemical_rel_purchase?id=' + data.id, data.obj)
.then(res => res),
add: data => http.post('/v1/chemical_rel_purchase/', data).then(res => res),
addConsumeRelPurchase: data =>
http
.post('/v1/chemical_rel_purchase/?chemicalIds=' + data)
.then(res => res),
finishPurchase: data =>
http
.post('/v1/chemical_rel_purchase/finish_purchase?ids=' + data)
.then(res => res),
// 采购单
savePurOrder: data =>
http.post('/v1/chemical_purchase_order/save_order', data).then(res => res)
}
import http from '../http'
export default {
page: data => http.post('/v1/chemical_stock/page', data).then(res => res),
getTree: data =>
http.put('/v1/chemical_stock/get_tree', data).then(res => res),
getById: id => http.get('/v1/chemical_stock/' + id).then(res => res),
edit: data =>
http.put('/v1/chemical_stock?id=' + data.id, data.obj).then(res => res),
editStock: data =>
http.put('/v1/chemical_stock/' + data.chemicalId, data).then(res => res),
add: data => http.post('/v1/chemical_stock/', data).then(res => res),
tzInStock: data =>
http.post('/v1/chemical_stock/tz_in_stock', data).then(res => res)
}
import http from '../http'
export default {
page: data => http.post('/v1/chemical_userecord/page', data).then(res => res),
pageByChemicalId: data =>
http
.post('/v1/chemical_userecord/page_' + data.chemicalId, data)
.then(res => res),
getById: id => http.get('/v1/chemical_userecord/' + id).then(res => res),
edit: data =>
http.put('/v1/chemical_userecord?id=' + data.id, data.obj).then(res => res),
add: data => http.post('/v1/chemical_userecord/', data).then(res => res)
}
import axios from 'axios'
import global from './config'
const downfile = async function(url, method) {
const result = await axios({
url: `${global.baseURL}${url}`,
method: method || 'post',
headers: {
accessToken: localStorage.getItem('accessToken')
},
responseType: 'blob'
})
return result
}
const downBlob = function(content, filename) {
const blob = new Blob([content])
const url = window.URL.createObjectURL(blob)
console.log(url)
const dom = document.createElement('a')
dom.style.display = 'none'
dom.href = url
dom.target = '_blank'
dom.setAttribute('download', filename)
document.body.appendChild(dom)
dom.click()
dom.remove()
}
export const getDown = async function(url, filename, method) {
const result = await downfile(url, method)
console.log(result)
if (result) {
downBlob(result.data, filename)
}
}
import http from '../http'
export default {
page: data => http.post('/v1/test_catalogue/page', data).then(res => res),
pagePoint: data =>
http.post('/v1/test_catalogue/page-point', data).then(res => res),
getById: id => http.get('/v1/test_catalogue/' + id).then(res => res),
edit: data =>
http.put('/v1/test_catalogue?id=' + data.id, data.obj).then(res => res),
add: data => http.post('/v1/test_catalogue/', data).then(res => res)
}
import http from '../http'
export default {
pageCatalogueItem: data =>
http.post('/v1/catalogue_item/page-catalogue-item', data).then(res => res),
getById: id => http.get('/v1/catalogue_item/' + id).then(res => res),
deleteById: id => http.delete('/v1/catalogue_item/' + id).then(res => res),
edit: data =>
http.put('/v1/catalogue_item?id=' + data.id, data.obj).then(res => res),
add: data => http.post('/v1/catalogue_item/', data).then(res => res),
saveCatalogueItem: data =>
http
.post(
'/v1/catalogue_item/save-catalogue-item?aptitudeIds=' +
data.aptitudeIds +
'&catalogueId=' +
data.catalogueId
)
.then(res => res)
}
/**
* 检测类型管理
*/
import http from '../http'
export default {
// page 记得要修改 todo
pageSampleAnnex: data =>
http.post('/v1/sample_annex/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 {
pageAllocate: data =>
http
.post(
'/v1/item/page-allocate?sampleIds=' + data.sampleIds,
JSON.stringify(data.obj)
)
.then(res => res),
pageDispatch: data =>
http
.post(
'/v1/item/page-dispatch?sampleIds=' + data.sampleIds,
JSON.stringify(data.obj)
)
.then(res => res),
pageItemVO: data => http.post('/v1/item/page-vo', data).then(res => res),
pageOkItem: data => http.post('/v1/item/page-ok-vo', data).then(res => res),
pageNotOkItem: data =>
http.post('/v1/item/page-not-ok-vo', data).then(res => res),
pageItemInput: data =>
http.post('/v1/item/page-input', data).then(res => res),
pageItemInputEnv: data =>
http.post('/v1/item/page-input-env', data).then(res => res),
pageInputEnvHis: data =>
http.post('/v1/item/page-input-env-his', data).then(res => res),
pageInputHis: data =>
http.post('/v1/item/page-input-his', data).then(res => res),
pageItemCheck: data =>
http
.post('/v1/item/page-check?sampleIds=' + data.sampleIds, data.obj)
.then(res => res),
pageItemCheckHis: data =>
http.post('/v1/item/page-check-his', data).then(res => res),
pageItemCheckEnv: data =>
http.post('/v1/item/page-check-env', data).then(res => res),
pageItemCheckEnvHis: data =>
http.post('/v1/item/page-check-env-his', data).then(res => res),
pageItemAuditEnvHis: data =>
http.post('/v1/item/page-audit-env-his', data).then(res => res),
pageItemAudit: data =>
http
.post('/v1/item/page-audit?sampleIds=' + data.sampleIds, data.obj)
.then(res => res),
pageItemAuditEnv: data =>
http.post('/v1/item/page-audit-env', data).then(res => res),
pageItemAuditHis: data =>
http.post('/v1/item/page-audit-his', data).then(res => res),
getById: id => http.get('/v1/test_catalogue/' + id).then(res => res),
edit: data =>
http.put('/v1/test_catalogue?id=' + data.id, data.obj).then(res => res),
add: data => http.post('/v1/sample/', data).then(res => res),
submitCheck: data =>
http.post('/v1/item/submit-check?ids=' + data).then(res => res),
submitCheckEnv: data =>
http.post('/v1/item/submit-check-env?ids=' + data).then(res => res),
submitAudit: data =>
http.post('/v1/item/submit-audit?ids=' + data).then(res => res),
submitAuditEnv: data =>
http.post('/v1/item/submit-audit-env?ids=' + data).then(res => res),
bathConfirmItem: data =>
http.post('/v1/item/bath-confirm-item?itemIds=' + data).then(res => res),
bathConfirmItemEnv: data =>
http
.post('/v1/item/bath-confirm-item-env?itemIds=' + data)
.then(res => res),
testValue: data =>
http
.post('/v1/item/bath-write-value/' + data.itemIds, data)
.then(res => res),
allocateItem: data =>
http
.post('/v1/item/allocate-item?ids=' + data.ids, data.obj)
.then(res => res),
handJudge: data =>
http.post('/v1/item/hand_judge?ids=' + data.itemIds, data).then(res => res),
adjustTester: data =>
http
.post('/v1/item/adjust-tester?ids=' + data.ids, data.obj)
.then(res => res),
// 驳回
backCheck: data =>
http.post('/v1/item/back_check?itemIds=' + data.ids, data).then(res => res),
backCheckEnv: data =>
http
.post('/v1/item/back_check_env?itemIds=' + data.ids, data)
.then(res => res),
backAudit: data =>
http.post('/v1/item/back_audit?itemIds=' + data.ids, data).then(res => res),
backAuditEnv: data =>
http
.post('/v1/item/back_audit_env?itemIds=' + data.ids, data)
.then(res => res),
bathAddEquip: data =>
https.post('/v1/item/bath-add-equip', JSON.stringify(data)).then(res => res)
}
import http from '../http'
export default {
pageItemRecord: data =>
http.post('/v1/item_record/page', data).then(res => res),
pageSampleRecord: data =>
http.post('/v1/sample_record/page', data).then(res => res),
pageItemInput: data =>
http.post('/v1/item/page-input', data).then(res => res),
pageInputHis: data =>
http.post('/v1/item/page-input-his', data).then(res => res),
pageItemCheck: data =>
http.post('/v1/item/page-check', data).then(res => res),
pageItemCheckHis: data =>
http.post('/v1/item/page-check-his', data).then(res => res),
pageItemAudit: data =>
http.post('/v1/item/page-audit', data).then(res => res),
pageItemAuditHis: data =>
http.post('/v1/item/page-audit-his', data).then(res => res),
getById: id => http.get('/v1/test_catalogue/' + id).then(res => res),
edit: data =>
http.put('/v1/test_catalogue?id=' + data.id, data.obj).then(res => res),
add: data => http.post('/v1/sample/', data).then(res => res),
submitCheck: data =>
http.post('/v1/item/submit-check?ids=' + data).then(res => res),
submitAudit: data =>
http.post('/v1/item/submit-audit?ids=' + data).then(res => res),
bathConfirmItem: data =>
http.post('/v1/item/bath-confirm-item?itemIds=' + data).then(res => res),
testValue: data =>
http
.post('/v1/item/bath-write-value/' + data.itemIds, data)
.then(res => res),
allocateItem: data =>
http
.post('/v1/item/allocate-item?ids=' + data.ids, data.obj)
.then(res => res),
handJudge: data =>
http.post('/v1/item/hand_judge?ids=' + data.itemIds, data).then(res => res),
adjustTester: data =>
http
.post('/v1/item/adjust-tester?ids=' + data.ids, data.obj)
.then(res => res),
// 驳回
backCheck: data =>
http.post('/v1/item/back_check?itemIds=' + data.ids, data).then(res => res),
backAudit: data =>
http.post('/v1/item/back_audit?itemIds=' + data.ids, data).then(res => res)
}
import http from '../http'
import { https } from '../https'
export default {
pageSampleProductReg: data =>
http.post('/v1/sample/page-product-register', data).then(res => res),
pageSampleProductRegHis: data =>
http.post('/v1/sample/page-product-register-his', data).then(res => res),
pageSampleMaterialReg: data =>
http.post('/v1/sample/page-material-register', data).then(res => res),
pageSampleMaterialRegHis: data =>
http.post('/v1/sample/page-material-register-his', data).then(res => res),
pageSampleStableReg: data =>
http.post('/v1/sample/page-stable-register', data).then(res => res),
pageSampleStableRegHis: data =>
http.post('/v1/sample/page-stable-register-his', data).then(res => res),
pageSampleEnvReg: data =>
http.post('/v1/sample/page-env-register', data).then(res => res),
pageSampleEnvStableReg: data =>
http.post('/v1/sample/page-env-stable-register', data).then(res => res),
pageSampleEnvRegHis: data =>
http.post('/v1/sample/page-env-register-his', data).then(res => res),
pageSampleEnvStableRegHis: data =>
http.post('/v1/sample/page-env-stable-register-his', data).then(res => res),
pageEnvPlanCheck: data =>
http.post('/v1/sample/page-env-plan-check', data).then(res => res),
pageEnvPlanCheckHis: data =>
http.post('/v1/sample/page-env-plan-check-his', data).then(res => res),
pageEnvPlanExecute: data =>
http.post('/v1/sample/page-env-plan-execute', data).then(res => res),
pageEnvPlanExecuteHis: data =>
http.post('/v1/sample/page-env-plan-execute-his', data).then(res => res),
pageSampleMake: data =>
http.post('/v1/sample/page-sample-make', data).then(res => res),
pageSampleMakeHis: data =>
http.post('/v1/sample/page-sample-make-his', data).then(res => res),
pageSampleReceive: data =>
http.post('/v1/sample/page-sample-receive', data).then(res => res),
pageSampleReceiveHis: data =>
http.post('/v1/sample/page-sample-receive-his', data).then(res => res),
pageSampleSend: data =>
http.post('/v1/sample/page-sample-send', data).then(res => res),
pageSampleWaitTest: data =>
http.post('/v1/sample/page-sample-wait-test', data).then(res => res),
pageSampleSendHis: data =>
http.post('/v1/sample/page-sample-send-his', data).then(res => res),
pageSampleAllocate: data =>
http.post('/v1/sample/page-sample-allocate', data).then(res => res),
pageSampleDispatch: data =>
http.post('/v1/sample/page-sample-dispatch', data).then(res => res),
pageSampleInput: data =>
http.post('/v1/sample/page-sample-input', data).then(res => res),
pageSampleInputEnv: data =>
http.post('/v1/sample/page-sample-input-env', data).then(res => res),
pageSampleCheck: data =>
http.post('/v1/sample/page-sample-check', data).then(res => res),
pageSampleCheckEnv: data =>
http.post('/v1/sample/page-sample-check-env', data).then(res => res),
pageSampleAudit: data =>
http.post('/v1/sample/page-sample-audit', data).then(res => res),
pageSampleAuditEnv: data =>
http.post('/v1/sample/page-sample-audit-env', data).then(res => res),
pageReportMake: data =>
http.post('/v1/sample/page-report-make', data).then(res => res),
pageReportMakeHis: data =>
http.post('/v1/sample/page-report-make-his', data).then(res => res),
pageReportMakeEnv: data =>
http.post('/v1/sample/page-report-make-env', data).then(res => res),
pageReportMakeEnvHis: data =>
http.post('/v1/sample/page-report-make-env-his', data).then(res => res),
pageReportCheckHis: data =>
http.post('/v1/sample/page-report-check-his', data).then(res => res),
pageReportCheckEnvHis: data =>
http.post('/v1/sample/page-report-check-env-his', data).then(res => res),
pageReportIssueHis: data =>
http.post('/v1/sample/page-report-issue-his', data).then(res => res),
pageReportIssueEnvHis: data =>
http.post('/v1/sample/page-report-issue-env-his', data).then(res => res),
pageReportCheck: data =>
http.post('/v1/sample/page-report-check', data).then(res => res),
pageReportCheckEnv: data =>
http.post('/v1/sample/page-report-check-env', data).then(res => res),
pageReportIssue: data =>
http.post('/v1/sample/page-report-issue', data).then(res => res),
pageReportIssueEnv: data =>
http.post('/v1/sample/page-report-issue-env', data).then(res => res),
pageReportConsult: data =>
http.post('/v1/sample/page-report-consult', data).then(res => res),
getById: id => http.get('/v1/test_catalogue/' + id).then(res => res),
getSampleVO: id =>
http.post('/v1/sample/get-sample-vo/' + id).then(res => res),
edit: data => http.put('/v1/sample?id=' + data.id, data.obj).then(res => res),
editSampleVO: data =>
https
.post('/v1/sample/sample_vo/edit', JSON.stringify(data.obj))
.then(res => res),
add: data => http.post('/v1/sample/', data).then(res => res),
addMaterialRegister: data =>
https
.post('/v1/sample/add-material-register', JSON.stringify(data))
.then(res => res),
addEnvRegister: data =>
http.post('/v1/sample/add-env-register', data).then(res => res),
submitRegister: data =>
http.post('/v1/sample/submit-register?ids=' + data).then(res => res),
submitSend: data =>
http.post('/v1/sample/submit-send?ids=' + data).then(res => res),
submitReceive: data =>
http.post('/v1/sample/submit-receive?ids=' + data).then(res => res),
scanSampleSend: data =>
http
.post('/v1/sample/scan-submit-send?sampleCode=' + data)
.then(res => res),
scanSubmitReceive: data =>
http
.post('/v1/sample/scan-submit-receive?sampleCode=' + data)
.then(res => res),
submitReportMake: data =>
http.post('/v1/sample/submit-report-make?ids=' + data).then(res => res),
submitReportMakeEnv: data =>
http.post('/v1/sample/submit-report-make-env?ids=' + data).then(res => res),
submitReportCheck: data =>
http.post('/v1/sample/submit-report-check?ids=' + data).then(res => res),
submitReportCheckEnv: data =>
http
.post('/v1/sample/submit-report-check-env?ids=' + data)
.then(res => res),
submitReportIssue: data =>
http.post('/v1/sample/submit-report-issue?ids=' + data).then(res => res),
submitReportIssueEnv: data =>
http
.post('/v1/sample/submit-report-issue-env?ids=' + data)
.then(res => res),
submitEnvPlan: data =>
http.post('/v1/sample/submit-env-plan?ids=' + data).then(res => res),
submitEnvPlanCheck: data =>
http.post('/v1/sample/submit-env-plan-check?ids=' + data).then(res => res),
submitEnvPlanExecute: data =>
http.post('/v1/sample/submit-env-execute?ids=' + data).then(res => res),
stopTest: data =>
http.post('/v1/sample/stop-test?ids=' + data).then(res => res),
backEnvPlanCheck: data =>
http
.post('/v1/sample/back-env-plan-check?ids=' + data.ids, data)
.then(res => res),
backOosCheck: data =>
http
.post('/v1/sample/back-oos-check?ids=' + data.ids, data)
.then(res => res),
reportGenerate: data =>
https
.post('/v1/sample/report_generate', JSON.stringify(data))
.then(res => res),
pageSampleOosReg: data =>
http.post('/v1/sample/page-oos-register', data).then(res => res),
pageSampleOosRegHis: data =>
http.post('/v1/sample/page-oos-register-his', data).then(res => res),
pageSampleOosCheck: data =>
http.post('/v1/sample/page-oos-check', data).then(res => res),
pageSampleOosExecute: data =>
http.post('/v1/sample/page-oos-execute', data).then(res => res),
pageSampleOosExecuteHis: data =>
http.post('/v1/sample/page-oos-execute-his', data).then(res => res),
submitOosCheck: data =>
http.post('/v1/sample/submit-oos-check?ids=' + data).then(res => res),
submitOosExecute: data =>
http.post('/v1/sample/submit-oos-execute?ids=' + data).then(res => res),
// OOS
registerSuggestion: data =>
http.post('/v1/sample_oos/register-suggestion', data).then(res => res),
submitOosRegister: data =>
http.post('/v1/sample_oos/submit_oos_register?ids=' + data).then(res => res)
}
import http from '../http'
import { https } from '../https'
export default {
pageSampleKeep: data =>
http.post('/v1/sample_keep/page-sample-keep', data).then(res => res),
pageSampleKeepHis: data =>
http.post('/v1/sample_keep/page-sample-keep-his', data).then(res => res),
pageSampleMakeDetail: data =>
http.post('/v1/sample_keep/page-sample-make-detail', data).then(res => res),
getById: id => http.get('/v1/test_catalogue/' + id).then(res => res),
edit: data =>
http.put('/v1/test_catalogue?id=' + data.id, data.obj).then(res => res),
add: data => http.post('/v1/sample/', data).then(res => res),
addMaterialRegister: data =>
http.post('/v1/sample/add-material-register', data).then(res => res),
makeEnd: data =>
https
.post(
'/v1/sample_keep/bath_sample_make_end?sampleId=' + data.sampleId,
JSON.stringify(data)
)
.then(res => res),
saveKeepInfo: data =>
http
.post('/v1/sample_keep/save-keep-info?ids=' + data.ids, data.obj)
.then(res => res),
bathHandleEnd: data =>
http
.post('/v1/sample_keep/bath_handle_end?ids=' + data.ids, data)
.then(res => res)
}
/**
* 环境合同方案下的检测项目表相关
*/
import http from '../http'
export default {
getItemByPlanId: data =>
http.post('/env/v1/sales_monitor_plan_item/list', data).then(res => res),
// 分包提交与取消
updateItemSubBatch: data =>
http
.post('/env/v1/sales_monitor_plan_item/update_item_sub_batch', data)
.then(res => res)
}
/**
* 环境合同方案表相关
*/
import http from '../http'
export default {
page: data =>
http.post('/env/v1/sales_monitor_plan/page', data).then(res => res),
list: data =>
http.post('/env/v1/sales_monitor_plan/list', data).then(res => res),
getById: id => http.get('/env/v1/sales_monitor_plan/' + id).then(res => res)
}
/**
* 环境报告借阅相关
*/
import http from '../http'
export default {
page: data => http.post('/env/v1/report_borrow/page', data).then(res => res),
// 通过驳回审批
approve: data =>
http
.post('/env/v1/report_borrow/approve/' + data.id, data)
.then(res => res),
// 发放
send: id => http.post('/env/v1/report_borrow/sent/' + id).then(res => res),
// 归还
return: id =>
http.post('/env/v1/report_borrow/returnReport/' + id).then(res => res)
}
/**
* 合同附件相关
*/
import http from '../http'
export default {
page: data =>
http.post('/env/v1/sales_attachment/page', data).then(res => res),
// 删除
deleteByIds: data => {
if (data.flag === undefined) {
// 删除全部
http.delete('/env/v1/sales_attachment/?ids=' + data.id).then(res => res)
} else {
// 只能删除自己
http
.delete(
'/env/v1/sales_attachment/?ids=' + data.id + '&flag=' + data.flag
)
.then(res => res)
}
},
getBySalesId: id =>
http
.post('/env/v1/sales_attachment/list_picture_by_sales_id?salesId=' + id)
.then(res => res)
}
/**
* 环境合同评审内容
*/
import http from '../http'
export default {
edit: data =>
http
.put('/env/v1/sales_review_content/' + data.id, data.obj)
.then(res => res)
}
/**
* 环境合同相关
*/
import http from '../http'
export default {
getById: id => http.get('/env/v1/sales/' + id).then(res => res),
// 编辑合同信息
edit: data => http.put('/env/v1/sales/' + data.id, data.obj).then(res => res),
// 获取评审单信息
getReviewInfo: id =>
http.post('/env/v1/sales/get_review_info?id=' + id).then(res => res),
// 一级审批
firstCheckApprove: data =>
http.post('/env/v1/sales/first_check_approve', data).then(res => res),
// 二级审批
secondCheckApprove: data =>
http.post('/env/v1/sales/second_check_approve', data).then(res => res),
// 三级审批
thirdCheckApprove: data =>
http.post('/env/v1/sales/third_check_approve', data).then(res => res),
// 合同多级审批的一级审批
firstMoreCheckApprove: data =>
http.post('/env/v1/sales/first_more_check_approve', data).then(res => res),
// 合同多级审批的二级审批
secondMoreCheckApprove: data =>
http.post('/env/v1/sales/second_more_check_approve', data).then(res => res)
}
import http from '../http'
export default {
page: data => http.post('/v1/env_monitor/page', data).then(res => res),
deleteById: id => http.delete('/v1/env_monitor/' + id).then(res => res),
pageCatalogueItem: data =>
http.post('/v1/env_monitor/page-catalogue-item', data).then(res => res),
pageForCatalogue: data =>
http.post('/v1/env_monitor/page-for-catalogue', data).then(res => res),
getById: id => http.get('/v1/env_monitor/' + id).then(res => res),
edit: data =>
http.put('/v1/env_monitor/edit/' + data.id, data.obj).then(res => res),
add: data => http.post('/v1/env_monitor/', data).then(res => res)
}
import http from '../http'
export default {
page: data => http.post('/v1/env_monitor_record/page', data).then(res => res),
deleteById: id =>
http.delete('/v1/env_monitor_record/' + id).then(res => res),
pageCatalogueItem: data =>
http
.post('/v1/env_monitor_record/page-catalogue-item', data)
.then(res => res),
pageForCatalogue: data =>
http
.post('/v1/env_monitor_record/page-for-catalogue', data)
.then(res => res),
getById: id => http.get('/v1/env_monitor_record/' + id).then(res => res),
edit: data =>
http.put('/v1/env_monitor_record?id=' + data.id, data.obj).then(res => res),
add: data => http.post('/v1/env_monitor_record/', data).then(res => res)
}
import http from '../http'
export default {
page: data => http.post('/v1/equip_info/page_vo', data).then(res => res),
getTree: data => http.put('/v1/equip_info/get_tree', data).then(res => res),
getById: id => http.get('/v1/equip_info/' + id).then(res => res),
edit: data =>
http.put('/v1/equip_info?id=' + data.id, data.obj).then(res => res),
add: data => http.post('/v1/equip_info/', data).then(res => res),
addDetail: data =>
http.post('/v1/equip_info/addDetail/', data).then(res => res)
}
import http from '../http'
export default {
page: data =>
http.post('/v1/equip_check_hostory/page', data).then(res => res),
getById: id => http.get('/v1/equip_check_hostory/vo/' + id).then(res => res),
get: id => http.get('/v1/equip_check_hostory/' + id).then(res => res),
list: data =>
http.post('/v1/equip_check_hostory/list', data).then(res => res),
edit: data =>
http
.put('/v1/equip_check_hostory/?id=' + data.id, data.obj)
.then(res => res),
add: data => http.post('/v1/equip_check_hostory/', data).then(res => res)
}
import http from '../http'
export default {
page: data =>
http.post('/v1/equip_delivery_order/allpage', data).then(res => res),
pageWaitOut: data =>
http.post('/v1/equip_delivery_order/page_wait_out', data).then(res => res),
flowSubmit: data =>
http.post('/v1/equip_delivery_order/submit/' + data).then(res => res),
getById: id => http.get('/v1/equip_delivery_order/' + id).then(res => res),
list: data =>
http.post('/v1/equip_delivery_order/list', data).then(res => res),
edit: data =>
http
.put('/v1/equip_delivery_order?id=' + data.id, data.obj)
.then(res => res),
add: data => http.post('/v1/equip_delivery_order/', data).then(res => res),
outStock: data =>
http
.post('/v1/equip_delivery_order/outstock/' + data.orderId, data)
.then(res => res),
purOrder: data =>
http
.post('/v1/equip_delivery_order/' + data.approve, { reason: data.reason })
.then(res => res),
approveEquip: data =>
http
.post('/v1/equip_delivery_order/approve/' + data.id, data)
.then(res => res)
}
import http from '../http'
export default {
page: data => http.post('/v1/equip_location/page', data).then(res => res),
getTree: data =>
http.put('/v1/equip_location/get_tree', data).then(res => res),
pageForCatalogue: data =>
http.post('/v1/equip_location/page-for-catalogue', data).then(res => res),
getById: id => http.get('/v1/equip_location/' + id).then(res => res),
edit: data =>
http.put('/v1/equip_location?id=' + data.id, data.obj).then(res => res),
add: data => http.post('/v1/equip_location/', data).then(res => res)
}
import http from '../http'
export default {
pageMaintain: data =>
http.post('/v1/equip_maintain/page_maintain', data).then(res => res),
getById: id => http.get('/v1/equip_maintain/vo/' + id).then(res => res),
getVOById: data =>
http.get('/v1/equip_maintain/vo/' + data.maintainId).then(res => res),
get: id => http.get('/v1/equip_maintain/' + id).then(res => res),
getTemp: id => http.get('/v1/equip_maintain/getTemp/').then(res => res),
list: data => http.post('/v1/equip_maintain/list', data).then(res => res),
edit: data =>
http.put('/v1/equip_maintain/?id=' + data.id, data.obj).then(res => res),
add: data => http.post('/v1/equip_maintain/', data).then(res => res),
approve: data =>
http.post('/v1/equip_maintain/approve/' + data.id, data).then(res => res),
addDetail: data =>
http
.post('/v1/equip_maintain/addDetail/?equipIds=' + data.equipIds, data.obj)
.then(res => res)
}
import http from '../http'
import { https } from '../https'
export default {
page: data =>
http.post('/v1/equip_maintain_manage/page', data).then(res => res),
getById: id =>
http.get('/v1/equip_maintain_manage/vo/' + id).then(res => res),
get: id => http.get('/v1/equip_maintain_manage/' + id).then(res => res),
getTemp: id =>
http.get('/v1/equip_maintain_manage/getTemp/').then(res => res),
list: data =>
http.post('/v1/equip_maintain_manage/list', data).then(res => res),
edit: data =>
http
.put('/v1/equip_maintain_manage/?id=' + data.id, data.obj)
.then(res => res),
add: data => http.post('/v1/equip_maintain_manage/', data).then(res => res),
approve: data =>
http
.post('/v1/equip_maintain_manage/approve/' + data.id, data)
.then(res => res),
addDetail: data =>
http
.post(
'/v1/equip_maintain_manage/addDetail/?equipIds=' + data.equipIds,
data.obj
)
.then(res => res),
addDo: data =>
https
.post('/v1/equip_maintain_manage/add/', JSON.stringify(data))
.then(res => res)
}
import http from '../http'
export default {
page: data => http.post('/v1/equip_purchase/page', data).then(res => res),
getById: id => http.get('/v1/equip_purchase/vo/' + id).then(res => res),
getTemp: () => http.get('/v1/equip_purchase/getTemp/').then(res => res),
edit: data =>
http.put('/v1/equip_purchase/vo/' + data.id, data.obj).then(res => res),
add: data => http.post('/v1/equip_purchase/', data).then(res => res),
deleteByIds: ids =>
http.post('/v1/equip_purchase/delete/?ids=' + ids).then(res => res),
// 一级审批(实验室主任)
approve: data =>
http
.post('/v1/equip_purchase/approve_flow/' + data.taskId, data)
.then(res => res),
// 二级审批(总经理)
approveManager: data =>
http
.post('/v1/equip_purchase/approve_manager/' + data.id, data)
.then(res => res)
}
import http from '../http'
export default {
page: data =>
http.post('/v1/equip_purchase_detail/page', data).then(res => res),
getById: id => http.get('/v1/equip_purchase_detail/' + id).then(res => res),
list: data =>
http.post('/v1/equip_purchase_detail/list', data).then(res => res),
edit: data =>
http.put('/v1/equip_purchase?id=' + data.id, data.obj).then(res => res),
deleteByIds: ids =>
http.post('/v1/equip_purchase_detail/delete/?ids=' + ids).then(res => res),
add: data => http.post('/v1/equip_purchase/', data).then(res => res)
}
import http from '../http'
export default {
page: data => http.post('/v1/equip_rel_delivery/page', data).then(res => res),
pageTemp: data =>
http.post('/v1/equip_rel_delivery/page_temp', data).then(res => res),
getById: id => http.get('/v1/equip_rel_delivery/' + id).then(res => res),
list: data => http.post('/v1/equip_rel_delivery/list', data).then(res => res),
edit: data =>
http.put('/v1/equip_rel_delivery?id=' + data.id, data.obj).then(res => res),
add: data => http.post('/v1/equip_rel_delivery/', data).then(res => res),
addPros: data =>
http
.post('/v1/equip_rel_delivery/addTempDelivery/?equipIds=' + data)
.then(res => res)
}
import http from '../http'
export default {
pageRepair: data =>
http.post('/v1/equip_repair/page_vo', data).then(res => res),
getById: id => http.get('/v1/equip_repair/vo/' + id).then(res => res),
pageManage: data =>
http.post('/v1/equip_repair/page_manage', data).then(res => res),
get: id => http.get('/v1/equip_repair/' + id).then(res => res),
getTemp: id => http.get('/v1/equip_repair/getTemp/').then(res => res),
list: data => http.post('/v1/equip_repair/list', data).then(res => res),
edit: data =>
http.put('/v1/equip_repair/?id=' + data.id, data.obj).then(res => res),
add: data => http.post('/v1/equip_repair/', data).then(res => res),
approve: data =>
http.post('/v1/equip_repair/approve/' + data.id, data).then(res => res),
addDetail: data =>
http
.post('/v1/equip_repair/addDetail/?equipIds=' + data.equipIds, data.obj)
.then(res => res)
}
import http from '../http'
import { https } from '../https'
export default {
page: data =>
http.post('/v1/equip_repair_manage/page_vo', data).then(res => res),
getById: id => http.get('/v1/equip_repair_manage/vo/' + id).then(res => res),
get: id => http.get('/v1/equip_repair_manage/' + id).then(res => res),
list: data =>
http.post('/v1/equip_repair_manage/list', data).then(res => res),
edit: data =>
http
.put('/v1/equip_repair_manage/?id=' + data.id, data.obj)
.then(res => res),
addDo: data =>
https
.post('/v1/equip_repair_manage/add/', JSON.stringify(data))
.then(res => res)
}
import http from '../http'
export default {
page: data =>
http.post('/v1/equip_repair_manage_history/page_vo', data).then(res => res),
getById: id =>
http.get('/v1/equip_repair_manage_history/vo/' + id).then(res => res),
get: id => http.get('/v1/equip_repair_manage_history/' + id).then(res => res),
list: data =>
http.post('/v1/equip_repair_manage_history/list', data).then(res => res),
edit: data =>
http
.put('/v1/equip_repair_manage_history/?id=' + data.id, data.obj)
.then(res => res),
add: data =>
http.post('/v1/equip_repair_manage_history/', data).then(res => res)
}
import http from '../http'
import { https } from '../https'
export default {
page: data =>
http.post('/v1/equip_scrap_manage/page_vo', data).then(res => res),
getById: id => http.get('/v1/equip_scrap_manage/vo/' + id).then(res => res),
get: id => http.get('/v1/equip_scrap_manage/' + id).then(res => res),
list: data => http.post('/v1/equip_scrap_manage/list', data).then(res => res),
edit: data =>
http
.put('/v1/equip_scrap_manage/?id=' + data.id, data.obj)
.then(res => res),
addDo: data =>
https
.post('/v1/equip_scrap_manage/add/', JSON.stringify(data))
.then(res => res)
}
import http from '../http'
export default {
page: data =>
http.post('/v1/equip_scrap_manage_history/page', data).then(res => res),
getById: id =>
http.get('/v1/equip_scrap_manage_history/vo/' + id).then(res => res),
get: id => http.get('/v1/equip_scrap_manage_history/' + id).then(res => res),
list: data =>
http.post('/v1/equip_scrap_manage_history/list', data).then(res => res),
edit: data =>
http
.put('/v1/equip_scrap_manage_history/?id=' + data.id, data.obj)
.then(res => res),
add: data =>
http.post('/v1/equip_scrap_manage_history/', data).then(res => res)
}
import http from '../http'
export default {
page: data => http.post('/v1/equip_class/page', data).then(res => res),
getTree: data => http.put('/v1/equip_class/get_tree', data).then(res => res),
pageForCatalogue: data =>
http.post('/v1/equip_class/page-for-catalogue', data).then(res => res),
getById: id => http.get('/v1/equip_class/' + id).then(res => res),
edit: data =>
http.put('/v1/equip_class?id=' + data.id, data.obj).then(res => res),
add: data => http.post('/v1/equip_class/', data).then(res => res)
}
import http from '../http'
export default {
page: data => http.post('/v1/equip_use_record/page', data).then(res => res),
getById: id => http.get('/v1/equip_use_record/vo/' + id).then(res => res),
list: data => http.post('/v1/equip_use_record/list', data).then(res => res),
edit: data =>
http.put('/v1/equip_use_record/?id=' + data.id, data.obj).then(res => res),
add: data => http.post('/v1/equip_use_record/', data).then(res => res)
}
import http from '../http'
export default {
page: data => http.post('/v1/ability_main_plan/page', data).then(res => res),
pageRecord: data =>
http.post('/v1/ability_main_plan/page_record', data).then(res => res),
deleteById: id => http.delete('/v1/ability_main_plan/' + id).then(res => res),
getById: id => http.get('/v1/ability_main_plan/' + id).then(res => res),
edit: data =>
http.put('/v1/ability_main_plan/' + data.id, data.obj).then(res => res),
add: data => http.post('/v1/ability_main_plan/', data).then(res => res),
submitById: data =>
http.post('/v1/ability_main_plan/submit_flow?ids=' + data).then(res => res),
approve: data =>
http
.post('/v1/ability_main_plan/approve/' + data.taskId, data)
.then(res => res)
}
import http from '../http'
export default {
page: data => http.post('/v1/ability_sub_plan/page', data).then(res => res),
deleteById: id => http.delete('/v1/ability_sub_plan/' + id).then(res => res),
getById: id => http.get('/v1/ability_sub_plan/' + id).then(res => res),
edit: data =>
http.put('/v1/ability_sub_plan/' + data.id, data.obj).then(res => res),
add: data => http.post('/v1/ability_sub_plan/', data).then(res => res),
submitById: data =>
http.post('/v1/ability_sub_plan/submit_flow?ids=' + data).then(res => res),
approve: data =>
http
.post('/v1/ability_sub_plan/approve/' + data.taskId, data)
.then(res => res)
}
import http from '../http'
export default {
page: data =>
http.post('/v1/frame_customer_investigate/page', data).then(res => res),
deleteById: id =>
http.delete('/v1/frame_customer_investigate/' + id).then(res => res),
getById: id =>
http.get('/v1/frame_customer_investigate/' + id).then(res => res),
edit: data =>
http
.put('/v1/frame_customer_investigate/' + data.id, data.obj)
.then(res => res),
add: data =>
http.post('/v1/frame_customer_investigate/', data).then(res => res),
submitById: data =>
http
.post('/v1/frame_customer_investigate/submit_batch?ids=' + data)
.then(res => res),
approve: data =>
http
.post('/v1/frame_customer_investigate/approve/' + data.taskId, data)
.then(res => res)
}
import http from '../http'
export default {
page: data =>
http
.post('/v1/frame_customer_investigate_detail/page', data)
.then(res => res),
deleteById: id =>
http.delete('/v1/frame_customer_investigate_detail/' + id).then(res => res),
getById: id =>
http.get('/v1/frame_customer_investigate_detail/' + id).then(res => res),
edit: data =>
http
.put('/v1/frame_customer_investigate_detail/' + data.id, data.obj)
.then(res => res),
add: data =>
http.post('/v1/frame_customer_investigate_detail/', data).then(res => res),
submitById: data =>
http
.post('/v1/frame_customer_investigate_detail/submit_batch?ids=' + data)
.then(res => res),
approve: data =>
http
.post(
'/v1/frame_customer_investigate_detail/approve/' + data.taskId,
data
)
.then(res => res)
}
import http from '../http'
export default {
page: data =>
http.post('/v1/frame_inner_check_plan/page', data).then(res => res),
deleteById: id =>
http.delete('/v1/frame_inner_check_plan/' + id).then(res => res),
getById: id => http.get('/v1/frame_inner_check_plan/' + id).then(res => res),
edit: data =>
http
.put('/v1/frame_inner_check_plan?id=' + data.id, data.obj)
.then(res => res),
add: data => http.post('/v1/frame_inner_check_plan/', data).then(res => res),
submitById: data =>
http
.post('/v1/frame_inner_check_plan/submit/?ids=' + data)
.then(res => res),
approve: data =>
http
.post('/v1/frame_inner_check_plan/approve/' + data.taskId, data)
.then(res => res)
}
import http from '../http'
export default {
page: data =>
http.post('/v1/frame_inner_check_manage/page', data).then(res => res),
deleteById: id =>
http.delete('/v1/frame_inner_check_manage/' + id).then(res => res),
getById: id =>
http.get('/v1/frame_inner_check_manage/' + id).then(res => res),
edit: data =>
http
.put('/v1/frame_inner_check_manage/' + data.id, data.obj)
.then(res => res),
add: data =>
http.post('/v1/frame_inner_check_manage/', data).then(res => res),
submitById: data =>
http
.post('/v1/frame_inner_check_manage/submit/?ids=' + data)
.then(res => res),
approve: data =>
http
.post('/v1/frame_inner_check_manage/approve/' + data.taskId, data)
.then(res => res)
}
import http from '../http'
export default {
page: data => http.post('/v1/frame_check_manage/page', data).then(res => res),
deleteById: id =>
http.delete('/v1/frame_check_manage/' + id).then(res => res),
getById: id => http.get('/v1/frame_check_manage/' + id).then(res => res),
edit: data =>
http.put('/v1/frame_check_manage/' + data.id, data.obj).then(res => res),
add: data => http.post('/v1/frame_check_manage/', data).then(res => res),
submitById: data =>
http.post('/v1/frame_check_manage/submit/?ids=' + data).then(res => res),
approve: data =>
http
.post('/v1/frame_check_manage/approve/' + data.taskId, data)
.then(res => res)
}
import http from '../http'
export default {
page: data => http.post('/v1/frame_check_plan/page', data).then(res => res),
deleteById: id => http.delete('/v1/frame_check_plan/' + id).then(res => res),
getById: id => http.get('/v1/frame_check_plan/' + id).then(res => res),
edit: data =>
http.put('/v1/frame_check_plan/' + data.id, data.obj).then(res => res),
add: data => http.post('/v1/frame_check_plan/', data).then(res => res),
submitById: data =>
http.post('/v1/frame_check_plan/submit/?ids=' + data).then(res => res),
approve: data =>
http
.post('/v1/frame_check_plan/approve/' + data.taskId, data)
.then(res => res)
}
import http from '../http'
export default {
page: data => http.post('/v1/month_plan/page', data).then(res => res),
pagePlan: data =>
http.post('/v1/month_plan/page_plan', data).then(res => res),
deleteById: id => http.delete('/v1/month_plan/' + id).then(res => res),
getById: id => http.get('/v1/month_plan/' + id).then(res => res),
edit: data =>
http.put('/v1/month_plan/' + data.id, data.obj).then(res => res),
add: data => http.post('/v1/month_plan/', data).then(res => res),
submitById: data =>
http.post('/v1/month_plan/submit_batch?ids=' + data).then(res => res),
approve: data =>
http.post('/v1/month_plan/approve/' + data.taskId, data).then(res => res)
}
import http from '../http'
export default {
page: data =>
http.post('/v1/qc_main_plan/page_main_plan', data).then(res => res),
pageRecord: data =>
http.post('/v1/qc_main_plan/page_main_record', data).then(res => res),
deleteById: id => http.delete('/v1/qc_main_plan/' + id).then(res => res),
getById: id => http.get('/v1/qc_main_plan/' + id).then(res => res),
edit: data =>
http.put('/v1/qc_main_plan/' + data.id, data.obj).then(res => res),
add: data => http.post('/v1/qc_main_plan/', data).then(res => res),
submitById: data =>
http.post('/v1/qc_main_plan/submit_flow?ids=' + data).then(res => res),
approve: data =>
http.post('/v1/qc_main_plan/approve/' + data.taskId, data).then(res => res),
approveCheck: data =>
http
.post(
'/v1/qc_main_plan/approve/' +
data.id +
'?reason=' +
data.reason +
'&status=' +
data.status
)
.then(res => res)
}
import http from '../http'
export default {
page: data =>
http.post('/v1/qc_sub_plan/page_sub_plan', data).then(res => res),
pageRecord: data =>
http.post('/v1/qc_sub_plan/page_record', data).then(res => res),
deleteById: id => http.delete('/v1/qc_sub_plan/' + id).then(res => res),
getById: id => http.get('/v1/qc_sub_plan/' + id).then(res => res),
edit: data =>
http.put('/v1/qc_sub_plan/' + data.id, data.obj).then(res => res),
add: data => http.post('/v1/qc_sub_plan/', data).then(res => res),
submitById: data =>
http.post('/v1/qc_sub_plan/submit_flow?ids=' + data).then(res => res),
approve: data =>
http.post('/v1/qc_sub_plan/approve/' + data.taskId, data).then(res => res)
}
import http from '../http'
export default {
page: data => http.post('/v1/satisfaction_item/page', data).then(res => res),
list: data => http.post('/v1/satisfaction_item/list', data).then(res => res),
deleteById: id => http.delete('/v1/satisfaction_item/' + id).then(res => res),
getById: id => http.get('/v1/satisfaction_item/' + id).then(res => res),
edit: data =>
http.put('/v1/satisfaction_item/' + data.id, data.obj).then(res => res),
add: data => http.post('/v1/satisfaction_item/', data).then(res => res),
submitById: data =>
http
.post('/v1/satisfaction_item/submit_batch?ids=' + data)
.then(res => res),
approve: data =>
http
.post('/v1/satisfaction_item/approve/' + data.taskId, data)
.then(res => res)
}
import http from '../http'
export default {
page: data => http.post('/v1/year_plan/page', data).then(res => res),
pagePlan: data => http.post('/v1/year_plan/page_plan', data).then(res => res),
deleteById: id => http.delete('/v1/year_plan/' + id).then(res => res),
getById: id => http.get('/v1/year_plan/' + id).then(res => res),
edit: data => http.put('/v1/year_plan/' + data.id, data.obj).then(res => res),
add: data => http.post('/v1/year_plan/', data).then(res => res),
submitById: data =>
http.post('/v1/year_plan/submit_batch?ids=' + data).then(res => res),
approve: data =>
http.post('/v1/year_plan/approve/' + data.taskId, 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 => {
const urlPost = config.url
let can = true
if (urlPost.indexOf('auth/login') > 0) {
can = false
}
if (!global.getLn() && can) {
// window.location.href = global.WEB_URL + '/login'
this.$router.push('/login')
}
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 => {
switch (response.data.code) {
case '-2':
global.logout()
// window.location.href = global.ssoURL
break
case '0':
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'
// Axios 全局配置
const httpJson = axios.create()
httpJson.defaults.baseURL = global.baseURL
httpJson.defaults.withCredentials = true
// 添加请求拦截器
httpJson.interceptors.request.use(
config => {
if (!global.getLn()) {
// window.location.href = global.ssoURL
}
const header = global.headersJson
// 无法获取情况下,设置登录 COOKIE
if (process.__TOKEN__) {
header.Cookie = 'uid=' + process.__TOKEN__
}
config.headers = header
config.transformRequest = global.transformRequestJSON
return config
},
error => {
return Promise.reject(error)
}
)
// 返回数据处理
// 返回格式 {code:业务码 , data: 内容 , msg: 描述}
httpJson.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)
if (error.response.status === 401) {
console.log('unauthorized, logging out ...')
}
return Promise.reject(error)
}
)
export default httpJson
/**
* HTTP 请求 axios dto 封装
*/
import axios from 'axios'
import global from './config'
import loading from './loading'
// 自定义 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 '0':
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)
}
)
export const https = instance
/**
* 系统模块
*/
export { default as sysResource } from './sys/sys-resource'
export { default as sysSso } from './sys/sys-sso'
export { default as sysUser } from './sys/sys-user'
export { default as sysOrg } from './sys/sys-org'
export { default as sysRole } from './sys/sys-role'
export { default as sysForm } from './sys/sys-form'
export { default as sysTableColumn } from './sys/sys-table-column'
export { default as sysMessage } from './sys/sys-message'
export { default as sysArea } from './sys/sys-area'
export { default as sysCity } from './sys/sys-city'
export { default as sysProvince } from './sys/sys-province'
export { default as sysCountry } from './sys/sys-country'
export { default as sysCompany } from './sys/sys-company'
export { default as sysModule } from './sys/sys-module'
export { default as sysSystem } from './sys/sys-system'
export { default as sysSms } from './sys/sys-sms'
export { default as sysEmail } from './sys/sys-email'
export { default as sysCompanyRelModule } from './sys/sys-company-rel-module'
export { default as sysFormRelResource } from './sys/sys-form-rel-resource'
export { default as sysWatermark } from './sys/sys-watermark'
export { default as sysLog } from './sys/sys-log'
export { default as equipLocation } from './equip/equipLocation'
export { default as equipType } from './equip/equipType'
export { default as drugFileManage } from './drug/drugFileManage'
export { default as drugRecord } from './drug/drugRecord'
export { default as fileManage } from './res/fileManage'
export { default as sysTemplate } from './sys/sys-template'
export { default as sysTemplateType } from './sys/sys-template-type'
export { default as consumeCategory } from './consume/consumeCategory'
export { default as consumeLedger } from './consume/consumeLedger'
export { default as consumeRelPurchase } from './consume/consumeRelPurchase'
export { default as consumePurchaseOrder } from './consume/consumePurchaseOrder'
export { default as consumeStock } from './consume/consumeStock'
export { default as consumeClassify } from './consume/consumeClassify'
export { default as consumeRelDelivery } from './consume/consumeRelDelivery'
export { default as consumeDeliveryOrder } from './consume/consumeDeliveryOrder'
export { default as consumeUseRecord } from './consume/consumeUseRecord'
export { default as equipPurchase } from './equip/equipPurchase'
export { default as equip } from './equip/equip'
export { default as equipPurchaseDetail } from './equip/equipPurchaseDetail'
export { default as equipRelDelivery } from './equip/equipRelDelivery'
export { default as equipUseRecord } from './equip/equipUseRecord'
export { default as equipMaintain } from './equip/equipMaintain'
export { default as equipRepair } from './equip/equipRepair'
export { default as equipRepairDoHis } from './equip/equipRepairDoHis'
export { default as equipRepairDo } from './equip/equipRepairDo'
export { default as equipScrapDo } from './equip/equipScrapDo'
export { default as equipScrapDoHis } from './equip/equipScrapDoHis'
export { default as equipCheckDoHis } from './equip/equipCheckDoHis'
export { default as equipMaintainManage } from './equip/equipMaintainManage'
export { default as staffType } from './staff/staffType'
export { default as staffInfo } from './staff/staffInfo'
export { default as staffProfessional } from './staff/staffProfessional'
export { default as envMonitor } from './env/envMonitor'
export { default as envMonitorRecord } from './env/envMonitorRecord'
export { default as staffExperience } from './staff/staffExperience'
export { default as staffEquip } from './staff/staffEquip'
export { default as staffSchedule } from './staff/staffSchedule'
export { default as staffStatus } from './staff/staffStatus'
export { default as staffTrainPlan } from './staff/staffTrainPlan'
export { default as staffTrainRecord } from './staff/staffTrainRecord'
export { default as staffTask } from './staff/staffTask'
export { default as car } from './res/car'
export { default as onlFormHead } from './online/onlFormHead'
/**
* 字典
*/
export { default as dict } from './res/dict'
/**
* 用户编组
*/
export { default as userGroup } from './res/user-group'
/**
* 用户编组
*/
export { default as customer } from './res/customer'
/**
* 供应商分类
*/
export { default as supplierType } from './res/supplier-type'
/**
* 服务类型
*/
export { default as serviceType } from './res/service-type'
/**
* 消息模块
*/
export { default as message } from './message/message'
export { default as messageType } from './message/message-type'
export { default as blackList } from './message/black-list'
/**
*工作流
*/
export { default as flowProcess } from './workflow/flow-process'
export { default as flowGroup } from './workflow/flow-group'
/**
* 打印模块
* */
export { default as printModule } from './print/print-module'
export { default as printTemplate } from './print/print-template'
export { default as printXml } from './print/print-xml'
export { default as printExport } from './print/print-export'
/**
* 资源模块
* */
export { default as codeRule } from './res/code-rule'
export { default as resEnum } from './res/enum'
export { default as resDict } from './res/dict'
export { default as componentFlow } from './res/component-flow'
export { default as chemicalRelDelivery } from './res/chemical-rel-delivery'
export { default as chemicalDeliveryOrder } from './res/chemical-delivery-order'
export { default as chemicalRelPurchase } from './res/chemical-rel-purchase'
export { default as chemicalPurchaseOrder } from './res/chemical-purchase-order'
export { default as chemical } from './res/chemical'
export { default as supplier } from './res/supplier'
export { default as equipRepairDetail } from './res/equip-repair-detail'
export { default as equipInfo } from './res/equip-info'
export { default as equipScrapDetail } from './res/equip-scrap-detail'
export { default as equipScrap } from './res/equip-scrap'
export { default as equipDeliveryOrder } from './equip/equipDeliveryOrder'
export { default as equipCheck } from './res/equip-check'
export { default as equipFile } from './res/equip-file'
export { default as equipMaintainDetail } from './res/equip-maintain-detail'
export { default as equipOrder } from './res/equip-order'
export { default as standard } from './aptitude/standard'
export { default as aptitudeItem } from './aptitude/aptitudeItem'
export { default as sampleType } from './aptitude/sampleType'
export { default as drugCatalogue } from './drug/drugCatalogue'
export { default as drugCatalogueItem } from './drug/drugCatalogueItem'
export { default as drugSample } from './drug/drugSample'
export { default as drugSampleKeep } from './drug/drugSampleKeep'
export { default as drugItem } from './drug/drugItem'
export {
default as frameUnconformRegister
} from './res/frame-unconform-register'
export {
default as frameUnconformRegisterRecord
} from './res/frame-unconform-register-record'
export { default as frameUnconformImprove } from './res/frame-unconform-improve'
export { default as qcMainPlan } from './frame/qcMainPlan'
export { default as qcSubPlan } from './frame/qcSubPlan'
export { default as qcSubPlanAttachment } from './res/qc-sub-plan-attachment'
export { default as abilityMainPlan } from './res/ability-main-plan'
export { default as abilitySubPlan } from './res/ability-sub-plan'
export {
default as abilitySubPlanAttachment
} from './res/ability-sub-plan-attachment'
export { default as yearPlan } from './res/year-plan'
export { default as monthPlan } from './res/month-plan'
export { default as monthPlanAttachment } from './res/month-plan-attachment'
export { default as chemicalHandleApply } from './res/chemical-handle-apply'
export { default as InnerCheck } from './res/inner-check'
export { default as ManageCheck } from './res/manage-check'
export { default as ProblemApprove } from './res/problem-approve'
export { default as ComplaintRegister } from './res/complaint-register'
/**
* 体系管理
*/
export { default as internalAudit } from './frame/internalAudit'
export { default as internalAuditManage } from './frame/internalAuditManage'
export { default as manageCheckPlan } from './frame/manageCheckPlan'
export { default as manageCheckDo } from './frame/manageCheckDo'
export { default as uncertaintyJudge } from './frame/uncertaintyJudge'
export { default as satisfactionItem } from './frame/satisfactionItem'
export { default as customerInvestigate } from './frame/customerInvestigate'
export { default as abilityMainCheck } from './frame/abilityMainCheck'
export { default as abilitySubCheck } from './frame/abilitySubCheck'
export {
default as customerInvestigateDetail
} from './frame/customerInvestigateDetail'
/**
* 加载
*/
import { Notification } from 'element-ui'
function toasts(message) {
Notification.error({
title: '提示',
message: message,
duration: 5000
})
}
const toast = {
show: function(type, message) {
console.log('===message==' + message)
let finalMessage = message
if (!finalMessage) {
switch (type) {
case 1000:
finalMessage = '没有权限'
break
case -201:
finalMessage = '没有用户'
break
case -1:
finalMessage = '没有权限'
break
default:
finalMessage = '网络错误'
break
}
finalMessage += type
}
toasts(finalMessage)
}
//
// showMessage: function(message) {
// toasts(message)
// },
//
// showLoading: function(show) {
// if (show) {
// iView.LoadingBar.start()
// } else {
// iView.LoadingBar.finish()
// }
// }
}
export default {
toast
}
/**
* 黑名单信息相关
*/
import http from '../http'
export default {
page: data => http.post('/message/v1/black_list/page', data).then(res => res),
add: data => http.post('/message/v1/black_list/', data).then(res => res),
edit: data =>
http.put('/message/v1/black_list/' + data.id, data.obj).then(res => res),
deleteByIds: ids =>
http.delete('/message/v1/black_list/?ids=' + ids).then(res => res),
getById: id => http.get('/message/v1/black_list/' + id).then(res => res),
open: ids =>
http.post('/message/v1/black_list/open/?ids=' + ids).then(res => res),
deny: ids =>
http.post('/message/v1/black_list/deny/?ids=' + ids).then(res => res)
}
/**
* 系统消息表相关
*/
import http from '../http'
export default {
page: data =>
http.post('/message/v1/message_type/page', data).then(res => res),
list: () => http.post('/message/v1/message_type/my').then(res => res),
add: data => http.post('/message/v1/message_type/', data).then(res => res),
edit: data =>
http.put('/message/v1/message_type/' + data.id, data.obj).then(res => res),
deleteByIds: ids =>
http.delete('/message/v1/message_type/?ids=' + ids).then(res => res),
getById: id => http.get('/message/v1/message_type/' + id).then(res => res),
getLinkByType: data =>
http.post('/message/v1/message_type/get_by_msgType', data).then(res => res)
}
/**
* 系统消息表相关
*/
import http from '../http'
export default {
page: data => http.post('/v1/message/page', data).then(res => res),
list: () => http.post('/v1/message/my').then(res => res),
add: data => http.post('/v1/message/', data).then(res => res),
edit: data =>
http.put('/message/v1/message/' + data.id, data.obj).then(res => res),
deleteByIds: ids =>
http.delete('/message/v1/message/?ids=' + ids).then(res => res),
// 一键删除
deleteAll: () => http.delete('/message/v1/message/all').then(res => res),
getById: id => http.get('/message/v1/message/' + id).then(res => res),
send: data =>
http
.post('/message/v1/message/send_' + data.id + '?userIds=' + data.userIds)
.then(res => res),
myPage: data => http.post('/v1/message/page_my', data).then(res => res),
read: ids =>
http.post('/message/v1/message/read?relIds=' + ids).then(res => res),
// 一键标记为已读
readAll: () => http.post('/message/v1/message/read_all').then(res => res)
}
import http from '../http'
import { https } from '../https'
export default {
page: data => http.post('/v1/onl_form_head/page', data).then(res => res),
deleteById: id => http.delete('/v1/onl_form_head/' + id).then(res => res),
getById: id => http.get('/v1/onl_form_head/' + id).then(res => res),
edit: data =>
http.put('/v1/onl_form_head?id=' + data.id, data.obj).then(res => res),
add: data => http.post('/v1/onl_form_head/', data).then(res => res),
synchTable: data =>
http.post('/v1/onl_form_head/synch-table?id=' + data).then(res => res),
addOnlineTable: data =>
https
.post('/v1/onl_form_head/add-online-table', JSON.stringify(data))
.then(res => res)
}
/**
* 报表导出表
*/
import http from '../http'
import httpJson from '../httpJson'
export default {
page: data => {
const pages = data.page === undefined ? 1 : data.page
const obj = httpJson
.post('/print/v1/export/page?page=' + pages + '&rows=' + data.rows, data)
.then(res => res)
return obj
},
add: data => http.post('/print/v1/export/', data).then(res => res),
edit: data =>
http.put('/print/v1/export/' + data.id, data.obj).then(res => res),
deleteById: data => http.delete('/print/v1/export/' + data).then(res => res)
}
/**
* 打印模块
*/
import http from '../http'
export default {
// page
page: data => http.post('/print/v1/print_module/page', data).then(res => res),
add: data => http.post('/print/v1/print_module/', data).then(res => res),
edit: data =>
http.put('/print/v1/print_module/' + data.id, data.obj).then(res => res),
getById: data => http.get('/print/v1/print_module/' + data).then(res => res),
getModule: () => http.post('/print/v1/print_module/list').then(res => res)
}
/**
* 打印模版
*/
import http from '../http'
export default {
// page
page: data =>
http.post('/print/v1/print_template/page', data).then(res => res),
add: data => http.post('/print/v1/print_template/', data).then(res => res),
edit: data =>
http.put('/print/v1/print_template/' + data.id, data.obj).then(res => res),
getById: data => http.get('/print/v1/print_template/' + data).then(res => res)
}
/**
* 报表xml表
*/
import http from '../http'
export default {
// page
page: data => http.post('/print/v1/xml/page', data).then(res => res),
getById: data => http.get('/print/v1/xml/' + data).then(res => res),
deleteById: data => http.delete('/print/v1/xml/' + data).then(res => res)
}
/**
* 能力验证计划主表相关
*/
import http from '../http'
export default {
page: data =>
http.post('/v1/ability_main_plan/page_plan', data).then(res => res),
getById: id => http.get('/v1/ability_main_plan/' + id).then(res => res),
approve: data =>
http
.post(
'/v1/ability_main_plan/approve/' +
data.id +
'?reason=' +
data.reason +
'&status=' +
data.status
)
.then(res => res)
}
/**
* 内部质控计划子表附件表相关
*/
import http from '../http'
export default {
page: data =>
http.post('/res/v1/ability_sub_plan_attachment/page', data).then(res => res)
}
/**
* 能力验证计划子表相关
*/
import http from '../http'
export default {
getById: id => http.get('/v1/ability_sub_plan/' + id).then(res => res),
pageCheck: data =>
http.post('/v1/ability_sub_plan/page_sub_plan', data).then(res => res)
}
import http from '../http'
export default {
// 根据分类查询
getItem: data =>
http.get('/v1/car_info/dict_class_item?classType=' + data).then(res => res),
pageCarManage: data =>
http.post('/v1/car_info/page_car_manage', data).then(res => res),
getById: id => http.get('/v1/car_info/' + id).then(res => res),
deleteById: id => http.delete('/v1/car_info/' + id).then(res => res),
edit: data => http.put('/v1/car_info/' + data.id, data.obj).then(res => res),
add: data => http.post('/v1/car_info/', data).then(res => res)
}
/**
* 试验耗材出库单表相关
*/
import http from '../http'
export default {
getById: id =>
http.get('/res/v1/chemical_delivery_order/' + id).then(res => res),
approve: data =>
http
.post('/res/v1/chemical_delivery_order/flow_approve/' + data.id, data)
.then(res => res)
}
/**
*
*/
import http from '../http'
export default {
getApproveInfoById: id =>
http
.post(
'/res/v1/chemical_handle_apply/handle_apply_info_for_check?id=' + id
)
.then(res => res),
pageApprove: data =>
http
.post('/res/v1/chemical_handle_apply/page_chemical_by_handle_id', data)
.then(res => res),
approve: data =>
http
.post('/res/v1/chemical_handle_apply/flow_approve/' + data.taskId, data)
.then(res => res)
}
/**
* 试验耗材采购单表相关
*/
import http from '../http'
export default {
getById: id =>
http.get('/res/v1/chemical_purchase_order/' + id).then(res => res),
// 一级评审
approve: data =>
http
.post('/res/v1/chemical_purchase_order/approve/' + data.taskId, data)
.then(res => res),
// 二级评审
approveManager: data =>
http
.post('/res/v1/chemical_purchase_order/approve_manager/' + data.id, data)
.then(res => res)
}
/**
* 试验耗材采购关联表相关
*/
import http from '../http'
export default {
pageApprove: data =>
http
.post('/res/v1/chemical_rel_delivery/page_approve_order_id', data)
.then(res => res),
rejectPurchase: data =>
http
.post(
'/res/v1/chemical_rel_delivery/reject_' +
data.id +
'?remark=' +
data.remark
)
.then(res => res),
// 耗材出库审批流 --行编辑保存
applyTempEdit: data =>
http
.put('/res/v1/chemical_rel_delivery/' + data.id, data.obj)
.then(res => res)
}
/**
* 试验耗材申请表相关
*/
import http from '../http'
export default {
purchaseChemicalPage: data =>
http.post('/res/v1/chemical_rel_purchase/page', data).then(res => res),
editChemical: data =>
http
.put('/res/v1/chemical_rel_purchase/' + data.id, data.obj)
.then(res => res),
rejectPurchase: data =>
http
.post(
'/res/v1/chemical_rel_purchase/reject_' +
data.id +
'?remark=' +
data.remark
)
.then(res => res)
}
import http from '../http'
export default {
getItems: data =>
http.get('/v1/chemical_category/get_tree', data).then(res => res)
}
/**
* 编号规则相关
*/
import http from '../http'
export default {
// page
page: data => http.post('/v1/code_rule/page', data).then(res => res),
add: data => http.post('/v1/code_rule/', data).then(res => res),
login: data => http.post('/v1/auth/login', data).then(res => res),
edit: data => http.put('/v1/code_rule/' + data.id, data.obj).then(res => res),
getById: data => http.get('/v1/code_rule/' + data).then(res => res),
ruleRecord: data =>
http.post('/v1/code_rule/page_rule_record', data).then(res => res),
editRuleRecord: data =>
http.put('/v1/code_rule/record_' + data.id, data).then(res => res)
}
import http from '../http'
export default {
getById: id =>
http.get('/res/v1/frame_complaint_register/' + id).then(res => res),
approve: data =>
http
.post('/res/v1/frame_complaint_register/approve/' + data.taskId, data)
.then(res => res)
}
/**
* 组件相关
*/
import http from '../http'
import httpJson from '../httpJson'
export default {
// 标准版委托保存
saveContract: data =>
httpJson
.post(
'/res/v1/component_flow/save_configure_flow?companyId=' +
data.companyId,
data.dto
)
.then(res => res),
saveFoodFlow: data =>
httpJson
.post(
'/res/v1/component_flow/save_configure_flow/' +
data.type +
'?companyId=' +
data.companyId,
data.dto
)
.then(res => res),
saveSimpleContract: data =>
httpJson
.post(
'/res/v1/component_flow/save_configure_flow_simple?companyId=' +
data.companyId,
data.dto
)
.then(res => res),
saveItem: data =>
httpJson
.post(
'/res/v1/component_flow/save_item_configure_flow?companyId=' +
data.companyId,
data.dto
)
.then(res => res),
flowOption: data =>
http
.post('/res/v1/component_flow/env_contract_flow_option', data)
.then(res => res),
flowResult: data =>
http
.post('/res/v1/component_flow/env_contract_flow_result', data)
.then(res => res),
allStatus: data =>
http.post('/res/v1/component_flow/all_status', data).then(res => res)
}
import http from '../http'
export default {
pageCustomer: data => http.post('/v1/customer/page', data).then(res => res),
getById: id => http.get('/v1/customer/' + id).then(res => res),
edit: data => http.put('/v1/customer/' + data.id, data.obj).then(res => res),
add: data => http.post('/v1/customer/', data).then(res => res)
}
/**
* 字典相关
*/
import http from '../http'
export default {
// 根据分类查询
getItem: data =>
http.get('/v1/dict/dict_class_item?classType=' + data).then(res => res),
pageDict: data => http.post('/v1/dict/page', data).then(res => res),
getById: id => http.get('/v1/dict/' + id).then(res => res),
deleteById: id => http.delete('/v1/dict/' + id).then(res => res),
edit: data => http.put('/v1/dict/' + data.id, data.obj).then(res => res),
add: data => http.post('/v1/dict/', data).then(res => res)
}
/**
* 枚举类相关
*/
import http from '../http'
export default {
getByType: data => http.get('/v1/enum/' + data).then(res => res)
}
/**
* 相关
*/
import http from '../http'
import { https } from '../https'
export default {
getById: id => http.get('/v1/equip_check/' + id).then(res => res),
getVOById: id => http.get('/v1/equip_check/vo/' + id).then(res => res),
getTemp: id => http.get('/v1/equip_check/getTemp/').then(res => res),
pageDetails: data =>
http.post('/v1/equip_check/page_details', data).then(res => res),
approve: data =>
http.post('/v1/equip_check/approve/' + data.id, data).then(res => res),
addDetail: data =>
http
.post('/v1/equip_check/addDetail/?equipIds=' + data.equipIds, data.obj)
.then(res => res),
add: data => http.post('/v1/equip_check/add', data).then(res => res),
edit: data =>
https.put('/v1/equip_check/', JSON.stringify(data)).then(res => res),
addDo: data =>
https.post('/v1/equip_check/add/', JSON.stringify(data)).then(res => res)
}
import http from '../http'
export default {
getEquipOutById: id =>
http.get('/v1/equip_delivery_order/' + id).then(res => res)
}
/**
* 仪器附件相关
*/
import http from '../http'
export default {
getFileList: data =>
http.post('/res/v1/equip_file/list', data).then(res => res)
}
/**
* 仪器资产信息表相关
*/
import http from '../http'
export default {
page: data => http.post('/v1/equip_info/page_vo', data).then(res => res),
getParamListByName: data =>
http
.get('/v1/equip_info/searchlike?item=' + data.item + '&name=' + data.name)
.then(res => res),
edit: data =>
http.put('/v1/equip_info/?id=' + data.id, data.obj).then(res => res),
getById: id => http.get('/v1/equip_info/' + id).then(res => res),
getVOById: id => http.get('/v1/equip_info/vo/' + id).then(res => res),
add: data => http.post('/v1/equip_info/', data).then(res => res)
}
/**
* 仪器保养计划详情信息表相关
*/
import http from '../http'
export default {
page: data =>
http.post('/v1/equip_maintain_detail/page_vo', data).then(res => res),
deleteByIds: ids =>
http.delete('/v1/equip_maintain_detail/?ids=' + ids).then(res => res)
}
/**
* 仪器保养计划信息表相关
*/
import http from '../http'
export default {
addDetail: data =>
http.post('/res/v1/equip_maintain/addDetail/', data).then(res => res),
getById: id => http.get('/res/v1/equip_maintain/' + id).then(res => res),
approve: data =>
http
.post('/res/v1/equip_maintain/approve/' + data.id, data)
.then(res => res)
}
/**
* 仪器预约信息表相关
*/
import http from '../http'
export default {
getById: id => http.get('/res/v1/equip_order/' + id).then(res => res),
approve: data =>
http.post('/res/v1/equip_order/approve/' + data.id, 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.
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