工作台接口联调

dev-scheduling
姜雪 1 month ago
parent 40575de4af
commit fc0d72c277
  1. 5103
      package-lock.json
  2. 16
      src/api/desk/completedTasks.js
  3. 16
      src/api/desk/myMessage.js
  4. 16
      src/api/desk/todoList.js
  5. 43
      src/views/desk/completedTasks.vue
  6. 85
      src/views/desk/myMessage.vue
  7. 95
      src/views/desk/todoList.vue
  8. 37
      src/views/qualityManagement/tankSolutionSystem/tankSolutionTaskDispose.vue
  9. 3
      vite.config.mjs

5103
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -0,0 +1,16 @@
import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/blade-desk/mesApprovalRecord/pageMyHistoryApprovalRecord',
method: 'get',
params: {
...params,
current,
size,
},
cryptoToken: false,
cryptoData: false,
});
};

@ -0,0 +1,16 @@
import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/blade-desk/mesNotifyMessage/page',
method: 'get',
params: {
...params,
current,
size,
},
cryptoToken: false,
cryptoData: false,
});
};

@ -0,0 +1,16 @@
import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/blade-desk/mesApprovalRecord/pageMyApprovalRecord',
method: 'get',
params: {
...params,
current,
size,
},
cryptoToken: false,
cryptoData: false,
});
};

@ -26,6 +26,7 @@
</template>
<script>
import { getList} from '@/api/desk/completedTasks';
export default {
data() {
return {
@ -194,38 +195,16 @@ export default {
this.onLoad();
},
onLoad(page, params = {}) {
this.loading = true;
this.data = [
{
id: 1,
type: 1,
title: '请审核张三提交的外协审批流程',
createUser: '张三',
status:1,
approvalTime:"2026-01-18 22:15:30",
createTime: '2026-01-05 09:06:32',
},
{
id: 2,
type: 2,
title: '请审核李四提交的仓管审批流程',
createUser: '张三',
status:1,
approvalTime:"2026-01-18 22:15:30",
createTime: '2026-01-12 09:06:32',
},
{
id: 3,
type: 3,
title: '请审核王五提交的槽液审批流程',
createUser: '张三',
status:2,
approvalTime:"2026-01-18 22:15:30",
createTime: '2026-01-15 09:06:32',
},
];
this.page.total = this.data.length;
this.loading = false;
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
console.log(res,'00000001');
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;
this.loading = false;
});
},
},
};

@ -30,6 +30,7 @@
</template>
<script>
import { getList} from '@/api/desk/myMessage';
export default {
data() {
return {
@ -215,43 +216,55 @@ export default {
return
}
},
onLoad(page, params = {}) {
this.loading = true;
this.data = [
{
id: 1,
type: 1,
title: '请审核张三提交的外协审批流程',
content:"审批信息审批信息审批信息审批信息审批信息审批信息审批信息审批信息审批信息审批信息",
createUser: '张三',
status:1,
approvalTime:"2026-01-18 22:15:30",
createTime: '2026-01-05 09:06:32',
},
{
id: 2,
type: 2,
title: '请审核李四提交的仓管审批流程',
content:"审批信息审批信息审批信息审批信息审批信息审批信息审批信息审批信息审批信息审批信息",
createUser: '张三',
status:1,
approvalTime:"2026-01-18 22:15:30",
createTime: '2026-01-12 09:06:32',
},
{
id: 3,
type: 1,
title: '请审核王五提交的槽液审批流程',
content:"审批信息审批信息审批信息审批信息审批信息审批信息审批信息审批信息审批信息审批信息",
createUser: '张三',
status:2,
approvalTime:"2026-01-18 22:15:30",
createTime: '2026-01-15 09:06:32',
},
];
this.page.total = this.data.length;
this.loading = false;
onLoad(page, params = {}) {
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
console.log(res,'00000001');
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;
this.loading = false;
});
},
// onLoad(page, params = {}) {
// this.loading = true;
// this.data = [
// {
// id: 1,
// type: 1,
// title: '',
// content:"",
// createUser: '',
// status:1,
// approvalTime:"2026-01-18 22:15:30",
// createTime: '2026-01-05 09:06:32',
// },
// {
// id: 2,
// type: 2,
// title: '',
// content:"",
// createUser: '',
// status:1,
// approvalTime:"2026-01-18 22:15:30",
// createTime: '2026-01-12 09:06:32',
// },
// {
// id: 3,
// type: 1,
// title: '',
// content:"",
// createUser: '',
// status:2,
// approvalTime:"2026-01-18 22:15:30",
// createTime: '2026-01-15 09:06:32',
// },
// ];
// this.page.total = this.data.length;
// this.loading = false;
// },
},
};
</script>

