|
|
@@ -36,14 +36,14 @@
|
|
|
<el-row :span="6">
|
|
|
<el-input v-model="searchInfo" placeholder="输入工单编号或产品名称" />
|
|
|
</el-row>
|
|
|
- <el-button type="primary" :icon="Search" @click="onSearch">搜索</el-button>
|
|
|
- <el-button type="primary" :icon="Refresh">重置</el-button>
|
|
|
- <el-button type="primary" :icon="Search" @click="onposition">定位</el-button>
|
|
|
- <el-button type="primary" :icon="Search">查改</el-button>
|
|
|
+ <el-button type="primary" :icon="Search" class="bt" @click="onSearch">搜索</el-button>
|
|
|
+ <!-- <el-button type="primary" :icon="Refresh">重置</el-button> -->
|
|
|
+ <!-- <el-button type="primary" :icon="Search" class="bt" @click="onposition">定位</el-button> -->
|
|
|
+ <!-- <el-button type="primary" :icon="Search">查改</el-button> -->
|
|
|
<el-button type="primary" @click="handlePrint">员工计件明细</el-button>
|
|
|
<div style="margin-left: auto;">
|
|
|
- <el-button type="primary" :icon="Download" @click="exportExcel">导出到Excel(汇总)</el-button>
|
|
|
- <el-button type="primary" :icon="Download" @click="exportExcel2">导出到Excel(明细)</el-button>
|
|
|
+ <el-button type="primary" :icon="Download" class="bt" @click="exportExcel">导出到Excel(汇总)</el-button>
|
|
|
+ <el-button type="primary" :icon="Download" class="bt" @click="exportExcel2">导出到Excel(明细)</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 数据展示 -->
|
|
|
@@ -600,7 +600,15 @@ const Getlocate = async (value) => {
|
|
|
}
|
|
|
// 搜索
|
|
|
function onSearch() {
|
|
|
-
|
|
|
+ let parts = params.date.split('-')
|
|
|
+
|
|
|
+ // # 截取第一个"-"之前的内容并赋值给新变量1
|
|
|
+ let new_variable1 = parts[0]
|
|
|
+
|
|
|
+ // # 截取第一个"-"之后到第二个"-"之前的内容并赋值给新变量2
|
|
|
+ let new_variable2 = parts[1]
|
|
|
+ Getlocate(new_variable1+new_variable2)
|
|
|
+ // positioningVisibleshow.value=false
|
|
|
}
|
|
|
// ============== 表格控制部分结束 ===============
|
|
|
|
|
|
@@ -815,5 +823,10 @@ onMounted(async () => {
|
|
|
.el-table__body tr.current-row>td {
|
|
|
background: #ff80ff !important;
|
|
|
/* 背景颜色 */
|
|
|
+}
|
|
|
+.bt {
|
|
|
+ margin-left: 2px !important;
|
|
|
+ padding: 3px !important;
|
|
|
+ font-size: 12px;
|
|
|
}
|
|
|
</style>
|