| | |
| | | @selTableCol="selTableCol" |
| | | > |
| | | <template slot="tableButton"> |
| | | <el-table-column label="操作" width="90" fixed="right"> |
| | | <el-table-column label="操作" width="120" fixed="right"> |
| | | <template slot-scope="scope"> |
| | | <el-button @click="handleClick(scope.row)" type="text" size="small">修改</el-button> |
| | | <el-button @click="handleClick(scope.row,1)" type="text" size="small">查看</el-button> |
| | | <el-button @click="handleClick(scope.row,2)" type="text" size="small">修改</el-button> |
| | | <el-button @click="delClick(scope.row.ID)" type="text" size="small">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | tableList: {}, |
| | | loading: false, |
| | | searchOptions: [], |
| | | search_map: {}, |
| | | keyword: '', |
| | | tableColumn: [ |
| | | { label: "编号", prop: "number", min: 120, default: true }, // 主题 |
| | | { label: "落丝时间", prop: "finishDate", min: 190, }, // 客户名称 |
| | | { label: "车组", prop: "workshopGroup", min: 100, }, // 联系人姓名 |
| | | { label: "规格", prop: "spec", min: 100 }, // 客户状态 |
| | | { label: "车间", prop: "name", min: 100 }, // 联系方式 |
| | | { label: "车间", prop: "workshopName", min: 100 }, // 联系方式 |
| | | { label: "庄口", prop: "market", min: 130 }, // 联系人日期 |
| | | { label: "开始回数", prop: "startCircle", min: 130 }, // 下次回访日期 |
| | | { label: "结束回数", prop: "endCircle", min: 110 }, // 负责人 |
| | | { label: "开始回数", prop: "circle", min: 130 }, // 下次回访日期 |
| | | { label: "结束回数", prop: "totalCircle", min: 110 }, // 负责人 |
| | | ], |
| | | showCol: [ |
| | | "编号", |
| | |
| | | }, |
| | | created() { |
| | | this.setTable() |
| | | this.getData(this.search_map) |
| | | this.getData(this.keyword) |
| | | }, |
| | | computed: { |
| | | }, |
| | |
| | | async getData() { |
| | | this.loading = true |
| | | await getRegisterList({ |
| | | search_map: this.search_map, |
| | | keyword: this.keyword, |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize |
| | | }) |
| | |
| | | // } |
| | | // }) |
| | | this.tableList.tableInfomation = res.data || [] |
| | | this.pagerOptions.totalCount = res.count |
| | | this.pagerOptions.totalCount = res.total |
| | | } else { |
| | | this.tableList.tableInfomation = [] |
| | | } |
| | |
| | | }, |
| | | // 搜索 |
| | | onFilterSearch(searchText) { |
| | | this.search_map.client_name = searchText ?? "" |
| | | this.keyword = searchText ?? "" |
| | | this.pagerOptions.currPage = 1 |
| | | this.getData() |
| | | }, |
| | |
| | | |
| | | }, |
| | | // 编辑 |
| | | handleClick(row) { |
| | | handleClick(row,type) { |
| | | this.$router.push({ |
| | | path:"/productManage/silkRegisterForm/addPage", |
| | | query:{ |
| | | id:row.ID, |
| | | activeName:'first' |
| | | activeName:'first', |
| | | inspectID:row.finenessCheckID, |
| | | title:type===1?'查看':'修改', |
| | | } |
| | | }); |
| | | }, |