问题修改

dev-scheduling
zhangdi 1 month ago
parent 0d3dc89c75
commit 9b367d37f9
  1. 3
      src/views/orderManagement/components/mold/addMoldDailog.vue
  2. 6
      src/views/orderManagement/planYieIdOrder.vue
  3. 8
      src/views/orderManagement/sinTerYieIdOrder.vue
  4. 7
      src/views/processManagement/components/processMainte/dsPartBasicInfo.vue
  5. 46
      src/views/processManagement/components/processMainte/partDetails.vue
  6. 13
      src/views/productionManagement/components/outsourceDialog.vue
  7. 2
      src/views/productionManagement/reworkOrder/index.vue
  8. 8
      src/views/productionSchedulingPlan/basic/components/addEquipment.vue
  9. 10
      src/views/productionSchedulingPlan/basic/equipmentCapacity.vue
  10. 19
      src/views/productionSchedulingPlan/schedulingException/index.vue
  11. 98
      src/views/qualityManagement/inspectionArchiving/rbFilePreserve/index.vue

@ -340,8 +340,9 @@ export default {
this.quaLevelList = res.data.data this.quaLevelList = res.data.data
}) })
}, },
},
getUser(){ getUser(){
getUserByRoleAlias({roleAlias:'保管员'}).then(res =>{ getUserByRoleAlias({roleAlias:'dq_custodian'}).then(res =>{
this.keeperList = res.data.data this.keeperList = res.data.data
}) })
}, },

