|
@@ -8,7 +8,7 @@
|
|
|
@close="cancel"
|
|
@close="cancel"
|
|
|
:maxable="true"
|
|
:maxable="true"
|
|
|
>
|
|
>
|
|
|
- <div class="switch" v-if="type == 'detail'">
|
|
|
|
|
|
|
+ <!-- <div class="switch" v-if="type == 'detail'">
|
|
|
<div class="switch_left">
|
|
<div class="switch_left">
|
|
|
<ul>
|
|
<ul>
|
|
|
<li
|
|
<li
|
|
@@ -21,7 +21,7 @@
|
|
|
</li>
|
|
</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</div>
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
|
|
+ </div> -->
|
|
|
<el-form
|
|
<el-form
|
|
|
ref="form"
|
|
ref="form"
|
|
|
:model="form"
|
|
:model="form"
|
|
@@ -144,6 +144,7 @@
|
|
|
icon="el-icon-plus"
|
|
icon="el-icon-plus"
|
|
|
class="ele-btn-icon"
|
|
class="ele-btn-icon"
|
|
|
@click="addOder"
|
|
@click="addOder"
|
|
|
|
|
+ v-if="type == 'add'"
|
|
|
style="margin-bottom: 10px"
|
|
style="margin-bottom: 10px"
|
|
|
>
|
|
>
|
|
|
新建
|
|
新建
|
|
@@ -155,6 +156,7 @@
|
|
|
icon="el-icon-delete"
|
|
icon="el-icon-delete"
|
|
|
class="ele-btn-icon"
|
|
class="ele-btn-icon"
|
|
|
@click="removeOder"
|
|
@click="removeOder"
|
|
|
|
|
+ v-if="type == 'add'"
|
|
|
plain
|
|
plain
|
|
|
style="margin-bottom: 10px"
|
|
style="margin-bottom: 10px"
|
|
|
>
|
|
>
|
|
@@ -172,11 +174,13 @@
|
|
|
height="40vh"
|
|
height="40vh"
|
|
|
>
|
|
>
|
|
|
<template v-slot:totalCount="{ row }">
|
|
<template v-slot:totalCount="{ row }">
|
|
|
- <el-input v-model="row.totalCount"> </el-input>
|
|
|
|
|
|
|
+ <el-input v-model="row.totalCount" :disabled="type == 'detail'">
|
|
|
|
|
+ </el-input>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template v-slot:describes="{ row }">
|
|
<template v-slot:describes="{ row }">
|
|
|
- <el-input v-model="row.describes"> </el-input>
|
|
|
|
|
|
|
+ <el-input v-model="row.describes" :disabled="type == 'detail'">
|
|
|
|
|
+ </el-input>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template v-slot:taskId="{ row, $index }">
|
|
<template v-slot:taskId="{ row, $index }">
|
|
@@ -187,6 +191,7 @@
|
|
|
v-model="row.taskId"
|
|
v-model="row.taskId"
|
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
|
@change="taskListChange(row, $index)"
|
|
@change="taskListChange(row, $index)"
|
|
|
|
|
+ :disabled="type == 'detail'"
|
|
|
>
|
|
>
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="item in row.taskList"
|
|
v-for="item in row.taskList"
|
|
@@ -205,21 +210,22 @@
|
|
|
placeholder="选择日期时间"
|
|
placeholder="选择日期时间"
|
|
|
format="yyyy-MM-dd HH:mm:ss"
|
|
format="yyyy-MM-dd HH:mm:ss"
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
+ :disabled="type == 'detail'"
|
|
|
>
|
|
>
|
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
|
</template>
|
|
</template>
|
|
|
</ele-pro-table>
|
|
</ele-pro-table>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
|
|
|
|
|
- <template v-slot:footer>
|
|
|
|
|
|
|
+ <template v-slot:footer v-if="type != 'detail'">
|
|
|
<el-button @click="cancel">取消</el-button>
|
|
<el-button @click="cancel">取消</el-button>
|
|
|
<el-button type="primary" @click="save(1)"> 保存 </el-button>
|
|
<el-button type="primary" @click="save(1)"> 保存 </el-button>
|
|
|
<el-button type="primary" @click="save(2)"> 提交 </el-button>
|
|
<el-button type="primary" @click="save(2)"> 提交 </el-button>
|
|
|
</template>
|
|
</template>
|
|
|
- <detail
|
|
|
|
|
|
|
+ <!-- <detail
|
|
|
v-if="activeComp === 'bpm' && form.processInstanceId"
|
|
v-if="activeComp === 'bpm' && form.processInstanceId"
|
|
|
:id="form.processInstanceId"
|
|
:id="form.processInstanceId"
|
|
|
- ></detail>
|
|
|
|
|
|
|
+ ></detail> -->
|
|
|
|
|
|
|
|
<produceOrder ref="produceOrderRef" @choose="choose" />
|
|
<produceOrder ref="produceOrderRef" @choose="choose" />
|
|
|
</ele-modal>
|
|
</ele-modal>
|
|
@@ -560,6 +566,8 @@
|
|
|
this.getDetail(row.id);
|
|
this.getDetail(row.id);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ this.type = type;
|
|
|
|
|
+
|
|
|
this.title = type == 'add' ? '新增' : type == 'edit' ? '修改' : '详情';
|
|
this.title = type == 'add' ? '新增' : type == 'edit' ? '修改' : '详情';
|
|
|
},
|
|
},
|
|
|
|
|
|