|  | @@ -35,6 +35,16 @@
 | 
	
		
			
				|  |  |          </el-button>
 | 
	
		
			
				|  |  |          <el-button type="success" size="small" @click="handleExport" icon="el-icon-printer">导出</el-button>
 | 
	
		
			
				|  |  |        </template>
 | 
	
		
			
				|  |  | +        <template slot-scope="scope" slot="menu">
 | 
	
		
			
				|  |  | +            <el-button v-if="scope.row.status == 1" type="text" icon="el-icon-turn-off" style="color: #85e967" size="small"
 | 
	
		
			
				|  |  | +                       @click.stop="statusfun(scope.row.id,0)">
 | 
	
		
			
				|  |  | +                启用
 | 
	
		
			
				|  |  | +            </el-button>
 | 
	
		
			
				|  |  | +            <el-button v-if="scope.row.status == 0" type="text" icon="el-icon-turn-off" style="color: #e83c3a" size="small"
 | 
	
		
			
				|  |  | +                       @click.stop="statusfun(scope.row.id,1)">
 | 
	
		
			
				|  |  | +                停用
 | 
	
		
			
				|  |  | +            </el-button>
 | 
	
		
			
				|  |  | +        </template>
 | 
	
		
			
				|  |  |      </avue-crud>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <el-dialog title="导入往来单位" append-to-body :visible.sync="excelBox" width="555px" :close-on-click-modal="false"
 | 
	
	
		
			
				|  | @@ -99,7 +109,8 @@ export default {
 | 
	
		
			
				|  |  |        page: {
 | 
	
		
			
				|  |  |          pageSize: 10,
 | 
	
		
			
				|  |  |          currentPage: 1,
 | 
	
		
			
				|  |  | -        total: 0
 | 
	
		
			
				|  |  | +        total: 0,
 | 
	
		
			
				|  |  | +        ageSizes: [10, 20, 30, 40, 50, 100, 200, 300, 400, 500]
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  |        selectionList: [],
 | 
	
		
			
				|  |  |        option: {
 | 
	
	
		
			
				|  | @@ -126,88 +137,8 @@ export default {
 | 
	
		
			
				|  |  |          viewBtn: true,
 | 
	
		
			
				|  |  |          selection: true,
 | 
	
		
			
				|  |  |          dialogClickModal: false,
 | 
	
		
			
				|  |  | +          menuWidth:260,
 | 
	
		
			
				|  |  |          column: [
 | 
	
		
			
				|  |  | -          // {
 | 
	
		
			
				|  |  | -          //   label: "主键",
 | 
	
		
			
				|  |  | -          //   prop: "id",
 | 
	
		
			
				|  |  | -          //   rules: [{
 | 
	
		
			
				|  |  | -          //     required: true,
 | 
	
		
			
				|  |  | -          //     message: "请输入主键",
 | 
	
		
			
				|  |  | -          //     trigger: "blur"
 | 
	
		
			
				|  |  | -          //   }]
 | 
	
		
			
				|  |  | -          // },
 | 
	
		
			
				|  |  | -          // {
 | 
	
		
			
				|  |  | -          //   label: "创建人 Id",
 | 
	
		
			
				|  |  | -          //   prop: "createUser",
 | 
	
		
			
				|  |  | -          //   rules: [{
 | 
	
		
			
				|  |  | -          //     required: true,
 | 
	
		
			
				|  |  | -          //     message: "请输入创建人 Id",
 | 
	
		
			
				|  |  | -          //     trigger: "blur"
 | 
	
		
			
				|  |  | -          //   }]
 | 
	
		
			
				|  |  | -          // },
 | 
	
		
			
				|  |  | -          // {
 | 
	
		
			
				|  |  | -          //   label: "创建人",
 | 
	
		
			
				|  |  | -          //   prop: "createUserName",
 | 
	
		
			
				|  |  | -          //   rules: [{
 | 
	
		
			
				|  |  | -          //     required: true,
 | 
	
		
			
				|  |  | -          //     message: "请输入创建人",
 | 
	
		
			
				|  |  | -          //     trigger: "blur"
 | 
	
		
			
				|  |  | -          //   }]
 | 
	
		
			
				|  |  | -          // },
 | 
	
		
			
				|  |  | -          // {
 | 
	
		
			
				|  |  | -          //   label: "创建部门 Id",
 | 
	
		
			
				|  |  | -          //   prop: "createDept",
 | 
	
		
			
				|  |  | -          //   rules: [{
 | 
	
		
			
				|  |  | -          //     required: true,
 | 
	
		
			
				|  |  | -          //     message: "请输入创建部门 Id",
 | 
	
		
			
				|  |  | -          //     trigger: "blur"
 | 
	
		
			
				|  |  | -          //   }]
 | 
	
		
			
				|  |  | -          // },
 | 
	
		
			
				|  |  | -          // {
 | 
	
		
			
				|  |  | -          //   label: "创建部门",
 | 
	
		
			
				|  |  | -          //   prop: "createDeptName",
 | 
	
		
			
				|  |  | -          //   rules: [{
 | 
	
		
			
				|  |  | -          //     required: true,
 | 
	
		
			
				|  |  | -          //     message: "请输入创建部门",
 | 
	
		
			
				|  |  | -          //     trigger: "blur"
 | 
	
		
			
				|  |  | -          //   }]
 | 
	
		
			
				|  |  | -          // },
 | 
	
		
			
				|  |  | -          // {
 | 
	
		
			
				|  |  | -          //   label: "创建时间",
 | 
	
		
			
				|  |  | -          //   prop: "createTime",
 | 
	
		
			
				|  |  | -          //   rules: [{
 | 
	
		
			
				|  |  | -          //     required: true,
 | 
	
		
			
				|  |  | -          //     message: "请输入创建时间",
 | 
	
		
			
				|  |  | -          //     trigger: "blur"
 | 
	
		
			
				|  |  | -          //   }]
 | 
	
		
			
				|  |  | -          // },
 | 
	
		
			
				|  |  | -          // {
 | 
	
		
			
				|  |  | -          //   label: "修改人 Id",
 | 
	
		
			
				|  |  | -          //   prop: "updateUser",
 | 
	
		
			
				|  |  | -          //   rules: [{
 | 
	
		
			
				|  |  | -          //     required: true,
 | 
	
		
			
				|  |  | -          //     message: "请输入修改人 Id",
 | 
	
		
			
				|  |  | -          //     trigger: "blur"
 | 
	
		
			
				|  |  | -          //   }]
 | 
	
		
			
				|  |  | -          // },
 | 
	
		
			
				|  |  | -          // {
 | 
	
		
			
				|  |  | -          //   label: "修改人",
 | 
	
		
			
				|  |  | -          //   prop: "updateUserName",
 | 
	
		
			
				|  |  | -          //   rules: [{
 | 
	
		
			
				|  |  | -          //     required: true,
 | 
	
		
			
				|  |  | -          //     message: "请输入修改人",
 | 
	
		
			
				|  |  | -          //     trigger: "blur"
 | 
	
		
			
				|  |  | -          //   }]
 | 
	
		
			
				|  |  | -          // },
 | 
	
		
			
				|  |  | -          // {
 | 
	
		
			
				|  |  | -          //   label: "修改时间",
 | 
	
		
			
				|  |  | -          //   prop: "updateTime",
 | 
	
		
			
				|  |  | -          //   rules: [{
 | 
	
		
			
				|  |  | -          //     required: true,
 | 
	
		
			
				|  |  | -          //     message: "请输入修改时间",
 | 
	
		
			
				|  |  | -          //     trigger: "blur"
 | 
	
		
			
				|  |  | -          //   }]
 | 
	
		
			
				|  |  | -          // },
 | 
	
		
			
				|  |  |            {
 | 
	
		
			
				|  |  |              label: "编码",
 | 
	
		
			
				|  |  |              prop: "code",
 | 
	
	
		
			
				|  | @@ -247,8 +178,8 @@ export default {
 | 
	
		
			
				|  |  |            {
 | 
	
		
			
				|  |  |              label: "单一窗口编码",
 | 
	
		
			
				|  |  |              prop: "codeSw",
 | 
	
		
			
				|  |  | -            width: 160,
 | 
	
		
			
				|  |  | -            search: true,
 | 
	
		
			
				|  |  | +            width: "160",
 | 
	
		
			
				|  |  | +            // search: true,
 | 
	
		
			
				|  |  |            },
 | 
	
		
			
				|  |  |            {
 | 
	
		
			
				|  |  |              label: "数量规则",
 | 
	
	
		
			
				|  | @@ -269,11 +200,6 @@ export default {
 | 
	
		
			
				|  |  |            //   }]
 | 
	
		
			
				|  |  |            // },
 | 
	
		
			
				|  |  |            {
 | 
	
		
			
				|  |  | -            label: "版本",
 | 
	
		
			
				|  |  | -            prop: "version",
 | 
	
		
			
				|  |  | -            display: false,
 | 
	
		
			
				|  |  | -          },
 | 
	
		
			
				|  |  | -          {
 | 
	
		
			
				|  |  |              label: "状态",
 | 
	
		
			
				|  |  |              prop: "status",
 | 
	
		
			
				|  |  |              type: "select",
 | 
	
	
		
			
				|  | @@ -286,15 +212,39 @@ export default {
 | 
	
		
			
				|  |  |              }],
 | 
	
		
			
				|  |  |              value: 0
 | 
	
		
			
				|  |  |            },
 | 
	
		
			
				|  |  | -          // {
 | 
	
		
			
				|  |  | -          //   label: "是否已删除(0 否 1是)",
 | 
	
		
			
				|  |  | -          //   prop: "isDeleted",
 | 
	
		
			
				|  |  | -          //   rules: [{
 | 
	
		
			
				|  |  | -          //     required: true,
 | 
	
		
			
				|  |  | -          //     message: "请输入是否已删除(0 否 1是)",
 | 
	
		
			
				|  |  | -          //     trigger: "blur"
 | 
	
		
			
				|  |  | -          //   }]
 | 
	
		
			
				|  |  | -          // },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +                label: "创建人",
 | 
	
		
			
				|  |  | +                prop: "createUserName",
 | 
	
		
			
				|  |  | +                display: false,
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +                label: "创建部门",
 | 
	
		
			
				|  |  | +                prop: "createDeptName",
 | 
	
		
			
				|  |  | +                display: false,
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +                label: "创建时间",
 | 
	
		
			
				|  |  | +                prop: "createTime",
 | 
	
		
			
				|  |  | +                width: "160",
 | 
	
		
			
				|  |  | +                display: false,
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +                label: "修改人",
 | 
	
		
			
				|  |  | +                prop: "updateUserName",
 | 
	
		
			
				|  |  | +                display: false,
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +                label: "修改时间",
 | 
	
		
			
				|  |  | +                prop: "updateTime",
 | 
	
		
			
				|  |  | +                width: "160",
 | 
	
		
			
				|  |  | +                display: false,
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +          {
 | 
	
		
			
				|  |  | +            label: "是否已删除(0 否 1是)",
 | 
	
		
			
				|  |  | +            prop: "isDeleted",
 | 
	
		
			
				|  |  | +              hide: true,
 | 
	
		
			
				|  |  | +              display: false,
 | 
	
		
			
				|  |  | +          },
 | 
	
		
			
				|  |  |            {
 | 
	
		
			
				|  |  |              label: "备注",
 | 
	
		
			
				|  |  |              prop: "remarks",
 | 
	
	
		
			
				|  | @@ -331,6 +281,26 @@ export default {
 | 
	
		
			
				|  |  |      this.option = await this.getColumnData(this.getColumnName(296), this.optionBack);
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    methods: {
 | 
	
		
			
				|  |  | +      // 禁用启用按钮
 | 
	
		
			
				|  |  | +      statusfun(id,status){
 | 
	
		
			
				|  |  | +          this.$confirm("确定将选择数据更改状态?", {
 | 
	
		
			
				|  |  | +              confirmButtonText: "确定",
 | 
	
		
			
				|  |  | +              cancelButtonText: "取消",
 | 
	
		
			
				|  |  | +              type: "warning"
 | 
	
		
			
				|  |  | +          }).then(()=>{
 | 
	
		
			
				|  |  | +              getBunitsDetail(id).then(res=>{
 | 
	
		
			
				|  |  | +                  let obj = res.data.data;
 | 
	
		
			
				|  |  | +                  obj.status = status
 | 
	
		
			
				|  |  | +                  updateBunits(obj).then(()=>{
 | 
	
		
			
				|  |  | +                      this.onLoad(this.page);
 | 
	
		
			
				|  |  | +                      this.$message({
 | 
	
		
			
				|  |  | +                          type: "success",
 | 
	
		
			
				|  |  | +                          message: "操作成功!"
 | 
	
		
			
				|  |  | +                      });
 | 
	
		
			
				|  |  | +                  })
 | 
	
		
			
				|  |  | +              })
 | 
	
		
			
				|  |  | +          })
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  |      // 导出
 | 
	
		
			
				|  |  |      handleExport() {
 | 
	
		
			
				|  |  |        var condition = ''
 |