@ -58,9 +58,9 @@
<template #demandDate="{ row }"> <template #demandDate="{ row }">
{{ row.demandDate ? row.demandDate.substring(0, 10) : '' }} {{ row.demandDate ? row.demandDate.substring(0, 10) : '' }}
</template> </template>
<template #releaseDate="{ row }"> <!-- <template #releaseDate="{ row }">
{{ row.releaseDate ? row.releaseDate.substring(0, 10) : '' }} {{ row.releaseDate ? row.releaseDate.substring(0, 10) : '' }}
</template> </template> -->
</avue-crud> </avue-crud>
<!-- 加急 --> <!-- 加急 -->
@ -532,7 +532,7 @@ export default {
}, },
{ {
label: '计划员', label: '计划员',
prop: 'planUserName', prop: 'planUser',
search: false, search: false,
sortable: true, sortable: true,
width: 120, width: 120,

@ -78,9 +78,9 @@
<template #demandDate="{ row }"> <template #demandDate="{ row }">
{{ row.demandDate ? row.demandDate.substring(0, 10) : '' }} {{ row.demandDate ? row.demandDate.substring(0, 10) : '' }}
</template> </template>
<template #releaseDate="{ row }"> <!-- <template #releaseDate="{ row }">
{{ row.releaseDate ? row.releaseDate.substring(0, 10) : '' }} {{ row.releaseDate ? row.releaseDate.substring(0, 10) : '' }}
</template> </template> -->
</avue-crud> </avue-crud>
<!-- 加急 --> <!-- 加急 -->
@ -538,7 +538,7 @@ export default {
}, },
{ {
label: '需求数量', label: '需求数量',
prop: 'poQty', prop: 'ypQty',
search: false, search: false,
sortable: true, sortable: true,
width: 120, width: 120,
@ -592,7 +592,7 @@ export default {
}, },
{ {
label: '计划员', label: '计划员',
prop: 'planUserName', prop: 'planUser',
search: false, search: false,
sortable: true, sortable: true,
width: 120, width: 120,

@ -839,9 +839,10 @@ export default {
let selPart = this.locallyPlatedData.filter(item => { let selPart = this.locallyPlatedData.filter(item => {
return item.partCode == this.formData.partCode; return item.partCode == this.formData.partCode;
}); });
if (selPart.lenght > 0) { if (selPart.length > 0) {
if (this.partType == '') { if (this.partType == '热表') {
this.formData.goldMark = true; this.formData.goldMark = '1';
// this.$set(this.formData, 'goldMark', 1);
} }
} }
// this.formData.isClassCake = true; // this.formData.isClassCake = true;

@ -204,7 +204,13 @@
<el-col :span="24"> <el-col :span="24">
<el-form-item label="工艺校验:" prop="sinTer"> <el-form-item label="工艺校验:" prop="sinTer">
<div style="width: 100%"> <div style="width: 100%">
<el-checkbox v-model="formData.goldMark" disabled>镀金标识</el-checkbox> <el-checkbox
v-model="formData.goldMark"
:true-label="'1'"
:false-label="'0'"
disabled
>镀金标识</el-checkbox
>
<el-checkbox <el-checkbox
disabled disabled
v-model="formData.markingsTest" v-model="formData.markingsTest"
@ -587,6 +593,8 @@ import {
getVersion, getVersion,
getPlatingList, getPlatingList,
getProject, getProject,
getLocallyPlatedPartList,
getStandardList,
} from '@/api/processManagement/taskProcessing'; } from '@/api/processManagement/taskProcessing';
export default { export default {
@ -631,6 +639,7 @@ export default {
processLevel: '1', processLevel: '1',
rankList: [], rankList: [],
rank: '2', rank: '2',
partType: '',
priorityList: [ priorityList: [
{ {
label: '本次使用', label: '本次使用',
@ -795,10 +804,12 @@ export default {
projectOptions: [], projectOptions: [],
standardList: [], // standardList: [], //
tabLoading: false, // tabLoading: false, //
locallyPlatedData: [], //
}; };
}, },
mounted() { mounted() {
this.setCrewShow = this.isOpen; this.setCrewShow = this.isOpen;
this.getLocallyPlatedPartList();
if (this.detailsType == 'processPlanning') { if (this.detailsType == 'processPlanning') {
this.version = this.rowData.partVersion; this.version = this.rowData.partVersion;
this.partChange(this.rowData.id); this.partChange(this.rowData.id);
@ -811,6 +822,13 @@ export default {
// //
}, },
methods: { methods: {
//
getLocallyPlatedPartList() {
getLocallyPlatedPartList().then(res => {
this.locallyPlatedData = res.data.data;
console.log(res.data.data, 9898989);
});
},
getStandardList() { getStandardList() {
getStandardList().then(res => { getStandardList().then(res => {
this.standardList = res.data.data; this.standardList = res.data.data;
@ -934,7 +952,7 @@ export default {
// 5. // 5.
try { try {
this.$nextTick(() => { this.$nextTick(() => {
this.currentNodeKey = firstChild.id this.currentNodeKey = firstChild.id;
this.$refs.tree.setCurrentKey([firstChild.id], false); this.$refs.tree.setCurrentKey([firstChild.id], false);
}); });
} catch (error) { } catch (error) {
@ -1016,6 +1034,19 @@ export default {
} else { } else {
this.partType = '烧结'; this.partType = '烧结';
} }
// this.getLocallyPlatedPartList();
let selPart = this.locallyPlatedData.filter(item => {
return item.partCode == this.formData.partCode;
});
if (selPart.length > 0) {
if (this.partType == '热表') {
this.formData.goldMark = '1';
// this.$set(this.formData, 'goldMark', 1);
}
}
}); });
} else if (this.detailsType === 'taskProcessing') { } else if (this.detailsType === 'taskProcessing') {
let query_ = {}; let query_ = {};
@ -1040,6 +1071,17 @@ export default {
item.totalArea = (item.quota * item.area).toFixed(5); // 5 item.totalArea = (item.quota * item.area).toFixed(5); // 5
}); });
} }
// this.getLocallyPlatedPartList();
let selPart = this.locallyPlatedData.filter(item => {
return item.partCode == this.formData.partCode;
});
console.log('selPart', selPart);
if (selPart.length > 0) {
if (this.partType == '热表') {
this.formData.goldMark = '1';
// this.$set(this.formData, 'goldMark', 1);
}
}
}); });
} }
}, },

@ -18,7 +18,9 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-table :data="outsourceData" @selection-change="handleSelectionChange"> <el-table :data="outsourceData" @selection-change="handleSelectionChange">
<el-table-column align="center" type="selection"></el-table-column> <el-table-column align="center" type="selection" :selectable="checkSelectable" >
</el-table-column>
<el-table-column <el-table-column
align="center" align="center"
label="工序号" label="工序号"
@ -77,6 +79,15 @@ export default {
this.getListProProcess(); this.getListProProcess();
}, },
methods: { methods: {
checkSelectable(row, index) {
// handle true ( 1, )
//
// handle true /
return row.handle === true;
// handle handle 'Y'
// return row.handle === 'Y';
},
// //
getListProProcess() { getListProProcess() {
let params = { let params = {

@ -59,6 +59,7 @@ export default {
components: { updateMakeQty, reworkDetails }, components: { updateMakeQty, reworkDetails },
data() { data() {
return { return {
loading:false,
searchCode: '', // searchCode: '', //
updateMakeQtyVisible: false, updateMakeQtyVisible: false,
itemData: {}, itemData: {},
@ -332,6 +333,7 @@ export default {
}, },
currentChange(currentPage) { currentChange(currentPage) {
this.page.currentPage = currentPage; this.page.currentPage = currentPage;
this.onLoad(this.page, this.query); this.onLoad(this.page, this.query);
}, },
sizeChange(pageSize) { sizeChange(pageSize) {

@ -300,11 +300,11 @@
</template> </template>
<template #default="scope"> <template #default="scope">
<el-form-item <el-form-item
:prop="`tableData[${scope.$index}].equipmentSort`" :prop="`tableData[${scope.$index}].equipOrder`"
:rules="formRules.equipmentSort" :rules="formRules.equipOrder"
> >
<el-input-number <el-input-number
v-model="scope.row.equipmentSort" v-model="scope.row.equipOrder"
style="width: 100%" style="width: 100%"
:min="0" :min="0"
></el-input-number> ></el-input-number>
@ -398,7 +398,7 @@ export default {
{ required: true, message: '请选择设备名称/编码', trigger: ['change', 'submit'] }, { required: true, message: '请选择设备名称/编码', trigger: ['change', 'submit'] },
], ],
equipType: [{ required: true, message: '请选择设备类型', trigger: ['change', 'submit'] }], equipType: [{ required: true, message: '请选择设备类型', trigger: ['change', 'submit'] }],
equipmentSort: [ equipOrder: [
{ required: true, message: '请输入设备排序', trigger: ['change', 'submit'] }, { required: true, message: '请输入设备排序', trigger: ['change', 'submit'] },
], ],
craftId: [{ required: true, message: '请选择工艺能力', trigger: ['change', 'submit'] }], craftId: [{ required: true, message: '请选择工艺能力', trigger: ['change', 'submit'] }],

@ -149,6 +149,7 @@ export default {
width: 120, width: 120,
disabled: true, disabled: true,
}, },
// { // {
// label: '', // label: '',
// prop: 'equipNameType', // prop: 'equipNameType',
@ -185,6 +186,15 @@ export default {
}, },
], ],
}, },
{
label: '设备排序',
prop: 'equipOrder',
search: true,
sortable: true,
span: 12,
width: 120,
disabled: true,
},
{ {
label: '工序', label: '工序',
prop: 'processName', prop: 'processName',

@ -29,6 +29,9 @@
> >
<el-button type="text" size="mini" @click="recoveryFn(scope.row)">恢复</el-button> <el-button type="text" size="mini" @click="recoveryFn(scope.row)">恢复</el-button>
</template> </template>
<template #demandDate="{ row }">
{{ row.demandDate ? row.demandDate.substring(0, 10) : '' }}
</template>
</avue-crud> </avue-crud>
</basic-container> </basic-container>
</template> </template>
@ -191,14 +194,14 @@ export default {
width: 150, width: 150,
span: 12, span: 12,
}, },
{ // {
label: '产品型号', // label: '',
prop: 'productType', // prop: 'productType',
search: false, // search: false,
sortable: true, // sortable: true,
width: 150, // width: 150,
span: 12, // span: 12,
}, // },
{ {
label: '批次号', label: '批次号',
prop: 'batchNo', prop: 'batchNo',

@ -17,8 +17,8 @@
@size-change="sizeChange" @size-change="sizeChange"
@refresh-change="refreshChange" @refresh-change="refreshChange"
@on-load="onLoad" @on-load="onLoad"
:permission="getPermission"
> >
<!-- :permission="getPermission" -->
<template #menu-left> <template #menu-left>
<el-button type="primary" @click="handleAdd">新增</el-button> <el-button type="primary" @click="handleAdd">新增</el-button>
</template> </template>
@ -26,7 +26,9 @@
<el-button type="primary" @click="handleImport()">导入</el-button> <el-button type="primary" @click="handleImport()">导入</el-button>
</template> --> </template> -->
<template #menu="scope"> <template #menu="scope">
<el-button type="text" @click="copyClick(scope.row)" v-if="scope.row.status == 2">复制</el-button> <el-button type="text" @click="copyClick(scope.row)" v-if="scope.row.status == 2"
>复制</el-button
>
<!-- <el-button <!-- <el-button
type="text" type="text"
@click="upgradedVersion(scope.row.rfpId)" @click="upgradedVersion(scope.row.rfpId)"
@ -36,15 +38,24 @@
<!-- v-if=" <!-- v-if="
(scope.row.rfpStatus == 1 || scope.row.rfpStatus == 4) && scope.row.approvalStatus != 0 (scope.row.rfpStatus == 1 || scope.row.rfpStatus == 4) && scope.row.approvalStatus != 0
" --> " -->
<el-button type="text" @click="rowDel(scope.row)" v-if="scope.row.status == 1"
>删除</el-button
>
<el-button type="text" @click="updateStatus(scope.row, 2)" v-if="scope.row.status == 1" <el-button type="text" @click="updateStatus(scope.row, 2)" v-if="scope.row.status == 1"
>发布</el-button >发布</el-button
> >
<el-button type="text" @click="updateStatus(scope.row, 3)" v-if="scope.row.status == 2" <el-button type="text" @click="updateStatus(scope.row, 3)" v-if="scope.row.status == 2"
>作废</el-button >作废</el-button
> >
<el-button type="text" @click="templatePreserve(scope.row)" v-if="scope.row.status != 3">维护电子档案</el-button> <el-button type="text" @click="templatePreserve(scope.row)" v-if="scope.row.status == 2"
<el-button type="text" @click="detailClick(scope.row)">电子档案详情</el-button> >维护电子档案</el-button
>
<el-button
type="text"
@click="detailClick(scope.row)"
v-if="scope.row.status == 2 || scope.row.status == 3"
>电子档案详情</el-button
>
</template> </template>
<template #line="{ row }"> <template #line="{ row }">
<el-tag v-if="row.line == 1">线上</el-tag> <el-tag v-if="row.line == 1">线上</el-tag>
@ -94,7 +105,7 @@ import {
editRecords, editRecords,
deleteRecords, deleteRecords,
copyData, copyData,
updateStatus updateStatus,
} from '@/api/qualityManagement/inspectionArchiving/rbFilePreserve'; } from '@/api/qualityManagement/inspectionArchiving/rbFilePreserve';
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
import detailRb from './detailRb2.vue'; import detailRb from './detailRb2.vue';
@ -140,9 +151,9 @@ export default {
index: true, index: true,
selection: false, selection: false,
viewBtn: false, viewBtn: false,
editBtn: true, editBtn: false,
addBtn: false, addBtn: false,
delBtn: true, delBtn: false,
editBtnText: '修改', editBtnText: '修改',
delBtnText: '删除', delBtnText: '删除',
viewBtnText: '详情', viewBtnText: '详情',
@ -213,6 +224,7 @@ export default {
span: 24, span: 24,
type: 'select', type: 'select',
filterable: true, filterable: true,
hide: true,
remote: true, remote: true,
dicUrl: `/api/blade-desk/bsProcessSet/list?name={{key}}`, dicUrl: `/api/blade-desk/bsProcessSet/list?name={{key}}`,
props: { props: {
@ -228,6 +240,14 @@ export default {
}, },
], ],
}, },
{
label: '工序',
prop: 'ppsName',
search: false,
sortable: true,
filter: true,
span: 24,
},
// { // {
// label: '线/线', // label: '线/线',
// prop: 'line', // prop: 'line',
@ -295,33 +315,33 @@ export default {
// value: 'dictKey', // value: 'dictKey',
// } // }
}, },
{ // {
label: '审批状态', // label: '',
prop: 'approvalStatus', // prop: 'approvalStatus',
search: true, // search: true,
sortable: true, // sortable: true,
filter: true, // filter: true,
type: 'select', // type: 'select',
dicData: [ // dicData: [
{ // {
label: '新建', // label: '',
value: 0, // value: 0,
}, // },
{ // {
label: '发布', // label: '',
value: 1, // value: 1,
}, // },
{ // {
label: '使用中', // label: '使',
value: 2, // value: 2,
}, // },
{ // {
label: '废弃', // label: '',
value: 3, // value: 3,
}, // },
], // ],
}, // },
], ],
}, },
@ -344,18 +364,16 @@ export default {
.then(() => { .then(() => {
updateStatus({ updateStatus({
id: row.id, id: row.id,
status:type status: type,
}).then((res) => { }).then(res => {
this.$message({ this.$message({
message: '操作成功', message: '操作成功',
type: 'success', type: 'success',
}); });
this.onLoad(this.page, this.query) this.onLoad(this.page, this.query);
}); });
}) })
.catch(() => { .catch(() => {});
});
}, },
// //

Loading…
Cancel
Save