| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getLisperdispatch } from "@/api/register/honor"; |
| | | export default { |
| | | props: ["form"], |
| | | data() { |
| | | return { |
| | | equipmentOption: { |
| | |
| | | calcHeight: 250, |
| | | searchShowBtn: false, |
| | | tip: false, |
| | | searchShow: false, |
| | | // searchShow: false, |
| | | searchMenuSpan: 3, |
| | | index: false, |
| | | viewBtn: true, |
| | |
| | | { |
| | | label: "姓名", |
| | | prop: "name", |
| | | search: true, |
| | | // search: true, |
| | | searchSpan: 3, |
| | | rules: [ |
| | | { |
| | |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "身份证号", |
| | | prop: "cardid", |
| | | // rules: [ |
| | | // { |
| | | // required: true, |
| | | // message: "请输入编号", |
| | | // trigger: "blur", |
| | | // }, |
| | | // ], |
| | | // search: true, |
| | | }, //上面不显示 |
| | | // { |
| | | // label: "身份证号", |
| | | // prop: "cardid", |
| | | // // rules: [ |
| | | // // { |
| | | // // required: true, |
| | | // // message: "请输入编号", |
| | | // // trigger: "blur", |
| | | // // }, |
| | | // // ], |
| | | // // search: true, |
| | | // }, //上面不显示 |
| | | { |
| | | label: "派遣单位", |
| | | prop: "dispatcher", |
| | | prop: "dispatcherCompany", |
| | | search: true, |
| | | // rules: [ |
| | | // { |
| | | // required: true, |
| | |
| | | // ], |
| | | // search: true, |
| | | }, |
| | | { |
| | | label: "保安公司", |
| | | prop: "deptName", |
| | | // rules: [ |
| | | // { |
| | | // required: true, |
| | | // message: "请输入规格", |
| | | // trigger: "blur", |
| | | // }, |
| | | // ], |
| | | // search: true, |
| | | }, |
| | | // { |
| | | // label: "保安公司", |
| | | // prop: "deptName", |
| | | // // rules: [ |
| | | // // { |
| | | // // required: true, |
| | | // // message: "请输入规格", |
| | | // // trigger: "blur", |
| | | // // }, |
| | | // // ], |
| | | // // search: true, |
| | | // }, |
| | | // { |
| | | // label: "派遣人", |
| | | // prop: "dispatcher", |
| | |
| | | valueFormat: "yyyy-MM-dd", |
| | | labelWidth: 120, |
| | | searchSpan: 4, |
| | | search: true, |
| | | // search: true, |
| | | overHidden: true, |
| | | rules: [ |
| | | { |
| | |
| | | }, |
| | | { |
| | | label: "结束时间", |
| | | prop: "enddispatchertime", |
| | | prop: "endTime", |
| | | type: "date", |
| | | format: "yyyy-MM-dd", |
| | | valueFormat: "yyyy-MM-dd", |
| | | labelWidth: 120, |
| | | searchSpan: 4, |
| | | search: true, |
| | | // search: true, |
| | | overHidden: true, |
| | | rules: [ |
| | | { |
| | |
| | | }, |
| | | { |
| | | label: "派遣地址", |
| | | prop: "tenantName", |
| | | prop: "dispatcheraddress", |
| | | // rules: [ |
| | | // { |
| | | // required: true, |
| | |
| | | methods: { |
| | | equipmentOnLoad(page, params = {}) { |
| | | this.equipmentLoading = true; |
| | | // getequipmentList( |
| | | // page.currentPage, |
| | | // page.pageSize, |
| | | // Object.assign(params, this.equipmentQuery), |
| | | // this.form.creditcode |
| | | // ).then((res) => { |
| | | // const data = res.data.data; |
| | | getLisperdispatch( |
| | | page.currentPage, |
| | | page.pageSize, |
| | | Object.assign(params, this.equipmentQuery), |
| | | this.form.id |
| | | ).then((res) => { |
| | | const data = res.data.data; |
| | | |
| | | // this.equipmentPage.total = data.total; |
| | | // this.equipmentData = data.records; |
| | | this.equipmentLoading = false; |
| | | // this.$refs.equipmentCrud.refreshTable(); |
| | | // this.$refs.equipmentCrud.doLayout(); |
| | | // this.equipmentSelectionClear(); |
| | | // }); |
| | | this.equipmentPage.total = data.total; |
| | | this.equipmentData = data.records; |
| | | for (var k in this.equipmentData) { |
| | | this.equipmentData[k]["name"] = this.form.realName; |
| | | } |
| | | console.log(this.equipmentData, " this.equipmentData"); |
| | | this.equipmentLoading = false; |
| | | this.$refs.equipmentCrud.refreshTable(); |
| | | this.$refs.equipmentCrud.doLayout(); |
| | | this.equipmentSelectionClear(); |
| | | }); |
| | | }, |
| | | equipmentSelectionClear() { |
| | | this.equipmentSelectionList = []; |