|
|
|
@ -1,11 +1,24 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<basic-container> |
|
|
|
<basic-container> |
|
|
|
<!-- 重点工作管理 --> |
|
|
|
<!-- 重点工作管理 --> |
|
|
|
<avue-crud :option="option" :table-loading="loading" :data="data" v-model="form" v-model:page="page" ref="crud" |
|
|
|
<avue-crud |
|
|
|
@row-del="rowDel" @search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange" |
|
|
|
:option="option" |
|
|
|
@current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad"> |
|
|
|
:table-loading="loading" |
|
|
|
|
|
|
|
:data="data" |
|
|
|
|
|
|
|
v-model="form" |
|
|
|
|
|
|
|
v-model:page="page" |
|
|
|
|
|
|
|
ref="crud" |
|
|
|
|
|
|
|
@row-del="rowDel" |
|
|
|
|
|
|
|
@search-change="searchChange" |
|
|
|
|
|
|
|
@search-reset="searchReset" |
|
|
|
|
|
|
|
@selection-change="selectionChange" |
|
|
|
|
|
|
|
@current-change="currentChange" |
|
|
|
|
|
|
|
@size-change="sizeChange" |
|
|
|
|
|
|
|
@refresh-change="refreshChange" |
|
|
|
|
|
|
|
@on-load="onLoad" |
|
|
|
|
|
|
|
> |
|
|
|
<template #menu-left> |
|
|
|
<template #menu-left> |
|
|
|
<el-button type="primary" icon="el-icon-plus" @click="handleAdd">新增</el-button> |
|
|
|
<el-button type="primary" @click="handleAdd">新增</el-button> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<template #menu="{ row }"> |
|
|
|
<template #menu="{ row }"> |
|
|
|
<el-button type="text" @click="handleView(row)">详情</el-button> |
|
|
|
<el-button type="text" @click="handleView(row)">详情</el-button> |
|
|
|
@ -20,41 +33,77 @@ |
|
|
|
<template #expand="{ row }"> |
|
|
|
<template #expand="{ row }"> |
|
|
|
<el-table :data="row.stoneList"> |
|
|
|
<el-table :data="row.stoneList"> |
|
|
|
<el-table-column label="里程碑计划" align="center" prop="milestonePlan"></el-table-column> |
|
|
|
<el-table-column label="里程碑计划" align="center" prop="milestonePlan"></el-table-column> |
|
|
|
<el-table-column label="里程碑负责人" align="center" prop="milestoneMan.userName"></el-table-column> |
|
|
|
<el-table-column |
|
|
|
<el-table-column label="里程碑输出物" align="center" prop="outputMaterial"></el-table-column> |
|
|
|
label="里程碑负责人" |
|
|
|
<el-table-column label="里程碑节点" width="200" align="center" prop="milestoneNode"></el-table-column> |
|
|
|
align="center" |
|
|
|
<el-table-column align="center" label="执行类型" prop="executeResultTitle"></el-table-column> |
|
|
|
prop="milestoneMan" |
|
|
|
|
|
|
|
></el-table-column> |
|
|
|
|
|
|
|
<el-table-column |
|
|
|
|
|
|
|
label="里程碑输出物" |
|
|
|
|
|
|
|
align="center" |
|
|
|
|
|
|
|
prop="outputMaterial" |
|
|
|
|
|
|
|
></el-table-column> |
|
|
|
|
|
|
|
<el-table-column |
|
|
|
|
|
|
|
label="里程碑节点" |
|
|
|
|
|
|
|
width="200" |
|
|
|
|
|
|
|
align="center" |
|
|
|
|
|
|
|
prop="milestoneNode" |
|
|
|
|
|
|
|
></el-table-column> |
|
|
|
|
|
|
|
<el-table-column |
|
|
|
|
|
|
|
align="center" |
|
|
|
|
|
|
|
label="执行类型" |
|
|
|
|
|
|
|
prop="executeType" |
|
|
|
|
|
|
|
></el-table-column> |
|
|
|
<el-table-column align="center" label="状态" prop="statusTitle"></el-table-column> |
|
|
|
<el-table-column align="center" label="状态" prop="statusTitle"></el-table-column> |
|
|
|
<el-table-column align="center" label="延期时间" prop="delayTime"></el-table-column> |
|
|
|
<el-table-column align="center" label="延期时间" prop="delayTime"></el-table-column> |
|
|
|
<el-table-column align="center" label="核查结果" prop="checkResultTitle"></el-table-column> |
|
|
|
<el-table-column |
|
|
|
|
|
|
|
align="center" |
|
|
|
|
|
|
|
label="核查结果" |
|
|
|
|
|
|
|
prop="checkResultTitle" |
|
|
|
|
|
|
|
></el-table-column> |
|
|
|
<el-table-column align="center" label="核查人" prop="checkMan.userName"></el-table-column> |
|
|
|
<el-table-column align="center" label="核查人" prop="checkMan.userName"></el-table-column> |
|
|
|
<el-table-column align="center" label="评价等级" prop="gradeTitle"></el-table-column> |
|
|
|
<el-table-column align="center" label="评价等级" prop="gradeTitle"></el-table-column> |
|
|
|
<el-table-column align="center" label="评价人" prop="gradeMan.userName"></el-table-column> |
|
|
|
<el-table-column align="center" label="评价人" prop="gradeMan.userName"></el-table-column> |
|
|
|
<el-table-column align="center" label="业务领导评价" prop="evaluate"></el-table-column> |
|
|
|
<el-table-column align="center" label="业务领导评价" prop="evaluate"></el-table-column> |
|
|
|
<el-table-column label="操作"> |
|
|
|
<el-table-column label="操作"> |
|
|
|
<template #default="scope"> |
|
|
|
<template #default="scope"> |
|
|
|
<el-button type="text" v-if="scope.row.status == 3" @click="executeRow(row, scope.row)">执行</el-button> |
|
|
|
<el-button |
|
|
|
<el-button type="text" v-if="scope.row.status == 4" @click="auditRow(row, scope.row)">核查</el-button> |
|
|
|
type="text" |
|
|
|
<el-button type="text" v-if="scope.row.status == 6" @click="examineRow(row, scope.row)">核准</el-button> |
|
|
|
v-if="scope.row.status == 3" |
|
|
|
|
|
|
|
@click="executeRow(row, scope.row)" |
|
|
|
|
|
|
|
>执行</el-button |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<el-button type="text" v-if="scope.row.status == 4" @click="auditRow(row, scope.row)" |
|
|
|
|
|
|
|
>核查</el-button |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<el-button |
|
|
|
|
|
|
|
type="text" |
|
|
|
|
|
|
|
v-if="scope.row.status == 6" |
|
|
|
|
|
|
|
@click="examineRow(row, scope.row)" |
|
|
|
|
|
|
|
>核准</el-button |
|
|
|
|
|
|
|
> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-table> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</avue-crud> |
|
|
|
</avue-crud> |
|
|
|
<!-- 新增弹窗 --> |
|
|
|
<!-- 新增弹窗 --> |
|
|
|
<add-dialog :title="title" :visible="addDialogVisible" :add-form="addForm" :add-rules="addRules" |
|
|
|
<add-dialog |
|
|
|
@close="addDialogVisible = false" @submit-form="submitForm"></add-dialog> |
|
|
|
:title="title" |
|
|
|
|
|
|
|
:visible="addDialogVisible" |
|
|
|
|
|
|
|
:add-form="addForm" |
|
|
|
|
|
|
|
:add-rules="addRules" |
|
|
|
|
|
|
|
@close="addDialogVisible = false" |
|
|
|
|
|
|
|
@submit-form="submitForm" |
|
|
|
|
|
|
|
></add-dialog> |
|
|
|
<!-- 审核弹窗 --> |
|
|
|
<!-- 审核弹窗 --> |
|
|
|
<el-dialog v-model="checkDialog" title="审核" append-to-body> |
|
|
|
<el-dialog v-model="checkDialog" title="审核" append-to-body width="30%"> |
|
|
|
<el-form ref="checkForm" :model="checkForm" :rules="checkRules" label-width="80px"> |
|
|
|
<el-form ref="checkForm" :model="checkForm" :rules="checkRules" label-width="80px"> |
|
|
|
<el-form-item label="审核结果" prop="checkResult"> |
|
|
|
<el-form-item label="审核结果" prop="checkResult"> |
|
|
|
<el-select placeholder="请选择审核结果" v-model="checkForm.checkResult"> |
|
|
|
<el-radio-group v-model="checkForm.checkResult"> |
|
|
|
<el-option label="通过" value="1"></el-option> |
|
|
|
<el-radio label="1">通过</el-radio> |
|
|
|
<el-option label="不通过" value="2"></el-option> |
|
|
|
<el-radio label="2">不通过</el-radio> |
|
|
|
</el-select> |
|
|
|
</el-radio-group> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="审核意见" prop="checkOpinion"> |
|
|
|
|
|
|
|
<el-input type="textarea" placeholder="请输入审核意见" v-model="checkForm.checkOpinion"></el-input> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
</el-form> |
|
|
|
<template #footer> |
|
|
|
<template #footer> |
|
|
|
@ -92,32 +141,60 @@ |
|
|
|
<el-input disabled v-model="executeForm.milestoneNode"></el-input> |
|
|
|
<el-input disabled v-model="executeForm.milestoneNode"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="执行类型" prop="executeResult"> |
|
|
|
<el-form-item label="执行类型" prop="executeResult"> |
|
|
|
<el-select :disabled="subTitle == '核查' || subTitle == '核准'" v-model="executeForm.executeResult"> |
|
|
|
<el-select |
|
|
|
|
|
|
|
:disabled="subTitle == '核查' || subTitle == '核准'" |
|
|
|
|
|
|
|
v-model="executeForm.executeResult" |
|
|
|
|
|
|
|
> |
|
|
|
<el-option label="延期" :value="1"></el-option> |
|
|
|
<el-option label="延期" :value="1"></el-option> |
|
|
|
<el-option label="终止" :value="2"></el-option> |
|
|
|
<el-option label="终止" :value="2"></el-option> |
|
|
|
<el-option label="完成" :value="3"></el-option> |
|
|
|
<el-option label="完成" :value="3"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="延期时间" v-if="executeForm.executeResult == 1"> |
|
|
|
<el-form-item label="延期时间" v-if="executeForm.executeResult == 1"> |
|
|
|
<el-date-picker :disabled="subTitle == '核查' || subTitle == '核准'" style="width: 100%" |
|
|
|
<el-date-picker |
|
|
|
v-model="executeForm.delayTime" type="datetime" placeholder="选择日期时间" /> |
|
|
|
:disabled="subTitle == '核查' || subTitle == '核准'" |
|
|
|
|
|
|
|
style="width: 100%" |
|
|
|
|
|
|
|
v-model="executeForm.delayTime" |
|
|
|
|
|
|
|
type="datetime" |
|
|
|
|
|
|
|
placeholder="选择日期时间" |
|
|
|
|
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="里程碑描述" prop="milestoneMemo"> |
|
|
|
<el-form-item label="里程碑描述" prop="milestoneMemo"> |
|
|
|
<el-input :disabled="subTitle == '核查' || subTitle == '核准'" type="textarea" |
|
|
|
<el-input |
|
|
|
v-model="executeForm.milestoneMemo"></el-input> |
|
|
|
:disabled="subTitle == '核查' || subTitle == '核准'" |
|
|
|
|
|
|
|
type="textarea" |
|
|
|
|
|
|
|
v-model="executeForm.milestoneMemo" |
|
|
|
|
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="里程碑进展" prop="evolve"> |
|
|
|
<el-form-item label="里程碑进展" prop="evolve"> |
|
|
|
<el-input :disabled="subTitle == '核查' || subTitle == '核准'" type="textarea" |
|
|
|
<el-input |
|
|
|
v-model="executeForm.evolve"></el-input> |
|
|
|
:disabled="subTitle == '核查' || subTitle == '核准'" |
|
|
|
|
|
|
|
type="textarea" |
|
|
|
|
|
|
|
v-model="executeForm.evolve" |
|
|
|
|
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="下一步计划" prop="lastPlan"> |
|
|
|
<el-form-item label="下一步计划" prop="lastPlan"> |
|
|
|
<el-input :disabled="subTitle == '核查' || subTitle == '核准'" type="textarea" |
|
|
|
<el-input |
|
|
|
v-model="executeForm.lastPlan"></el-input> |
|
|
|
:disabled="subTitle == '核查' || subTitle == '核准'" |
|
|
|
|
|
|
|
type="textarea" |
|
|
|
|
|
|
|
v-model="executeForm.lastPlan" |
|
|
|
|
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="附件" v-if="subTitle == '执行' || subTitle == '核查' || subTitle == '核准'"> |
|
|
|
<el-form-item |
|
|
|
<el-upload class="upload-demo" action="https://jsonplaceholder.typicode.com/posts/" |
|
|
|
label="附件" |
|
|
|
:on-preview="handlePreview" :on-remove="handleRemove" :before-remove="beforeRemove" multiple :limit="3" |
|
|
|
v-if="subTitle == '执行' || subTitle == '核查' || subTitle == '核准'" |
|
|
|
:on-exceed="handleExceed" :file-list="fileList"> |
|
|
|
> |
|
|
|
|
|
|
|
<el-upload |
|
|
|
|
|
|
|
class="upload-demo" |
|
|
|
|
|
|
|
action="https://jsonplaceholder.typicode.com/posts/" |
|
|
|
|
|
|
|
:on-preview="handlePreview" |
|
|
|
|
|
|
|
:on-remove="handleRemove" |
|
|
|
|
|
|
|
:before-remove="beforeRemove" |
|
|
|
|
|
|
|
multiple |
|
|
|
|
|
|
|
:limit="3" |
|
|
|
|
|
|
|
:on-exceed="handleExceed" |
|
|
|
|
|
|
|
:file-list="fileList" |
|
|
|
|
|
|
|
> |
|
|
|
<el-button size="small" type="primary">点击上传</el-button> |
|
|
|
<el-button size="small" type="primary">点击上传</el-button> |
|
|
|
<div slot="tip" class="el-upload__tip">不能上传 exe 附件,且不超过 20M</div> |
|
|
|
<div slot="tip" class="el-upload__tip">不能上传 exe 附件,且不超过 20M</div> |
|
|
|
</el-upload> |
|
|
|
</el-upload> |
|
|
|
@ -126,7 +203,9 @@ |
|
|
|
<ul> |
|
|
|
<ul> |
|
|
|
<li v-for="(file, index) in existingFiles" :key="index"> |
|
|
|
<li v-for="(file, index) in existingFiles" :key="index"> |
|
|
|
<a href="javascript:void(0)" @click="downloadFile(file)">{{ file.name }}</a> |
|
|
|
<a href="javascript:void(0)" @click="downloadFile(file)">{{ file.name }}</a> |
|
|
|
<el-button type="text" size="small" @click="removeExistingFile(index)">删除</el-button> |
|
|
|
<el-button type="text" size="small" @click="removeExistingFile(index)" |
|
|
|
|
|
|
|
>删除</el-button |
|
|
|
|
|
|
|
> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@ -160,7 +239,11 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="审核意见" prop="checkOpinion" label-width="80px"> |
|
|
|
<el-form-item label="审核意见" prop="checkOpinion" label-width="80px"> |
|
|
|
<el-input type="textarea" placeholder="请输入审核意见" v-model="checkForm.checkOpinion"></el-input> |
|
|
|
<el-input |
|
|
|
|
|
|
|
type="textarea" |
|
|
|
|
|
|
|
placeholder="请输入审核意见" |
|
|
|
|
|
|
|
v-model="checkForm.checkOpinion" |
|
|
|
|
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
</el-form> |
|
|
|
<template #footer> |
|
|
|
<template #footer> |
|
|
|
@ -174,7 +257,7 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import { getProcessList, addProcess } from '../../api/flowManagement/index' |
|
|
|
import { getProcessList, addProcess, updateProcess,delProcess } from '../../api/flowManagement/index'; |
|
|
|
import AddDialog from './addDialog.vue'; |
|
|
|
import AddDialog from './addDialog.vue'; |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
export default { |
|
|
|
@ -186,56 +269,49 @@ export default { |
|
|
|
// 4-项目待核查、5-项目核查不通过、6-项目待核准、7-项目核准不通过、 |
|
|
|
// 4-项目待核查、5-项目核查不通过、6-项目待核准、7-项目核准不通过、 |
|
|
|
// 8-项目已核准 |
|
|
|
// 8-项目已核准 |
|
|
|
addDialogVisible: false, // 新增弹窗显隐控制 |
|
|
|
addDialogVisible: false, // 新增弹窗显隐控制 |
|
|
|
title: "新增", |
|
|
|
title: '新增', |
|
|
|
loading: false, |
|
|
|
loading: false, |
|
|
|
title: "新增", |
|
|
|
title: '新增', |
|
|
|
checkDialog: false, |
|
|
|
checkDialog: false, |
|
|
|
subTitle: "执行", |
|
|
|
subTitle: '执行', |
|
|
|
detailForm: {}, |
|
|
|
detailForm: {}, |
|
|
|
checkForm: {}, |
|
|
|
checkForm: {}, |
|
|
|
detailListSelectList: [], |
|
|
|
detailListSelectList: [], |
|
|
|
checkRules: { |
|
|
|
checkRules: { |
|
|
|
checkResult: [{ required: true, message: "请选择审核结果", trigger: "blur" }], |
|
|
|
checkResult: [{ required: true, message: '请选择审核结果', trigger: 'blur' }], |
|
|
|
}, |
|
|
|
}, |
|
|
|
executeDialog: false, |
|
|
|
executeDialog: false, |
|
|
|
executeForm: {}, |
|
|
|
executeForm: {}, |
|
|
|
executeRules: { |
|
|
|
executeRules: { |
|
|
|
executeResult: [{ required: true, message: "请选择执行类型", trigger: "blur" }], |
|
|
|
executeResult: [{ required: true, message: '请选择执行类型', trigger: 'blur' }], |
|
|
|
milestoneMemo: [{ required: true, message: "请填写里程碑描述", trigger: "blur" }], |
|
|
|
milestoneMemo: [{ required: true, message: '请填写里程碑描述', trigger: 'blur' }], |
|
|
|
evolve: [{ required: true, message: "请填写里程碑进展", trigger: "blur" }], |
|
|
|
evolve: [{ required: true, message: '请填写里程碑进展', trigger: 'blur' }], |
|
|
|
lastPlan: [{ required: true, message: "请填写下一步计划", trigger: "blur" }], |
|
|
|
lastPlan: [{ required: true, message: '请填写下一步计划', trigger: 'blur' }], |
|
|
|
}, |
|
|
|
}, |
|
|
|
data: [], |
|
|
|
data: [], |
|
|
|
form: {}, |
|
|
|
form: {}, |
|
|
|
existingFiles: [], // 已有附件列表 |
|
|
|
existingFiles: [], // 已有附件列表 |
|
|
|
addForm: { |
|
|
|
addForm: {}, |
|
|
|
}, |
|
|
|
|
|
|
|
addRules: { |
|
|
|
addRules: { |
|
|
|
projectName: [{ required: true, message: "请输入项目名称", trigger: "blur" }], |
|
|
|
projectName: [{ required: true, message: '请输入项目名称', trigger: 'blur' }], |
|
|
|
bsBasicClass: { |
|
|
|
bsBasicClass: { |
|
|
|
bcId: [{ required: true, message: "请选择项目类型", trigger: "blur" }], |
|
|
|
bcId: [{ required: true, message: '请选择项目类型', trigger: 'blur' }], |
|
|
|
}, |
|
|
|
}, |
|
|
|
touchingDept: { |
|
|
|
touchingDept: { |
|
|
|
tsId: [{ required: true, message: "请选择制单部门", trigger: "blur" }], |
|
|
|
tsId: [{ required: true, message: '请选择制单部门', trigger: 'blur' }], |
|
|
|
}, |
|
|
|
}, |
|
|
|
projectBackcloth: [ |
|
|
|
projectBackcloth: [{ required: true, message: '请输入项目背景', trigger: 'blur' }], |
|
|
|
{ required: true, message: "请输入项目背景", trigger: "blur" }, |
|
|
|
projectTarget: [{ required: true, message: '请输入项目目标', trigger: 'blur' }], |
|
|
|
], |
|
|
|
desiredResult: [{ required: true, message: '请输入预期效果', trigger: 'blur' }], |
|
|
|
projectTarget: [{ required: true, message: "请输入项目目标", trigger: "blur" }], |
|
|
|
memberId: [{ required: true, message: '请选择成员', trigger: 'blur' }], |
|
|
|
desiredResult: [{ required: true, message: "请输入预期效果", trigger: "blur" }], |
|
|
|
|
|
|
|
memberId: [{ required: true, message: "请选择成员", trigger: "blur" }], |
|
|
|
|
|
|
|
projectHead: { |
|
|
|
projectHead: { |
|
|
|
userId: [{ required: true, message: "请选择项目负责人", trigger: "blur" }], |
|
|
|
userId: [{ required: true, message: '请选择项目负责人', trigger: 'blur' }], |
|
|
|
}, |
|
|
|
}, |
|
|
|
projectSupportMan: { |
|
|
|
projectSupportMan: { |
|
|
|
userId: [{ required: true, message: "请选择项目支持人", trigger: "blur" }], |
|
|
|
userId: [{ required: true, message: '请选择项目支持人', trigger: 'blur' }], |
|
|
|
}, |
|
|
|
}, |
|
|
|
projectStartTime: [ |
|
|
|
projectStartTime: [{ required: true, message: '请选择项目开始时间', trigger: 'blur' }], |
|
|
|
{ required: true, message: "请选择项目开始时间", trigger: "blur" }, |
|
|
|
projectDesiredEnd: [{ required: true, message: '请选择项目结束预期时间', trigger: 'blur' }], |
|
|
|
], |
|
|
|
|
|
|
|
projectDesiredEnd: [ |
|
|
|
|
|
|
|
{ required: true, message: "请选择项目结束预期时间", trigger: "blur" }, |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
page: { |
|
|
|
page: { |
|
|
|
pageSize: 10, |
|
|
|
pageSize: 10, |
|
|
|
@ -246,9 +322,9 @@ export default { |
|
|
|
columnSort: true, |
|
|
|
columnSort: true, |
|
|
|
tip: false, |
|
|
|
tip: false, |
|
|
|
expand: true, |
|
|
|
expand: true, |
|
|
|
rowKey: "id", |
|
|
|
rowKey: 'id', |
|
|
|
height: "auto", |
|
|
|
height: 'auto', |
|
|
|
align: "center", |
|
|
|
align: 'center', |
|
|
|
calcHeight: 32, |
|
|
|
calcHeight: 32, |
|
|
|
simplePage: false, |
|
|
|
simplePage: false, |
|
|
|
searchShow: true, |
|
|
|
searchShow: true, |
|
|
|
@ -258,13 +334,13 @@ export default { |
|
|
|
tree: false, |
|
|
|
tree: false, |
|
|
|
border: true, |
|
|
|
border: true, |
|
|
|
index: false, |
|
|
|
index: false, |
|
|
|
selection: true, |
|
|
|
selection: false, |
|
|
|
viewBtn: false, |
|
|
|
viewBtn: false, |
|
|
|
delBtn: false, |
|
|
|
delBtn: false, |
|
|
|
editBtn: false, |
|
|
|
editBtn: false, |
|
|
|
editBtnText: "修改", |
|
|
|
editBtnText: '修改', |
|
|
|
editBtnIcon: " ", |
|
|
|
editBtnIcon: ' ', |
|
|
|
delBtnIcon: " ", |
|
|
|
delBtnIcon: ' ', |
|
|
|
addBtn: false, |
|
|
|
addBtn: false, |
|
|
|
labelWidth: 120, |
|
|
|
labelWidth: 120, |
|
|
|
searchLabelWidth: 120, |
|
|
|
searchLabelWidth: 120, |
|
|
|
@ -277,23 +353,23 @@ export default { |
|
|
|
gridBtn: false, |
|
|
|
gridBtn: false, |
|
|
|
searchShowBtn: false, |
|
|
|
searchShowBtn: false, |
|
|
|
showOverflowTooltip: true, |
|
|
|
showOverflowTooltip: true, |
|
|
|
searchLabelPosition: "left", |
|
|
|
searchLabelPosition: 'left', |
|
|
|
searchLabelPosition: "left", |
|
|
|
searchLabelPosition: 'left', |
|
|
|
searchGutter: 24, |
|
|
|
searchGutter: 24, |
|
|
|
searchSpan: 6, |
|
|
|
searchSpan: 6, |
|
|
|
menuAlign: "left", |
|
|
|
menuAlign: 'left', |
|
|
|
gridBtn: false, |
|
|
|
gridBtn: false, |
|
|
|
searchMenuPosition: "right", |
|
|
|
searchMenuPosition: 'right', |
|
|
|
addBtnIcon: " ", |
|
|
|
addBtnIcon: ' ', |
|
|
|
viewBtnIcon: " ", |
|
|
|
viewBtnIcon: ' ', |
|
|
|
delBtnIcon: " ", |
|
|
|
delBtnIcon: ' ', |
|
|
|
editBtnIcon: " ", |
|
|
|
editBtnIcon: ' ', |
|
|
|
searchShowBtn: false, |
|
|
|
searchShowBtn: false, |
|
|
|
|
|
|
|
|
|
|
|
column: [ |
|
|
|
column: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "单据号", |
|
|
|
label: '单据号', |
|
|
|
prop: "paCode", |
|
|
|
prop: 'paCode', |
|
|
|
span: 24, |
|
|
|
span: 24, |
|
|
|
labelWidth: 140, |
|
|
|
labelWidth: 140, |
|
|
|
overflow: true, |
|
|
|
overflow: true, |
|
|
|
@ -301,14 +377,14 @@ export default { |
|
|
|
rules: [ |
|
|
|
rules: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
required: true, |
|
|
|
message: "请输入单据号", |
|
|
|
message: '请输入单据号', |
|
|
|
trigger: "blur", |
|
|
|
trigger: 'blur', |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "项目名称", |
|
|
|
label: '项目名称', |
|
|
|
prop: "projectName", |
|
|
|
prop: 'projectName', |
|
|
|
span: 24, |
|
|
|
span: 24, |
|
|
|
labelWidth: 140, |
|
|
|
labelWidth: 140, |
|
|
|
overflow: true, |
|
|
|
overflow: true, |
|
|
|
@ -316,14 +392,14 @@ export default { |
|
|
|
rules: [ |
|
|
|
rules: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
required: true, |
|
|
|
message: "请输入项目名称", |
|
|
|
message: '请输入项目名称', |
|
|
|
trigger: "blur", |
|
|
|
trigger: 'blur', |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "项目负责人", |
|
|
|
label: '项目负责人', |
|
|
|
prop: "projectHead", |
|
|
|
prop: 'projectHead', |
|
|
|
span: 24, |
|
|
|
span: 24, |
|
|
|
labelWidth: 140, |
|
|
|
labelWidth: 140, |
|
|
|
overflow: true, |
|
|
|
overflow: true, |
|
|
|
@ -331,14 +407,14 @@ export default { |
|
|
|
rules: [ |
|
|
|
rules: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
required: true, |
|
|
|
message: "请输入项目负责人", |
|
|
|
message: '请输入项目负责人', |
|
|
|
trigger: "blur", |
|
|
|
trigger: 'blur', |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "项目开始时间", |
|
|
|
label: '项目开始时间', |
|
|
|
prop: "projectStartTime", |
|
|
|
prop: 'projectStartTime', |
|
|
|
span: 24, |
|
|
|
span: 24, |
|
|
|
labelWidth: 140, |
|
|
|
labelWidth: 140, |
|
|
|
overflow: true, |
|
|
|
overflow: true, |
|
|
|
@ -346,14 +422,14 @@ export default { |
|
|
|
rules: [ |
|
|
|
rules: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
required: true, |
|
|
|
message: "请输入项目开始时间", |
|
|
|
message: '请输入项目开始时间', |
|
|
|
trigger: "blur", |
|
|
|
trigger: 'blur', |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "项目预期结束时间", |
|
|
|
label: '项目预期结束时间', |
|
|
|
prop: "projectDesiredEnd", |
|
|
|
prop: 'projectDesiredEnd', |
|
|
|
span: 24, |
|
|
|
span: 24, |
|
|
|
labelWidth: 140, |
|
|
|
labelWidth: 140, |
|
|
|
overflow: true, |
|
|
|
overflow: true, |
|
|
|
@ -361,14 +437,14 @@ export default { |
|
|
|
rules: [ |
|
|
|
rules: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
required: true, |
|
|
|
message: "请输入项目预期结束时间", |
|
|
|
message: '请输入项目预期结束时间', |
|
|
|
trigger: "blur", |
|
|
|
trigger: 'blur', |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "制单人", |
|
|
|
label: '制单人', |
|
|
|
prop: "touchingMan", |
|
|
|
prop: 'touchingMan', |
|
|
|
span: 24, |
|
|
|
span: 24, |
|
|
|
labelWidth: 140, |
|
|
|
labelWidth: 140, |
|
|
|
overflow: true, |
|
|
|
overflow: true, |
|
|
|
@ -376,14 +452,14 @@ export default { |
|
|
|
rules: [ |
|
|
|
rules: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
required: true, |
|
|
|
message: "请输入制单人", |
|
|
|
message: '请输入制单人', |
|
|
|
trigger: "blur", |
|
|
|
trigger: 'blur', |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "制单部门", |
|
|
|
label: '制单部门', |
|
|
|
prop: "touchingDept", |
|
|
|
prop: 'touchingDept', |
|
|
|
span: 24, |
|
|
|
span: 24, |
|
|
|
labelWidth: 140, |
|
|
|
labelWidth: 140, |
|
|
|
overflow: true, |
|
|
|
overflow: true, |
|
|
|
@ -391,14 +467,14 @@ export default { |
|
|
|
rules: [ |
|
|
|
rules: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
required: true, |
|
|
|
message: "请输入制单部门", |
|
|
|
message: '请输入制单部门', |
|
|
|
trigger: "blur", |
|
|
|
trigger: 'blur', |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "制单时间", |
|
|
|
label: '制单时间', |
|
|
|
prop: "touchingTime", |
|
|
|
prop: 'touchingTime', |
|
|
|
span: 24, |
|
|
|
span: 24, |
|
|
|
labelWidth: 140, |
|
|
|
labelWidth: 140, |
|
|
|
overflow: true, |
|
|
|
overflow: true, |
|
|
|
@ -406,14 +482,14 @@ export default { |
|
|
|
rules: [ |
|
|
|
rules: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
required: true, |
|
|
|
message: "请输入制单时间", |
|
|
|
message: '请输入制单时间', |
|
|
|
trigger: "blur", |
|
|
|
trigger: 'blur', |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "状态", |
|
|
|
label: '状态', |
|
|
|
prop: "approvalStatus", |
|
|
|
prop: 'approvalStatus', |
|
|
|
span: 24, |
|
|
|
span: 24, |
|
|
|
labelWidth: 140, |
|
|
|
labelWidth: 140, |
|
|
|
overflow: true, |
|
|
|
overflow: true, |
|
|
|
@ -421,56 +497,56 @@ export default { |
|
|
|
rules: [ |
|
|
|
rules: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
required: true, |
|
|
|
message: "请输入状态", |
|
|
|
message: '请输入状态', |
|
|
|
trigger: "blur", |
|
|
|
trigger: 'blur', |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
rowItem: {}, //存储每一行的数据 |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted() { }, |
|
|
|
mounted() {}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
insertEvent() { |
|
|
|
insertEvent() { |
|
|
|
// 插入一行 |
|
|
|
// 插入一行 |
|
|
|
this.addForm.stoneList.push({ |
|
|
|
this.addForm.stoneList.push({}); |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
openDialog() { |
|
|
|
openDialog() { |
|
|
|
// 添加新的里程碑行 |
|
|
|
// 添加新的里程碑行 |
|
|
|
const newRow = { |
|
|
|
const newRow = { |
|
|
|
status: 3, |
|
|
|
status: 3, |
|
|
|
statusTitle: "待执行", |
|
|
|
statusTitle: '待执行', |
|
|
|
checkMan: null, |
|
|
|
checkMan: null, |
|
|
|
checkResult: 0, |
|
|
|
checkResult: 0, |
|
|
|
checkResultTitle: "未核查", |
|
|
|
checkResultTitle: '未核查', |
|
|
|
checkTime: null, |
|
|
|
checkTime: null, |
|
|
|
delayDate: false, |
|
|
|
delayDate: false, |
|
|
|
delayTime: null, |
|
|
|
delayTime: null, |
|
|
|
evaluate: null, |
|
|
|
evaluate: null, |
|
|
|
evolve: "", |
|
|
|
evolve: '', |
|
|
|
executeResult: 0, |
|
|
|
executeResult: 0, |
|
|
|
executeResultTitle: "无", |
|
|
|
executeResultTitle: '无', |
|
|
|
grade: 0, |
|
|
|
grade: 0, |
|
|
|
gradeMan: null, |
|
|
|
gradeMan: null, |
|
|
|
gradeTitle: "未评价", |
|
|
|
gradeTitle: '未评价', |
|
|
|
keyValue: Date.now(), |
|
|
|
keyValue: Date.now(), |
|
|
|
lastPlan: "", |
|
|
|
lastPlan: '', |
|
|
|
milestoneMan: { |
|
|
|
milestoneMan: { |
|
|
|
accountId: null, |
|
|
|
accountId: null, |
|
|
|
userId: null, |
|
|
|
userId: null, |
|
|
|
userName: "" |
|
|
|
userName: '', |
|
|
|
}, |
|
|
|
}, |
|
|
|
milestoneMemo: "", |
|
|
|
milestoneMemo: '', |
|
|
|
milestoneNode: "", |
|
|
|
milestoneNode: '', |
|
|
|
milestonePlan: "", |
|
|
|
milestonePlan: '', |
|
|
|
okTime: null, |
|
|
|
okTime: null, |
|
|
|
outputMaterial: "", |
|
|
|
outputMaterial: '', |
|
|
|
paIndex: (this.addForm.stoneList?.length || 0) + 1, |
|
|
|
paIndex: (this.addForm.stoneList?.length || 0) + 1, |
|
|
|
pmId: this.addForm.paId, |
|
|
|
pmId: this.addForm.paId, |
|
|
|
score: null, |
|
|
|
score: null, |
|
|
|
updateMan: null |
|
|
|
updateMan: null, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
if (!this.addForm.stoneList) { |
|
|
|
if (!this.addForm.stoneList) { |
|
|
|
@ -480,60 +556,75 @@ export default { |
|
|
|
this.$message.success('插入成功'); |
|
|
|
this.$message.success('插入成功'); |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleAdd() { |
|
|
|
handleAdd() { |
|
|
|
this.title = "新增"; |
|
|
|
this.title = '新增'; |
|
|
|
this.addForm = { |
|
|
|
this.addForm = { |
|
|
|
bsBasicClass: { |
|
|
|
bsBasicClass: { |
|
|
|
bcId: "", |
|
|
|
bcId: '', |
|
|
|
}, |
|
|
|
}, |
|
|
|
touchingDept: { |
|
|
|
touchingDept: { |
|
|
|
tsId: "", |
|
|
|
tsId: '', |
|
|
|
}, |
|
|
|
}, |
|
|
|
projectHead: { |
|
|
|
projectHead: { |
|
|
|
userId: "", |
|
|
|
userId: '', |
|
|
|
}, |
|
|
|
}, |
|
|
|
projectSupportMan: { |
|
|
|
projectSupportMan: { |
|
|
|
userId: "", |
|
|
|
userId: '', |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
}; |
|
|
|
this.addDialogVisible = true; |
|
|
|
this.addDialogVisible = true; |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 查看详情 |
|
|
|
// 查看详情 |
|
|
|
handleView(row) { |
|
|
|
handleView(row) { |
|
|
|
this.title = "详情"; |
|
|
|
this.title = '详情'; |
|
|
|
this.addForm = row; |
|
|
|
this.addForm = row; |
|
|
|
this.addDialogVisible = true; |
|
|
|
this.addDialogVisible = true; |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 修改 |
|
|
|
// 修改 |
|
|
|
handleEdit(row) { |
|
|
|
handleEdit(row) { |
|
|
|
this.addForm = row; |
|
|
|
this.addForm = row; |
|
|
|
this.title = "修改"; |
|
|
|
this.title = '修改'; |
|
|
|
this.addDialogVisible = true; |
|
|
|
this.addDialogVisible = true; |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 删除 |
|
|
|
// 删除 |
|
|
|
deleteRow(row) { |
|
|
|
deleteRow(row) { |
|
|
|
this.$confirm("确定将选择数据删除?", { |
|
|
|
this.$confirm('确定将选择数据删除?', { |
|
|
|
confirmButtonText: "确定", |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: "取消", |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: "warning", |
|
|
|
type: 'warning', |
|
|
|
}).then((res) => { }); |
|
|
|
}).then(res => { |
|
|
|
|
|
|
|
delProcess({ids:row.id}).then(res => { |
|
|
|
|
|
|
|
this.$message.success('删除成功'); |
|
|
|
|
|
|
|
this.onLoad(this.page,this.query); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 新增/编辑确定 |
|
|
|
// 新增/编辑确定 |
|
|
|
submitForm() { |
|
|
|
submitForm() { |
|
|
|
console.log(tijiaole) |
|
|
|
console.log(tijiaole); |
|
|
|
this.loading = true; |
|
|
|
this.loading = true; |
|
|
|
this.addDialogVisible = false |
|
|
|
this.addDialogVisible = false; |
|
|
|
this.onLoad(this.page) |
|
|
|
this.onLoad(this.page); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 审核立项 |
|
|
|
// 审核立项 |
|
|
|
checkRow() { |
|
|
|
checkRow(row) { |
|
|
|
this.checkDialog = true; |
|
|
|
this.checkDialog = true; |
|
|
|
|
|
|
|
this.rowItem = row; |
|
|
|
}, |
|
|
|
}, |
|
|
|
//确定审核立项 |
|
|
|
//确定审核立项 |
|
|
|
submitCheck() { |
|
|
|
submitCheck() { |
|
|
|
this.$refs.checkForm.validate((valid) => { |
|
|
|
this.$refs.checkForm.validate(valid => { |
|
|
|
if (valid) { |
|
|
|
if (valid) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let query = { |
|
|
|
|
|
|
|
id: this.rowItem.id, |
|
|
|
|
|
|
|
approvalStatus: this.checkForm.checkResult == 1 ? 3 : 2, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
updateProcess(query).then(res => { |
|
|
|
this.checkDialog = false; |
|
|
|
this.checkDialog = false; |
|
|
|
|
|
|
|
this.onLoad(this.page); |
|
|
|
|
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
@ -541,12 +632,12 @@ export default { |
|
|
|
executeRow(row, detail) { |
|
|
|
executeRow(row, detail) { |
|
|
|
this.executeForm = {}; |
|
|
|
this.executeForm = {}; |
|
|
|
this.detailForm = row; |
|
|
|
this.detailForm = row; |
|
|
|
this.subTitle = "执行"; |
|
|
|
this.subTitle = '执行'; |
|
|
|
this.executeDialog = true; |
|
|
|
this.executeDialog = true; |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 确定执行 |
|
|
|
// 确定执行 |
|
|
|
submitExecute() { |
|
|
|
submitExecute() { |
|
|
|
this.$refs.executeForm.validate((valid) => { |
|
|
|
this.$refs.executeForm.validate(valid => { |
|
|
|
if (valid) { |
|
|
|
if (valid) { |
|
|
|
this.executeDialog = false; |
|
|
|
this.executeDialog = false; |
|
|
|
} |
|
|
|
} |
|
|
|
@ -554,27 +645,27 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 核查 |
|
|
|
// 核查 |
|
|
|
auditRow(row, detail) { |
|
|
|
auditRow(row, detail) { |
|
|
|
this.subTitle = "核查"; |
|
|
|
this.subTitle = '核查'; |
|
|
|
this.detailForm = row; |
|
|
|
this.detailForm = row; |
|
|
|
this.executeForm = detail; |
|
|
|
this.executeForm = detail; |
|
|
|
this.executeForm.checkResult = ""; |
|
|
|
this.executeForm.checkResult = ''; |
|
|
|
// 模拟加载已有附件 |
|
|
|
// 模拟加载已有附件 |
|
|
|
this.existingFiles = [ |
|
|
|
this.existingFiles = [ |
|
|
|
{ name: "项目计划书.pdf", url: "#" }, |
|
|
|
{ name: '项目计划书.pdf', url: '#' }, |
|
|
|
{ name: "进度报告.docx", url: "#" } |
|
|
|
{ name: '进度报告.docx', url: '#' }, |
|
|
|
]; |
|
|
|
]; |
|
|
|
this.executeDialog = true; |
|
|
|
this.executeDialog = true; |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 核准 |
|
|
|
// 核准 |
|
|
|
examineRow(row, detail) { |
|
|
|
examineRow(row, detail) { |
|
|
|
this.subTitle = "核准"; |
|
|
|
this.subTitle = '核准'; |
|
|
|
this.detailForm = row; |
|
|
|
this.detailForm = row; |
|
|
|
this.executeForm = detail; |
|
|
|
this.executeForm = detail; |
|
|
|
// 模拟加载已有附件 |
|
|
|
// 模拟加载已有附件 |
|
|
|
this.existingFiles = [ |
|
|
|
this.existingFiles = [ |
|
|
|
{ name: "项目计划书.pdf", url: "#" }, |
|
|
|
{ name: '项目计划书.pdf', url: '#' }, |
|
|
|
{ name: "进度报告.docx", url: "#" }, |
|
|
|
{ name: '进度报告.docx', url: '#' }, |
|
|
|
{ name: "验收单.xlsx", url: "#" } |
|
|
|
{ name: '验收单.xlsx', url: '#' }, |
|
|
|
]; |
|
|
|
]; |
|
|
|
this.executeDialog = true; |
|
|
|
this.executeDialog = true; |
|
|
|
}, |
|
|
|
}, |
|
|
|
@ -592,21 +683,25 @@ export default { |
|
|
|
this.$confirm('确定删除该附件?', '提示', { |
|
|
|
this.$confirm('确定删除该附件?', '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
type: 'warning', |
|
|
|
}).then(() => { |
|
|
|
}) |
|
|
|
|
|
|
|
.then(() => { |
|
|
|
this.existingFiles.splice(index, 1); |
|
|
|
this.existingFiles.splice(index, 1); |
|
|
|
this.$message.success('删除成功'); |
|
|
|
this.$message.success('删除成功'); |
|
|
|
}).catch(() => { }); |
|
|
|
}) |
|
|
|
|
|
|
|
.catch(() => {}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
delTable(index) { |
|
|
|
delTable(index) { |
|
|
|
this.$confirm('确定删除该条数据么?', '提示', { |
|
|
|
this.$confirm('确定删除该条数据么?', '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
type: 'warning', |
|
|
|
}).then(() => { |
|
|
|
}) |
|
|
|
|
|
|
|
.then(() => { |
|
|
|
this.addForm.stoneList.splice(index, 1); |
|
|
|
this.addForm.stoneList.splice(index, 1); |
|
|
|
this.$message.success('删除成功'); |
|
|
|
this.$message.success('删除成功'); |
|
|
|
}).catch(() => { }); |
|
|
|
}) |
|
|
|
|
|
|
|
.catch(() => {}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
searchReset() { |
|
|
|
searchReset() { |
|
|
|
this.query = {}; |
|
|
|
this.query = {}; |
|
|
|
@ -647,9 +742,9 @@ export default { |
|
|
|
.attachment-list { |
|
|
|
.attachment-list { |
|
|
|
margin-top: 10px; |
|
|
|
margin-top: 10px; |
|
|
|
padding: 10px; |
|
|
|
padding: 10px; |
|
|
|
border: 1px solid #EBEEF5; |
|
|
|
border: 1px solid #ebeef5; |
|
|
|
border-radius: 4px; |
|
|
|
border-radius: 4px; |
|
|
|
background-color: #FAFAFA; |
|
|
|
background-color: #fafafa; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.attachment-list h4 { |
|
|
|
.attachment-list h4 { |
|
|
|
@ -669,7 +764,7 @@ export default { |
|
|
|
align-items: center; |
|
|
|
align-items: center; |
|
|
|
justify-content: space-between; |
|
|
|
justify-content: space-between; |
|
|
|
padding: 8px 0; |
|
|
|
padding: 8px 0; |
|
|
|
border-bottom: 1px solid #EBEEF5; |
|
|
|
border-bottom: 1px solid #ebeef5; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.attachment-list li:last-child { |
|
|
|
.attachment-list li:last-child { |
|
|
|
@ -677,7 +772,7 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.attachment-list a { |
|
|
|
.attachment-list a { |
|
|
|
color: #409EFF; |
|
|
|
color: #409eff; |
|
|
|
text-decoration: none; |
|
|
|
text-decoration: none; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|