diff --git a/src/api/processManagement/taskProcessing.js b/src/api/processManagement/taskProcessing.js
index 4fcbd05..28daf21 100644
--- a/src/api/processManagement/taskProcessing.js
+++ b/src/api/processManagement/taskProcessing.js
@@ -56,13 +56,11 @@ export const getPartDetail = (taskId) => {
}
// 查询任务工艺编制详情 dsTasking/processAuthorized
-export const getProcessAuthorized = (taskId) => {
+export const getProcessAuthorized = (params) => {
return request({
url: '/blade-desk/dsTasking/processAuthorized',
method: 'get',
- params: {
- taskId
- },
+ params: params,
});
}
@@ -121,7 +119,93 @@ export const taskReception = data => {
return request({
url: '/blade-desk/dsTasking/taskReception',
method: 'post',
- data
+ data:data
+ });
+}
+
+
+// 零件编制保存
+export const authorizedAccomplish = data => {
+ return request({
+ url: '/blade-desk/dsTasking/authorizedAccomplish',
+ method: 'post',
+ data:data
+ });
+}
+
+
+// 工艺编制保存
+export const authorizedAccomplish2 = data => {
+ return request({
+ url: '/blade-desk/dsTasking/authorizedAccomplish',
+ method: 'post',
+ data:data
+ });
+}
+
+
+// 工艺检验项目保存
+export const saveProcessProjectSave = data => {
+ return request({
+ url: '/blade-desk/dsTasking/saveProcessProjectSave',
+ method: 'post',
+ data:data
});
}
+
+
+
+// 工艺 尺寸量具保存
+export const saveProcessMeasuringTool = data => {
+ return request({
+ url: '/blade-desk/dsTasking/saveProcessMeasuringTool',
+ method: 'post',
+ data:data
+ });
+}
+
+// 工装保存
+export const saveProcessMoldTool = data => {
+ return request({
+ url: '/blade-desk/dsTasking/saveProcessMoldTool',
+ method: 'post',
+ data:data
+ });
+}
+
+// 工艺模板下拉数据
+export const getModelList = (params) => {
+ return request({
+ url: '/blade-desk/dsProModel/getModelList',
+ method: 'get',
+ params: params,
+ });
+}
+
+// 工艺模板下拉数据导入
+export const getModelDetailList = (params) => {
+ return request({
+ url: '/blade-desk/dsProDetail/getModelDetailList',
+ method: 'get',
+ params: params,
+ });
+}
+
+// 工序信息查询
+export const getProcessSetList = (params) => {
+ return request({
+ url: '/blade-desk/bsProcessSet/getProcessSetList',
+ method: 'get',
+ params: params,
+ });
+}
+
+// 工艺能力查询
+export const getCraftAbilityList = (params) => {
+ return request({
+ url: '/blade-desk/bsCraftAbility/getCraftAbilityList',
+ method: 'get',
+ params: params,
+ });
+}
diff --git a/src/api/productionSchedulingPlan/scheduling.js b/src/api/productionSchedulingPlan/scheduling.js
index d42a5a4..ac28cbd 100644
--- a/src/api/productionSchedulingPlan/scheduling.js
+++ b/src/api/productionSchedulingPlan/scheduling.js
@@ -23,10 +23,30 @@ export const getYieldOrderList = (current, size, params) => {
};
// 排产看板数据
-export const schedulingCount = row => {
+export const schedulingCount = params => {
return request({
url: '/blade-scheduling/workOrder/schedulingCount',
method: 'post',
+ params: params,
+ });
+};
+
+
+
+// 排产 获取班组
+export const selectTeam = params => {
+ return request({
+ url: '/blade-scheduling/workOrder/selectTeam',
+ method: 'get',
+ params: params,
+ });
+};
+
+// 排产 获取设备
+export const selectEquip = row => {
+ return request({
+ url: '/blade-scheduling/workOrder/selectEquip',
+ method: 'get',
data: row,
});
};
\ No newline at end of file
diff --git a/src/views/processManagement/components/assignDaialog.vue b/src/views/processManagement/components/assignDaialog.vue
index d00bae9..bbaac3d 100644
--- a/src/views/processManagement/components/assignDaialog.vue
+++ b/src/views/processManagement/components/assignDaialog.vue
@@ -83,17 +83,23 @@ export default {
this.updateRow.forEach((item, index) => {
arr.push(item.id);
});
- let query = {
- dtIdList: arr.join(','),
- userId: this.$refs.from.form.userId,
- // remarks:'任务分派'
- };
+
if (this.title == '转派') {
+ let query = {
+ craftMan: this.$refs.from.form.userId,
+ id: arr[0],
+ // remarks:'任务分派'
+ };
taskRedeploy(query).then(res => {
this.$message.success('操作成功!');
this.cancel(true);
});
} else {
+ let query = {
+ dtIdList: arr.join(','),
+ userId: this.$refs.from.form.userId,
+ // remarks:'任务分派'
+ };
setDispatch(query).then(res => {
this.$message.success('操作成功!');
this.cancel(true);
diff --git a/src/views/processManagement/components/processMainte/dsCraft.vue b/src/views/processManagement/components/processMainte/dsCraft.vue
index 76fa470..506b5d1 100644
--- a/src/views/processManagement/components/processMainte/dsCraft.vue
+++ b/src/views/processManagement/components/processMainte/dsCraft.vue
@@ -1,47 +1,91 @@
-
-
+
+
-
+
-
+
-
+
-
-
-
+
+
删除选择行
-
-
+
+
导入模板
-
+
{{ row.$cellEdit ? '保存' : '修改' }}
-
+
取消
@@ -51,22 +95,24 @@
+// }
+
diff --git a/src/views/processManagement/components/processMainte/dsPartBasicInfo.vue b/src/views/processManagement/components/processMainte/dsPartBasicInfo.vue
index 10d9858..88b8c6e 100644
--- a/src/views/processManagement/components/processMainte/dsPartBasicInfo.vue
+++ b/src/views/processManagement/components/processMainte/dsPartBasicInfo.vue
@@ -4,8 +4,15 @@
基本信息
-
+
@@ -24,8 +31,12 @@
-
+
@@ -71,7 +82,10 @@
-
+
@@ -131,7 +145,6 @@
-
@@ -150,85 +163,161 @@
-
+
-
+
-
-
+
-
+
-
+
-
+
-
+
-
+
- 镀金标识
- 涂色标
- 荧光检
- 热处理检验
- 喷码
+ 镀金标识
+ 涂色标
+ 荧光检
+ 热处理检验
+ 喷码
-
+
子件信息
-
-
+
@@ -854,4 +691,4 @@ export default {
}
}
}
-
\ No newline at end of file
+
diff --git a/src/views/processManagement/components/processMainte/dsPartIndex.vue b/src/views/processManagement/components/processMainte/dsPartIndex.vue
index c898498..8186f8e 100644
--- a/src/views/processManagement/components/processMainte/dsPartIndex.vue
+++ b/src/views/processManagement/components/processMainte/dsPartIndex.vue
@@ -5,12 +5,12 @@
+ :dialogType="dialogType" :partType="partType" :dsPartInfo="dsPartInfo" />
-
+
@@ -18,10 +18,10 @@
-
+
@@ -32,6 +32,11 @@
import dsPartBasicInfo from './dsPartBasicInfo.vue';
import dsCraftPage from './dsCraft.vue'
import processPlanning from './processPlanning.vue'
+
+import {
+ getPartDetail,getModelList
+} from '@/api/processManagement/taskProcessing';
+
export default {
name: 'DsPartIndex',
components: {
@@ -55,16 +60,23 @@ export default {
dialogType: {
type: String,
default: '',
+ },
+ updateRow:{
+ type:Object,
+ default:{}
}
},
data() {
return {
setCrewShow: false,
- activeName: '1'
+ activeName: '1',
+ dsPartInfo:{}
};
},
methods: {
+
opened() {
+ // this.getPartDetails()
// if (this.partId) {
// this.$refs.dsPartRef.loadData(this.partId);
// }
@@ -91,6 +103,11 @@ export default {
// this.$refs.dsPartRef.clear();
this.setCrewShow = false
this.$emit('cancel', typeof refresh === 'boolean' && refresh);
+ },
+ submit(){
+ if(this.activeName=='1'){
+ this.$refs.dsPartRef.submit()
+ }
}
},
mounted() {
diff --git a/src/views/processManagement/components/processMainte/partDetails.vue b/src/views/processManagement/components/processMainte/partDetails.vue
index 3b8b711..41f0f0e 100644
--- a/src/views/processManagement/components/processMainte/partDetails.vue
+++ b/src/views/processManagement/components/processMainte/partDetails.vue
@@ -400,7 +400,6 @@
@@ -345,13 +796,11 @@ export default {
.process-select {
padding: 12px;
background: #e4e7ed;
-
- :deep(.el-form-item) {
- margin-bottom: 0px !important;
- }
}
}
-
+ :deep(.el-form-item) {
+ margin-bottom: 0px !important;
+ }
.process-right {
padding: 12px;
flex: 1;
@@ -372,4 +821,10 @@ export default {
}
}
}
+
+:deep(.el-table .el-table__cell) {
+ height: 50px !important;
+ padding: 0 !important;
+ line-height: 50px !important;
+}
diff --git a/src/views/processManagement/procepssPlanning.vue b/src/views/processManagement/procepssPlanning.vue
index 735a803..74c2844 100644
--- a/src/views/processManagement/procepssPlanning.vue
+++ b/src/views/processManagement/procepssPlanning.vue
@@ -7,7 +7,6 @@
v-model="form"
v-model:page="page"
ref="crud"
- @row-del="rowDel"
@search-change="searchChange"
@search-reset="searchReset"
@selection-change="selectionChange"
diff --git a/src/views/processManagement/taskDispatch.vue b/src/views/processManagement/taskDispatch.vue
index 06beb34..03f86bf 100644
--- a/src/views/processManagement/taskDispatch.vue
+++ b/src/views/processManagement/taskDispatch.vue
@@ -226,10 +226,11 @@ export default {
},
// 设置班组人员弹框关闭
setCrewOpeSancel(isRefresh) {
- if (isRefresh) {
- this.$refs.myTable.load();
- }
+ // if (isRefresh) {
+ // this.$refs.myTable.load();
+ // }
this.setCrewOpen = false;
+ this.onLoad(this.page)
},
// 重置
searchReset() {
diff --git a/src/views/processManagement/taskProcessing.vue b/src/views/processManagement/taskProcessing.vue
index 88f0095..9a02bcf 100644
--- a/src/views/processManagement/taskProcessing.vue
+++ b/src/views/processManagement/taskProcessing.vue
@@ -24,6 +24,7 @@
详情
+
接收
完成
转派
@@ -69,7 +70,7 @@
-
+
@@ -87,6 +89,7 @@
@cancel="cancel"
:partType="partType"
:dialogType="dialogType"
+ :updateRow="updateRow"
>
@@ -292,11 +295,11 @@ export default {
dicData: [
{
value: 0,
- label: '待接收',
+ label: '待分派',
},
{
value: 1,
- label: '进行中',
+ label: '待接收',
},
{
value: 2,
@@ -350,6 +353,7 @@ export default {
title: '分派',
isTestOpen: false, //新增任务
detailsRow: {},
+ updateRow: [], //
};
},
methods: {
@@ -367,6 +371,7 @@ export default {
this.isReworkOpen = false;
this.showPartDetails = false;
this.setCrewOpen = false;
+ this.onLoad(this.page);
},
// 完成
completedFn(row) {
@@ -374,15 +379,15 @@ export default {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
- })
- .then(() => {
- completeSet({ taskIds: row.id }).then(res => {
- this.$message({
- type: 'success',
- message: '操作成功!',
- });
+ }).then(() => {
+ completeSet({ taskIds: row.id }).then(res => {
+ this.$message({
+ type: 'success',
+ message: '操作成功!',
});
- })
+ this.onLoad(this.page);
+ });
+ });
},
// 接收
receiveFn(row) {
@@ -390,16 +395,17 @@ export default {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
- })
- .then(() => {
- taskReception({ taskIds: row.id });
+ }).then(() => {
+ taskReception({ taskId: row.id }).then(res => {
this.$message({
type: 'success',
message: '操作成功!',
});
- // 数据回调进行刷新
- done(row);
});
+ this.onLoad(this.page);
+ // 数据回调进行刷新
+ done(row);
+ });
},
// 查看详情
viewDetails(partId, row, level) {
@@ -417,6 +423,7 @@ export default {
// 编制
organization(partId, row) {
this.partId = partId;
+ this.updateRow = row
if (row.taskType == '3') {
this.isReworkOpen = true;
} else {
@@ -431,8 +438,9 @@ export default {
}
},
// 转派
- setBathCrew() {
+ setBathCrew(row) {
this.setCrewOpen = true;
+ this.updateRow.push(row);
this.title = '转派';
},
// 重置