代码提交

test
zhangdi 1 year ago
parent c1e5623908
commit cc30168a60
  1. 53
      api/api.js
  2. 3
      pages/home/index.vue
  3. 4
      pages/my/my.vue
  4. 71
      pages/order/tasking.vue
  5. 19
      pages/submission/records.vue
  6. 2
      utils/request.js

@ -14,13 +14,13 @@ const install = (Vue, vm) => {
let logout = () => http.get('/blade-auth/oauth/logout')
// 注册
let registerUser = (params) => http.post('/blade-system/user/register/save-user', params, {
authorization: false,
authorizations: true,
isparams: true
})
// 发送验证码 /
let sendVerify = (params) => http.get('/blade-system/user/register/send-verify-code', params, {
authorization: false,
authorizations: true,
isparams: true
})
@ -29,7 +29,7 @@ const install = (Vue, vm) => {
// 登录记录
let getLoginRecords = (params) => http.get('/blade-log/api/logOnList', params, {
authorization: false,
authorizations: true,
isparams: true
})
// 修改记录
@ -40,124 +40,121 @@ const install = (Vue, vm) => {
// 业务类型查询
let getChildList = (params) => http.get('/blade-system/dict-biz/child-list', { ...params }, {
authorization: false,
authorizations: true,
isparams: true
})
// 获取设备列表
let getDeviceList = (params) => http.get('/device/list', { ...params }, {
authorization: false,
authorizations: true,
isparams: true
})
// 需求提报 提交接口
let workOrderSave = (params) => http.post('/workOrder/save', params, {
authorization: false,
authorizations: true,
isparams: false
})
// 需求提报 列表 /lab/workOrder/list
let getWorkOrderRecords = (params) => http.get('/workOrder/list', { ...params }, {
authorization: false,
authorizations: true,
isparams: false
})
// 根据id查询故障详情
let getBreakdownInfo = (params) => http.get('/workOrder/detail', { ...params }, {
authorization: false,
authorizations: true,
isparams: false
})
// 修改白送 /lab/workOrder/update
let workOrderupdate = (params) => http.post('/workOrder/update', params, {
authorization: false,
authorizations: true,
isparams: true
})
// 评价提交
let evaluateSign = (params) => http.post('/workOrder/evaluateSign', params, {
authorization: false,
authorizations: true,
isparams: false
})
// 获取维修人员 /
let getRepairPersons = (params) => http.get('/blade-system/user/repairPersons', { ...params }, {
authorization: false,
authorizations: true,
isparams: false
})
// 获取物料列表数据 goods/list
let getGoodsList = (params) => http.get('/goods/list', params, {
authorization: false,
authorizations: true,
isparams: false
})
// 巡检计划列表 /
let getDictionaryList = (params) => http.get('/blade-system/dict/dictionary?code=flow', params, {
authorization: false,
authorizations: true,
isparams: false
})
// 获取人员列表
let getUserList = (params) => http.get('/blade-system/user/page', { ...params }, {
authorization: false,
authorizations: true,
isparams: true
})
// 工作台
// 实验室巡检 /workBenches/workList
let workList = (params) => http.get('/workBenches/workList', { ...params }, {
authorization: false,
authorizations: true,
isparams: true
})
// 设备报警
let deviceList = (params) => http.get('/workBenches/deviceList', { ...params }, {
authorization: false,
authorizations: true,
isparams: true
})
// 维修柱状图
let upkeepStat = (params) => http.get('/workBenches/upkeepStat', { ...params }, {
authorization: false,
authorizations: true,
isparams: true
})
// 故障现象分类 workBenches/pieStat
let pieStat = (params) => http.get('/workBenches/pieStat', { ...params }, {
authorization: false,
authorizations: true,
isparams: true
})
// 工作台 workBenches/overview
let overview = (params) => http.get('/workBenches/overview', { ...params }, {
authorization: false,
isparams: true
})
let overview = (params) => http.get('/workBenches/overview')
// 获取用户信息 /
let getUserInfo = (params) => http.get('/blade-system/user/info', { ...params }, {
authorization: false,
authorizations: true,
isparams: true
})
// 派单 /lab/workOrder/update
let sendOrders = (params) => http.get('/workOrder/update', { ...params }, {
authorization: false,
authorizations: true,
isparams: true
})
// 客服关闭接口 /
let cloneOrder = (params) => http.post('/workOrder/clone', params, {
authorization: false,
authorizations: true,
isparams: false
})
// 需求编辑 editData
let editData = (params) => http.post('/workOrder/update', params, {
authorization: false,
authorizations: true,
isparams: false
})
// 维修人员驳回 /
let repairReject = (params) => http.post('/workOrder/repairReject', params, {
authorization: false,
authorizations: true,
isparams: false
})
// 申领单提交 /
let applySave = (params) => http.post('/apply/save', params, {
authorization: false,
authorizations: true,
isparams: false
})

@ -99,8 +99,7 @@ export default {
getUserInfo() {
this.$u.api.getUserInfo().then(res => {
if (res.code == 200) {
if (res.data.backGroundPic != '') {
if (res.data?.backGroundPic!=undefined) {
this.swiperList.push(res.data.backGroundPic)
} else {
this.swiperList.push(require("@/static/images/home/lab.png"))

@ -137,8 +137,8 @@ export default {
height: 136rpx;
margin: 36rpx;
border-radius: 50%;
border: 1px solid #000;
border: 1px solid #ccc;
overflow: hidden;
image {
width: 100%;
height: 100%;

@ -33,45 +33,38 @@ export default {
this.$nextTick(() => {
this.$refs.tablist.getRecordsList()
this.$refs.tabbarRef.getPermission();
// 1839536982874193922
// 2 3 4
if (this.dataTypes == 2) {
this.tabList = [
{
name: "全部",
key: "9999",
},
{
name: "待提报",
key: "-1",
},
{
name: "待接单",
key: "0",
},
{
name: "待维修",
key: "2",
key: "1,2,3,4",
},
{
name: "维修完成",
key: "4",
},
{
name: "待评价",
name: "维修中",
key: "5",
},
{
name: "完成",
name: "维修完成",
key: "6",
},
{
name: "已驳回",
key: "7,8",
name: "待付款",
key: "7",
},
{
name: "已关闭",
key: "9",
name: "已完成",
key: "8,9",
},
]
}
// 1839537055389515777
@ -82,28 +75,32 @@ export default {
key: "9999",
},
{
name: "待维修",
name: "已驳回",
key: "2",
},
{
name: "维修完成",
name: "待审批",
key: "3",
},
{
name: "已通过",
key: "4",
},
{
name: "待评价",
name: "维修中",
key: "5",
},
{
name: "完成",
name: "维修完成",
key: "6",
},
{
name: "已驳回",
key: "7,8",
name: "代付款",
key: "7",
},
{
name: "已关闭",
key: "9",
name: "已完成",
key: "8,9",
},
]
}
@ -115,32 +112,20 @@ export default {
key: "9999",
},
{
name: "待确认",
key: "1",
},
{
name: "待维修",
key: "2,3",
name: "待提交",
key: "2",
},
{
name: "维修完成",
key: "4",
name: "待审批",
key: "3,4",
},
{
name: "待评价",
name: "维修中",
key: "5",
},
{
name: "已完成",
key: "6",
},
{
name: "已驳回",
key: "7,8",
},
{
name: "已关闭",
key: "9",
name: "维修完成",
key: "6,7,8,9",
},
]
}

@ -27,25 +27,26 @@ export default {
name: "待维修",
key: "1,2,3",
},
{
name: "已驳回",
key: "7,8",
},
{
name: "维修完成",
name: "确认方案",
key: "4",
},
{
name: "待评价",
name: "维修中",
key: "5",
},
{
name: "已完成",
name: "待评价",
key: "6",
},
{
name: "已关闭",
key: "9",
name: "代付款",
key: "7",
},
{
name: "已完成",
key: "8,9",
},
],

@ -36,6 +36,8 @@ const install = (Vue, vm) => {
if (!authorization) {
config.header['Authorization'] = `Basic ${Base64.encode(`${website.clientId}:${website.clientSecret}`)}`;
}
//
config.header['blade-requested-with'] ='BladeHttpRequest'
if(config.header.isparams){
config.params = config.data
}

Loading…
Cancel
Save