|
@@ -68,7 +68,10 @@
|
|
|
</zj-page-fill>
|
|
|
<div style="text-align: right; box-sizing: border-box; padding: 16px 20px">
|
|
|
<el-button size="mini" @click="handleClose">取消</el-button>
|
|
|
- <el-button v-if="openType == 0" size="mini" type="primary" @click="save">保存</el-button>
|
|
|
+ <el-button v-if="openType == 0" size="mini" type="primary" @click="save()">保存</el-button>
|
|
|
+ <el-button v-if="openType == 0 && formData.status == ''" size="mini" type="primary" @click="save('SEND')"
|
|
|
+ >发送</el-button
|
|
|
+ >
|
|
|
<el-button v-if="openType == 1" size="mini" type="primary" @click="networkAudit">网点审核</el-button>
|
|
|
<el-button v-if="openType == 2" size="mini" type="primary" @click="centralAudit">中心审核</el-button>
|
|
|
</div>
|
|
@@ -988,11 +991,12 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
// 保存
|
|
|
- save() {
|
|
|
+ save(status) {
|
|
|
this.$refs.formRef.validate((valid, invalidFields, errLabels) => {
|
|
|
if (valid) {
|
|
|
;(this.formData?.leLetterId ? letterProcessUpdateLetter : letterProcessAddLetter)({
|
|
|
...this.formData,
|
|
|
+ status: status || this.formData.status,
|
|
|
fileUrl: this.formData.fileUrl.length ? this.formData.fileUrl.map(item => item.url).join(',') : ''
|
|
|
}).then(res => {
|
|
|
this.$message({
|