This commit is contained in:
caoxinyu
2018-12-06 19:55:07 +08:00
13 changed files with 68 additions and 79 deletions

View File

@@ -1,13 +1,12 @@
import request from '@/utils/request' import request from '@/utils/request'
// 查工艺分类名称 // 查工艺分类名称
export function searchProcessClassification(ProcessClassification) { export function searchProcessClassification() {
return request({ return request({
url: '', url: '',
method: 'post', method: 'post',
data: { data: {
type: '1', type: '1',
name: '车间生产管理工艺_基础表_工艺分类名称_查询数据', name: '车间生产管理工艺_基础表_工艺分类名称_查询数据'
param: '工艺分类名称=' + ProcessClassification
} }
}) })
} }

View File

@@ -8,7 +8,7 @@ export function initCraftmen() {
data: { data: {
type: '1', type: '1',
name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号',
param: '考核部门编号=17' param: '考核部门编号=9'
} }
}) })
} }

View File

@@ -129,7 +129,7 @@ export function initPerson() {
data: { data: {
type: '1', type: '1',
name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号',
param: '考核部门编号=17=int' param: '考核部门编号=9'
} }
}) })
} }

View File

@@ -43,7 +43,6 @@ export function getTable(stepNumber, a, b, c, d, e, f, g, i, pageCurrent, pageSi
data: { data: {
type: '1', type: '1',
name: '车间生产管理工艺_零件工序_查询数据_已编制工序的全部零件及工序_横向赋值新建存储过程', name: '车间生产管理工艺_零件工序_查询数据_已编制工序的全部零件及工序_横向赋值新建存储过程',
// param: '项目流水号_check=0=string&项目流水号=428=string&机床流水号_check=0=string&机床流水号=8903=string&组件流水号_check=1=string&组件流水号=39539=string&零件图号_check=0=string&零件图号=0=string&是否查询全部数据=1=string&单件是否外协=1=string&考核状态=6=string',
param: '项目流水号_check=' + stepNumber + '=string&项目流水号=' + a + '=string&机床流水号_check=' + b + '=string&机床流水号=' + c + '=string&组件流水号_check=' + d + '=string&组件流水号=' + e + '=string&零件图号_check=' + f + '=string&零件图号=' + g + '=string&是否查询全部数据=1=string&单件是否外协=' + i + '=string&考核状态=6=int', param: '项目流水号_check=' + stepNumber + '=string&项目流水号=' + a + '=string&机床流水号_check=' + b + '=string&机床流水号=' + c + '=string&组件流水号_check=' + d + '=string&组件流水号=' + e + '=string&零件图号_check=' + f + '=string&零件图号=' + g + '=string&是否查询全部数据=1=string&单件是否外协=' + i + '=string&考核状态=6=int',
Pagination: pageCurrent + '&' + pageSize Pagination: pageCurrent + '&' + pageSize
} }

View File

@@ -32,7 +32,7 @@ export function getPerson() {
data: { data: {
type: '1', type: '1',
name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号',
param: '考核部门编号=17=int' param: '考核部门编号=9'
} }
}) })

View File

@@ -30,7 +30,7 @@ export function addTable(equipmentName, equipmentModel, performance, processingC
data: { data: {
type: '2', type: '2',
name: '设备管理_设备加工能力_增加数据_设备维护New', name: '设备管理_设备加工能力_增加数据_设备维护New',
param: '设备名称=' + equipmentName + '=string&设备型号=' + equipmentModel + '=string&设备性能指标=' + performance + '= string&设备加工能力工时=' + processingCapacity + '=string&设备工时系数=' + workingTimeFactor + '=string&工艺名称简称=' + processName + '=string&工艺编号=' + processNumber + '=string&班次类型=' + shift + '= string&整改工时系数=' + reorganizationTimeFactor + '=string&设备编号=' + equipmentNumber + '=string&预留工时系数=' + reservedTimeFactor param: '设备名称=' + equipmentName + '&设备型号=' + equipmentModel + '&设备性能指标=' + performance + '&设备加工能力工时=' + processingCapacity + '&设备工时系数=' + workingTimeFactor + '&工艺名称简称=' + processName + '&工艺编号=' + processNumber + '&班次类型=' + shift + '&整改工时系数=' + reorganizationTimeFactor + '&设备编号=' + equipmentNumber + '&预留工时系数=' + reservedTimeFactor
} }
}) })
} }

