Initial commit: 景耀JY1.0项目

This commit is contained in:
Developer
2026-05-21 09:46:02 +08:00
parent 4969870de8
commit fd70670235
90 changed files with 10278 additions and 1508 deletions

View File

@@ -41,7 +41,7 @@
<el-button v-show="!checked" icon="el-icon-search" type="primary" plain size="small" style="margin-left: 10px" @click="searchTable()">查询</el-button>
<el-button v-show="checked" icon="el-icon-search" type="primary" plain size="small" style="margin-left: 10px" @click="searchTable1()">查询</el-button>
<el-button :disabled="tableData5.length === 0 || state === 1" icon="el-icon-document-copy" type="warning" plain size="small" style="margin-left: 10px" @click="copyData()">拷贝</el-button>
<el-button :disabled="disabled" icon="el-icon-search" type="primary" plain size="small" style="margin-left: 50px" @click="getNum()">图纸</el-button>
<el-button :disabled="tableData5.length === 0 || state === 1" icon="el-icon-search" type="primary" plain size="small" style="margin-left: 50px" @click="getNum()">图纸</el-button>
<el-button v-show="!checked" type="success" plain icon="el-icon-check" size="small" style="margin-left: 10px" @click="preservation()">保存</el-button>
<el-button v-show="checked" type="success" plain icon="el-icon-check" size="small" style="margin-left: 10px" @click="preservation1()">保存</el-button>
<el-checkbox v-model="checked" style="margin-left: 10px" @change="checkChange">零件</el-checkbox>
@@ -51,7 +51,15 @@
<el-col style="margin-left: 7px;width: 158px">
<!-- <el-card>-->
<div style="margin-top: 10px">
<el-table :data="tableData4" :header-cell-style="{background: '#2283D4',color: 'white'}" highlight-current-row border size="mini" style="width: 158px;margin-top: 10px" height="550" @row-click="editProcedure">
<el-input
v-model="processSearchName"
placeholder="请输入工序名称"
size="small"
clearable
style="width: 158px; margin-bottom: 10px"
@input="filterProcess"
/>
<el-table :data="filteredTableData4" :header-cell-style="{background: '#2283D4',color: 'white'}" highlight-current-row border size="mini" style="width: 158px;margin-top: 10px" height="510" @row-click="editProcedure">
<el-table-column :width="setColumnWidth('日期时间')" label="工序" align="center" prop="" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.工艺名称 }}
@@ -303,6 +311,8 @@ export default {
loading: false, // 数据加载
total: 0, // 分页总数
tableData4: [], // 工艺列表
filteredTableData4: [], // 过滤后的工艺列表
processSearchName: '', // 工序搜索框内容
tableData5: [], // 工艺内容
tableData6: [],
pageCurrent: 1, // 分页当前页
@@ -326,6 +336,16 @@ export default {
}
}
},
watch: {
'$route': {
handler(route) {
if (this.$route.query.订单流水号) {
this.contractQueryJump(this.$route.query.订单流水号, this.$route.query.工艺计划流水号, this.$route.query.零件名称)
}
},
immediate: true
}
},
created() {
this.searchTable()
this.getOrderNumberType()
@@ -333,7 +353,20 @@ export default {
this.getProcess()
this.getTreeData()
},
methods: {
async contractQueryJump(订单编号, 工艺计划流水号, 零件名称) {
console.log(订单编号, 工艺计划流水号, 零件名称)
// this.partName.push({
// label:零件名称,
// value:Number(工艺计划流水号)
// })
this.orderNumberTypeValue = Number(订单编号)
this.getproductName()
// this.partNameValue = Number(工艺计划流水号)
// this.searchTable()
},
searchPartsGroup() {
this.tableData5 = []
this.partName2 = []
@@ -627,6 +660,8 @@ export default {
value: response.data[i].订单流水号
})
}
console.log('流水哈', this.orderNumberTypeValue)
})
},
getproductName() {
@@ -672,8 +707,19 @@ export default {
var Data = this.CreateData('11', '工艺名称_查询', param)
this.ExecDatabase(Data).then(response => {
this.tableData4 = response.data
this.filteredTableData4 = response.data
})
},
// 过滤工序
filterProcess() {
if (this.processSearchName) {
this.filteredTableData4 = this.tableData4.filter(item => {
return item.工艺名称.includes(this.processSearchName)
})
} else {
this.filteredTableData4 = this.tableData4
}
},
searchTable() {
if (this.partNameValue) {
this.loading = true