代码提交

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

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

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

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

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

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

Loading…
Cancel
Save