|
@@ -40,19 +40,9 @@
|
|
<el-button
|
|
<el-button
|
|
type="primary"
|
|
type="primary"
|
|
link
|
|
link
|
|
- v-if="row.materialState === '0'"
|
|
|
|
size="small"
|
|
size="small"
|
|
@click="handleEdit(row,0)"
|
|
@click="handleEdit(row,0)"
|
|
- ><i-ep-edit />发起准备
|
|
|
|
- </el-button>
|
|
|
|
-
|
|
|
|
- <el-button
|
|
|
|
- type="primary"
|
|
|
|
- link
|
|
|
|
- v-if="row.materialState === '1'"
|
|
|
|
- size="small"
|
|
|
|
- @click="handleEdit(row,0)"
|
|
|
|
- ><i-ep-edit />编辑准备
|
|
|
|
|
|
+ ><i-ep-edit />{{row.materialState === '0' ? '发起准备' : row.materialState === '1' ? '编辑准备' : '详情'}}
|
|
</el-button>
|
|
</el-button>
|
|
<!-- <el-button
|
|
<!-- <el-button
|
|
type="primary"
|
|
type="primary"
|
|
@@ -130,7 +120,7 @@
|
|
style="--el-switch-on-color: #13ce66; --el-switch-off-color: #ff4949"
|
|
style="--el-switch-on-color: #13ce66; --el-switch-off-color: #ff4949"
|
|
active-text="完成"
|
|
active-text="完成"
|
|
inactive-text="未完成"
|
|
inactive-text="未完成"
|
|
- :disabled="form.materialState === '0' || form.materialState === '1' && userStore.user.username !== templates[index].userName"
|
|
|
|
|
|
+ :disabled="form.materialState === '0' || form.materialState === '1' && userStore.user.username !== templates[index].userName || form.materialState === '2'"
|
|
active-value="1"
|
|
active-value="1"
|
|
inactive-value="0"
|
|
inactive-value="0"
|
|
/>
|
|
/>
|
|
@@ -142,7 +132,7 @@
|
|
v-model="templates[index].userName"
|
|
v-model="templates[index].userName"
|
|
placeholder="准备人员"
|
|
placeholder="准备人员"
|
|
size="large"
|
|
size="large"
|
|
- :disabled="form.materialState === '1'"
|
|
|
|
|
|
+ :disabled="form.materialState === '1' || form.materialState === '2'"
|
|
filterable
|
|
filterable
|
|
style="width: 240px">
|
|
style="width: 240px">
|
|
<el-option
|
|
<el-option
|
|
@@ -163,7 +153,7 @@
|
|
</el-form>
|
|
</el-form>
|
|
<template #footer>
|
|
<template #footer>
|
|
<div class="dialog-footer">
|
|
<div class="dialog-footer">
|
|
- <el-button type="primary" @click="onSubmit">{{form.materialState === '0' ? '发起准备' : '提交'}}</el-button>
|
|
|
|
|
|
+ <el-button type="primary" v-if="form.materialState !== '2'" @click="onSubmit">{{form.materialState === '0' ? '发起准备' : '提交'}}</el-button>
|
|
<el-button @click="dialog1.visible = false">取 消</el-button>
|
|
<el-button @click="dialog1.visible = false">取 消</el-button>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|