|
@@ -3,13 +3,12 @@
|
|
|
<el-container>
|
|
<el-container>
|
|
|
<!-- 左侧树形结构 -->
|
|
<!-- 左侧树形结构 -->
|
|
|
<el-scrollbar max-height="75vh">
|
|
<el-scrollbar max-height="75vh">
|
|
|
- <el-aside >
|
|
|
|
|
|
|
+ <el-aside>
|
|
|
<div class="JKWTree-tree">
|
|
<div class="JKWTree-tree">
|
|
|
<h3>工单核验单维护</h3>
|
|
<h3>工单核验单维护</h3>
|
|
|
<el-tree
|
|
<el-tree
|
|
|
:data="treeData"
|
|
:data="treeData"
|
|
|
- :props="defaultProps"
|
|
|
|
|
- highlight-current="true"
|
|
|
|
|
|
|
+ highlight-current
|
|
|
@node-click="handleNodeClick"
|
|
@node-click="handleNodeClick"
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
@@ -31,7 +30,22 @@
|
|
|
type="primary"
|
|
type="primary"
|
|
|
:icon="Search"
|
|
:icon="Search"
|
|
|
@click="handleSearch"
|
|
@click="handleSearch"
|
|
|
- >搜索</el-button>
|
|
|
|
|
|
|
+ >搜索
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ :icon="Search"
|
|
|
|
|
+ @click="isShowMrhjtj = true"
|
|
|
|
|
+ >每日核检统计
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ :icon="Search"
|
|
|
|
|
+ @click="showGdzjfptj"
|
|
|
|
|
+ >工单质检废品统计
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+
|
|
|
<div style="margin-left: auto;">
|
|
<div style="margin-left: auto;">
|
|
|
<el-button
|
|
<el-button
|
|
|
type="primary"
|
|
type="primary"
|
|
@@ -42,17 +56,18 @@
|
|
|
</div>
|
|
</div>
|
|
|
<!-- 数据展示 -->
|
|
<!-- 数据展示 -->
|
|
|
<el-table
|
|
<el-table
|
|
|
- ref="multipleTable"
|
|
|
|
|
|
|
+ ref="table"
|
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
|
:data="tableData"
|
|
:data="tableData"
|
|
|
row-key="ID"
|
|
row-key="ID"
|
|
|
highlight-current-row
|
|
highlight-current-row
|
|
|
border
|
|
border
|
|
|
|
|
+ show-overflow-tooltip
|
|
|
:row-style="{ height: '20px' }"
|
|
:row-style="{ height: '20px' }"
|
|
|
:cell-style="{ padding: '0px' }"
|
|
:cell-style="{ padding: '0px' }"
|
|
|
:header-row-style="{ height: '20px' }"
|
|
:header-row-style="{ height: '20px' }"
|
|
|
:header-cell-style="{ padding: '0px' }"
|
|
:header-cell-style="{ padding: '0px' }"
|
|
|
- @selection-change="handleSelectionChange"
|
|
|
|
|
|
|
+ @row-click="handleSelectChange"
|
|
|
@row-dblclick="doubleClick"
|
|
@row-dblclick="doubleClick"
|
|
|
>
|
|
>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -66,7 +81,6 @@
|
|
|
:prop="column.prop"
|
|
:prop="column.prop"
|
|
|
:label="column.label"
|
|
:label="column.label"
|
|
|
:width="column.width"
|
|
:width="column.width"
|
|
|
- show-overflow-tooltip="true"
|
|
|
|
|
/>
|
|
/>
|
|
|
|
|
|
|
|
</el-table>
|
|
</el-table>
|
|
@@ -381,6 +395,19 @@
|
|
|
</el-table>
|
|
</el-table>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
+ <!-- 核验废品日统计弹出框 -->
|
|
|
|
|
+ <Meirihejiantongji
|
|
|
|
|
+ :is-show="isShowMrhjtj"
|
|
|
|
|
+ @my-close="isShowMrhjtj = false"
|
|
|
|
|
+ />
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 工单质检废品统计 -->
|
|
|
|
|
+ <Gongdanzhijianfeipintongji
|
|
|
|
|
+ :is-show="isShowGdzjfptj"
|
|
|
|
|
+ :val="value1"
|
|
|
|
|
+ @my-close="isShowGdzjfptj =false"
|
|
|
|
|
+ />
|
|
|
|
|
+
|
|
|
</el-main>
|
|
</el-main>
|
|
|
</el-container>
|
|
</el-container>
|
|
|
</el-container>
|
|
</el-container>
|
|
@@ -399,11 +426,12 @@ import {
|
|
|
} from '@/api/company'
|
|
} from '@/api/company'
|
|
|
|
|
|
|
|
// 全量引入格式化工具 请按需保留
|
|
// 全量引入格式化工具 请按需保留
|
|
|
-import { getDictFunc, formatDate, formatBoolean, filterDict, ReturnArrImg, onDownloadFile } from '@/utils/format'
|
|
|
|
|
-import { ElMessage, ElMessageBox } from 'element-plus'
|
|
|
|
|
|
|
+import { ElMessage } from 'element-plus'
|
|
|
import { Search, Refresh, Download } from '@element-plus/icons-vue'
|
|
import { Search, Refresh, Download } from '@element-plus/icons-vue'
|
|
|
-import { ref, reactive, onMounted, onBeforeMount } from 'vue'
|
|
|
|
|
|
|
+import { ref, reactive } from 'vue'
|
|
|
import { getSide, getTable, getOneWorkOrder, getOrderInfo, getGxAndLeader, getWastInfo, updateData } from '@/api/mes_api_gty/workOrderVerification'
|
|
import { getSide, getTable, getOneWorkOrder, getOrderInfo, getGxAndLeader, getWastInfo, updateData } from '@/api/mes_api_gty/workOrderVerification'
|
|
|
|
|
+import Meirihejiantongji from './meirihejiantongji.vue'
|
|
|
|
|
+import Gongdanzhijianfeipintongji from './gongdanzhijianfeipintongji.vue'
|
|
|
|
|
|
|
|
defineOptions({
|
|
defineOptions({
|
|
|
name: '06PackingDocuments'
|
|
name: '06PackingDocuments'
|
|
@@ -488,8 +516,8 @@ const getTableData = async() => {
|
|
|
const response = await getTable(params)
|
|
const response = await getTable(params)
|
|
|
if (response.code === 0) {
|
|
if (response.code === 0) {
|
|
|
total.value = response.data.total
|
|
total.value = response.data.total
|
|
|
- Object.assign(tableData, response.data.rows)
|
|
|
|
|
- // tableData.splice(0, tableData.length, ...response.data.rows)
|
|
|
|
|
|
|
+ // Object.assign(tableData, response.data.rows)
|
|
|
|
|
+ tableData.splice(0, tableData.length, ...response.data.rows)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -796,9 +824,21 @@ function exportExcel() {
|
|
|
console.log('导出到excel')
|
|
console.log('导出到excel')
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// 生命周期钩子
|
|
|
|
|
-onMounted(async() => {
|
|
|
|
|
-})
|
|
|
|
|
|
|
+const isShowMrhjtj = ref(false)
|
|
|
|
|
+const isShowGdzjfptj = ref(false)
|
|
|
|
|
+const value1 = ref('')
|
|
|
|
|
+const table = ref(null)
|
|
|
|
|
+const currentRow = ref()
|
|
|
|
|
+
|
|
|
|
|
+const showGdzjfptj = () => {
|
|
|
|
|
+ value1.value = currentRow.value?.qczl_gdbh
|
|
|
|
|
+ isShowGdzjfptj.value = true
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+const handleSelectChange = (row, column, event) => {
|
|
|
|
|
+ currentRow.value = row
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
<style scoped>
|