金工样式
This commit is contained in:
@@ -133,3 +133,15 @@ export function initPerson() {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 保存
|
||||||
|
export function save2(num1, num2, num3) {
|
||||||
|
return request({
|
||||||
|
url: '',
|
||||||
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
type: '2',
|
||||||
|
name: '车间生产管理工艺_工艺任务分配_保存数据',
|
||||||
|
param: '工艺计划流水号=' + num1 + '&人员编号=' + num2 + '&零件图号=' + num3
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@@ -37,11 +37,11 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
<el-row>
|
<el-row>
|
||||||
<span>操作者:</span>
|
<span>操作者:</span>
|
||||||
<el-input v-model="workerName" placeholder="操作者" size="small" clearable style="width:200px; margin-top: 10px;margin-bottom: 10px"/>
|
<el-input v-model="workerName" placeholder="操作者" size="small" clearable style="width:120px; margin-top: 10px;margin-bottom: 10px"/>
|
||||||
<span>零件图号:</span>
|
<span>零件图号:</span>
|
||||||
<el-input v-model="partNumber" placeholder="零件图号" size="small" clearable style="width:200px"/>
|
<el-input v-model="partNumber" placeholder="零件图号" size="small" clearable style="width:150px"/>
|
||||||
<span>工艺名称:</span>
|
<span>工艺名称:</span>
|
||||||
<el-input v-model="technologyName" placeholder="工艺名称" size="small" clearable style="width:200px"/>
|
<el-input v-model="technologyName" placeholder="工艺名称" size="small" clearable style="width:150px"/>
|
||||||
<el-button type="success" class="el-icon-search" size="small" style="margin: 10px 0 0 10px" @click="pageCurrent=1;total=0;searchTable();">查询</el-button>
|
<el-button type="success" class="el-icon-search" size="small" style="margin: 10px 0 0 10px" @click="pageCurrent=1;total=0;searchTable();">查询</el-button>
|
||||||
<el-tooltip :open-delay="1200" effect="dark" content="新增补录工时" placement="top">
|
<el-tooltip :open-delay="1200" effect="dark" content="新增补录工时" placement="top">
|
||||||
<el-button type="primary" class="el-icon-plus" size="small" style="margin: 10px 0 0 10px" @click="addSupplement();">新增</el-button>
|
<el-button type="primary" class="el-icon-plus" size="small" style="margin: 10px 0 0 10px" @click="addSupplement();">新增</el-button>
|
||||||
@@ -507,7 +507,6 @@ export default {
|
|||||||
this.partNumber ? check4 = 1 : check4 = 0
|
this.partNumber ? check4 = 1 : check4 = 0
|
||||||
this.startTime2 && this.endTime2 ? check5 = 1 : check5 = 0
|
this.startTime2 && this.endTime2 ? check5 = 1 : check5 = 0
|
||||||
searchTable(this.technologyName, check1, this.workerName, check2, check3, this.endTime1, this.startTime1, this.partNumber, check4, check5, this.endTime2, this.startTime2, this.pageCurrent, this.pageSize).then(res => {
|
searchTable(this.technologyName, check1, this.workerName, check2, check3, this.endTime1, this.startTime1, this.partNumber, check4, check5, this.endTime2, this.startTime2, this.pageCurrent, this.pageSize).then(res => {
|
||||||
console.log(res.data.rows, 898989)
|
|
||||||
this.tableData = res.data.rows
|
this.tableData = res.data.rows
|
||||||
this.total = res.data.total
|
this.total = res.data.total
|
||||||
this.tableData.map(v => {
|
this.tableData.map(v => {
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
<el-button type="primary" size="small" icon="el-icon-bangzhu" style="margin-left: 10px" @click="selectAll(tableData)">全选</el-button>
|
<el-button type="primary" size="small" icon="el-icon-bangzhu" style="margin-left: 10px" @click="selectAll(tableData)">全选</el-button>
|
||||||
<el-button type="baocun" size="small" icon="el-icon-upload" style="margin-left: 10px" @click="save">保存</el-button>
|
<el-button type="baocun" size="small" icon="el-icon-upload" style="margin-left: 10px" @click="save">保存</el-button>
|
||||||
<el-button type="baocun" size="small" icon="el-icon-upload" style="margin-left: 10px" @click="save">保存</el-button>
|
<el-button type="baocun" size="small" icon="el-icon-upload" style="margin-left: 10px" @click="currency">保存</el-button>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card>
|
<el-card>
|
||||||
<el-table
|
<el-table
|
||||||
@@ -160,7 +160,10 @@ export default {
|
|||||||
PageCurrent: 1,
|
PageCurrent: 1,
|
||||||
PageSize: 50,
|
PageSize: 50,
|
||||||
total: 0,
|
total: 0,
|
||||||
Craftsmens: [] // 工艺员
|
Craftsmens: [], // 工艺员
|
||||||
|
通用件图号: [],
|
||||||
|
通用件规格: [],
|
||||||
|
工艺员: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -293,6 +296,7 @@ export default {
|
|||||||
工艺结束时间: response.data.rows[i].工艺计划结束时间,
|
工艺结束时间: response.data.rows[i].工艺计划结束时间,
|
||||||
数量: response.data.rows[i].批次数量,
|
数量: response.data.rows[i].批次数量,
|
||||||
投产时间: response.data.rows[i].操作时间,
|
投产时间: response.data.rows[i].操作时间,
|
||||||
|
规格: response.data.rows[i].规格,
|
||||||
工艺员: '',
|
工艺员: '',
|
||||||
人员编号: '',
|
人员编号: '',
|
||||||
工艺计划流水号: response.data.rows[i].工艺计划流水号
|
工艺计划流水号: response.data.rows[i].工艺计划流水号
|
||||||
@@ -357,7 +361,6 @@ export default {
|
|||||||
},
|
},
|
||||||
handleSelectionChange(val) {
|
handleSelectionChange(val) {
|
||||||
this.multipleSelection = val
|
this.multipleSelection = val
|
||||||
console.log(val)
|
|
||||||
},
|
},
|
||||||
save() {
|
save() {
|
||||||
for (let i = 0; i < this.multipleSelection.length; i++) {
|
for (let i = 0; i < this.multipleSelection.length; i++) {
|
||||||
@@ -377,6 +380,22 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
// 直接保存工艺
|
||||||
|
currency() {
|
||||||
|
this.通用件图号 = []
|
||||||
|
this.通用件规格 = []
|
||||||
|
this.工艺员 = []
|
||||||
|
this.multipleSelection.map(v => {
|
||||||
|
if (!v.工艺员) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
console.log(111)
|
||||||
|
this.通用件图号.push(v.零件号)
|
||||||
|
this.通用件规格.push(v.规格)
|
||||||
|
this.工艺员.push(v.工艺员)
|
||||||
|
})
|
||||||
|
console.log(this.通用件图号, this.通用件规格, this.工艺员)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
<span>组号:</span>
|
<span>组号:</span>
|
||||||
<el-select v-model="Group" size="small" clearable placeholder="组号">
|
<el-select v-model="Group" size="small" style="width: 100px" clearable placeholder="组号">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in Groups"
|
v-for="item in Groups"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
@@ -23,8 +23,9 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
<span>零件号:</span>
|
<span>零件号:</span>
|
||||||
<el-input v-model="number" placeholder="零件号" clearable size="small" style="width: 200px;"/>
|
<el-input v-model="number" placeholder="零件号" clearable size="small" style="width: 200px;"/>
|
||||||
|
<el-button type="success" class="el-icon-search" size="small" style="margin: 10px 0 0 10px" @click="pageCurrent=1;pageSize=10;total = 0;getTableData();">查询</el-button>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row>
|
<el-row v-if="false">
|
||||||
<span class="demonstration">计划下达时间:</span>
|
<span class="demonstration">计划下达时间:</span>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="startTime"
|
v-model="startTime"
|
||||||
@@ -41,7 +42,6 @@
|
|||||||
style="width: 160px"
|
style="width: 160px"
|
||||||
type="date"
|
type="date"
|
||||||
placeholder="选择日期"/>
|
placeholder="选择日期"/>
|
||||||
<el-button type="success" class="el-icon-search" size="small" style="margin: 10px 0 0 10px" @click="pageCurrent=1;pageSize=10;total = 0;getTableData();">查询</el-button>
|
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
<!-- </el-tooltip>-->
|
<!-- </el-tooltip>-->
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col style="width: 400px">
|
<el-col style="width: 350px">
|
||||||
<el-card>
|
<el-card>
|
||||||
<el-table
|
<el-table
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
@@ -35,22 +35,22 @@
|
|||||||
border
|
border
|
||||||
element-loading-text="拼命加载中"
|
element-loading-text="拼命加载中"
|
||||||
@row-click="searchTable2">
|
@row-click="searchTable2">
|
||||||
<el-table-column label="操作者" align="center" width="110px" show-overflow-tooltip>
|
<el-table-column label="操作者" align="center" show-overflow-tooltip>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.姓名 }}
|
{{ scope.row.姓名 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="计划工时" align="center">
|
<el-table-column label="计划工时" align="center" width="70px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.理论加工时间段 }}
|
{{ scope.row.理论加工时间段 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="加工工时" align="center">
|
<el-table-column label="加工工时" align="center" width="70px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.实际加工时间段 }}
|
{{ scope.row.实际加工时间段 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="完成数量" align="center">
|
<el-table-column label="完成数量" align="center" width="70px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.完成数量 }}
|
{{ scope.row.完成数量 }}
|
||||||
</template>
|
</template>
|
||||||
@@ -66,15 +66,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col style="margin-left: 0px;width: 810px">
|
<el-col style="margin-left: 0px;width: 860px">
|
||||||
<el-card>
|
<el-card>
|
||||||
<el-table v-loading="loading2" :data="tableData2" size="mini" stripe highlight-current-row style="width: 100%;" height="700px" border element-loading-text="拼命加载中">
|
<el-table v-loading="loading2" :data="tableData2" size="mini" stripe highlight-current-row style="width: 100%;" height="700px" border element-loading-text="拼命加载中">
|
||||||
<el-table-column label="零件图号" align="center" width="170px" show-overflow-tooltip>
|
<el-table-column label="零件图号" align="center" width="140px" show-overflow-tooltip>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.零件图号 }}
|
{{ scope.row.零件图号 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="零件名称" align="center" width="90px" show-overflow-tooltip>
|
<el-table-column label="零件名称" align="center" show-overflow-tooltip>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.零件名称 }}
|
{{ scope.row.零件名称 }}
|
||||||
</template>
|
</template>
|
||||||
@@ -84,7 +84,7 @@
|
|||||||
{{ scope.row.工艺名称 }}
|
{{ scope.row.工艺名称 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="完成数量" align="center" width="70px">
|
<el-table-column label="完成数" align="center" width="60px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.完成数量 }}
|
{{ scope.row.完成数量 }}
|
||||||
</template>
|
</template>
|
||||||
@@ -94,11 +94,11 @@
|
|||||||
{{ scope.row.质检结果 }}
|
{{ scope.row.质检结果 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="不合格数" align="center" width="70px">
|
<!--<el-table-column label="不合格数" align="center" width="70px">-->
|
||||||
<template slot-scope="scope">
|
<!--<template slot-scope="scope">-->
|
||||||
{{ scope.row.不合格数量 }}
|
<!--{{ scope.row.不合格数量 }}-->
|
||||||
</template>
|
<!--</template>-->
|
||||||
</el-table-column>
|
<!--</el-table-column>-->
|
||||||
<el-table-column label="计划工时" align="center" width="70px">
|
<el-table-column label="计划工时" align="center" width="70px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.理论加工时间段 }}
|
{{ scope.row.理论加工时间段 }}
|
||||||
@@ -109,7 +109,12 @@
|
|||||||
{{ scope.row.实际加工时间段 }}
|
{{ scope.row.实际加工时间段 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="完成时间" align="center" width="100px">
|
<el-table-column label="加工开始" align="center" width="135px">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.加工开始时间 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="加工完成" align="center" width="135px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.加工完成时间 }}
|
{{ scope.row.加工完成时间 }}
|
||||||
</template>
|
</template>
|
||||||
@@ -145,10 +150,10 @@ export default {
|
|||||||
loading2: '',
|
loading2: '',
|
||||||
pageCurrent: 1,
|
pageCurrent: 1,
|
||||||
pageSize: 10000,
|
pageSize: 10000,
|
||||||
total: '',
|
total: 0,
|
||||||
pageCurrent2: 1,
|
pageCurrent2: 1,
|
||||||
pageSize2: 10000,
|
pageSize2: 10000,
|
||||||
total2: '',
|
total2: 0,
|
||||||
timeCheck: '',
|
timeCheck: '',
|
||||||
operater: ''
|
operater: ''
|
||||||
}
|
}
|
||||||
@@ -166,8 +171,6 @@ export default {
|
|||||||
if (this.startTime !== '' && this.startTime !== null && this.endTime !== null && this.endTime !== null) {
|
if (this.startTime !== '' && this.startTime !== null && this.endTime !== null && this.endTime !== null) {
|
||||||
this.timeCheck = 1
|
this.timeCheck = 1
|
||||||
} else {
|
} else {
|
||||||
// this.startTime = ''
|
|
||||||
// this.endTime = ''
|
|
||||||
this.timeCheck = 0
|
this.timeCheck = 0
|
||||||
}
|
}
|
||||||
searchtable(this.operater, this.timeCheck, this.startTime, this.endTime, this.pageCurrent, this.pageSize).then(response => {
|
searchtable(this.operater, this.timeCheck, this.startTime, this.endTime, this.pageCurrent, this.pageSize).then(response => {
|
||||||
@@ -197,7 +200,8 @@ export default {
|
|||||||
不合格数量: response.data.rows[i].不合格数量,
|
不合格数量: response.data.rows[i].不合格数量,
|
||||||
理论加工时间段: response.data.rows[i].理论加工时间段,
|
理论加工时间段: response.data.rows[i].理论加工时间段,
|
||||||
实际加工时间段: response.data.rows[i].实际加工时间段,
|
实际加工时间段: response.data.rows[i].实际加工时间段,
|
||||||
加工完成时间: response.data.rows[i].加工完成时间 ? response.data.rows[i].加工完成时间.split(' ')[0] : ''
|
加工开始时间: response.data.rows[i].加工开始时间 ? response.data.rows[i].加工开始时间 : '',
|
||||||
|
加工完成时间: response.data.rows[i].加工完成时间 ? response.data.rows[i].加工完成时间 : ''
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user