Browse Source

2024-11-07

java8
fengyuan_yang 1 year ago
parent
commit
5f5633a321
  1. 7
      src/api/part/bomManagement.js
  2. 8
      src/views/modules/eam/eamWorkOrderForDefect.vue
  3. 318
      src/views/modules/part/bomManagement.vue
  4. 151
      src/views/modules/part/bom_component_upload.vue
  5. 21
      src/views/modules/part/partInformation.vue
  6. 27
      src/views/modules/part/standardRoutingOperation.vue

7
src/api/part/bomManagement.js

@ -176,5 +176,10 @@ export const queryPartListAll = data => createAPI(`/part/bomManagement/queryPart
*/ */
export const batchSaveBomComponent = data => createAPI(`/part/bomManagement/batchSaveBomComponent`,'post',data) export const batchSaveBomComponent = data => createAPI(`/part/bomManagement/batchSaveBomComponent`,'post',data)
/**
* 批量新增子件
* @param data
* @returns {*}
*/
export const saveBomComponentByExcel = data => createAPI(`/part/bomManagement/saveBomComponentByExcel`,'post',data)

8
src/views/modules/eam/eamWorkOrderForDefect.vue

@ -1421,6 +1421,14 @@
this.$message.warning('到达时间不能大于实际执行时间!') this.$message.warning('到达时间不能大于实际执行时间!')
return return
} }
if (this.detailData.faultReason === '' || this.detailData.faultReason == null || this.detailData.faultReason.length < 10) {
this.$message.warning('请填写故障原因,且不低于十个字数!')
return
}
if (this.detailData.handlingMethod === '' || this.detailData.handlingMethod == null || this.detailData.handlingMethod.length < 10) {
this.$message.warning('请填写处理方式,且不低于十个字数!')
return
}
updateReportResult(this.detailData).then(({data}) => { updateReportResult(this.detailData).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.getDataList() this.getDataList()

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

@ -228,6 +228,7 @@
<el-form-item> <el-form-item>
<el-button type="primary" :loading="alternativeLoading" @click="saveComponentModal" style="margin-left: 7px">新增</el-button> <el-button type="primary" :loading="alternativeLoading" @click="saveComponentModal" style="margin-left: 7px">新增</el-button>
<el-button type="primary" :loading="alternativeLoading" @click="batchSaveComponentModal" style="margin-left: 7px">批量新增</el-button> <el-button type="primary" :loading="alternativeLoading" @click="batchSaveComponentModal" style="margin-left: 7px">批量新增</el-button>
<el-button type="primary" icon="el-icon-upload" @click="bomComponentUpload">导入</el-button>
<el-button type="primary" :loading="alternativeLoading" @click="deleteComponentPart">删除</el-button> <el-button type="primary" :loading="alternativeLoading" @click="deleteComponentPart">删除</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -784,68 +785,183 @@
</el-footer> </el-footer>
</el-dialog> </el-dialog>
<!-- 批量新增子明细物料模态框 -->
<el-dialog title="物料清单" top="17vh" :close-on-click-modal="false" v-drag :visible.sync="batchComponentPartModelFlag" width="1060px">
<el-form :inline="true" label-position="top" :model="batchComponentPartData">
<el-form-item :label="'物料编码'">
<el-input v-model="batchComponentPartData.partNo" clearable style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="'物料名称'">
<el-input v-model="batchComponentPartData.partDesc" clearable style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="' '">
<el-button type="primary" @click="queryBatchComponentPartList">查询</el-button>
</el-form-item>
<el-form-item :label="'损耗率%'" style="margin-left: 545px">
<el-input-number :controls="false" :step="0" min="0" max="100" v-model="batchComponentPartData.shrinkageFactor" style="width: 80px"></el-input-number>
</el-form-item>
</el-form>
<el-table
:height="400"
:data="batchComponentPartList"
ref="batchSaveTable"
@row-click="batchSaveClickRow"
@selection-change="selectionSaveComponent"
border
style="width: 100%;">
<el-table-column
type="selection"
header-align="center"
align="center"
width="50">
</el-table-column>
<el-table-column
v-for="(item,index) in componentPartColumnList" :key="index"
:sortable="item.columnSortable"
:prop="item.columnProp"
:header-align="item.headerAlign"
:show-overflow-tooltip="item.showOverflowTooltip"
:align="item.align"
:fixed="item.fixed==''?false:item.fixed"
:min-width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
</template>
</el-table-column>
</el-table>
<!-- 分页插件 -->
<el-pagination
@size-change="sizeChangeHandle5"
@current-change="currentChangeHandle5"
:current-page="pageIndex5"
:page-sizes="[20, 50, 100, 200, 500]"
:page-size="pageSize5"
:total="totalPage5"
layout="total, sizes, prev, pager, next, jumper">
</el-pagination>
<el-footer style="height:35px;margin-top:10px;text-align:center">
<!-- &lt;!&ndash; 批量新增子明细物料模态框 &ndash;&gt;-->
<!-- <el-dialog title="物料清单" top="17vh" :close-on-click-modal="false" v-drag :visible.sync="batchComponentPartModelFlag" width="1060px">-->
<!-- <el-form :inline="true" label-position="top" :model="batchComponentPartData">-->
<!-- <el-form-item :label="'物料编码'">-->
<!-- <el-input v-model="batchComponentPartData.partNo" clearable style="width: 120px"></el-input>-->
<!-- </el-form-item>-->
<!-- <el-form-item :label="'物料名称'">-->
<!-- <el-input v-model="batchComponentPartData.partDesc" clearable style="width: 120px"></el-input>-->
<!-- </el-form-item>-->
<!-- <el-form-item :label="' '">-->
<!-- <el-button type="primary" @click="queryBatchComponentPartList">查询</el-button>-->
<!-- </el-form-item>-->
<!-- <el-form-item :label="'损耗率%'" style="margin-left: 545px">-->
<!-- <el-input-number :controls="false" :step="0" min="0" max="100" v-model="batchComponentPartData.shrinkageFactor" style="width: 80px"></el-input-number>-->
<!-- </el-form-item>-->
<!-- </el-form>-->
<!-- <el-table-->
<!-- :height="400"-->
<!-- :data="batchComponentPartList"-->
<!-- ref="batchSaveTable"-->
<!-- @row-click="batchSaveClickRow"-->
<!-- @selection-change="selectionSaveComponent"-->
<!-- border-->
<!-- style="width: 100%;">-->
<!-- <el-table-column-->
<!-- type="selection"-->
<!-- header-align="center"-->
<!-- align="center"-->
<!-- width="50">-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- v-for="(item,index) in componentPartColumnList" :key="index"-->
<!-- :sortable="item.columnSortable"-->
<!-- :prop="item.columnProp"-->
<!-- :header-align="item.headerAlign"-->
<!-- :show-overflow-tooltip="item.showOverflowTooltip"-->
<!-- :align="item.align"-->
<!-- :fixed="item.fixed==''?false:item.fixed"-->
<!-- :min-width="item.columnWidth"-->
<!-- :label="item.columnLabel">-->
<!-- <template slot-scope="scope">-->
<!-- <span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>-->
<!-- <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- </el-table>-->
<!-- &lt;!&ndash; 分页插件 &ndash;&gt;-->
<!-- <el-pagination-->
<!-- @size-change="sizeChangeHandle5"-->
<!-- @current-change="currentChangeHandle5"-->
<!-- :current-page="pageIndex5"-->
<!-- :page-sizes="[20, 50, 100, 200, 500]"-->
<!-- :page-size="pageSize5"-->
<!-- :total="totalPage5"-->
<!-- layout="total, sizes, prev, pager, next, jumper">-->
<!-- </el-pagination>-->
<!-- <el-footer style="height:35px;margin-top:10px;text-align:center">-->
<!-- <el-button type="primary" @click="batchComponentDataSave">保存</el-button>-->
<!-- <el-button type="primary" @click="batchComponentPartModelFlag = false">关闭</el-button>-->
<!-- </el-footer>-->
<!-- </el-dialog>-->
<!-- 默认库位-> 快速新增 -->
<el-dialog title="新增" :close-on-click-modal="false" v-drag :visible.sync="batchComponentPartModelFlag" width="1170px">
<div style="font-size: 12px">
<el-form :inline="true" label-position="top" :model="batchComponentPartData">
<el-form-item :label="'物料编码'">
<el-input v-model="batchComponentPartData.partNo" clearable style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="'物料名称'">
<el-input v-model="batchComponentPartData.partDesc" clearable style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="' '">
<el-button type="primary" @click="queryBatchComponentPartList">查询</el-button>
</el-form-item>
<el-form-item :label="'损耗率%'" style="margin-left: 725px">
<el-input-number :controls="false" :step="0" min="0" max="100" v-model="batchComponentPartData.shrinkageFactor" style="width: 80px"></el-input-number>
</el-form-item>
</el-form>
</div>
<el-container>
<el-main style="width: 770px; padding: 1px">
<span style="font-size: 12px" >可选物料</span>
<el-table
height="400px"
:data="batchComponentPartList"
border
ref="batchSaveTable"
@row-click="batchSaveClickRow"
@selection-change="selectionSaveComponent"
highlight-current-row
style="width: 100%">
<el-table-column
type="selection"
header-align="center"
align="center"
width="50">
</el-table-column>
<el-table-column
v-for="(item,index) in componentPartColumnList" :key="index"
:sortable="item.columnSortable"
:prop="item.columnProp"
:header-align="item.headerAlign"
:show-overflow-tooltip="item.showOverflowTooltip"
:align="item.align"
:fixed="item.fixed==''?false:item.fixed"
:min-width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
</template>
</el-table-column>
</el-table>
<!-- 分页插件 -->
<el-pagination
@size-change="sizeChangeHandle5"
@current-change="currentChangeHandle5"
:current-page="pageIndex5"
:page-sizes="[20, 50, 100, 200, 500]"
:page-size="pageSize5"
:total="totalPage5"
layout="total, sizes, prev, pager, next, jumper">
</el-pagination>
</el-main>
<el-main style="width: 111px;padding: -1px">
<div style="margin-top: 182px;margin-left: 5px">
<el-button type="primary" @click="batchAddPart">添加>></el-button>
</div>
<div style="margin-top: 15px;margin-left: 5px">
<el-button type="primary" @click="batchDeletePart">删除<<</el-button>
</div>
</el-main>
<el-main style="width: 400px;padding: 1px">
<span style="font-size: 12px" >已选物料</span>
<el-table
height="400px"
:data="choosePartList"
border
ref="batchSaveTable2"
@row-click="batchSaveClickRow2"
@selection-change="selectionSaveComponent2"
highlight-current-row
style="width: 100%">
<el-table-column
type="selection"
header-align="center"
align="center"
width="50">
</el-table-column>
<el-table-column
prop="partNo"
header-align="center"
align="left"
min-width="100"
label="物料编码">
</el-table-column>
<el-table-column
prop="partDesc"
header-align="center"
align="left"
min-width="190"
label="物料名称">
</el-table-column>
</el-table>
</el-main>
</el-container>
<el-footer style="height:40px;margin-top: 20px;text-align:center">
<el-button type="primary" @click="batchComponentDataSave">保存</el-button> <el-button type="primary" @click="batchComponentDataSave">保存</el-button>
<el-button type="primary" @click="batchComponentPartModelFlag = false">关闭</el-button> <el-button type="primary" @click="batchComponentPartModelFlag = false">关闭</el-button>
</el-footer> </el-footer>
</el-dialog> </el-dialog>
<!-- 导入 -->
<bom-component-upload ref="BomComponentUpload" @refreshPageTables="queryBomComponentTable" v-drag></bom-component-upload>
<!-- chooseList模态框 --> <!-- chooseList模态框 -->
<ChooseList ref="baseList" @getBaseData="getBaseData"></ChooseList> <ChooseList ref="baseList" @getBaseData="getBaseData"></ChooseList>
</div> </div>
@ -882,10 +998,12 @@ import {
import {getSiteAndBuByUserName, getSiteAndBuByUserName2} from "@/api/qc/qc.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'
import BomComponentUpload from "./bom_component_upload.vue";
export default { export default {
// //
components: { components: {
BomComponentUpload,
ChooseList ChooseList
}, },
// //
@ -1152,6 +1270,7 @@ export default {
checkedDetail: [], checkedDetail: [],
checkedByProduct: [], checkedByProduct: [],
operationList: [], operationList: [],
choosePartList: [],
// ======== ======== // ======== ========
columnList: [ columnList: [
{ {
@ -1452,7 +1571,7 @@ export default {
{ {
columnProp: 'partNo', columnProp: 'partNo',
headerAlign: "center", headerAlign: "center",
align: "center",
align: "left",
columnLabel: '物料编码', columnLabel: '物料编码',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
@ -1907,6 +2026,7 @@ export default {
// ======== ======== // ======== ========
bomSelections: [], bomSelections: [],
batchComponentSelections: [], batchComponentSelections: [],
batchComponentSelections2: [],
// ======== ======== // ======== ========
authSearch: false, authSearch: false,
authSave: false, authSave: false,
@ -2156,6 +2276,16 @@ export default {
this.batchComponentSelections = val this.batchComponentSelections = val
}, },
//
batchSaveClickRow2 (row) {
this.$refs.batchSaveTable2.toggleRowSelection(row)
},
//
selectionSaveComponent2 (val) {
this.batchComponentSelections2 = val
},
// ======== / ======== // ======== / ========
/** /**
* bom新增模态框 * bom新增模态框
@ -2398,6 +2528,10 @@ export default {
// //
batchSaveComponentModal () { batchSaveComponentModal () {
this.pageSize5 = 20
this.pageIndex5 = 1
this.batchComponentPartData.partNo = ''
this.batchComponentPartData.partDesc = ''
this.batchComponentPartData.limit = this.pageSize5 this.batchComponentPartData.limit = this.pageSize5
this.batchComponentPartData.page = this.pageIndex5 this.batchComponentPartData.page = this.pageIndex5
this.batchComponentPartData.site = this.modalData.site this.batchComponentPartData.site = this.modalData.site
@ -2414,6 +2548,25 @@ export default {
this.batchComponentPartList = [] this.batchComponentPartList = []
} }
}) })
this.batchComponentPartData.shrinkageFactor = 0
this.choosePartList = []
},
//
bomComponentUpload () {
let currentData = {
site: this.detailData.site,
buNo: this.detailData.buNo,
partNo: this.detailData.partNo,
engChgLevel: this.detailData.engChgLevel,
bomType: this.detailData.bomType,
alternativeNo: this.detailData.alternativeNo,
createBy: this.$store.state.user.name,
}
//
this.$nextTick(() => {
this.$refs.BomComponentUpload.init(currentData)
})
}, },
/** /**
@ -2837,7 +2990,7 @@ export default {
this.componentPartData.limit = this.pageSize3 this.componentPartData.limit = this.pageSize3
this.componentPartData.page = this.pageIndex3 this.componentPartData.page = this.pageIndex3
// //
queryPartList(this.componentPartData).then(({data}) => {
queryPartListAll(this.componentPartData).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.componentPartList = data.page.list this.componentPartList = data.page.list
this.pageIndex3 = data.page.currPage this.pageIndex3 = data.page.currPage
@ -2856,7 +3009,7 @@ export default {
this.batchComponentPartData.limit = this.pageSize5 this.batchComponentPartData.limit = this.pageSize5
this.batchComponentPartData.page = this.pageIndex5 this.batchComponentPartData.page = this.pageIndex5
// //
queryPartList(this.batchComponentPartData).then(({data}) => {
queryPartListAll(this.batchComponentPartData).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.batchComponentPartList = data.page.list this.batchComponentPartList = data.page.list
this.pageIndex5 = data.page.currPage this.pageIndex5 = data.page.currPage
@ -3018,13 +3171,13 @@ export default {
} }
}, },
/**
* 子物
* @param row
*/
componentClickRow (row) {
this.$refs.componentTable.toggleRowSelection(row)
},
// /**
// *
// * @param row
// */
// componentClickRow (row) {
// this.$refs.componentTable.toggleRowSelection(row)
// },
/** /**
* 新增子明细方法 * 新增子明细方法
@ -3121,7 +3274,7 @@ export default {
// //
batchComponentDataSave () { batchComponentDataSave () {
this.$confirm("是否确认添加该"+ this.batchComponentSelections.length +"条子件记录?", "提示", {
this.$confirm("是否确认添加该"+ this.choosePartList.length +"条子件记录?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning"
@ -3147,7 +3300,7 @@ export default {
lineSequence: '', lineSequence: '',
issueType: 'Reserve And Backflush', issueType: 'Reserve And Backflush',
productFlag: 'component', productFlag: 'component',
batchSaveList: this.batchComponentSelections
batchSaveList: this.choosePartList
} }
batchSaveBomComponent(tempData).then(({data}) => { batchSaveBomComponent(tempData).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
@ -3177,6 +3330,33 @@ export default {
}) })
}, },
batchAddPart () {
if (this.batchComponentSelections == null || this.batchComponentSelections.length === 0) {
this.$message.warning('请选择可选物料!')
return
}
// Set
const chosenSet = new Set(this.choosePartList.map(item => `${item.site}-${item.partNo}`))
//
const hasDuplicates = this.batchComponentSelections.some(item => chosenSet.has(`${item.site}-${item.partNo}`))
if (hasDuplicates) {
this.$message.warning('所选物料中包含已存在的物料,请重新选择!')
return
}
this.choosePartList = [...this.choosePartList, ...this.batchComponentSelections]
},
batchDeletePart () {
if (this.batchComponentSelections2 == null || this.batchComponentSelections2.length === 0) {
this.$message.warning('请选择已选物料!')
return
}
// Set batchComponentSelections
const set = new Set(this.batchComponentSelections2.map(item => `${item.site}-${item.partNo}`))
// choosePartList batchComponentSelections
this.choosePartList = this.choosePartList.filter(item => !set.has(`${item.site}-${item.partNo}`))
},
/** /**
* 回车事件 * 回车事件
*/ */

151
src/views/modules/part/bom_component_upload.vue

@ -0,0 +1,151 @@
<template>
<div class="customer-css">
<el-dialog :title="titleCon" :close-on-click-modal="false" :visible.sync="visible" width="390px" style="height: 520px;" class="customer-dialog">
<el-form :inline="true" label-position="top" label-width="80px">
<el-button type="primary" @click="downloadFile()">下载文件模板</el-button>
<el-row>
<el-col :span="24">
<el-upload class="customer-upload" drag action="javascript:void(0);" ref="uploadFile" :limit="1" accept=".xlsx,.xls"
:before-upload="beforeUploadHandle" :on-change="onChange" :auto-upload="false" style="text-align: left;">
<i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处<em>点击上传</em></div>
</el-upload>
</el-col>
</el-row>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="saveUploadFile">保存</el-button>
<el-button type="primary" @click="closeDialog">关闭</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
import {queryFileId} from "@/api/qc/qc.js"
import {saveBomComponentByExcel} from '@/api/part/bomManagement.js'
import {downLoadObjectFile} from '@/api/eam/eam_object_list.js'
export default {
name: 'bomComponentUpload',
data() {
return {
titleCon: '文件导入',
visible: false,
fileList: [],
pageData: {
site: '',
buNo: '',
partNo: '',
engChgLevel: '',
bomType: '',
alternativeNo: '',
createBy: ''
},
}
},
methods: {
//
init (currentRow) {
this.fileList = []
//
this.pageData = JSON.parse(JSON.stringify(currentRow))
//
this.visible = true
},
//
beforeUploadHandle (file) {
let extName = file[0].name.substring(file[0].name.lastIndexOf('.')).toLowerCase()
if (!(extName === '.xlsx' || extName === '.xls')) {
this.$message.error('数据导入失败,请选择正确的xlsx模板文件')
return false
}
},
//
onChange (file) {
this.fileList.push(file)
},
// modal
closeDialog () {
this.fileList = []
//
this.$refs.uploadFile.clearFiles()
//
this.$emit('refreshPageTables')
//
this.visible = false
},
//
saveUploadFile () {
//
if (null == this.fileList || 0 === this.fileList.length) {
this.$message.error("请先上传文件!")
return false
}
const formData = new FormData()
formData.append("file", this.fileList[0].raw)
formData.append("createBy", this.pageData.createBy)
formData.append("site", this.pageData.site)
formData.append("buNo", this.pageData.buNo)
formData.append("partNo", this.pageData.partNo)
formData.append("engChgLevel", this.pageData.engChgLevel)
formData.append("bomType", this.pageData.bomType)
formData.append("alternativeNo", this.pageData.alternativeNo)
saveBomComponentByExcel(formData).then(({data}) => {
if (data.code === 0) {
this.$message.success(data.msg)
//
this.closeDialog()
} else {
this.$message.warning(data.msg)
}
})
},
//
async downloadFile () {
let file = {
id: 0,
fileName: ''
}
let tempData = {
orderRef1: 'bom',
orderRef2: 'component'
}
await queryFileId(tempData).then(({data}) => {
if (data && data.code === 0) {
file.id = data.data.id
file.fileName = data.data.fileName
} else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
})
await downLoadObjectFile(file).then(({data}) => {
//
const blob = new Blob([data], {type: "application/octet-stream"})
//
const fileName = file.fileName
// a
const linkNode = document.createElement('a')
// adownload
linkNode.download = fileName
linkNode.style.display = 'none'
// Blob URL
linkNode.href = URL.createObjectURL(blob)
document.body.appendChild(linkNode)
//
linkNode.click()
// URL
URL.revokeObjectURL(linkNode.href)
document.body.removeChild(linkNode)
})
},
}
}
</script>

21
src/views/modules/part/partInformation.vue

@ -280,7 +280,7 @@
</el-dialog> </el-dialog>
<!-- 页签 --> <!-- 页签 -->
<el-tabs v-model="activeTable" style="width: 100%" :style="{height: secondHeight + 'px'}" type="border-card" @tab-click="tabClick" class="customer-tab">
<el-tabs v-model="activeTable" style="width: 100%" type="border-card" @tab-click="tabClick" class="customer-tab">
<!-- 物料属性页签 --> <!-- 物料属性页签 -->
<el-tab-pane label="物料属性" name="part_item"> <el-tab-pane label="物料属性" name="part_item">
<el-form label-position="top" style="margin-top: 2px; margin-left: 2px;"> <el-form label-position="top" style="margin-top: 2px; margin-left: 2px;">
@ -290,7 +290,7 @@
<div class="rq " v-if="attributeDialog"> <div class="rq " v-if="attributeDialog">
<el-table <el-table
:data="partItemList" :data="partItemList"
:height="secondHeight - 50"
:height="secondHeight-50"
border border
style="width: 100%;"> style="width: 100%;">
<el-table-column <el-table-column
@ -323,7 +323,7 @@
<div class="rq " v-else> <div class="rq " v-else>
<el-table <el-table
:data="copyAttributeList" :data="copyAttributeList"
:height="secondHeight - 60"
:height="secondHeight-50"
border border
style="width: 100%"> style="width: 100%">
<el-table-column <el-table-column
@ -368,7 +368,7 @@
</el-form> </el-form>
<el-table <el-table
:data="partAgentList" :data="partAgentList"
:height="secondHeight"
:height="secondHeight-50"
border border
style="width: 100%;"> style="width: 100%;">
<el-table-column <el-table-column
@ -406,7 +406,7 @@
</el-form> </el-form>
<el-table <el-table
:data="partManufacturerList" :data="partManufacturerList"
:height="secondHeight"
:height="secondHeight-50"
border border
style="width: 100%;"> style="width: 100%;">
<el-table-column <el-table-column
@ -444,7 +444,7 @@
</el-form> </el-form>
<el-table <el-table
:data="defaultLocationList" :data="defaultLocationList"
:height="secondHeight"
:height="secondHeight-50"
border border
style="width: 100%;"> style="width: 100%;">
<el-table-column <el-table-column
@ -482,7 +482,7 @@
</el-form> </el-form>
<el-table <el-table
:data="fileContentList" :data="fileContentList"
:height="secondHeight"
:height="secondHeight-50"
border border
style="width: 100%; "> style="width: 100%; ">
<el-table-column <el-table-column
@ -3846,11 +3846,10 @@
<style scoped lang="scss"> <style scoped lang="scss">
/deep/ .customer-tab .el-tabs__content { /deep/ .customer-tab .el-tabs__content {
padding: 0px !important; padding: 0px !important;
height: 459px;
}
/deep/ .customer-tab .el-tabs__content {
height: 294px;
} }
///deep/ .customer-tab .el-tabs__content {
//
//}
.el-table /deep/ .cell{ .el-table /deep/ .cell{
height: auto; height: auto;
line-height: 1.5; line-height: 1.5;

27
src/views/modules/part/standardRoutingOperation.vue

@ -133,6 +133,20 @@
<el-input-number :controls="false" :step="0" v-model="modalData.crewSize" style="width: 100px"></el-input-number> <el-input-number :controls="false" :step="0" v-model="modalData.crewSize" style="width: 100px"></el-input-number>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;">
<el-form-item :label="'人均日产量'">
<el-input-number :controls="false" :step="0" v-model="modalData.refDailyProduction" style="width: 140px"></el-input-number>
</el-form-item>
<el-form-item :label="'速度'">
<el-input-number :controls="false" :step="0" v-model="modalData.refSpeed" style="width: 129px"></el-input-number>
</el-form-item>
<el-form-item :label="'时间'">
<el-input-number :controls="false" :step="0" v-model="modalData.refTime" style="width: 129px"></el-input-number>
</el-form-item>
<el-form-item :label="'效率'">
<el-input-number :controls="false" :step="0" v-model="modalData.refEfficiency" style="width: 100px"></el-input-number>
</el-form-item>
</el-form>
<el-footer style="height:30px;margin-top: 20px;text-align:center"> <el-footer style="height:30px;margin-top: 20px;text-align:center">
<el-button type="primary" @click="saveData">保存</el-button> <el-button type="primary" @click="saveData">保存</el-button>
<el-button type="primary" @click="modalFlag = false">关闭</el-button> <el-button type="primary" @click="modalFlag = false">关闭</el-button>
@ -215,6 +229,10 @@ export default {
setupLaborClassDesc: '', setupLaborClassDesc: '',
setupCrewSize: '', setupCrewSize: '',
crewSize: '', crewSize: '',
refDailyProduction: '',
refSpeed: '',
refTime: '',
refEfficiency: ''
}, },
// ======== ======== // ======== ========
dataList: [], dataList: [],
@ -742,10 +760,13 @@ export default {
setupCrewSize: 1, setupCrewSize: 1,
crewSize: 1, crewSize: 1,
createBy: this.$store.state.user.name, createBy: this.$store.state.user.name,
refDailyProduction: undefined,
refSpeed: undefined,
refTime: undefined,
refEfficiency: undefined
} }
this.modalDisableFlag = false this.modalDisableFlag = false
this.modalFlag = true this.modalFlag = true
console.log(this.modalData)
}, },
/** /**
@ -771,6 +792,10 @@ export default {
setupCrewSize: row.setupCrewSize, setupCrewSize: row.setupCrewSize,
crewSize: row.crewSize, crewSize: row.crewSize,
updateBy: this.$store.state.user.name, updateBy: this.$store.state.user.name,
refDailyProduction: row.refDailyProduction,
refSpeed: row.refSpeed,
refTime: row.refTime,
refEfficiency: row.refEfficiency
} }
this.modalDisableFlag = true this.modalDisableFlag = true
this.modalFlag = true this.modalFlag = true

Loading…
Cancel
Save