View File

@@ -102,7 +102,6 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</el-card> </el-card>
</el-col> </el-col>
</el-row> </el-row>
<el-dialog :visible.sync="dialogFormVisible1" title="增加工艺分类" center style="min-height: 300px" width="400px"> <el-dialog :visible.sync="dialogFormVisible1" title="增加工艺分类" center style="min-height: 300px" width="400px">
@@ -242,13 +241,14 @@ export default {
methods: { methods: {
searchProcessClassification() { searchProcessClassification() {
this.loading1 = true this.loading1 = true
searchProcessClassification(this.ProcessClassification).then(response => { searchProcessClassification().then(response => {
this.loading1 = false this.loading1 = false
this.tableData1 = response.data this.tableData1 = response.data
this.total1 = response.data this.total1 = response.data
return this.tableData1 return this.tableData1
}).then(data => { }).then(data => {
this.Num = data this.Num = data
this.max = []
for (let i = 0; i < this.Num.length; i++) { for (let i = 0; i < this.Num.length; i++) {
this.max.push(this.Num[i].工艺分类流水号) this.max.push(this.Num[i].工艺分类流水号)
} }

View File

@@ -609,7 +609,7 @@ export default {
this.form.完成时间 = '' this.form.完成时间 = ''
this.form.人员 = '' this.form.人员 = ''
this.form.考勤编号 = '' this.form.考勤编号 = ''
if (this.worker[index][a] !== '请选择') { if (this.worker[index][a] !== '超级管理员') {
this.midd = 1 this.midd = 1
this.form.人员 = this.worker[index][a] this.form.人员 = this.worker[index][a]
} }

View File

@@ -308,6 +308,7 @@ export default {
numm: response.data[i].工艺计划流水号 numm: response.data[i].工艺计划流水号
}) })
} }
this.listLoading = false
} }
}) })
}) })

View File

