Browse Source

社会组织第二版

test
jianjun 3 years ago
parent
commit
2369d22836
  1. 37
      src/views/modules/communityService/shzz/cpts/edit.vue
  2. 19
      src/views/modules/communityService/shzz/index.vue

37
src/views/modules/communityService/shzz/cpts/edit.vue

@ -39,7 +39,7 @@
</div> </div>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
label="社会组织名称 " label="组织名称 "
prop="societyName" prop="societyName"
label-width="150px" label-width="150px"
style="display: block" style="display: block"
@ -48,14 +48,14 @@
class="item_width_1" class="item_width_1"
maxlength="50" maxlength="50"
show-word-limit show-word-limit
placeholder="请输入社会组织名称 " placeholder="请输入组织名称 "
v-model="dataForm.societyName" v-model="dataForm.societyName"
> >
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
label="服务事项" label="服务内容"
prop="serviceMatters" prop="serviceMatters"
label-width="150px" label-width="150px"
style="display: block" style="display: block"
@ -66,7 +66,7 @@
maxlength="1000" maxlength="1000"
show-word-limit show-word-limit
:rows="3" :rows="3"
placeholder="请输入服务事项,不超过1000字" placeholder="请输入服务内容,不超过1000字"
v-model="dataForm.serviceMatters" v-model="dataForm.serviceMatters"
></el-input> ></el-input>
</el-form-item> </el-form-item>
@ -88,7 +88,7 @@
</el-form-item> </el-form-item>
<el-form-item <el-form-item
label="负责人电话 " label="服务电话 "
prop="mobile" prop="mobile"
label-width="150px" label-width="150px"
style="display: block" style="display: block"
@ -97,7 +97,7 @@
class="item_width_1" class="item_width_1"
maxlength="50" maxlength="50"
show-word-limit show-word-limit
placeholder="请输入负责人电话 " placeholder="请输入服务电话 "
v-model="dataForm.mobile" v-model="dataForm.mobile"
> >
</el-input> </el-input>
@ -105,11 +105,19 @@
<el-form-item <el-form-item
label="服务时间 " label="服务时间 "
prop="serviceTime" prop="serviceTimeStr"
label-width="150px" label-width="150px"
style="display: block" style="display: block"
> >
<el-date-picker <el-input
class="item_width_1"
maxlength="50"
show-word-limit
placeholder="请输入服务时间 "
v-model="dataForm.serviceTimeStr"
>
</el-input>
<!-- <el-date-picker
v-model="dataForm.serviceTime" v-model="dataForm.serviceTime"
type="daterange" type="daterange"
range-separator="至" range-separator="至"
@ -117,7 +125,7 @@
end-placeholder="结束日期" end-placeholder="结束日期"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
> >
</el-date-picker> </el-date-picker>-->
</el-form-item> </el-form-item>
<el-form-item <el-form-item
@ -236,6 +244,7 @@ export default {
mobile: "", mobile: "",
serviceStartTime: "", serviceStartTime: "",
serviceEndTime: "", serviceEndTime: "",
serviceTimeStr: "",
serviceTime: ["", ""], serviceTime: ["", ""],
adminStaffId: "", adminStaffId: "",
address: "", address: "",
@ -250,11 +259,11 @@ export default {
dataRule() { dataRule() {
return { return {
societyName: [ societyName: [
{required: true, message: "社会组织名称 不能为空", trigger: "blur"}, {required: true, message: "组织名称 不能为空", trigger: "blur"},
{ {
min: 1, min: 1,
max: 50, max: 50,
message: "社会组织名称 长度在 1 到 50个字符", message: "组织名称 长度在 1 到 50个字符",
trigger: "blur", trigger: "blur",
}, },
], ],
@ -262,7 +271,7 @@ export default {
{required: true, message: "头像不能为空", trigger: "blur"}, {required: true, message: "头像不能为空", trigger: "blur"},
], ],
serviceMatters: [ serviceMatters: [
{required: true, message: "服务事项不能为空", trigger: "blur"}, {required: true, message: "服务内容不能为空", trigger: "blur"},
], ],
personInCharge: [ personInCharge: [
{required: true, message: "负责人姓名不能为空", trigger: "blur"}, {required: true, message: "负责人姓名不能为空", trigger: "blur"},
@ -271,9 +280,9 @@ export default {
{ required: true, message: "绑定管理员不能为空", trigger: "blur" }, { required: true, message: "绑定管理员不能为空", trigger: "blur" },
],*/ ],*/
mobile: [ mobile: [
{required: true, message: "负责人电话不能为空", trigger: "blur"}, {required: true, message: "服务电话不能为空", trigger: "blur"},
], ],
serviceTime: [ serviceTimeStr: [
{required: true, message: "服务时间不能为空", trigger: "blur"}, {required: true, message: "服务时间不能为空", trigger: "blur"},
], ],
/*longitude: [ /*longitude: [

19
src/views/modules/communityService/shzz/index.vue

@ -57,13 +57,19 @@
<div class="resi-cell-label">服务时间</div> <div class="resi-cell-label">服务时间</div>
<div class="resi-cell-value" <div class="resi-cell-value"
:class="'resi-cell-value-radio'"> :class="'resi-cell-value-radio'">
<el-date-picker v-model="fmData.serviceTime" <el-input v-model="fmData.serviceTimeStr"
class="resi-cell-input"
size="small"
clearable
placeholder="请输入">
</el-input>
<!-- <el-date-picker v-model="fmData.serviceTime"
type="daterange" type="daterange"
range-separator="至" range-separator="至"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
value-format="yyyy-MM-dd"> value-format="yyyy-MM-dd">
</el-date-picker> </el-date-picker>-->
</div> </div>
</div> </div>
</el-col> </el-col>
@ -116,17 +122,17 @@
align="center" align="center"
width="50" /> width="50" />
<el-table-column prop="societyName" <el-table-column prop="societyName"
label="社会组织名称"> label="组织名称">
</el-table-column> </el-table-column>
<el-table-column prop="serviceMatters" <el-table-column prop="serviceMatters"
label="服务事项"> label="服务内容">
</el-table-column> </el-table-column>
<el-table-column prop="personInCharge" <el-table-column prop="personInCharge"
label="负责人"> label="负责人">
</el-table-column> </el-table-column>
<el-table-column prop="mobile" <el-table-column prop="mobile"
label="负责人电话"> </el-table-column> label="服务电话"> </el-table-column>
<el-table-column prop="serviceTime" <el-table-column prop="serviceTimeStr"
label="服务时间"> </el-table-column> label="服务时间"> </el-table-column>
<!-- <el-table-column prop="score" <!-- <el-table-column prop="score"
width="80" width="80"
@ -229,6 +235,7 @@ export default {
serviceStartTime: "", serviceStartTime: "",
serviceEndTime: "", serviceEndTime: "",
serviceTime: "", serviceTime: "",
serviceTimeStr: "",
}, },
importBtnTitle: "excel导入", importBtnTitle: "excel导入",

Loading…
Cancel
Save