From 055aaa6acf8f109ccab63205dce7eff00ccb6120 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Sun, 22 Aug 2021 09:25:20 +0800
Subject: [PATCH] 派遣服务管理 添加字段 派遣记录操作按钮 保安员页面 保安公司可点击跳转 跨区改分公司,
---
src/views/dispatchChild/data.js | 105 ++++++++++++++++++++++++++++++++++++++++++++--------
1 files changed, 89 insertions(+), 16 deletions(-)
diff --git a/src/views/dispatchChild/data.js b/src/views/dispatchChild/data.js
index a90d819..853acde 100644
--- a/src/views/dispatchChild/data.js
+++ b/src/views/dispatchChild/data.js
@@ -52,6 +52,30 @@
// disabled: true,
// },
{
+ label: "保安员",
+ prop: "name",
+ type: "tree",
+ // width: 70,
+ labelWidth: 120,
+ searchSpan: 3,
+ multiple: true,
+ search: true,
+ // cell: true,
+ // hide: true,
+ props: {
+ label: "realName",
+ value: "id",
+ },
+ dicUrl: `/api/blade-user/page-security-units?deptId={{key}}`,
+ rules: [
+ {
+ required: true,
+ message: "请选择保安",
+ trigger: "blur",
+ },
+ ],
+ },
+ {
label: "联系人",
prop: "linkman",
span: 11,
@@ -97,21 +121,43 @@
// // editDisplay: false,
// // addDisplay: false
// },
+ // {
+ // label: "保安公司",
+ // prop: "deptId",
+ // labelWidth: 120,
+ // searchLabelWidth: 120,
+ // searchSpan: 4,
+ // dicUrl:
+ // "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
+ // props: {
+ // label: "title",
+ // value: "id",
+ // },
+ // search: true,
+ // overHidden: true,
+ // type: "select",
+ // rules: [
+ // {
+ // required: true,
+ // message: "请输入保安公司",
+ // trigger: "blur",
+ // },
+ // ],
+ // },
{
label: "保安公司",
prop: "deptId",
+ search: true,
labelWidth: 120,
- searchLabelWidth: 120,
+ type: "select",
searchSpan: 4,
- dicUrl:
- "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
+ cascaderItem: ["name"],
props: {
label: "title",
value: "id",
},
- search: true,
- overHidden: true,
- type: "select",
+ width: 180,
+ dicUrl: `/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697`,
rules: [
{
required: true,
@@ -144,19 +190,46 @@
rules: [
{
required: true,
- message: "请输入保安公司",
+ message: "请输入派遣单位",
trigger: "blur",
},
],
},
+
{
- label: "保安人名称",
+ label: "保安员",
prop: "name",
- search: true,
- searchSpan: 4,
- searchLabelWidth: 120
+ addDisplay: false,
+ editDisplay: false,
+ // .
// overHidden: true
- }, {
+ },
+
+ // {
+ // label: "保安员",
+ // prop: "name",
+ // type: "select",
+ // width: 70,
+ // labelWidth: 120,
+ // searchSpan: 3,
+ // search: true,
+ // hide: true,
+ // // cell: true,
+ // // hide: true,
+ // props: {
+ // label: "realName",
+ // value: "id",
+ // },
+ // dicUrl: `/api/blade-user/page-security-units?deptId={{key}}`,
+ // rules: [
+ // {
+ // required: true,
+ // message: "请选择保安",
+ // trigger: "blur",
+ // },
+ // ],
+ // },
+ {
label: "身份证",
prop: "cardid",
// search: true,
@@ -174,8 +247,8 @@
label: "派遣时间",
prop: "dispatchertime",
type: "date",
- format: "yyyy-MM-dd hh:mm:ss",
- valueFormat: "timestamp",
+ format: "yyyy-MM-dd",
+ valueFormat: "yyyy-MM-dd",
search: true,
searchSpan: 4,
// overHidden: true
@@ -183,8 +256,8 @@
label: "结束时间",
prop: "endTime",
type: "date",
- format: "yyyy-MM-dd hh:mm:ss",
- valueFormat: "timestamp",
+ format: "yyyy-MM-dd",
+ valueFormat: "yyyy-MM-dd",
// search: true,
// searchSpan: 5,
// overHidden: true
--
Gitblit v1.9.3