@@ -98,18 +98,6 @@
<el-input v-model="form.设备型号" placeholder="设备型号" size="small" style="width:200px" clearable /> <el-input v-model="form.设备型号" placeholder="设备型号" size="small" style="width:200px" clearable />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span = "12">
<el-form-item label="设备性能指标" prop="设备性能指标" >
<el-input v-model="form.设备性能指标" placeholder="设备性能指标" size="small" style="width:200px" clearable />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span = "12">
<el-form-item label="设备加工能力" prop="设备加工能力" >
<el-input v-model="form.设备加工能力" placeholder="设备加工能力" size="small" style="width:200px" clearable />
</el-form-item>
</el-col>
<el-col :span = "12"> <el-col :span = "12">
<el-form-item label="设备加工工艺" prop="设备加工工艺" > <el-form-item label="设备加工工艺" prop="设备加工工艺" >
<el-select v-model="form.设备加工工艺" placeholder="设备加工工艺" size="small" style="width:200px" clearable > <el-select v-model="form.设备加工工艺" placeholder="设备加工工艺" size="small" style="width:200px" clearable >
@@ -122,7 +110,19 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row v-show="title!=='增加'">
<el-col :span = "12">
<el-form-item label="设备加工能力" prop="设备加工能力" >
<el-input v-model="form.设备加工能力" placeholder="设备加工能力" size="small" style="width:200px" clearable />
</el-form-item>
</el-col>
<el-col :span = "12">
<el-form-item label="设备性能指标" prop="设备性能指标" >
<el-input v-model="form.设备性能指标" placeholder="设备性能指标" size="small" style="width:200px" clearable />
</el-form-item>
</el-col>
</el-row>
<el-row v-show="title!=='增加'">
<el-col :span = "12"> <el-col :span = "12">
<el-form-item label="班次类型" prop="班次类型" > <el-form-item label="班次类型" prop="班次类型" >
<el-select v-model="form.班次类型" placeholder="班次类型" size="small" style="width:200px" clearable > <el-select v-model="form.班次类型" placeholder="班次类型" size="small" style="width:200px" clearable >
@@ -140,7 +140,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row v-show="title!=='增加'">
<el-col :span = "12"> <el-col :span = "12">
<el-form-item label="整改工时系数" prop="整改工时系数" > <el-form-item label="整改工时系数" prop="整改工时系数" >
<el-input v-model="form.整改工时系数" placeholder="整改工时系数" size="small" style="width:200px" clearable /> <el-input v-model="form.整改工时系数" placeholder="整改工时系数" size="small" style="width:200px" clearable />
@@ -200,12 +200,12 @@ export default {
设备名称: [{ required: true, message: '请选择设备名称', change: 'blur' }], 设备名称: [{ required: true, message: '请选择设备名称', change: 'blur' }],
设备编号: [{ required: true, message: '请选择设备编号', change: 'blur' }], 设备编号: [{ required: true, message: '请选择设备编号', change: 'blur' }],
设备型号: [{ required: true, message: '请选择设备型号', change: 'blur' }], 设备型号: [{ required: true, message: '请选择设备型号', change: 'blur' }],
设备加工能力: [{ required: true, message: '请选择设备加工能力', change: 'blur' }], 设备加工工艺: [{ required: true, message: '请选择设备加工工艺', trigger: 'blur' }]
设备加工工艺: [{ required: true, message: '请选择设备加工工艺', trigger: 'blur' }], // 设备加工能力: [{ required: true, message: '请选择设备加工能力', change: 'blur' }],
班次类型: [{ required: true, message: '请选择班次类型', trigger: 'blur' }], // 班次类型: [{ required: true, message: '请选择班次类型', trigger: 'blur' }],
设备工时系数: [{ required: true, message: '请选择设备工时系数', change: 'blur' }], // 设备工时系数: [{ required: true, message: '请选择设备工时系数', change: 'blur' }],
整改工时系数: [{ required: true, message: '请选择整改工时系数', change: 'blur' }], // 整改工时系数: [{ required: true, message: '请选择整改工时系数', change: 'blur' }],
预留工时系数: [{ required: true, message: '请选择预留工时系数', change: 'blur' }] // 预留工时系数: [{ required: true, message: '请选择预留工时系数', change: 'blur' }]
} }
} }
}, },
@@ -241,9 +241,20 @@ export default {
if (this.$refs['form'] !== undefined) { if (this.$refs['form'] !== undefined) {
this.$refs['form'].resetFields() this.$refs['form'].resetFields()
} }
this.dialogFormVisible = true
this.title = '增加' this.title = '增加'
this.form = {} this.form = {
设备名称: '',
设备编号: '',
设备型号: '',
设备加工工艺: ''
}
this.form.设备性能指标 = 1
this.form.设备加工能力 = 1
this.form.班次类型 = 1
this.form.设备工时系数 = 1
this.form.整改工时系数 = 1
this.form.预留工时系数 = 1
this.dialogFormVisible = true
}, },
handleEdit(row) { handleEdit(row) {
if (this.$refs['form'] !== undefined) { if (this.$refs['form'] !== undefined) {
@@ -268,10 +279,8 @@ export default {
if (valid) { if (valid) {
if (this.title === '增加') { if (this.title === '增加') {
this.submitAdd() this.submitAdd()
this.title = ''
} else if (this.title === '编辑') { } else if (this.title === '编辑') {
this.submitEdit() this.submitEdit()
this.title = ''
} }
} }
}) })
@@ -290,6 +299,7 @@ export default {
type: 'success' type: 'success'
}) })
this.dialogFormVisible = false this.dialogFormVisible = false
this.title = ''
this.fetchData() this.fetchData()
} else { } else {
this.$message.error('信息添加失败') this.$message.error('信息添加失败')
@@ -305,6 +315,7 @@ export default {
type: 'success' type: 'success'
}) })
this.dialogFormVisible = false this.dialogFormVisible = false
this.title = ''
this.fetchData() this.fetchData()
} else { } else {
this.$message.error('信息编辑失败') this.$message.error('信息编辑失败')

View File

@@ -281,7 +281,6 @@ export default {
this.tableData = [] this.tableData = []
if (this.radio === 1) { if (this.radio === 1) {
searchPartNum1(this.check_entryNameValue, this.entryNameValue, this.check_toolNumValue, this.toolNumValue, this.check_NumValue, this.NumValue, this.check_partName, this.partName, 0, this.pageCurrent2, this.pageSize2).then(response => { searchPartNum1(this.check_entryNameValue, this.entryNameValue, this.check_toolNumValue, this.toolNumValue, this.check_NumValue, this.NumValue, this.check_partName, this.partName, 0, this.pageCurrent2, this.pageSize2).then(response => {
console.log(response.data)
this.tableData2 = response.data.rows this.tableData2 = response.data.rows
this.total2 = response.data.total this.total2 = response.data.total
}).then(() => { }).then(() => {

View File

@@ -113,12 +113,12 @@
<el-input v-model="scope.row.工艺要求" :autosize="{ minRows: 1, maxRows: 1}" size="mini" readonly type="textarea"/> <el-input v-model="scope.row.工艺要求" :autosize="{ minRows: 1, maxRows: 1}" size="mini" readonly type="textarea"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="机加工开始日期" align="center" width="150px"> <el-table-column label="机加工计划开始日期" align="center" width="150px">
<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="150px"> <el-table-column label="机加工计划结束日期" align="center" width="150px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.机加工结束时间 }} {{ scope.row.机加工结束时间 }}
</template> </template>
@@ -266,14 +266,14 @@ export default {
}, },
// 修改外协状态 // 修改外协状态
edit(index, row) { edit(index, row) {
this.count = 0
for (let i = 0; i < this.tableData2.length; i++) { for (let i = 0; i < this.tableData2.length; i++) {
if (this.checkBox[i] === false) { if (this.checkBox[i] === false) {
this.count = this.count + 1 this.count = this.count + 1
} }
} }
if (this.count === this.tableData2.length) { if (this.count === this.tableData2.length) {
edit2(row.工序流水号, row.工艺计划流水号, 0).then(response => { edit2(row.工序流水号, row.工艺计划流水号, 0)
})
} }
if (this.checkBox[index] === true) { if (this.checkBox[index] === true) {
this.InOut = 2 this.InOut = 2

View File

@@ -41,63 +41,43 @@
</el-button> </el-button>
<div class="tips"> <div class="tips">
<span>超级管理员</span> <span>超级管理员</span>
<span>账号1001</span> <span>账号0000</span>
<span>密码1001</span> <span>密码admin</span>
</div> </div>
<div class="tips"> <div class="tips">
<span>采购管理员</span> <span>营销中心</span>
<span>账号6201</span> <span>账号2001</span>
<span>密码6201</span> <span>密码2001</span>
</div> </div>
<div class="tips"> <div class="tips">
<span>外协管理员</span> <span>技术中心</span>
<span>账号1003</span>
<span>密码1003</span>
</div>
<div class="tips">
<span>车间计划管理员</span>
<span>账号2002</span>
<span>密码2002</span>
</div>
<div class="tips">
<span>技术中心管理员</span>
<span>账号3001</span> <span>账号3001</span>
<span>密码3001</span> <span>密码3001</span>
</div> </div>
<div class="tips"> <div class="tips">
<span>库存管理员</span> <span>制造中心</span>
<span>账号3002</span>
<span>密码3002</span>
</div>
<div class="tips">
<span>营销中心管理员</span>
<span>账号4001</span> <span>账号4001</span>
<span>密码4001</span> <span>密码4001</span>
</div> </div>
<div class="tips"> <div class="tips">
<span>财务总监</span> <span>采购部</span>
<span>账号7001</span> <span>账号4101</span>
<span>密码7001</span> <span>密码4101</span>
</div> </div>
<div class="tips"> <div class="tips">
<span>出纳</span> <span>仓库</span>
<span>账号7002</span> <span>账号4201</span>
<span>密码7002</span> <span>密码4201</span>
</div> </div>
<div class="tips"> <div class="tips">
<span>会计</span> <span>金工车间</span>
<span>账号7003</span> <span>账号4301</span>
<span>密码7003</span> <span>密码4301</span>
</div> </div>
<div class="tips"> <div class="tips">
<span>总经理</span> <span>装配车间</span>
<span>账号1002</span> <span>账号4401</span>
<span>密码1002</span> <span>密码4401</span>
</div>
<div class="tips">
<span>工艺定额员</span>
<span>账号6301</span>
<span>密码6301</span>
</div> </div>
</div> </div>
</el-form> </el-form>