Przeglądaj źródła

样式优化 部分功能优化

Lexie 1 rok temu
rodzic
commit
a95d5e4b7f

+ 9 - 1
src/view/job/rewards/rewards.vue

@@ -58,21 +58,25 @@
                   type="primary"
                   icon="search"
                   @click="onSubmit"
+				  class="bt"
                 >查询</el-button>
 				<el-button
 				 icon="refresh"
 				 type="primary"
 				 @click="onReset"
+				 class="bt"
 				>切换显示方式</el-button>
 				<el-button
 				  type="primary"
 				  icon="search"
 				  @click="onAdd"
+				  class="bt"
 				>新增</el-button>
 				<el-button
 				  type="primary"
 				  icon="search"
 				  @click="onDel"
+				  class="bt"
 				>删除</el-button>
                 
               </el-form-item>
@@ -1690,5 +1694,9 @@ const ent1 = (event) => {
 .JKWTree-content {
   flex: 1;
 }
-
+.bt {
+  margin-left: 2px !important;
+  padding: 3px !important;
+  font-size: 12px;
+}
 </style>

+ 13 - 4
src/view/performance/14-overTimePayVerification/index.vue

@@ -50,12 +50,14 @@
               <el-button
                 type="primary"
                 :icon="Search"
-                @click="onSearch"
+                @click="onSearch"
+				class="bt"
               >搜索
               </el-button>
 			  <el-button
 			    type="primary"
-			    @click="onAttendance"
+			    @click="onAttendance"
+				class="bt"
 			  >考勤建立
 			  </el-button>
               <!-- <el-button
@@ -67,13 +69,15 @@
                 <el-button
                   type="primary"
                   :icon="Download"
-                  @click="exportExcel"
+                  @click="exportExcel"
+				  class="bt"
                 >导出到Excel(汇总)
                 </el-button>
 				<el-button
 				  type="primary"
 				  :icon="Download"
-				  @click="exportExcel2"
+				  @click="exportExcel2"
+				  class="bt"
 				>导出到Excel(明细)
 				</el-button>
               </div>
@@ -590,5 +594,10 @@ const onAttendance = () => {
 
 :deep(.el-table td .cell) {
   line-height: 30px !important;
+}
+.bt {
+  margin-left: 2px !important;
+  padding: 3px !important;
+  font-size: 12px;
 }
 </style>

+ 16 - 7
src/view/performance/chejianbaogong.vue

@@ -3182,14 +3182,23 @@ const onYbout = async() => {
     delete item.客户编号
     return item
   })
-  const response = await PrintDetailAdd(yinbanSelection.value)
-  if(response.code===0){
-    facilityPrintDetailItem(formData.value.code)
-    ElMessage({
-      type: 'success',
-      message: '成功!'
-    })
+  console.log(yinbanSelection.value)
+  if(yinbanSelection.value.length<1){
+	  ElMessage({
+	    type: 'error',
+	    message: '暂无印版数据 请确认!'
+	  })
+  }else{
+	  const response = await PrintDetailAdd(yinbanSelection.value)
+	  if(response.code===0){
+	    facilityPrintDetailItem(formData.value.code)
+	    ElMessage({
+	      type: 'success',
+	      message: '成功!'
+	    })
+	  }
   }
+ 
 }
 const onYbback = async() => {
   const arr=[]

+ 20 - 7
src/view/performance/yuangongrigongzi.vue

@@ -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>