695593266@qq.com hai 7 meses
pai
achega
0454a5b7ef
Modificáronse 2 ficheiros con 31 adicións e 2 borrados
  1. 13 2
      src/views/outsourcing/components/search.vue
  2. 18 0
      src/views/outsourcing/index.vue

+ 13 - 2
src/views/outsourcing/components/search.vue

@@ -7,6 +7,16 @@
     @submit.native.prevent
   >
     <el-row :gutter="15">
+      <el-col v-bind="styleResponsive ? { lg: 5, md: 10 } : { span: 5 }">
+        <el-form-item label="关键字:">
+          <el-input
+            size="mini"
+            clearable
+            v-model.trim="where.keyWord"
+            placeholder="请输入型号、规格、批次号"
+          />
+        </el-form-item>
+      </el-col>
       <el-col v-bind="styleResponsive ? { lg: 5, md: 10 } : { span: 5 }">
         <el-form-item label="工单编码:">
           <el-input
@@ -51,7 +61,7 @@
 
       <el-col
         style="display: flex; justify-content: flex-end"
-        v-bind="styleResponsive ? { lg: 5, md: 10 } : { span: 5 }"
+        v-bind="styleResponsive ? { lg: 4, md: 8 } : { span: 4 }"
       >
         <el-form-item label-width="0px">
           <el-button
@@ -84,7 +94,8 @@
       const defaultWhere = {
         workOrderCode: '',
         name: '',
-        code: ''
+        code: '',
+        keyWord: ''
       };
       return {
         // 表单数据

+ 18 - 0
src/views/outsourcing/index.vue

@@ -251,6 +251,24 @@
             align: 'center',
             showOverflowTooltip: true
           },
+          {
+            prop: 'brandNum',
+            label: '牌号',
+            align: 'center',
+            showOverflowTooltip: true
+          },
+          {
+            prop: 'specification',
+            label: '规格',
+            align: 'center',
+            showOverflowTooltip: true
+          },
+          {
+            prop: 'modelType',
+            label: '型号',
+            align: 'center',
+            showOverflowTooltip: true
+          },
           {
             prop: 'totalCount',
             slot: 'totalCount',