Browse Source

2024-03-27 更新

master
fengyuan_yang 2 years ago
parent
commit
b5c16c910f
  1. 40
      src/api/part/recipeManagement.js
  2. 2
      src/element-ui/index.js
  3. 257
      src/views/modules/part/bomManagement.vue
  4. 1583
      src/views/modules/part/recipeManagement.vue
  5. 4
      src/views/modules/proofing/requestForProofing.vue
  6. 4
      src/views/modules/test/requestForTest.vue

40
src/api/part/recipeManagement.js

@ -147,6 +147,46 @@ export const copyRecipe = data => createAPI(`/plm/recipeManagement/copyRecipe`,'
*/ */
export const copyAlternative = data => createAPI(`/plm/recipeManagement/copyAlternative`,'post',data) export const copyAlternative = data => createAPI(`/plm/recipeManagement/copyAlternative`,'post',data)
/**
* 转正式Recipe
* @param data
* @returns {*}
*/
export const toBecomeOfficialRecipe = data => createAPI(`/plm/recipeManagement/toBecomeOfficialRecipe`,'post',data)
/**
* 新编辑副产品成本分配
* @param data
* @returns {*}
*/
export const updateManufStructCostDistrib = data => createAPI(`/plm/recipeManagement/updateManufStructCostDistrib`,'post',data)
/**
* 刷新子物料
* @param data
* @returns {*}
*/
export const queryRecipeComponentTable = data => createAPI(`/plm/recipeManagement/queryRecipeComponentTable`,'post',data)
/**
* 刷新副产品
* @param data
* @returns {*}
*/
export const queryRecipeByProductTable = data => createAPI(`/plm/recipeManagement/queryRecipeByProductTable`,'post',data)
/**
* 刷新项目成本分配
* @param data
* @returns {*}
*/
export const queryManufStructCostDistribtionTable = data => createAPI(`/plm/recipeManagement/queryManufStructCostDistribtionTable`,'post',data)
/**
* 刷新多级别结构
* @param data
* @returns {*}
*/
export const queryMultiLevelStructureTable = data => createAPI(`/plm/recipeManagement/queryMultiLevelStructureTable`,'post',data)

2
src/element-ui/index.js

@ -151,7 +151,7 @@ Vue.prototype.$ELEMENT = {size: 'medium'}
Vue.prototype.$message = function (msg) { Vue.prototype.$message = function (msg) {
let msgObj = { let msgObj = {
message: msg.message ? msg.message : msg, message: msg.message ? msg.message : msg,
duration: 2000
duration: 1000
} }
let msgType = msg.type || "" let msgType = msg.type || ""
switch (msgType) { switch (msgType) {

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

@ -257,7 +257,7 @@
style="width:100%"> style="width:100%">
<el-table-column type="selection" align="center" width="50"></el-table-column> <el-table-column type="selection" align="center" width="50"></el-table-column>
<el-table-column <el-table-column
v-for="(item,index) in columnSubDetailList" :key="index"
v-for="(item,index) in columnSubDetailList2" :key="index"
:sortable="item.columnSortable" :sortable="item.columnSortable"
:prop="item.columnProp" :prop="item.columnProp"
:header-align="item.headerAlign" :header-align="item.headerAlign"
@ -468,7 +468,7 @@
</el-dialog> </el-dialog>
<!-- 子明细新增模态框 --> <!-- 子明细新增模态框 -->
<el-dialog title="新增子物料" :close-on-click-modal="false" v-drag :visible.sync="componentSaveModal" width="800px">
<el-dialog title="新增子物料" :close-on-click-modal="false" top="25vh" v-drag :visible.sync="componentSaveModal" width="800px">
<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="'序号'" prop="lineSequence" :rules="componentRules.lineSequence"> <el-form-item :label="'序号'" prop="lineSequence" :rules="componentRules.lineSequence">
<el-input class="inlineNumber numInput" v-model="componentData.lineSequence" type="number" style="width: 49px"></el-input> <el-input class="inlineNumber numInput" v-model="componentData.lineSequence" type="number" style="width: 49px"></el-input>
@ -476,13 +476,19 @@
<el-form-item prop="componentPart" :rules="componentRules.componentPart"> <el-form-item prop="componentPart" :rules="componentRules.componentPart">
<span v-if="!componentDisableFlag" slot="label" @click="queryComponentPartList"><a herf="#">子物料编码</a></span> <span v-if="!componentDisableFlag" slot="label" @click="queryComponentPartList"><a herf="#">子物料编码</a></span>
<span v-if="componentDisableFlag" slot="label">子物料编码</span> <span v-if="componentDisableFlag" slot="label">子物料编码</span>
<el-input v-model="componentData.componentPart" :disabled="componentDisableFlag" @blur="componentPartBlur" style="width: 175px"></el-input>
<el-input v-model="componentData.componentPart" :disabled="componentDisableFlag" @blur="componentPartBlur" style="width: 130px"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="'子物料名称'"> <el-form-item :label="'子物料名称'">
<el-input v-model="componentData.componentPartDesc" disabled style="width: 327px"></el-input>
<el-input v-model="componentData.componentPartDesc" disabled style="width: 249px"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="'单位'"> <el-form-item :label="'单位'">
<el-input v-model="componentData.printUnitName" disabled style="width: 165px"></el-input>
<el-input v-model="componentData.printUnitName" disabled style="width: 110px"></el-input>
</el-form-item>
<el-form-item v-show="componentData.productFlag === 'component'" :label="'消耗项目'" prop="consumptionItem" :rules="componentRules.consumptionItem">
<el-select v-model="componentData.consumptionItem" style="width: 165px">
<el-option label="Consumed" value="Consumed"></el-option>
<el-option label="Not Consumed" value="Not Consumed"></el-option>
</el-select>
</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">
@ -951,6 +957,7 @@ export default {
updateDate: '', updateDate: '',
updateBy: '', updateBy: '',
lineSequence: '', lineSequence: '',
consumptionItem: '',
productFlag: '' productFlag: ''
}, },
partData: { partData: {
@ -1479,6 +1486,24 @@ export default {
fixed: '', fixed: '',
columnWidth: 80 columnWidth: 80
}, },
{
userId: this.$store.state.user.name,
functionId: 104002,
serialNumber: '104002Table2ConsumptionItem',
tableId: '104002Table2',
tableName: 'BOM子物料表',
columnProp: 'consumptionItem',
headerAlign: 'center',
align: 'left',
columnLabel: '消耗项目',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
},
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 104002, functionId: 104002,
@ -1570,6 +1595,206 @@ export default {
columnWidth: 150 columnWidth: 150
}, },
], ],
columnSubDetailList2: [
{
userId: this.$store.state.user.name,
functionId: 104002,
serialNumber: '104002Table3LineSequence',
tableId: '104002Table3',
tableName: 'BOM副产品表',
columnProp: 'lineSequence',
headerAlign: 'center',
align: 'center',
columnLabel: '序号',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 60
},
{
userId: this.$store.state.user.name,
functionId: 104002,
serialNumber: '104002Table3ComponentPart',
tableId: '104002Table3',
tableName: 'BOM副产品表',
columnProp: 'componentPart',
headerAlign: 'center',
align: 'center',
columnLabel: '物料编码',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 120
},
{
userId: this.$store.state.user.name,
functionId: 104002,
serialNumber: '104002Table3ComponentPartDesc',
tableId: '104002Table3',
tableName: 'BOM副产品表',
columnProp: 'componentPartDesc',
headerAlign: 'center',
align: 'left',
columnLabel: '物料名称',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 120
},
{
userId: this.$store.state.user.name,
functionId: 104002,
serialNumber: '104002Table3QtyPerAssembly',
tableId: '104002Table3',
tableName: 'BOM副产品表',
columnProp: 'qtyPerAssembly',
headerAlign: 'center',
align: 'right',
columnLabel: '单位用量',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
},
{
userId: this.$store.state.user.name,
functionId: 104002,
serialNumber: '104002Table3ComponentScrap',
tableId: '104002Table3',
tableName: 'BOM副产品表',
columnProp: 'componentScrap',
headerAlign: 'center',
align: 'right',
columnLabel: '调机量',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
},
{
userId: this.$store.state.user.name,
functionId: 104002,
serialNumber: '104002Table3ShrinkageFactor',
tableId: '104002Table3',
tableName: 'BOM副产品表',
columnProp: 'shrinkageFactor',
headerAlign: 'center',
align: 'right',
columnLabel: '损耗率',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
},
{
userId: this.$store.state.user.name,
functionId: 104002,
serialNumber: '104002Table3PrintUnitName',
tableId: '104002Table3',
tableName: 'BOM副产品表',
columnProp: 'printUnitName',
headerAlign: 'center',
align: 'center',
columnLabel: '单位',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 60
},
{
userId: this.$store.state.user.name,
functionId: 104002,
serialNumber: '104002Table3IssueType',
tableId: '104002Table3',
tableName: 'BOM副产品表',
columnProp: 'issueType',
headerAlign: 'center',
align: 'center',
columnLabel: '生产属性',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
},
{
userId: this.$store.state.user.name,
functionId: 104002,
serialNumber: '104002Table3OperationDesc',
tableId: '104002Table3',
tableName: 'BOM副产品表',
columnProp: 'operationId',
headerAlign: 'center',
align: 'center',
columnLabel: '工序',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
},
{
userId: this.$store.state.user.name,
functionId: 104002,
serialNumber: '104002Table3IssueToLoc',
tableId: '104002Table3',
tableName: 'BOM副产品表',
columnProp: 'issueToLocName',
headerAlign: 'center',
align: 'center',
columnLabel: '发料库位',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
},
{
userId: this.$store.state.user.name,
functionId: 104002,
serialNumber: '104002Table3NoteText',
tableId: '104002Table3',
tableName: 'BOM副产品表',
columnProp: 'noteText',
headerAlign: 'center',
align: 'left',
columnLabel: '备注',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 150
},
],
operationDetailList: [ operationDetailList: [
{ {
columnProp: 'routingRevision', columnProp: 'routingRevision',
@ -2070,6 +2295,13 @@ export default {
message: ' ', message: ' ',
trigger: ['blur','change'] trigger: ['blur','change']
} }
],
consumptionItem: [
{
required: true,
message: ' ',
trigger: ['blur','change']
}
] ]
}, },
// ======== ======== // ======== ========
@ -2457,6 +2689,7 @@ export default {
noteText: '', noteText: '',
createBy: this.$store.state.user.name, createBy: this.$store.state.user.name,
lineSequence: '', lineSequence: '',
consumptionItem: 'Consumed',
productFlag: 'component' productFlag: 'component'
} }
// //
@ -2506,6 +2739,7 @@ export default {
noteText: '', noteText: '',
createBy: this.$store.state.user.name, createBy: this.$store.state.user.name,
lineSequence: '', lineSequence: '',
consumptionItem: '',
productFlag: 'byProduct' productFlag: 'byProduct'
} }
// //
@ -2551,6 +2785,7 @@ export default {
noteText: row.noteText, noteText: row.noteText,
updateBy: this.$store.state.user.name, updateBy: this.$store.state.user.name,
lineSequence: row.lineSequence, lineSequence: row.lineSequence,
consumptionItem: row.consumptionItem,
productFlag: 'component' productFlag: 'component'
} }
this.componentDisableFlag = true this.componentDisableFlag = true
@ -2586,6 +2821,7 @@ export default {
noteText: row.noteText, noteText: row.noteText,
updateBy: this.$store.state.user.name, updateBy: this.$store.state.user.name,
lineSequence: row.lineSequence, lineSequence: row.lineSequence,
consumptionItem: row.consumptionItem,
productFlag: 'byProduct' productFlag: 'byProduct'
} }
this.componentDisableFlag = true this.componentDisableFlag = true
@ -3103,6 +3339,10 @@ export default {
this.$message.warning('请选择子物料编码!') this.$message.warning('请选择子物料编码!')
return return
} }
if (this.componentData.productFlag === 'component' && (this.componentData.consumptionItem === '' || this.componentData.consumptionItem == null)) {
this.$message.warning('请选择消耗项目!')
return
}
if (this.componentData.qtyPerAssembly === '' || this.componentData.qtyPerAssembly == null) { if (this.componentData.qtyPerAssembly === '' || this.componentData.qtyPerAssembly == null) {
this.$message.warning('请填写单位用量!') this.$message.warning('请填写单位用量!')
return return
@ -3138,7 +3378,11 @@ export default {
this.byProductList = data.rows.byProductList this.byProductList = data.rows.byProductList
this.manufStructCostDistribList = data.rows.manufStructCostDistribList this.manufStructCostDistribList = data.rows.manufStructCostDistribList
if (isClose) { if (isClose) {
this.saveComponentModal()
if (this.subDetailTable === 'by_products') {
this.saveByProductModal()
} else {
this.saveComponentModal()
}
} else { } else {
this.componentSaveModal = false this.componentSaveModal = false
} }
@ -3769,6 +4013,7 @@ export default {
-moz-appearance: textfield; -moz-appearance: textfield;
padding-right: 5px !important; padding-right: 5px !important;
} }
</style> </style>

1583
src/views/modules/part/recipeManagement.vue
File diff suppressed because it is too large
View File

4
src/views/modules/proofing/requestForProofing.vue

@ -195,7 +195,7 @@
<el-form-item prop="trackerName"> <el-form-item prop="trackerName">
<!-- <span style="cursor: pointer" slot="label" @click="getBaseList(103,1)"><a herf="#">跟单员</a></span>--> <!-- <span style="cursor: pointer" slot="label" @click="getBaseList(103,1)"><a herf="#">跟单员</a></span>-->
<span style="cursor: pointer" slot="label" @click="getBaseList(2000)"><a herf="#">跟单员</a></span> <span style="cursor: pointer" slot="label" @click="getBaseList(2000)"><a herf="#">跟单员</a></span>
<el-input v-model="modalData.trackerName"></el-input>
<el-input v-model="modalData.trackerName" readonly></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -235,7 +235,7 @@
<el-form-item prop="engineerName"> <el-form-item prop="engineerName">
<!-- <span style="cursor: pointer" slot="label" @click="getBaseList(103,2)"><a herf="#">工程师</a></span>--> <!-- <span style="cursor: pointer" slot="label" @click="getBaseList(103,2)"><a herf="#">工程师</a></span>-->
<span style="cursor: pointer" slot="label" @click="getBaseList(2001)"><a herf="#">工程师</a></span> <span style="cursor: pointer" slot="label" @click="getBaseList(2001)"><a herf="#">工程师</a></span>
<el-input v-model="modalData.engineerName"></el-input>
<el-input v-model="modalData.engineerName" readonly></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>

4
src/views/modules/test/requestForTest.vue

@ -195,7 +195,7 @@
<el-form-item prop="trackerName"> <el-form-item prop="trackerName">
<!-- <span slot="label" @click="getBaseList(103,1)"><a herf="#">跟单员</a></span>--> <!-- <span slot="label" @click="getBaseList(103,1)"><a herf="#">跟单员</a></span>-->
<span style="cursor: pointer" slot="label" @click="getBaseList(2000)"><a herf="#">跟单员</a></span> <span style="cursor: pointer" slot="label" @click="getBaseList(2000)"><a herf="#">跟单员</a></span>
<el-input v-model="modalData.trackerName"></el-input>
<el-input v-model="modalData.trackerName" readonly></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -235,7 +235,7 @@
<el-form-item prop="engineerName"> <el-form-item prop="engineerName">
<!-- <span slot="label" @click="getBaseList(103,2)"><a herf="#">工程师</a></span>--> <!-- <span slot="label" @click="getBaseList(103,2)"><a herf="#">工程师</a></span>-->
<span slot="label" @click="getBaseList(2001)"><a herf="#">工程师</a></span> <span slot="label" @click="getBaseList(2001)"><a herf="#">工程师</a></span>
<el-input v-model="modalData.engineerName"></el-input>
<el-input v-model="modalData.engineerName" readonly></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>

Loading…
Cancel
Save