工艺问题修改

dev-scheduling
zhangdi 3 weeks ago
parent 07017a0b79
commit 19c7e2d5ec
  1. 2
      src/api/productionManagement/deductionPreserve.js
  2. 21
      src/views/processManagement/bathRefine/planClass.vue
  3. 4
      src/views/processManagement/components/addinPlantMaintenanceDialog.vue
  4. 20
      src/views/processManagement/components/inPlantMaintenance.vue
  5. 6
      src/views/processManagement/sinTer/index.vue
  6. 2
      src/views/processManagement/taskDispatch.vue
  7. 2
      src/views/productionManagement/productionMonitoring/index.vue
  8. 8
      src/views/productionManagement/workReportingManagement/workRecord.vue

@ -25,7 +25,7 @@ export const getWorkOrderByCardNo = (params) => {
// 保存和修改扣数查询 // 保存和修改扣数查询
export const saveOrUpdate = (params) => { export const saveOrUpdate = (params) => {
return request({ return request({
url: '/blade-desk/deductionPreserve/saveOrUpdate', url: '/blade-desk//deductionPreserve/savaData',
method: 'post', method: 'post',
data: params, data: params,
}); });

@ -19,11 +19,12 @@
@on-load="onLoad" @on-load="onLoad"
> >
<template #menu="scope"> <template #menu="scope">
<!-- <el-button <el-button v-if="scope.row.approvalStatus == 1" type="text" @click="editFn(scope.row)"
type="text"
@click="editFn(scope.row)"
>修改 >修改
</el-button> --> </el-button>
<el-button v-if="scope.row.approvalStatus == 1" type="text" @click="rowDel(scope.row)"
>删除
</el-button>
<el-button <el-button
type="text" type="text"
v-if=" v-if="
@ -90,9 +91,9 @@ export default {
index: true, index: true,
selection: false, selection: false,
viewBtn: false, viewBtn: false,
delBtn: true, delBtn: false,
addBtn: true, addBtn: true,
editBtn: true, editBtn: false,
editBtnText: '修改', editBtnText: '修改',
addBtnIcon: ' ', addBtnIcon: ' ',
viewBtnIcon: ' ', viewBtnIcon: ' ',
@ -300,10 +301,10 @@ export default {
}, },
mounted() {}, mounted() {},
methods: { methods: {
// editFn(row){ editFn(row) {
// // this.$refs.crud.edit(row); this.$refs.crud.edit(row);
// console.log(this.$refs.crud); // console.log(this.$refs.crud);
// }, },
checkFn(row) { checkFn(row) {
this.planCheckOpen = true; this.planCheckOpen = true;
this.rowItem = row; this.rowItem = row;

@ -246,8 +246,8 @@ export default {
}, },
methods: { methods: {
getRoleUserList() { getRoleUserList() {
getRoleUserList({ current: 1, size: 9999999 }).then(res => { getRoleUserList().then(res => {
this.userData = res.data.data.records || []; this.userData = res.data.data || [];
}); });
}, },
getWorkCenterList() { getWorkCenterList() {

@ -26,11 +26,19 @@
<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="rowDel(scope.row)" v-if="scope.row.syncStatus==0">删除 </el-button> <el-button type="text" @click="rowDel(scope.row)" v-if="scope.row.syncStatus == 0"
<el-button type="text" @click="handleEdit(scope.row)" v-if="scope.row.syncStatus==0">修改 </el-button> >删除
</el-button>
<el-button type="text" @click="handleEdit(scope.row)" v-if="scope.row.syncStatus == 0"
>修改
</el-button>
</template> </template>
<template #fileUrls="scope"> <template #fileUrls="scope">
<el-button v-if="scope.row.fileUrl != null&&scope.row.fileUrl != ''" type="text" @click="uploadUrl(scope.row)" > <el-button
v-if="scope.row.fileUrl != null && scope.row.fileUrl != ''"
type="text"
@click="uploadUrl(scope.row)"
>
下载</el-button 下载</el-button
> >
</template> </template>
@ -372,6 +380,12 @@ export default {
this.$message.warning('请选择至少一条数据'); this.$message.warning('请选择至少一条数据');
return; return;
} }
//
const hasSyncedData = this.selectionList.some(item => item.syncStatus == 1);
if (hasSyncedData) {
this.$message.warning('已同步的数据不允许删除,请只选择未同步的数据');
return;
}
this.$confirm('确定将选择数据删除?', { this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',

@ -230,7 +230,6 @@ export default {
if (!this.$refs.lineChart) return; if (!this.$refs.lineChart) return;
const chartWidth = this.calculateChartWidth(value); const chartWidth = this.calculateChartWidth(value);
this.$refs.lineChart.style.width = chartWidth + 'px'; this.$refs.lineChart.style.width = chartWidth + 'px';
console.log(98989898989, chartWidth);
const mapBoxEchart = this.$echarts.init(this.$refs.lineChart); const mapBoxEchart = this.$echarts.init(this.$refs.lineChart);
this.mapBoxEchart = mapBoxEchart; this.mapBoxEchart = mapBoxEchart;
@ -282,7 +281,7 @@ export default {
if (nodeQuota !== '' && nodeQuota !== null) { if (nodeQuota !== '' && nodeQuota !== null) {
lineCount = 3; lineCount = 3;
} }
const height = lineCount * 20 + 10; const height = lineCount * 20 + 15;
return [Math.max(maxWidth, 60), height]; return [Math.max(maxWidth, 60), height];
}, },
@ -296,7 +295,8 @@ export default {
color: '#fff', color: '#fff',
formatter: params => { formatter: params => {
const nodeData = params.data || params; const nodeData = params.data || params;
const quotaText = nodeData.quota >= 0 ? `${nodeData.quota}` : ''; const quotaText =
nodeData.quota >= 0 || nodeData.quota != null ? `${nodeData.quota}` : '';
let result = `${nodeData.partCode}\n${nodeData.name}`; let result = `${nodeData.partCode}\n${nodeData.name}`;
if (quotaText) { if (quotaText) {
result += '\n' + quotaText; result += '\n' + quotaText;

@ -76,7 +76,7 @@ export default {
border: true, border: true,
index: true, index: true,
selection: true, selection: true,
selectable: (row, index) => row.children, selectable: (row, index) => row.children.length === 0,
viewBtn: false, viewBtn: false,
delBtn: false, delBtn: false,
editBtn: false, editBtn: false,

@ -676,7 +676,7 @@ export default {
let ids = this.selectionList.map(item => item.woId); let ids = this.selectionList.map(item => item.woId);
window.open( window.open(
window.PROCESS_FLOW_CARD_PRINT + window.PROCESS_FLOW_CARD_PRINT +
'?wolds=' + '?woIds=' +
ids.join(',') + ids.join(',') +
'&num=' + '&num=' +
this.printForm.quantity this.printForm.quantity

@ -227,6 +227,14 @@ export default {
span: 12, span: 12,
width:150, width:150,
}, },
{
label: '调整人',
prop: 'workerName',
search: false,
sortable: true,
span: 12,
width:150,
},
], ],
}, },

Loading…
Cancel
Save