| | |
| | | <el-table-column label="操作" width="180"> |
| | | <template slot-scope="scope"> |
| | | <el-button @click="editClick(scope.row)" type="text" size="small">编辑</el-button> |
| | | <el-button @click="delClick(scope.row.id)" type="text" size="small">删除</el-button> |
| | | <el-button @click="delClick(scope.row)" type="text" size="small">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </template> |
| | |
| | | |
| | | <script> |
| | | import pageMixin from "@/components/makepager/pager/mixin/pageMixin" |
| | | import { getRegisterList,getDeleteRegister } from "@/api/productManage/productRegisterForm.js" |
| | | import { getYieldRegisterList,deleteYieldRegister } from "@/api/productManage/productRegisterForm.js" |
| | | export default { |
| | | name: "productRegisterForm", |
| | | props: {}, |
| | |
| | | keyword: '', |
| | | tableColumn: [ |
| | | { label: "编号", prop: "number", min: 100, default: true }, |
| | | { label: "生产时间", prop: "member_name" }, |
| | | { label: "车组", prop: "workshopGroup" }, |
| | | { label: "生产时间", prop: "createTime", min: 110, }, |
| | | { label: "车组", prop: "groupNumber" }, |
| | | { label: "规格", prop: "spec", min: 90 }, |
| | | { label: "车间", prop: "name", min: 200 }, |
| | | { label: "庄口", prop: "market" }, |
| | | { label: "回数", prop: "contact_name", isContactClick: true }, |
| | | { label: "车组总产量", prop: "contact_phone" } |
| | | { label: "车间", prop: "workshopName", min: 200 }, |
| | | { label: "庄口", prop: "marketName" }, |
| | | { label: "回数", prop: "circle",}, |
| | | { label: "车组总产量", prop: "total" } |
| | | ], |
| | | showCol: ["编号", "生产时间", "车组", "规格", "车间", "庄口", "回数", "车组总产量"] |
| | | } |
| | |
| | | // 请求数据 |
| | | async getData() { |
| | | this.loading = true |
| | | await getRegisterList({ |
| | | await getYieldRegisterList({ |
| | | keyword: this.keyword, |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize |
| | |
| | | name:'addProductRegisterPage', |
| | | query:{ |
| | | id:row.ID, |
| | | inspectID:row.finenessCheckID, |
| | | number:row.number, |
| | | } |
| | | }); |
| | | }, |
| | | // 删除 |
| | | delClick(id) { |
| | | delClick(row) { |
| | | this.$confirm("请确认是否删除,删除操作不可撤销?", "警告", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning" |
| | | }) |
| | | .then(() => { |
| | | getDeleteRegister({ id: id }).then((response) => { |
| | | deleteYieldRegister({ number: row.number }).then((response) => { |
| | | if (response.code === 200) { |
| | | this.$message.success("删除成功") |
| | | this.getData() |