Browse Source

2024-09-26

RFQ 功能优化
java8
fengyuan_yang 1 year ago
parent
commit
a0ad61ffbc
  1. 105
      src/views/modules/part/bomManagement.vue
  2. 262
      src/views/modules/part/routingManagement.vue

105
src/views/modules/part/bomManagement.vue

@ -3,12 +3,12 @@
<!-- 查询条件 --> <!-- 查询条件 -->
<el-form :inline="true" label-position="top" :model="searchData"> <el-form :inline="true" label-position="top" :model="searchData">
<el-form-item :label="'BU'"> <el-form-item :label="'BU'">
<el-select v-model="searchData.buDesc" placeholder="请选择" clearable style="width: 130px">
<el-select v-model="searchData.buNo" placeholder="请选择" clearable style="width: 130px">
<el-option <el-option
v-for = "i in userBuList"
v-for = "i in buList"
:key = "i.buNo" :key = "i.buNo"
:label = "i.buDesc" :label = "i.buDesc"
:value = "i.buDesc">
:value = "i.buNo">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -115,8 +115,6 @@
:key = "i.buNo" :key = "i.buNo"
:label = "i.buDesc" :label = "i.buDesc"
:value = "i.buNo"> :value = "i.buNo">
<span style="float: left;width: 100px">{{ i.sitename }}</span>
<span style="float: right; color: #8492a6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; font-size: 11px;width: 60px">{{ i.buDesc }}</span>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -132,7 +130,7 @@
<el-input v-model="modalData.printUnit" disabled style="width: 100px"></el-input> <el-input v-model="modalData.printUnit" disabled style="width: 100px"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="'制造类型'" prop="bomType"> <el-form-item :label="'制造类型'" prop="bomType">
<el-select v-model="modalData.bomType" :disabled="modalDisableFlag" style="width: 130px">
<el-select v-model="modalData.bomType" @change="bomTypeChange" :disabled="modalDisableFlag" style="width: 130px">
<el-option label="Manufacturing" value="Manufacturing"></el-option> <el-option label="Manufacturing" value="Manufacturing"></el-option>
<el-option label="Repair" value="Repair"></el-option> <el-option label="Repair" value="Repair"></el-option>
<el-option label="Purchase" value="Purchase"></el-option> <el-option label="Purchase" value="Purchase"></el-option>
@ -774,7 +772,7 @@ import {
getBomEngChgLevel, // BOM getBomEngChgLevel, // BOM
queryPartListAll, // Purchase(Raw) queryPartListAll, // Purchase(Raw)
} from '@/api/part/bomManagement.js' } from '@/api/part/bomManagement.js'
import {getSiteAndBuByUserName} from "@/api/eam/eam.js"
import {getSiteAndBuByUserName, getSiteAndBuByUserName2} from "@/api/qc/qc.js"
import {getTableDefaultListLanguage, getTableUserListLanguage} from "@/api/table.js" import {getTableDefaultListLanguage, getTableUserListLanguage} from "@/api/table.js"
import ChooseList from '@/views/modules/common/Chooselist_eam' import ChooseList from '@/views/modules/common/Chooselist_eam'
@ -838,6 +836,7 @@ export default {
exportFooter: [], exportFooter: [],
resultList: [], resultList: [],
userBuList: [], userBuList: [],
buList: [],
// ======== ======== // ======== ========
height: 200, height: 200,
// ======== ======== // ======== ========
@ -2054,6 +2053,8 @@ export default {
this.getButtonAuthData() this.getButtonAuthData()
// site bu // site bu
this.getSiteAndBuByUserName() this.getSiteAndBuByUserName()
// site bu
this.getSiteAndBuByUserName2()
// //
this.getTableUserColumn(this.$route.meta.menuId+'table1',1) this.getTableUserColumn(this.$route.meta.menuId+'table1',1)
if (!this.authSearch) { if (!this.authSearch) {
@ -2092,6 +2093,18 @@ export default {
}) })
}, },
// bu
getSiteAndBuByUserName2 () {
let tempData = {
username: this.$store.state.user.name,
}
getSiteAndBuByUserName2(tempData).then(({data}) => {
if (data.code === 0) {
this.buList = data.rows
}
})
},
// ======== ======== // ======== ========
/** /**
* 每页数 * 每页数
@ -2421,10 +2434,10 @@ export default {
this.$message.warning('请先选择替代!') this.$message.warning('请先选择替代!')
return return
} }
if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
this.$message.warning('不可编辑的替代状态!')
return
}
// if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
// this.$message.warning('!')
// return
// }
this.componentData = { this.componentData = {
flag: '1', flag: '1',
site: this.modalData.site, site: this.modalData.site,
@ -2474,10 +2487,10 @@ export default {
this.$message.warning('请先选择替代!') this.$message.warning('请先选择替代!')
return return
} }
if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
this.$message.warning('不可编辑的替代状态!')
return
}
// if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
// this.$message.warning('!')
// return
// }
this.componentData = { this.componentData = {
flag: '1', flag: '1',
site: this.$store.state.user.site, site: this.$store.state.user.site,
@ -2522,10 +2535,10 @@ export default {
* 子明细编辑模态框 * 子明细编辑模态框
*/ */
updateComponentModal (row) { updateComponentModal (row) {
if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
this.$message.warning('不可编辑的替代状态!')
return
}
// if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
// this.$message.warning('!')
// return
// }
this.componentData = { this.componentData = {
flag: '2', flag: '2',
site: row.site, site: row.site,
@ -2742,14 +2755,42 @@ export default {
this.modalData.partDesc = data.page.list[0].partDesc this.modalData.partDesc = data.page.list[0].partDesc
this.modalData.printUnit = data.page.list[0].printUnit this.modalData.printUnit = data.page.list[0].printUnit
this.modalData.printUnitName = data.page[0].printUnitName this.modalData.printUnitName = data.page[0].printUnitName
return
// routing
getBomEngChgLevel(this.modalData).then(({data}) => {
if (data && data.code === 0) {
this.modalData.engChgLevel = data.engChgLevel
} else {
this.modalData.engChgLevel = ''
}
})
} else {
this.modalData.partDesc = ''
this.modalData.printUnit = ''
this.modalData.printUnitName = ''
this.modalData.engChgLevel = ''
} }
} }
}) })
} else {
this.modalData.partDesc = ''
this.modalData.printUnit = ''
this.modalData.printUnitName = ''
this.modalData.engChgLevel = ''
} }
this.modalData.partDesc = ''
this.modalData.printUnit = ''
this.modalData.printUnitName = ''
},
/**
* BOM类型改变
*/
bomTypeChange () {
// Bom
getBomEngChgLevel(this.modalData).then(({data}) => {
if (data && data.code === 0) {
this.modalData.engChgLevel = data.engChgLevel
} else {
this.modalData.engChgLevel = ''
}
})
}, },
/** /**
@ -2761,7 +2802,15 @@ export default {
this.modalData.partDesc = row.partDesc this.modalData.partDesc = row.partDesc
this.modalData.printUnit = row.printUnit this.modalData.printUnit = row.printUnit
this.modalData.printUnitName = row.printUnitName this.modalData.printUnitName = row.printUnitName
this.partModelFlag = false
// routing
getBomEngChgLevel(this.modalData).then(({data}) => {
if (data && data.code === 0) {
this.modalData.engChgLevel = data.engChgLevel
} else {
this.modalData.engChgLevel = ''
}
this.partModelFlag = false
})
}, },
/** /**
@ -2977,10 +3026,10 @@ export default {
* 删除子物料 * 删除子物料
*/ */
deleteComponentPart () { deleteComponentPart () {
if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
this.$message.warning('不可编辑的替代状态!')
return
}
// if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
// this.$message.warning('!')
// return
// }
if (this.checkedDetail.length === 0) { if (this.checkedDetail.length === 0) {
this.$message.warning('请选择要删除子物料!') this.$message.warning('请选择要删除子物料!')
return return

262
src/views/modules/part/routingManagement.vue

@ -3,12 +3,12 @@
<!-- 查询条件 --> <!-- 查询条件 -->
<el-form :inline="true" label-position="top" :model="searchData"> <el-form :inline="true" label-position="top" :model="searchData">
<el-form-item :label="'BU'"> <el-form-item :label="'BU'">
<el-select v-model="searchData.buDesc" placeholder="请选择" clearable style="width: 130px">
<el-select v-model="searchData.buNo" placeholder="请选择" clearable style="width: 130px">
<el-option <el-option
v-for = "i in userBuList"
v-for = "i in buList"
:key = "i.buNo" :key = "i.buNo"
:label = "i.buDesc" :label = "i.buDesc"
:value = "i.buDesc">
:value = "i.buNo">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -114,8 +114,6 @@
:key = "i.buNo" :key = "i.buNo"
:label = "i.buDesc" :label = "i.buDesc"
:value = "i.buNo"> :value = "i.buNo">
<span style="float: left;width: 100px">{{ i.sitename }}</span>
<span style="float: right; color: #8492a6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; font-size: 11px;width: 60px">{{ i.buDesc }}</span>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -379,7 +377,7 @@
</el-form> </el-form>
<el-form :inline="true" label-position="top" :model="componentData" :rules="componentRules" style="margin-left: 5px"> <el-form :inline="true" label-position="top" :model="componentData" :rules="componentRules" style="margin-left: 5px">
<el-form-item :label="'调机过程中人数'" style="margin-left: 235px" prop="setupCrewSize"> <el-form-item :label="'调机过程中人数'" style="margin-left: 235px" prop="setupCrewSize">
<el-input-number :controls="false" :step="0" v-model="componentData.setupCrewSize" style="width: 221px"></el-input-number>
<el-input-number :controls="false" :step="0" :precision="2" v-model="componentData.setupCrewSize" style="width: 221px"></el-input-number>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-form :inline="true" label-position="top" :model="componentData" :rules="componentRules" style="margin-left: 5px"> <el-form :inline="true" label-position="top" :model="componentData" :rules="componentRules" style="margin-left: 5px">
@ -417,7 +415,7 @@
<el-input-number :controls="false" :step="0" min="0" max="100" v-model="componentData.efficiencyFactor" style="width: 221px"></el-input-number> <el-input-number :controls="false" :step="0" min="0" max="100" v-model="componentData.efficiencyFactor" style="width: 221px"></el-input-number>
</el-form-item> </el-form-item>
<el-form-item :label="'生产过程中人数'" prop="crewSize"> <el-form-item :label="'生产过程中人数'" prop="crewSize">
<el-input-number :controls="false" :step="0" v-model="componentData.crewSize" style="width: 221px"></el-input-number>
<el-input-number :controls="false" :step="0" :precision="2" v-model="componentData.crewSize" style="width: 221px"></el-input-number>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-form :inline="true" label-position="top" :model="componentData" style="margin-left: 5px"> <el-form :inline="true" label-position="top" :model="componentData" style="margin-left: 5px">
@ -655,9 +653,9 @@
</el-dialog> </el-dialog>
<!-- 标准工序 --> <!-- 标准工序 -->
<el-dialog title="标准工序" top="20vh" :close-on-click-modal="false" v-drag :visible.sync="standardOperationModal" width="700px">
<el-dialog title="标准工序" top="20vh" :close-on-click-modal="false" v-drag :visible.sync="standardOperationModal" width="1000px">
<el-table <el-table
:height="250"
:height="350"
:data="standardOperationList" :data="standardOperationList"
border border
style="width: 100%;"> style="width: 100%;">
@ -715,7 +713,7 @@ import {
saveStandardOperation, // saveStandardOperation, //
} from '@/api/part/routingManagement.js' } from '@/api/part/routingManagement.js'
import {verifyData} from '@/api/part/partInformation.js' import {verifyData} from '@/api/part/partInformation.js'
import {getSiteAndBuByUserName} from "@/api/eam/eam.js"
import {getSiteAndBuByUserName, getSiteAndBuByUserName2} from "@/api/qc/qc.js"
import {getTableDefaultListLanguage, getTableUserListLanguage} from "@/api/table.js" import {getTableDefaultListLanguage, getTableUserListLanguage} from "@/api/table.js"
import ChooseList from '@/views/modules/common/Chooselist_eam' import ChooseList from '@/views/modules/common/Chooselist_eam'
@ -775,6 +773,7 @@ export default {
exportFooter: [], exportFooter: [],
resultList: [], resultList: [],
userBuList: [], userBuList: [],
buList: [],
// ======== ======== // ======== ========
height: 200, height: 200,
// ======== ======== // ======== ========
@ -1275,13 +1274,13 @@ export default {
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 601003, functionId: 601003,
serialNumber: '104003Table2MachRunFactor',
serialNumber: '104003Table2RunTimeCodeDesc',
tableId: '104003Table2', tableId: '104003Table2',
tableName: 'Routing工序表', tableName: 'Routing工序表',
columnProp: 'machRunFactor',
columnProp: 'runTimeCodeDesc',
headerAlign: 'center', headerAlign: 'center',
align: 'right',
columnLabel: '机器单位产出',
align: 'center',
columnLabel: '产出单位',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -1293,13 +1292,31 @@ export default {
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 601003, functionId: 601003,
serialNumber: '104003Table2MachSetupTime',
serialNumber: '104003Table2SetupLaborClassDesc',
tableId: '104003Table2', tableId: '104003Table2',
tableName: 'Routing工序表', tableName: 'Routing工序表',
columnProp: 'machSetupTime',
columnProp: 'setupLaborClassDesc',
headerAlign: 'center',
align: 'center',
columnLabel: '调机时人员等级',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100
},
{
userId: this.$store.state.user.name,
functionId: 601003,
serialNumber: '104003Table2SetupCrewSize',
tableId: '104003Table2',
tableName: 'Routing工序表',
columnProp: 'setupCrewSize',
headerAlign: 'center', headerAlign: 'center',
align: 'right', align: 'right',
columnLabel: '机器调机时间',
columnLabel: '调机过程人数',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -1311,13 +1328,13 @@ export default {
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 601003, functionId: 601003,
serialNumber: '104003Table2RunTimeCodeDesc',
serialNumber: '104003Table2MachSetupTime',
tableId: '104003Table2', tableId: '104003Table2',
tableName: 'Routing工序表', tableName: 'Routing工序表',
columnProp: 'runTimeCodeDesc',
columnProp: 'machSetupTime',
headerAlign: 'center', headerAlign: 'center',
align: 'center',
columnLabel: '产出单位',
align: 'right',
columnLabel: '机器调机时间',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -1347,13 +1364,13 @@ export default {
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 601003, functionId: 601003,
serialNumber: '104003Table2LaborCycleTime',
serialNumber: '104003Table2MachRunFactor',
tableId: '104003Table2', tableId: '104003Table2',
tableName: 'Routing工序表', tableName: 'Routing工序表',
columnProp: 'laborCycleTime',
columnProp: 'machRunFactor',
headerAlign: 'center', headerAlign: 'center',
align: 'right', align: 'right',
columnLabel: '人工处理时间',
columnLabel: '机器单位产出',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -1365,13 +1382,13 @@ export default {
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 601003, functionId: 601003,
serialNumber: '104003Table2LaborRunFactor',
serialNumber: '104003Table2LaborClassNo',
tableId: '104003Table2', tableId: '104003Table2',
tableName: 'Routing工序表', tableName: 'Routing工序表',
columnProp: 'laborRunFactor',
columnProp: 'laborClassDesc',
headerAlign: 'center', headerAlign: 'center',
align: 'right',
columnLabel: '人工单位产出',
align: 'center',
columnLabel: '人员等级',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -1383,13 +1400,13 @@ export default {
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 601003, functionId: 601003,
serialNumber: '104003Table2LaborSetupTime',
serialNumber: '104003Table2CrewSize',
tableId: '104003Table2', tableId: '104003Table2',
tableName: 'Routing工序表', tableName: 'Routing工序表',
columnProp: 'laborSetupTime',
columnProp: 'crewSize',
headerAlign: 'center', headerAlign: 'center',
align: 'right', align: 'right',
columnLabel: '人工调机时间',
columnLabel: '生产过程人数',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -1401,13 +1418,13 @@ export default {
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 601003, functionId: 601003,
serialNumber: '104003Table2CrewSize',
serialNumber: '104003Table2LaborSetupTime',
tableId: '104003Table2', tableId: '104003Table2',
tableName: 'Routing工序表', tableName: 'Routing工序表',
columnProp: 'crewSize',
columnProp: 'laborSetupTime',
headerAlign: 'center', headerAlign: 'center',
align: 'right', align: 'right',
columnLabel: '生产过程人数',
columnLabel: '人工调机时间',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -1419,13 +1436,13 @@ export default {
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 601003, functionId: 601003,
serialNumber: '104003Table2SetupCrewSize',
serialNumber: '104003Table2LaborCycleTime',
tableId: '104003Table2', tableId: '104003Table2',
tableName: 'Routing工序表', tableName: 'Routing工序表',
columnProp: 'setupCrewSize',
columnProp: 'laborCycleTime',
headerAlign: 'center', headerAlign: 'center',
align: 'right', align: 'right',
columnLabel: '调机过程人数',
columnLabel: '人工处理时间',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -1437,13 +1454,13 @@ export default {
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 601003, functionId: 601003,
serialNumber: '104003Table2OutsideOpItem',
serialNumber: '104003Table2LaborRunFactor',
tableId: '104003Table2', tableId: '104003Table2',
tableName: 'Routing工序表', tableName: 'Routing工序表',
columnProp: 'outsideOpItem',
columnProp: 'laborRunFactor',
headerAlign: 'center', headerAlign: 'center',
align: 'center',
columnLabel: '外协采购料号',
align: 'right',
columnLabel: '人工单位产出',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -1486,7 +1503,7 @@ export default {
sortLv: 0, sortLv: 0,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 200
columnWidth: 120
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
@ -1509,31 +1526,13 @@ export default {
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 601003, functionId: 601003,
serialNumber: '104003Table2LaborClassNo',
tableId: '104003Table2',
tableName: 'Routing工序表',
columnProp: 'laborClassDesc',
headerAlign: 'center',
align: 'center',
columnLabel: '人员等级',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100
},
{
userId: this.$store.state.user.name,
functionId: 601003,
serialNumber: '104003Table2SetupLaborClassDesc',
serialNumber: '104003Table2OutsideOpItem',
tableId: '104003Table2', tableId: '104003Table2',
tableName: 'Routing工序表', tableName: 'Routing工序表',
columnProp: 'setupLaborClassDesc',
columnProp: 'outsideOpItem',
headerAlign: 'center', headerAlign: 'center',
align: 'center', align: 'center',
columnLabel: '调机时人员等级',
columnLabel: '外协采购料号',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -1666,7 +1665,7 @@ export default {
columnImage: false, columnImage: false,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 100
columnWidth: 80
}, },
{ {
columnProp: 'operationName', columnProp: 'operationName',
@ -1677,7 +1676,7 @@ export default {
columnImage: false, columnImage: false,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 150
columnWidth: 120
}, },
{ {
columnProp: 'workCenterNo', columnProp: 'workCenterNo',
@ -1699,35 +1698,35 @@ export default {
columnImage: false, columnImage: false,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 150
columnWidth: 120
}, },
{ {
columnProp: 'laborClassNo',
columnProp: 'setupLaborClassNo',
headerAlign: "center", headerAlign: "center",
align: "center", align: "center",
columnLabel: '人员等级编码',
columnLabel: '调机时人员等级编码',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 100
columnWidth: 120
}, },
{ {
columnProp: 'laborClassDesc',
columnProp: 'setupLaborClassDesc',
headerAlign: "center", headerAlign: "center",
align: "left", align: "left",
columnLabel: '人员等级描述',
columnLabel: '调机时人员等级描述',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 150
columnWidth: 120
}, },
{ {
columnProp: 'setupLaborClassNo',
columnProp: 'setupCrewSize',
headerAlign: "center", headerAlign: "center",
align: "center",
columnLabel: '调机时人员等级编码',
align: "right",
columnLabel: '调机过程中人数',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
status: true, status: true,
@ -1735,21 +1734,21 @@ export default {
columnWidth: 100 columnWidth: 100
}, },
{ {
columnProp: 'setupLaborClassDesc',
headerAlign: "center",
align: "left",
columnLabel: '调机时人员等级描述',
columnProp: 'machCycleTime',
headerAlign: 'center',
align: 'right',
columnLabel: '机器处理时间',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 150
columnWidth: 100
}, },
{ {
columnProp: 'laborRunFactor',
columnProp: 'machRunFactor',
headerAlign: 'center', headerAlign: 'center',
align: 'right', align: 'right',
columnLabel: '人工单位产出',
columnLabel: '机器单位产出',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
status: true, status: true,
@ -1757,10 +1756,32 @@ export default {
columnWidth: 100 columnWidth: 100
}, },
{ {
columnProp: 'machRunFactor',
headerAlign: 'center',
align: 'right',
columnLabel: '机器单位产出',
columnProp: 'laborClassNo',
headerAlign: "center",
align: "center",
columnLabel: '人员等级编码',
columnHidden: false,
columnImage: false,
status: true,
fixed: '',
columnWidth: 120
},
{
columnProp: 'laborClassDesc',
headerAlign: "center",
align: "left",
columnLabel: '人员等级描述',
columnHidden: false,
columnImage: false,
status: true,
fixed: '',
columnWidth: 120
},
{
columnProp: 'crewSize',
headerAlign: "center",
align: "right",
columnLabel: '生产过程中人数',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
status: true, status: true,
@ -1779,16 +1800,27 @@ export default {
columnWidth: 100 columnWidth: 100
}, },
{ {
columnProp: 'machCycleTime',
columnProp: 'laborRunFactor',
headerAlign: 'center', headerAlign: 'center',
align: 'right', align: 'right',
columnLabel: '机器处理时间',
columnLabel: '人工单位产出',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 100 columnWidth: 100
}, },
{
columnProp: 'conditionDesc',
headerAlign: 'center',
align: 'left',
columnLabel: '条件描述',
columnHidden: false,
columnImage: false,
status: true,
fixed: '',
columnWidth: 200
},
], ],
// ======== ======== // ======== ========
rules: { rules: {
@ -1978,6 +2010,8 @@ export default {
this.getButtonAuthData() this.getButtonAuthData()
// site bu // site bu
this.getSiteAndBuByUserName() this.getSiteAndBuByUserName()
// site bu
this.getSiteAndBuByUserName2()
// //
this.getTableUserColumn(this.$route.meta.menuId+'table1',1) this.getTableUserColumn(this.$route.meta.menuId+'table1',1)
if (!this.authSearch) { if (!this.authSearch) {
@ -2016,6 +2050,18 @@ export default {
}) })
}, },
// bu
getSiteAndBuByUserName2 () {
let tempData = {
username: this.$store.state.user.name,
}
getSiteAndBuByUserName2(tempData).then(({data}) => {
if (data.code === 0) {
this.buList = data.rows
}
})
},
// ======== ======== // ======== ========
/** /**
* 每页数 * 每页数
@ -2413,10 +2459,10 @@ export default {
this.$message.warning('请先选择替代!') this.$message.warning('请先选择替代!')
return return
} }
if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
this.$message.warning('不可编辑的替代状态!')
return
}
// if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
// this.$message.warning('!')
// return
// }
getStandardOperations(this.modalData).then(({data}) => { getStandardOperations(this.modalData).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.standardOperationList = data.rows this.standardOperationList = data.rows
@ -2476,10 +2522,10 @@ export default {
this.$message.warning('请先选择替代!') this.$message.warning('请先选择替代!')
return return
} }
if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
this.$message.warning('不可编辑的替代状态!')
return
}
// if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
// this.$message.warning('!')
// return
// }
this.componentData = { this.componentData = {
flag: '1', flag: '1',
site: this.modalData.site, site: this.modalData.site,
@ -2531,10 +2577,10 @@ export default {
* 编辑模态框 * 编辑模态框
*/ */
updateComponentModal (row) { updateComponentModal (row) {
if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
this.$message.warning('不可编辑的替代状态!')
return
}
// if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
// this.$message.warning('!')
// return
// }
this.componentData = { this.componentData = {
flag: '2', flag: '2',
site: row.site, site: row.site,
@ -2788,9 +2834,7 @@ export default {
if (data && data.code === 0) { if (data && data.code === 0) {
this.modalData.routingRevision = data.routingRevision this.modalData.routingRevision = data.routingRevision
} else { } else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
this.modalData.routingRevision = ''
} }
this.partModelFlag = false this.partModelFlag = false
}) })
@ -2805,9 +2849,7 @@ export default {
if (data && data.code === 0) { if (data && data.code === 0) {
this.modalData.routingRevision = data.routingRevision this.modalData.routingRevision = data.routingRevision
} else { } else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
this.modalData.routingRevision = ''
} }
}) })
}, },
@ -2833,10 +2875,10 @@ export default {
* 删除子物料 * 删除子物料
*/ */
deleteComponentPart () { deleteComponentPart () {
if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
this.$message.warning('不可编辑的替代状态!')
return
}
// if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
// this.$message.warning('!')
// return
// }
if (this.checkedDetail.length === 0) { if (this.checkedDetail.length === 0) {
this.$message.warning('请选择要删除子物料!') this.$message.warning('请选择要删除子物料!')
return return

Loading…
Cancel
Save