Selaa lähdekoodia

更改出库纪录界面关键件标识字段显示

user_zyx 1 vuosi sitten
vanhempi
commit
ad8b61d571

+ 1 - 1
ZRAdmin-vue-main/src/views/Business/OutOutstoreRecord/index.vue

@@ -330,7 +330,7 @@ const columns = ref([
   { visible: true, prop: 'materialName', label: '物料名称' },
   { visible: true, prop: 'materialSpec', label: '规格型号/图号' },
   { visible: false, prop: 'category', label: '物料类型' },
-  { visible: false, prop: 'keyFlag', label: '关键件标识' },
+  { visible: true, prop: 'keyFlag', label: '关键件标识' },
   { visible: true, prop: 'bnSnCode', label: 'BN/SN码' },
   { visible: true, prop: 'result', label: '出库结果' },
   { visible: true, prop: 'outStoreQty', label: '出库数量' },

+ 12 - 0
ZRAdmin-vue-main/src/views/Business/SapOutTaskRecord/index.vue

@@ -39,6 +39,7 @@
               </el-option>
             </el-select>
           </el-form-item> -->
+
         <el-form-item label="创建时间">
           <el-date-picker v-model="queryCreateTime" style="width: 400px" type="datetimerange" range-separator="-"
             @change="handleQuery" start-placeholder="开始时间" end-placeholder="结束时间"></el-date-picker>
@@ -102,6 +103,16 @@
         v-if="columns.showColumn('materialName')" />
       <el-table-column prop="materialSpec" label="规格型号 / 图号" align="center" :show-overflow-tooltip="true" width="240"
         v-if="columns.showColumn('materialSpec')" />
+
+      <el-table-column prop="keyFlag" label="关键件" align="center" v-if="columns.showColumn('keyFlag')">
+        <template #default="scope">
+          <el-icon v-if="scope.row.keyFlag" size="large" color="red">
+            <StarFilled />
+          </el-icon>
+          <el-icon v-else />
+        </template>
+      </el-table-column>
+
       <el-table-column prop="unit" label="单位" align="center" :show-overflow-tooltip="true" width="50"
         v-if="columns.showColumn('unit')" />
       <el-table-column prop="qty" label="需求数量" align="center" v-if="columns.showColumn('qty')" width="100" />
@@ -312,6 +323,7 @@ function getList() {
       dataList.value = data.result
       total.value = data.totalNum
       loading.value = false
+      // console.log(dataList.value)
     }
   })
 }