浏览代码

工艺模块页面工序编号处理

oyq28 2 年之前
父节点
当前提交
b44680093f

+ 1 - 1
imcs-ui/src/views/zuihou/prepareProductMgr/technologyVersion/components/TechnologyTable.vue

@@ -31,7 +31,7 @@
 	      </template>
       </el-table-column>
       <el-table-column align="center" type="selection" width="50" :reserve-selection="true" />
-      <el-table-column v-for="item in tableData.titleList" :key="item.id" :prop="item.field" :label='item.text' :show-overflow-tooltip="true"></el-table-column>
+      <el-table-column v-for="item in tableData.titleList" :key="item.id" :prop="item.field" :label='item.text' :show-overflow-tooltip="true" v-if="item.field!='opid'"></el-table-column>
       <!--<el-table-column prop="name" :label='$t("prepare.table.techno.name")' :show-overflow-tooltip="true"></el-table-column>
       <el-table-column prop="status" :label='$t("prepare.table.techno.name2")' align="center" width="90px">
       	<template slot-scope="{ row }">

+ 11 - 4
imcs-ui/src/views/zuihou/prepareProductMgr/technologyVersion/components/technologyMgr/index.vue

@@ -36,7 +36,7 @@
           <el-input-number @change="test" v-model="row.sort" :min="1" :max="100" :placeholder='$t("common.pleaseEnter")'></el-input-number>
         </template>
       </el-table-column>
-      <el-table-column v-for="item in tableData.titleList" :key="item.id" :prop="item.identifier" :label='item.fieldName' :show-overflow-tooltip="true">
+      <el-table-column v-for="item in tableData.titleList" :key="item.id" :prop="item.identifier" :label='item.fieldName' :show-overflow-tooltip="true"  v-if="item.identifier!='opid'">
         <template slot="header">
           <span>{{ item.fieldName }}</span>
           <span v-if="item.identifier!='remark'" class="star">*</span>
@@ -95,6 +95,13 @@
             </div>
           </div>
 
+           <!-- 如果是【隐藏域】-->
+           <div v-if="item.formControlsType == 'hidden' && item.showStatus == '1'" :key="item.id">
+            <div class="block">             
+              <el-input v-model="row[item.identifier]" v-show="false" :disabled="item.readonly == '1' ? true : false" :placeholder='$t("common.pleaseEnter")' />
+            </div>
+          </div>
+
         </template>
       </el-table-column>
 
@@ -575,11 +582,11 @@ export default {
 
       for (let i = 0; i < this.tableData.data.length; i++) {
         let item = this.tableData.data[i];
-        item.opId = item.xh;
+        item.opid = item.xh;
 
         for (let property in item) {
           if (
-            ["remark", "xh", "index", "isadd", "isinput"].includes(property)
+            ["remark", "xh", "index", "isadd", "isinput", "opid"].includes(property)
           ) {
             // if (["xh", "index", "isadd"].includes(property))
             //   delete item[property];
@@ -873,7 +880,7 @@ export default {
         if (res.isSuccess) {
           for (let i = 0, len = res.data.data.length; i < len; i++) {
             let xh = Math.ceil((i + 1) / 4);
-            res.data.data[i].xh = res.data.data[i].opId || xh;
+            res.data.data[i].xh = res.data.data[i].opid || xh;
             res.data.data[i].index = i + 1;
           }
           // return;