@ -22,6 +22,7 @@
</template>
<script>
import { getList} from '@/api/desk/todoList';
export default {
data() {
return {
@ -65,8 +66,8 @@ export default {
column: [
{
label: '类型',
prop: 'type',
label: '业务类型',
prop: 'bizType',
sortable: false,
type: 'select',
filter: true,
@ -74,14 +75,14 @@ export default {
search: true,
searchLabelWidth: 90,
dicData: [
{ label: '外协审批', value: 1 },
{ label: '外协审批', value: 'testType' },
{ label: '仓管审批', value: 2 },
{ label: '槽液审批', value: 3 },
],
},
{
label: '标题',
prop: 'title',
label: '业务内容',
prop: 'content',
sortable: false,
filter: true,
span: 12,
@ -90,7 +91,7 @@ export default {
},
{
label: '创建人',
prop: 'createUser',
prop: 'currentRoleName',
sortable: false,
filter: true,
span: 12,
@ -123,7 +124,24 @@ export default {
data: [],
};
},
methods: {
hanleView(row){
// id
const typeMap = {
1: { path: '/oem/oemApproval/index', label: '外协审批' },
2: { path: '/warehouseManagement/warehouseRequest/index', label: '仓管审批' },
3: { path: '/qualityManagement/tankSolutionSystem/tankSolutionTaskDispose', label: '槽液审批' },
};
const target = typeMap[row.type];
if (target) {
this.$router.push({
path: target.path,
state: { id: row.id }
});
}
},
searchReset() {
this.query = {};
this.onLoad(this.page);
@ -143,34 +161,47 @@ export default {
refreshChange() {
this.onLoad();
},
onLoad(page, params = {}) {
this.loading = true;
this.data = [
{
id: 1,
type: 1,
title: '请审核张三提交的外协审批流程',
createUser: '张三',
createTime: '2026-01-05 09:06:32',
},
{
id: 2,
type: 2,
title: '请审核李四提交的仓管审批流程',
createUser: '张三',
createTime: '2026-01-12 09:06:32',
},
{
id: 3,
type: 3,
title: '请审核王五提交的槽液审批流程',
createUser: '张三',
createTime: '2026-01-15 09:06:32',
},
];
this.page.total = this.data.length;
this.loading = false;
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
console.log(res,'00000001');
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;
this.loading = false;
});
},
// onLoad(page, params = {}) {
// this.loading = true;
// this.data = [
// {
// id: 1,
// type: 1,
// title: '',
// createUser: '',
// createTime: '2026-01-05 09:06:32',
// },
// {
// id: 2,
// type: 2,
// title: '',
// createUser: '',
// createTime: '2026-01-12 09:06:32',
// },
// {
// id: 3,
// type: 3,
// title: '',
// createUser: '',
// createTime: '2026-01-15 09:06:32',
// },
// ];
// this.page.total = this.data.length;
// this.loading = false;
// },
},
};
</script>

@ -110,6 +110,7 @@ export default {
total: 0,
},
search:{},
taskId: null, // state id
showDialog: false,
rowId: '',
rowObj: {},
@ -509,7 +510,22 @@ export default {
catchInfoOpen:false,//
}
},
mounted() { },
created() {
// state id
const id = history.state?.id;
if (id) {
console.log('传递的 id:', id);
this.taskId = id;
// 使 id
this.onLoad(this.page, { ...this.search, id });
} else {
// id
this.onLoad(this.page, this.search);
}
},
mounted() {
},
methods: {
//
catchInfoFn(row){
@ -590,7 +606,7 @@ export default {
this.getMedicineOpen = false
this.catchInfoOpen = false
if(val){
this.onLoad()
this.onLoad(this.page, { ...this.search, id: this.taskId })
}
},
//
@ -638,7 +654,7 @@ export default {
receiveTask({id:row.id}).then(res =>{
if(res.data.code == 200){
this.$message.success('接收成功')
this.onLoad()
this.onLoad(this.page, { ...this.search, id: this.taskId })
}
})
})
@ -669,7 +685,7 @@ export default {
type: 'success',
message: '撤回成功'
});
this.onLoad()
this.onLoad(this.page, { ...this.search, id: this.taskId ,})
}
})
@ -717,14 +733,15 @@ export default {
refreshChange() {
this.onLoad(this.page, this.query);
},
onLoad() {
console.log('sear-------------',this.search)
onLoad(page, params) {
console.log('sear-------------', this.search)
this.loading = true
getDealList({
current:this.page.currentPage,
size:this.page.pageSize,
status:this.search.statusValue,
workCenterId:this.search.workCenterId,
current: page?.currentPage || this.page.currentPage,
size: page?.pageSize || this.page.pageSize,
status: params?.statusValue || this.search.statusValue,
workCenterId: params?.workCenterId || this.search.workCenterId,
id: params?.id || this.taskId, // id
}).then(res =>{
this.data = res.data.data.records
this.data.map(item =>{

@ -61,10 +61,11 @@ export default ({ mode, command }) => {
port: 2888,
proxy: {
'/api': {
target: 'http://192.168.0.104:80',//本地
// target: 'http://192.168.1.5:82',
// target: "http://192.168.1.4:82",
// target:'http://49.232.74.228:82',
target: "http://192.168.0.7",
// target: "http://192.168.0.7",
//target: 'https://saber3.bladex.cn/api',
// target: 'http://49.232.74.228:82',
// target: "http:192.168.0.220:80",

Loading…
Cancel
Save