Explorar el Código

托书-必填/接口参数修改

jbb hace 2 años
padre
commit
b79fada711
Se han modificado 1 ficheros con 9 adiciones y 4 borrados
  1. 9 4
      src/views/book/book-list.vue

+ 9 - 4
src/views/book/book-list.vue

@@ -66,7 +66,7 @@
                   <a-select v-model="queryParam.type">
                     <a-select-option value="">请选择</a-select-option>
                     <a-select-option value="成衣">成衣</a-select-option>
-                    <a-select-option value="面料">面料</a-select-option>
+                    <a-select-option value="面料">面料</a-select-option>
                   </a-select>
                 </a-form-model-item>
               </a-col>
@@ -301,7 +301,8 @@ export default {
       // 查询条件
       queryParam: {
         pageNo:'',
-        pageSize:'50'
+        pageSize:'50',
+        type:'成衣'
       }
     }
   },
@@ -339,7 +340,11 @@ export default {
     searchQuery() {
       this.toggleSearchStatus = false
       this.queryParam.pageNo = ''
-      this.getBookList()
+      if(this.queryParam.type==''||!this.queryParam.type){
+        this.$message.error('请选择类型');
+      }else{
+        this.getBookList()
+      }
       // this.getpreBookList() // 渲染渲染预托书
     },
     // 重置
@@ -474,7 +479,7 @@ export default {
     // 操作 编辑
     edit(record,pattern) {
       this.$nextTick(() => {
-        bookListId({id:record.id}).then(res => {
+        bookListId({id:record.id,type:this.queryParam.type}).then(res => {
           if (res.success) {
             var data =res.result
             if(pattern == '1'){