Ver Fonte

物资更换记录物资编号查询条件修改为只能输入数字格式,检查记录页面查看更换记录跳转问题

wyn há 2 meses atrás
pai
commit
78a54aea0e

+ 1 - 1
src/views/material/Inspectionrecords/index.vue

@@ -342,7 +342,7 @@ const handleViewRecord = (row: any) => {
     emit('recordId', row.recordId)
   } else {
     router.push({
-      path: '/material/replacementrecords',
+      path: '/material/material/replacementrecords',
       query: {
         recordId: row.recordId
       }

+ 4 - 2
src/views/material/replacementrecords/index.vue

@@ -36,9 +36,10 @@
       <el-form-item label="原物资编号" prop="oldMaterialsId">
         <el-input
           v-model="queryParams.oldMaterialsId"
-          placeholder="请输入原物资编号"
+          placeholder="请输入原物资编号(数字格式)"
           clearable
           @keyup.enter="handleQuery"
+          @input="val => queryParams.oldMaterialsId = val.replace(/\D/g, '')"
           class="!w-240px"
         />
       </el-form-item>
@@ -54,9 +55,10 @@
       <el-form-item label="新物资编号" prop="newMaterialsId">
         <el-input
           v-model="queryParams.newMaterialsId"
-          placeholder="请输入新物资编号"
+          placeholder="请输入新物资编号(数字格式)"
           clearable
           @keyup.enter="handleQuery"
+          @input="val => queryParams.newMaterialsId = val.replace(/\D/g, '')"
           class="!w-240px"
         />
       </el-form-item>