mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
126 lines
8.0 KiB
HTML
126 lines
8.0 KiB
HTML
<div class="row">
|
|
<div class="col-lg-12">
|
|
<div class="ibox">
|
|
<div class="ibox-title">
|
|
<h5>流程设置</h5>
|
|
<div class="ibox-tools" style="top:10px;">
|
|
|
|
</div>
|
|
</div>
|
|
<div class="ibox-content">
|
|
<div class="form-group row">
|
|
<label class="col-sm-2 col-form-label">流程名称</label>
|
|
<div class="col-sm-10">
|
|
<input v-model="workflowSettingInfo.flowName" type="text" disabled="disabled"
|
|
placeholder="必填,请填写标题" class="form-control">
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="col-sm-2 col-form-label">流程说明</label>
|
|
<div class="col-sm-10">
|
|
<textarea v-model="workflowSettingInfo.describle" class="form-control"
|
|
placeholder="选填,请填写流程说明"></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="col-sm-2 col-form-label">流程步骤</label>
|
|
<div class="col-sm-10">
|
|
<div class="row " style="margin-left: 0px;">
|
|
<button type="button" class="btn btn-primary" @click="addWorkflowStep()">添加步骤</button>
|
|
</div>
|
|
<div v-for="(item,index) in workflowSettingInfo.steps">
|
|
<div class="row margin-0 margin-top">
|
|
<div class="col-sm-1 text-center">
|
|
<label class="col-form-label">第{{index+1}}步</label>
|
|
</div>
|
|
<div >
|
|
<a id="dLabel" role="button" class="btn btn-white" data-target="#" href="javascript:;" @click="chooseStaff(item)">
|
|
<span id="select-title">{{item.staffId == '' ? '选择员工':item.staffName}}</span> <span class="caret"></span>
|
|
</a>
|
|
</div>
|
|
<div class="margin-left" @click="chooseType(item)">
|
|
<div class="form-check form-check-inline col-form-label">
|
|
<input class="form-check-input" type="radio" v-bind:name="index+'-radio'"
|
|
v-bind:id="index+'-radio1'" value="2" v-model="item.type" checked>
|
|
<label class="form-check-label" v-bind:for="index+'-radio2'">
|
|
普通流程
|
|
</label>
|
|
</div>
|
|
<div class="form-check form-check-inline col-form-label">
|
|
<input class="form-check-input" type="radio" v-bind:name="index+'-radio'"
|
|
v-bind:id="index+'-radio2'" value="1" v-model="item.type">
|
|
<label class="form-check-label" v-bind:for="index+'-radio1'">
|
|
会签
|
|
</label>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="margin-left" @click="chooseStaffRole(item)" v-if="workflowSettingInfo.flowType == '30003'">
|
|
<div class="form-check form-check-inline col-form-label">
|
|
<input class="form-check-input" type="radio" v-bind:name="index+'-radio1'"
|
|
v-bind:id="index+'-radio3'" value="2002" v-model="item.staffRole" checked>
|
|
<label class="form-check-label" v-bind:for="index+'-radio4'">
|
|
采购人员
|
|
</label>
|
|
</div>
|
|
<div class="form-check form-check-inline col-form-label">
|
|
<input class="form-check-input" type="radio" v-bind:name="index+'-radio1'"
|
|
v-bind:id="index+'-radio4'" value="1001" v-model="item.staffRole">
|
|
<label class="form-check-label" v-bind:for="index+'-radio3'">
|
|
普通人员
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<div class="margin-left" @click="chooseStaffRole(item)" v-if="workflowSettingInfo.flowType == '40004'">
|
|
<div class="form-check form-check-inline col-form-label">
|
|
<input class="form-check-input" type="radio" v-bind:name="index+'-radio2'"
|
|
v-bind:id="index+'-radio5'" value="3003" v-model="item.staffRole" checked>
|
|
<label class="form-check-label" v-bind:for="index+'-radio6'">
|
|
仓库管理员
|
|
</label>
|
|
</div>
|
|
<div class="form-check form-check-inline col-form-label">
|
|
<input class="form-check-input" type="radio" v-bind:name="index+'-radio2'"
|
|
v-bind:id="index+'-radio6'" value="1001" v-model="item.staffRole">
|
|
<label class="form-check-label" v-bind:for="index+'-radio5'">
|
|
普通人员
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<button type="button" class="btn btn-link" @click="deleteStep(item)">删除步骤</button>
|
|
</div>
|
|
<div v-if="item.type == '1'">
|
|
<button type="button" class="btn btn-link" @click="addStaff(item)">添加员工</button>
|
|
</div>
|
|
</div>
|
|
<div class="row margin-0 margin-top" v-for="(subItem,index) in item.subStaff">
|
|
<div class="col-sm-1">
|
|
<label class="col-form-label"></label>
|
|
</div>
|
|
<div>
|
|
<a id="dLabel" role="button" class="btn btn-white" data-target="#" href="javascript:;" @click="chooseStaff(subItem)">
|
|
<span id="select-title">{{subItem.staffId == '' ? '选择员工':subItem.staffName}}</span> <span class="caret"></span>
|
|
</a>
|
|
</div>
|
|
<div>
|
|
<button type="button" class="btn btn-link" @click="deleteStaff(item,subItem)">删除员工</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="ibox-content">
|
|
<button class="btn btn-primary float-right" type="button" v-on:click="saveWorkflowSettingInfo()"><i
|
|
class="fa fa-check"></i> 提交
|
|
</button>
|
|
<button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
|
|
v-on:click="_goBack()">返回
|
|
</button>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<vc:create path="property/selectStaff"></vc:create>
|
|
</div> |