| | |
| | | <el-form-item label="往来单位" prop="HSupName"> |
| | | <el-input v-model="queryParams.HSupName" placeholder="请输入往来单位" @keyup.enter.native="handleQuery" /> |
| | | </el-form-item> |
| | | <div slot="header" class="clearfix"><span>过滤</span></div> |
| | | <div slot="header" class="clearfix"><span>其他条件</span></div> |
| | | <div> |
| | | <el-row> |
| | | <el-form-item label-width="0"> |
| | | <el-row> |
| | | <el-col :span="7"> |
| | | <el-col :span="2"><span>过滤</span></el-col> |
| | | <el-col :span="6"> |
| | | <el-select v-model="queryParams.ColName1" placeholder="请选择" @change="riqiChange"> |
| | | <span v-for="(item, index) in btList" :key="index"> |
| | | <el-option :label="item.field" :value="item.field" v-if="!item.hide"></el-option> |
| | |
| | | :value="item.value"></el-option> |
| | | </el-select> |
| | | </el-col> |
| | | <el-col :span="11"> |
| | | <el-col :span="10"> |
| | | <el-input v-model="queryParams.ColContent1" placeholder="请输入" clearable |
| | | @keyup.enter.native="handleQuery" /> |
| | | </el-col> |
| | |
| | | <el-row> |
| | | <el-form-item label-width="0"> |
| | | <el-row> |
| | | <el-col :span="7"> |
| | | <el-col :span="2"><span>过滤</span></el-col> |
| | | <el-col :span="6"> |
| | | <el-select v-model="queryParams.ColName2" placeholder="请选择" @change="riqiChange"> |
| | | <span v-for="(item, index) in btList" :key="index"> |
| | | <el-option :label="item.field" :value="item.field" v-if="!item.hide"></el-option> |
| | |
| | | :value="item.value"></el-option> |
| | | </el-select> |
| | | </el-col> |
| | | <el-col :span="11"> |
| | | <el-col :span="10"> |
| | | <el-input v-model="queryParams.ColContent2" placeholder="请输入" clearable |
| | | @keyup.enter.native="handleQuery" /> |
| | | </el-col> |
| | |
| | | </el-row> |
| | | <el-form-item label-width="0"> |
| | | <el-row> |
| | | <el-col :span="7"> |
| | | <el-col :span="2"><span>过滤</span></el-col> |
| | | <el-col :span="6"> |
| | | <el-select v-model="queryParams.ColName" placeholder="请选择" @change="riqiChange"> |
| | | <el-option v-for="(item, index) in btList" :key="index" :label="item.field" |
| | | :value="item.field"></el-option> |
| | |
| | | :value="item.value"></el-option> |
| | | </el-select> |
| | | </el-col> |
| | | <el-col :span="11"> |
| | | <el-col :span="10"> |
| | | <el-input v-model="queryParams.ColContent" placeholder="请输入" clearable |
| | | @keyup.enter.native="handleQuery" /> |
| | | </el-col> |
| | |
| | | "sWhere": this.sWhere, |
| | | "user": sessionStorage["HUserName"], |
| | | "page": this.page, |
| | | "size": this.pageSize |
| | | "size": this.pageSize, |
| | | "Type":"3849", |
| | | }, |
| | | }).then(response => { |
| | | this.tyResList = response.data.data//总数据 |
| | |
| | | //双击行 |
| | | handleDblclick(row, column, cell, event) { |
| | | this.OperationType = 2 |
| | | this.handleEdit() |
| | | this.handleEdit(row) |
| | | }, |
| | | // 多选框选中数据 |
| | | handleSelectionChange(selection) { |
| | |
| | | } |
| | | this.sWhere += " and " + this.queryParams.ColName2 + " " + com2; |
| | | } |
| | | if (this.queryParams.HStatus) { |
| | | switch (this.queryParams.HStatus) { |
| | | case '-1': //全部 |
| | | this.sWhere += ""; |
| | | break; |
| | | case '0': //未审核 |
| | | this.sWhere += " and 审核人=''"; |
| | | break; |
| | | case '1': //已审核 |
| | | this.sWhere += " and 审核人<>''"; |
| | | break; |
| | | case '2': //已关闭 |
| | | this.sWhere += " and 关闭人<>''"; |
| | | default: |
| | | } |
| | | } |
| | | if (this.sTime) { |
| | | this.sTime = moment(this.sTime).format('YYYY-MM-DD') |
| | | this.sWhere += " and 日期 >= '" + this.sTime + "'"; |
| | |
| | | this.sWhere += " and 部门 like '%" + this.queryParams.HDept + "%'"; |
| | | } |
| | | if (this.queryParams.HModelNumber) { |
| | | this.sWhere += " and 模具代码 like '%" + this.queryParams.HModelNumber + "%'"; |
| | | this.sWhere += " and 器具代码 like '%" + this.queryParams.HModelNumber + "%'"; |
| | | } |
| | | if (this.queryParams.HSupName) { |
| | | this.sWhere += " and 往来单位 like '%" + this.queryParams.HSupName + "%'"; |
| | | } |
| | | this.clearData() |
| | | this.getList() |
| | | }, |
| | | /** 重置按钮操作 */ |
| | |
| | | } |
| | | this.riqiChange() |
| | | this.resetForm("queryForm") |
| | | this.clearData() |
| | | this.getList() |
| | | }, |
| | | |
| | |
| | | this.tableShow = true |
| | | this.openEdit = false |
| | | this.editShow = false |
| | | this.clearData() |
| | | this.getList() |
| | | }, |
| | | //打开新增组件弹窗 |
| | |
| | | this.open = val |
| | | this.editShow = false |
| | | this.openEdit = val |
| | | this.clearData() |
| | | this.getList() |
| | | }, |
| | | //清除选中数据的缓存 |
| | | clearData(){ |
| | | this.ids = [] |
| | | this.multiple = true |
| | | this.single = true |
| | | this.OperationType = 0 |
| | | this.copyType = 0 |
| | | }, |
| | | /** 删除按钮操作 */ |
| | | handleDelete() { |
| | |
| | | let result = response.data |
| | | if (result.count == 1) { |
| | | this.$modal.msgSuccess('操作成功'); |
| | | this.clearData() |
| | | this.getList(); |
| | | } |
| | | else { |