瀏覽代碼

设备运行班组维护

Lexie 1 年之前
父節點
當前提交
92ed261bb8
共有 2 個文件被更改,包括 52 次插入4 次删除
  1. 16 0
      src/api/jixiaoguanli/jitairibaobiao.js
  2. 36 4
      src/view/yunyin/shengchanguanli/shebeiyunxing.vue

+ 16 - 0
src/api/jixiaoguanli/jitairibaobiao.js

@@ -741,6 +741,22 @@ export const MachineChanliangDetailEdit = (data) => {
     data
   })
 }
+//每日上报产量工价
+export const CoefficientEdit = (data) => {
+  return service({
+    url:'/mes_server/Facility/CoefficientEdit',
+    method: 'post',
+    data
+  })
+}
+//每日上报产量色度
+export const ChromaDataEdit = (data) => {
+  return service({
+    url:'/mes_server/Facility/ChromaDataEdit',
+    method: 'post',
+    data
+  })
+}
 //关联工资核算
 //设备点检->左侧菜单栏
 export const  relatedTab= (params) => {

+ 36 - 4
src/view/yunyin/shengchanguanli/shebeiyunxing.vue

@@ -1834,15 +1834,15 @@
 		<el-dialog v-model="hesuanVisible" :before-close="closehesuanVisible" title="核算参数调整" destroy-on-close width="20%" style="height: 50%;">
 		  <div style="display: flex; align-items: center;">
 		    <label>参数类型:</label>
-		    <el-radio v-model="selectedOption" label="难度调整系数"></el-radio>
+		    <el-radio v-model="selected" label="难度调整系数"></el-radio>
 		  </div>
 		
 		  <div style="margin-top: 10px;margin-left: 70px;">
-		    <el-radio v-model="selectedOption" label="凹印版距"></el-radio>
+		    <el-radio v-model="selected" label="凹印版距"></el-radio>
 		  </div>
 		  
 		  <div style="margin-top: 10px;margin-left: 70px;">
-		    <el-radio v-model="selectedOption" label="色度数"></el-radio>
+		    <el-radio v-model="selected" label="色度数"></el-radio>
 		  </div>
 		  
 		  <div style="margin-left: 70px;">
@@ -1861,6 +1861,13 @@
 			</el-form-item>
 		  </el-col> 
 		   </div>
+		   
+		   <template #footer>
+		     <div class="dialog-footer">
+		       <el-button @click="hesuanVisiblecloseDialog">取 消</el-button>
+		       <el-button type="primary" @click="hesuanenterDialog">确 定</el-button>
+		     </div>
+		   </template>
 		</el-dialog>
 		
 		<Shebeizhuangtai
@@ -3049,6 +3056,17 @@ function onBZ() {
 	detailShow.value=true
 	console.log('2222')
 }
+const getbzyg = async (value,key) => {
+  let bzyg=''
+  bzyg=`code${key}`
+  let bzxm=''
+  bzxm=`name${key}`
+  const response = await getYg({sczl_bh:formDatas.value[bzyg]});
+  if (response.code === 0) {
+    formDatas.value[bzxm]=response.data.ygxm
+	formDatas.value[bzyg]=response.data.员工编号
+  }
+}
 const addBz = async() => {
   // selectedOption.value='YS-JY06-002||印品质量检测机(JP1020-18)'
   console.log(selectedOption.value)
@@ -3179,7 +3197,8 @@ const delBz = async() => {
     currentBz.value={}
 	}
 }
-
+
+const selected = ref('');
 // 下拉框选项数据
     const dropdownOptions = ref([]);
     // 选中的选项
@@ -3715,6 +3734,19 @@ const MachineChanliang = async(value) => {
        FacilityDetail()
        chanliangVisible.value=false
    }
+ }
+ 
+ //核算调整弹窗确定
+ const hesuanenterDialog = async () => {
+	 console.log(selected)
+ if(selected.value=== '难度调整系数'){
+	 console.log('123')
+ }else if(selected.value=== '凹印版距'){
+	 console.log('凹印版距')
+ }else if(selected.value=== '色度数'){
+	  console.log('色度数')
+ }
+  
  }
  const ent1 = (event) => {
    const inputs = document.getElementsByTagName('input');