Commit 68d22d57 authored by 黄奎's avatar 黄奎

新增合同配置

parent 5f62045e
...@@ -12,9 +12,8 @@ ...@@ -12,9 +12,8 @@
<q-input filled stack-label maxlength="100" :dense="false" v-model="objOption.SAddress" ref="SAddress" <q-input filled stack-label maxlength="100" :dense="false" v-model="objOption.SAddress" ref="SAddress"
class="col-6 q-pb-lg" label="校区地址" :rules="[val => !!val || '请填写校区地址']" /> class="col-6 q-pb-lg" label="校区地址" :rules="[val => !!val || '请填写校区地址']" />
<q-select class="col-6 q-pb-lg q-pr-lg" clearable filled stack-label use-input input-debounce="0" <q-select class="col-6 q-pb-lg q-pr-lg" clearable filled stack-label use-input input-debounce="0"
option-value="Id" option-label="EmployeeName" v-model="objOption.ManagerId" option-value="Id" option-label="EmployeeName" v-model="objOption.ManagerId" ref="ManagerId"
ref="ManagerId" :options="EmployeeList" label="校区联系人" :dense="false" emit-value map-options :options="EmployeeList" label="校区联系人" :dense="false" emit-value map-options @filter="filterFn">
@filter="filterFn">
<template v-slot:no-option> <template v-slot:no-option>
<q-item> <q-item>
<q-item-section class="text-grey"> <q-item-section class="text-grey">
...@@ -30,6 +29,8 @@ ...@@ -30,6 +29,8 @@
<selectTree v-if="DeptList&&DeptList.length>0" :treeData='DeptList' :defaultArray="returnString" <selectTree v-if="DeptList&&DeptList.length>0" :treeData='DeptList' :defaultArray="returnString"
nodeKey="DeptId" :multiple="false" labelKey="DeptName" childrenKey="ChildList" tipText="上级部门" nodeKey="DeptId" :multiple="false" labelKey="DeptName" childrenKey="ChildList" tipText="上级部门"
@getChild="getChild" classStr="col-6 q-pb-lg"></selectTree> @getChild="getChild" classStr="col-6 q-pb-lg"></selectTree>
<q-input filled stack-label maxlength="20" :dense="false" v-model="objOption.ContractTitle"
class="col-6 q-pb-lg q-pr-lg" label="合同抬头" />
<div class="col-6"> <div class="col-6">
<q-toggle size="md" label="校区状态" color="primary" :false-value="1" :true-value="0" <q-toggle size="md" label="校区状态" color="primary" :false-value="1" :true-value="0"
v-model="objOption.Status" /> v-model="objOption.Status" />
...@@ -87,8 +88,9 @@ ...@@ -87,8 +88,9 @@
Status: "0", //校区状态 Status: "0", //校区状态
Dept_Id: 0, //校区直属上级部门编号 Dept_Id: 0, //校区直属上级部门编号
ManagerId: "", //校区负责人 ManagerId: "", //校区负责人
ContractTitle: "", //合同抬头
}, },
model:"", model: "",
optionTitle: "", optionTitle: "",
saveLoading: false, saveLoading: false,
DeptList: [], //部门列表 DeptList: [], //部门列表
...@@ -120,6 +122,7 @@ ...@@ -120,6 +122,7 @@
this.objOption.Remark = res.Data.Remark; this.objOption.Remark = res.Data.Remark;
this.objOption.Status = res.Data.Status; this.objOption.Status = res.Data.Status;
this.objOption.Dept_Id = res.Data.Dept_Id; this.objOption.Dept_Id = res.Data.Dept_Id;
this.objOption.ContractTitle = res.Data.ContractTitle;
if (res.Data.ManagerId && res.Data.ManagerId > 0) { if (res.Data.ManagerId && res.Data.ManagerId > 0) {
this.objOption.ManagerId = res.Data.ManagerId; this.objOption.ManagerId = res.Data.ManagerId;
} }
...@@ -136,6 +139,7 @@ ...@@ -136,6 +139,7 @@
this.objOption.Status = "0"; this.objOption.Status = "0";
this.objOption.Dept_Id = 0; this.objOption.Dept_Id = 0;
this.objOption.ManagerId = ""; this.objOption.ManagerId = "";
this.objOption.ContractTitle = "";
} }
this.persistent = true; this.persistent = true;
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment