工艺管理问题修改

dev-scheduling
zhangdi 2 months ago
parent 7c1a6c1c97
commit bb9a88835b
  1. 2
      src/styles/variables.scss
  2. 1
      src/views/processManagement/basicProcesses.vue
  3. 6
      src/views/processManagement/components/inPlantMaintenance.vue
  4. 9
      src/views/processManagement/components/processMainte/processPlanning.vue
  5. 48
      src/views/processManagement/components/processMainte/reworkProcessPlanning.vue
  6. 1
      src/views/processManagement/inPlantProcess.vue
  7. 90
      src/views/processManagement/procepssPlanning.vue

@ -1,5 +1,5 @@
// $sidebar_width: 200px;
$sidebar_width: 240px;
$sidebar_width: 220px;
$sidebar_collapse: 65px;
$top_height: 60px;
// $top_height: 50px;

@ -214,6 +214,7 @@ export default {
headerAlign: 'center',
align: 'center',
searchLabelWidth: 120,
width: 140,
type: 'select',
filterable:true,
clearable: true,

@ -73,7 +73,7 @@ export default {
tip: false,
simplePage: true,
searchShow: true,
searchMenuSpan: 6,
searchMenuSpan: 12,
searchIcon: true,
searchIndex: 3,
tree: false,
@ -142,6 +142,7 @@ export default {
{
label: '产线',
prop: 'equipmentId',
searchLabelWidth:50,
search: true,
sortable: true,
filter: true,
@ -166,7 +167,7 @@ export default {
{
label: '产线',
prop: 'equipmentName',
search: true,
search: false,
sortable: true,
filter: true,
span: 12,
@ -177,6 +178,7 @@ export default {
addDisplay:false,
editDisplay:false,
},
{
label: '确认名称',

@ -718,7 +718,6 @@ export default {
let tsj = this.dictionaryData.find(item => item.dictValue == '涂箭头');
sum_ += parseInt(this.partInfoData.tsjNum) * tsj.dictKey;
}
// console.log(sum_, 'sum_');
this.form1.tableData1[index].proHours = parseFloat(sum_.toFixed(2));
}
},
@ -879,9 +878,7 @@ export default {
if (parentNode && parentNode.data && !parentNode.isRoot) {
this.parentData = parentNode.data; //
console.log('父节点数据:', this.parentData);
} else {
console.log('当前节点无父节点(可能是根节点)');
}
this.treeLeave = node.level;
@ -954,7 +951,6 @@ export default {
const node = this.contextTreeNode;
const nodeId = node.data.id;
console.log('删除的节点ID:', node, nodeId);
try {
//
await this.$confirm('此操作将删除该工艺及所有子工序,是否继续?', '警告', {
@ -962,7 +958,6 @@ export default {
cancelButtonText: '取消',
type: 'warning',
});
console.log('需要删除的子工序ID列表:', node);
// APIAPI
await craftBatchRemoval({ id: node.data.id }).then(res => {
this.$message.success('删除成功');
@ -970,7 +965,6 @@ export default {
});
} catch (error) {
if (error !== 'cancel') {
console.error('删除失败:', error);
this.$message.error('删除失败,请重试');
}
} finally {
@ -980,7 +974,6 @@ export default {
// tab
handleClick(value) {
console.log(999999, value);
this.form1.deleteIds = [];
this.form2.deleteIds = [];
this.form3.deleteIds = [];
@ -1180,9 +1173,7 @@ export default {
if (isReturn == 1) {
return this.$message.warning('涂色标的工时定额必须大于0,请修改!');
}
console.log(898989, this.partInfoData);
// const res = await getPartDetail(this.partId);
// console.log(res);
let dsCraftMold = this.partInfoData;
if (dsCraftMold.markingsTest == '1') {

@ -655,7 +655,7 @@ export default {
standardList: [], //
tempId: 0,
filteredList: [],
dictionaryData:[],
dictionaryData: [],
};
},
mounted() {
@ -666,7 +666,7 @@ export default {
this.getProject();
this.getTeamSetList();
this.getStandardList();
this.getDictionary()
this.getDictionary();
},
methods: {
// getPartList(){
@ -675,10 +675,10 @@ export default {
// });
// },
//
getDictionary(){
getDictionary({code:'part_info'}).then(res=>{
this.dictionaryData = res.data.data
})
getDictionary() {
getDictionary({ code: 'part_info' }).then(res => {
this.dictionaryData = res.data.data;
});
},
//
projectChange(row, index) {
@ -709,24 +709,22 @@ export default {
processChange(row, index) {
let selectName = this.processSetOption.find(item => item.id == row.processInfo.ppsId);
this.form1.tableData1[index].processInfo.ppsName = selectName.name;
if(this.form1.tableData1[index].processName.indexOf('涂色标') > -1){
console.log(this.partInfoData,this.dictionaryData,'this.partInfoData');
if (this.form1.tableData1[index].processName.indexOf('涂色标') > -1) {
// tsbNum tsdNum
let sum_ = 0
if(this.partInfoData.tsbNum){
let tsb=this.dictionaryData.find(item => item.dictValue == '涂色标')
sum_ += parseInt(this.partInfoData.tsbNum)*tsb.dictKey
let sum_ = 0;
if (this.partInfoData.tsbNum) {
let tsb = this.dictionaryData.find(item => item.dictValue == '涂色标');
sum_ += parseInt(this.partInfoData.tsbNum) * tsb.dictKey;
}
if(this.partInfoData.tsdNum){
let tsd=this.dictionaryData.find(item => item.dictValue == '涂色带')
sum_ += parseInt(this.partInfoData.tsdNum)*tsd.dictKey
if (this.partInfoData.tsdNum) {
let tsd = this.dictionaryData.find(item => item.dictValue == '涂色带');
sum_ += parseInt(this.partInfoData.tsdNum) * tsd.dictKey;
}
if(this.partInfoData.tsjNum){
let tsj=this.dictionaryData.find(item => item.dictValue == '涂箭头')
sum_ += parseInt(this.partInfoData.tsjNum)*tsj.dictKey
if (this.partInfoData.tsjNum) {
let tsj = this.dictionaryData.find(item => item.dictValue == '涂箭头');
sum_ += parseInt(this.partInfoData.tsjNum) * tsj.dictKey;
}
console.log(sum_,'sum_');
this.form1.tableData1[index].proHours = sum_
this.form1.tableData1[index].proHours = sum_;
}
},
//
@ -825,8 +823,6 @@ export default {
},
//
transformCraftTree(responseData) {
console.log('原始数据:', responseData); //
const { partInfo, craftList } = responseData;
const partCode = partInfo?.partCode || '未知零件';
@ -841,8 +837,9 @@ export default {
...craft,
label: `${craftInfo?.reworkOrder || '返工单'}`,
children: processList.map(process => {
console.log(989898, process);
const ppsName =
process.ppsName || process.name || process.processName || '未知工序';
process.processInfo.ppsName || process.processInfo.name || process.processInfo.processName || '未知工序';
// projectList
const projectChildren = (process.projectList || []).map(project => ({
@ -886,7 +883,6 @@ export default {
if (this.treeLeave === 2) {
this.activeName = '1';
this.form1.tableData1 = nodes.processList;
console.log('当前节点数据:', nodes.processList);
}
//
if (this.treeLeave === 3) {
@ -903,7 +899,6 @@ export default {
},
// tab
handleClick(value) {
// console.log(999999, value);
this.form1.deleteIds = [];
this.form2.deleteIds = [];
this.form3.deleteIds = [];
@ -1095,7 +1090,6 @@ export default {
if (this.treeLeave == 2) {
this.form1.tableData1.forEach(item => {
console.log('item4444', item);
newArr.push({
...item.processInfo,
processProjectVOList: item.projectList || [],
@ -1111,8 +1105,6 @@ export default {
processMoldToolVOList: this.treeNodes.moldToolList || [],
});
}
console.log('treeLeave', newArr);
// console.log('treeNodes', this.treeNodes);
let query_ = {
craft: {
partId: this.partId,

@ -205,6 +205,7 @@ export default {
headerAlign: 'center',
align: 'center',
type: 'select',
searchLabelWidth:50,
dicData: [
{
value: 0,

@ -145,96 +145,6 @@ export default {
searchMenuPosition: 'right',
align: 'center',
column: [
// {
// label: '',
// prop: 'partCode',
// search: true,
// sortable: true,
// overHidden: true,
// width: 210,
// hide: true,
// headerAlign: 'center',
// align: 'center',
// searchLabelWidth: 60,
// },
// {
// label: '',
// prop: 'partCode',
// search: true,
// sortable: true,
// overHidden: true,
// width: 210,
// hide: true,
// headerAlign: 'center',
// align: 'center',
// },
// {
// label: '',
// prop: 'partCode',
// search: true,
// sortable: true,
// overHidden: true,
// width: 210,
// hide: true,
// headerAlign: 'center',
// align: 'center',
// },
// {
// label: '',
// prop: 'partCode',
// search: true,
// sortable: true,
// overHidden: true,
// width: 210,
// hide: true,
// headerAlign: 'center',
// align: 'center',
// searchLabelWidth: 60,
// },
// {
// label: '',
// prop: 'partCode',
// search: true,
// sortable: true,
// overHidden: true,
// width: 210,
// hide: true,
// headerAlign: 'center',
// align: 'center',
// searchLabelWidth: 60,
// },
// {
// label: '',
// prop: 'partCode',
// search: true,
// sortable: true,
// overHidden: true,
// width: 210,
// hide: true,
// headerAlign: 'center',
// align: 'center',
// },
// {
// label: '',
// prop: 'partCode',
// search: true,
// sortable: true,
// overHidden: true,
// width: 210,
// hide: true,
// headerAlign: 'center',
// align: 'center',
// type: 'select',
// filterable:true,
// clearable: true,
// multiple: true,
// dicUrl:'/blade-desk/QA/InspectionItem/list?size=999999&current=1',
// props: {
// label: 'name',
// value: 'id',
// res:'res.records'
// },
// },
{
label: '零件号',
prop: 'partCode',

Loading…
Cancel
Save