| | |
| | | <div class="filter-card"> |
| | | <CommonSearch :show-add="false" :amount-view="false" placeholder="请输入关键词" @searchClick="onFilterSearch"> |
| | | <template slot="leftButton"> |
| | | <el-button size="small" type="primary" @click="addBtnClick" :disabled="!isEdit">新增</el-button> |
| | | <el-button size="small" type="primary" @click="addBtnClick">新增</el-button> |
| | | <el-button size="small" type="primary" @click="refreshClick">刷新</el-button> |
| | | <el-button size="small" type="primary" @click="printClick" disabled>打印</el-button> |
| | | </template> |
| | |
| | | projectOptions: getDataByType("projectOptions"), |
| | | rankObj: {}, |
| | | columnInputList: [], |
| | | dynamicsRanks: [] |
| | | dynamicsRanks: [], |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | this.silkTableList = { |
| | | tableData: this.tableData, |
| | | isReturn: false, |
| | | tableColumn: this.tableColumn |
| | | tableColumn: [ |
| | | { label: "检查项目名称", prop: "projectName", projectName: true }, |
| | | { label: "开始纤度", prop: "start", inputFloat: true }, |
| | | { label: "结束纤度", prop: "end", inputFloat: true }, |
| | | { label: "野纤", prop: "price1", inputFloat: true }, |
| | | { label: "大野", prop: "price2", inputFloat: true }, |
| | | { label: "特野", prop: "price3", inputFloat: true } |
| | | ] |
| | | } |
| | | }, |
| | | // 搜索 |
| | |
| | | }, |
| | | // 新增 |
| | | addBtnClick() { |
| | | this.tableData.push(this.dataObj) |
| | | this.tableData.push({ |
| | | projectName: "", |
| | | start: 0, |
| | | end: 0, |
| | | price1: 0, |
| | | price2: 0, |
| | | price3: 0 |
| | | }) |
| | | }, |
| | | // 刷新 |
| | | refreshClick() { |