| | |
| | | adddata, |
| | | update, |
| | | remove, |
| | | getdata1, |
| | | adddata1, |
| | | update1, |
| | | remove1, |
| | | } from "@/api/dispatch/dispatch"; |
| | | import { mapGetters } from "vuex"; |
| | | import { mapState } from "vuex"; |
| | | import { getToken } from "@/util/auth"; |
| | | export default { |
| | | data() { |
| | | var phones = (rule, value, callback) => { |
| | |
| | | ], |
| | | }, |
| | | { |
| | | label: "派遣单位类型", |
| | | prop: "district", |
| | | type: "select", |
| | | search: false, |
| | | dicUrl: "/api/blade-system/dict-biz/dictionary?code=dispatcherUnitType", |
| | | props: { |
| | | label: "dictValue", |
| | | value: "dictKey" |
| | | }, |
| | | searchLabelWidth: 110, |
| | | overHidden: true, |
| | | searchSpan: 4, |
| | | width: 100, |
| | | labelWidth: 138, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请选择派遣单位类型", |
| | | trigger: "click", |
| | | }, |
| | | ], |
| | | dataType: "number", |
| | | }, |
| | | { |
| | | label: "企业名称", |
| | | prop: "deptId", |
| | | type: "tree", |
| | |
| | | }, |
| | | ], |
| | | labelWidth: 138, |
| | | width: 230, |
| | | width: 180, |
| | | searchLabelWidth: 80, |
| | | search: true, |
| | | searchSpan: 4, |
| | | }, |
| | | |
| | | { |
| | | label: "保安服务类型", |
| | | prop: "serveType", |
| | | // search: true, |
| | | searchLabelWidth: 110, |
| | | searchSpan: 4, |
| | | overHidden: true, |
| | | // span: 12, |
| | | labelWidth: 138, |
| | | }, |
| | | { |
| | | label: "合同生效时间", |
| | | prop: "releaseTimeRange", |
| | |
| | | viewDisplay: false, |
| | | overHidden: true, |
| | | labelWidth: 138, |
| | | width:100, |
| | | type: "tree", |
| | | dicUrl: "/api/jurisdiction/lazy-tree", |
| | | props: { |
| | |
| | | // }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "保安服务类型", |
| | | prop: "serveType", |
| | | // search: true, |
| | | searchLabelWidth: 110, |
| | | searchSpan: 4, |
| | | overHidden: true, |
| | | // span: 12, |
| | | labelWidth: 138, |
| | | }, |
| | | |
| | | { |
| | | label: "派遣保安员数", |
| | | prop: "num", |
| | |
| | | if (this.data[k].num == -1) { |
| | | this.data[k].num = null; |
| | | } |
| | | if (this.data[k].district == -1) { |
| | | this.data[k].district = null; |
| | | } |
| | | } |
| | | window.localStorage.setItem("paqiandataS", JSON.stringify(this.data)); |
| | | this.loading = false; |
| | |
| | | }, |
| | | |
| | | handleTemplate() { |
| | | window.open(`/api/dispatcherUnit/export-template`); |
| | | window.open(`/api/dispatcherUnit/export-template?${ |
| | | this.website.tokenHeader |
| | | }=${getToken()}&` |
| | | ); |
| | | }, |
| | | handleImport() { |
| | | this.excelBox = true; |