|  | @@ -7,7 +7,8 @@
 | 
	
		
			
				|  |  |          @saveColumn="saveColumnTwo('crud', 'option', 'optionList', 270)" :page.sync="page">
 | 
	
		
			
				|  |  |          <template slot-scope="{type,size,row,index}" slot="menu">
 | 
	
		
			
				|  |  |            <!-- <el-button :size="size" :type="type" @click="check(row)">查看</el-button> -->
 | 
	
		
			
				|  |  | -          <el-button :size="size" :type="type" :disabled="row.item >= 1" @click="$refs.crud.rowDel(row, index)">删除</el-button>
 | 
	
		
			
				|  |  | +          <el-button :size="size" :type="type" :disabled="row.item >= 1"
 | 
	
		
			
				|  |  | +            @click="$refs.crud.rowDel(row, index)">删除</el-button>
 | 
	
		
			
				|  |  |          </template>
 | 
	
		
			
				|  |  |          <template slot-scope="{type,size,row,$index}" slot="menuLeft">
 | 
	
		
			
				|  |  |            <el-button icon="el-icon-plus" type="primary" :size="size" @click="detailsOpen = true">新采购单</el-button>
 | 
	
	
		
			
				|  | @@ -16,12 +17,13 @@
 | 
	
		
			
				|  |  |          <template slot-scope="{row,index}" slot="stockClerkName">
 | 
	
		
			
				|  |  |            <el-select placeholder="请选择" v-if="row.$cellEdit" v-model="row.stockClerkName" size="small" filterable
 | 
	
		
			
				|  |  |              allow-create default-first-option clearable>
 | 
	
		
			
				|  |  | -            <el-option v-for="item in stockClerkNameList" :key="item" :label="item.account" :value="item.account"></el-option>
 | 
	
		
			
				|  |  | +            <el-option v-for="item in stockClerkNameList" :key="item" :label="item.account"
 | 
	
		
			
				|  |  | +              :value="item.account"></el-option>
 | 
	
		
			
				|  |  |            </el-select>
 | 
	
		
			
				|  |  |            <span v-else>{{ row.stockClerkName }}</span>
 | 
	
		
			
				|  |  |          </template>
 | 
	
		
			
				|  |  |          <template slot-scope="{type,size,row,$index}" slot="customerId">
 | 
	
		
			
				|  |  | -          <span>{{ row.customerName}}</span>
 | 
	
		
			
				|  |  | +          <span>{{ row.customerName }}</span>
 | 
	
		
			
				|  |  |          </template>
 | 
	
		
			
				|  |  |          <template slot-scope="{ row, index }" slot="billno">
 | 
	
		
			
				|  |  |            <span style="color: #409EFF;cursor: pointer" @click.stop="editOpen(row, 1)">{{ row.billno }}
 | 
	
	
		
			
				|  | @@ -168,16 +170,18 @@ export default {
 | 
	
		
			
				|  |  |            }],
 | 
	
		
			
				|  |  |            // width: 120,
 | 
	
		
			
				|  |  |          }, {
 | 
	
		
			
				|  |  | -          label: "业务日期",
 | 
	
		
			
				|  |  | +          label: '业务日期',
 | 
	
		
			
				|  |  |            prop: "createTime",
 | 
	
		
			
				|  |  | -          search: true,
 | 
	
		
			
				|  |  | +          searchProp: "createTimeList",
 | 
	
		
			
				|  |  | +          type: "date",
 | 
	
		
			
				|  |  |            overHidden: true,
 | 
	
		
			
				|  |  | -          type: "datetime",
 | 
	
		
			
				|  |  | -          value: dateFormat(new Date(), 'yyyy-MM-dd hh:mm:ss'),
 | 
	
		
			
				|  |  | -          format: "yyyy-MM-dd HH:mm",
 | 
	
		
			
				|  |  | -          valueFormat: "yyyy-MM-dd HH:mm:ss",
 | 
	
		
			
				|  |  | -          // width: 200
 | 
	
		
			
				|  |  | -        }, {
 | 
	
		
			
				|  |  | +          search: true,
 | 
	
		
			
				|  |  | +          width: 100,
 | 
	
		
			
				|  |  | +          searchRange: true,
 | 
	
		
			
				|  |  | +          searchDefaultTime: ["00:00:00", "23:59:59"],
 | 
	
		
			
				|  |  | +          format: "yyyy-MM-dd HH:mm:ss",
 | 
	
		
			
				|  |  | +          valueFormat: "yyyy-MM-dd HH:mm:ss"
 | 
	
		
			
				|  |  | +        },{
 | 
	
		
			
				|  |  |            label: "库管",
 | 
	
		
			
				|  |  |            prop: "stockClerkName",
 | 
	
		
			
				|  |  |            search: true,
 | 
	
	
		
			
				|  | @@ -315,17 +319,22 @@ export default {
 | 
	
		
			
				|  |  |        this.onLoad(this.page, params)
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      onLoad(page, params = {}) {
 | 
	
		
			
				|  |  | -      console.log(this.search);
 | 
	
		
			
				|  |  | +      let storageId = this.search.storageName;
 | 
	
		
			
				|  |  | +      let searchWithoutStorageName = { ...this.search };
 | 
	
		
			
				|  |  | +      delete searchWithoutStorageName.storageName;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |        params = {
 | 
	
		
			
				|  |  |          ...params,
 | 
	
		
			
				|  |  |          current: page.currentPage,
 | 
	
		
			
				|  |  |          size: page.pageSize,
 | 
	
		
			
				|  |  |          bizTypeName: "SHGD,TKSHGD",
 | 
	
		
			
				|  |  | -        ...Object.assign(params, this.search),
 | 
	
		
			
				|  |  | -        storageId:this.search.storageName,
 | 
	
		
			
				|  |  | -        statusName:this.search.$statusName,
 | 
	
		
			
				|  |  | -        stockClerkName:this.search.$stockClerkName
 | 
	
		
			
				|  |  | -      }
 | 
	
		
			
				|  |  | +        ...Object.assign(params, searchWithoutStorageName),
 | 
	
		
			
				|  |  | +        storageId: storageId,
 | 
	
		
			
				|  |  | +        statusName: this.search.$statusName,
 | 
	
		
			
				|  |  | +        stockClerkName: this.search.$stockClerkName
 | 
	
		
			
				|  |  | +      };
 | 
	
		
			
				|  |  | +      delete params.storageName;
 | 
	
		
			
				|  |  | +      // delete this.search.storageName
 | 
	
		
			
				|  |  |        this.loading = true
 | 
	
		
			
				|  |  |        getList(params).then(res => {
 | 
	
		
			
				|  |  |          this.dataList = res.data.data.records
 | 
	
	
		
			
				|  | @@ -336,12 +345,12 @@ export default {
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      editOpen(row, status) {
 | 
	
		
			
				|  |  | -            this.form = row
 | 
	
		
			
				|  |  | -            this.detailData = {
 | 
	
		
			
				|  |  | -                id: row.id,
 | 
	
		
			
				|  |  | -                status: status
 | 
	
		
			
				|  |  | -            };
 | 
	
		
			
				|  |  | -            this.detailsOpen = true;
 | 
	
		
			
				|  |  | +      this.form = row
 | 
	
		
			
				|  |  | +      this.detailData = {
 | 
	
		
			
				|  |  | +        id: row.id,
 | 
	
		
			
				|  |  | +        status: status
 | 
	
		
			
				|  |  | +      };
 | 
	
		
			
				|  |  | +      this.detailsOpen = true;
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      //自定义列保存
 | 
	
		
			
				|  |  |      async saveColumnTwo(ref, option, optionBack, code) {
 |