|
@@ -667,13 +667,13 @@
|
|
|
>
|
|
|
<!-- <p>{{ edit }}</p> -->
|
|
|
|
|
|
- <el-input
|
|
|
- v-if="edit == true"
|
|
|
- :disabled="!edit"
|
|
|
+ <el-input
|
|
|
+ :disabled="!edit"
|
|
|
+ v-if="edit == true"
|
|
|
v-model="listItem.collCalue"
|
|
|
:placeholder="'请输入' + listItem.normfeeName"
|
|
|
></el-input>
|
|
|
- <div v-if="edit == false" style="background-color: rgba(0, 0, 0, .03); padding-left: 5px;" >{{ listItem.collCalue }}</div>
|
|
|
+ <div v-if="edit == false" style="background-color: rgba(0, 0, 0, .03); padding-left: 5px;" >{{ listItem.collCalue ? listItem.collCalue :"请输入" }}</div>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-form>
|
|
@@ -683,7 +683,7 @@
|
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button v-if="audit && (this.form.collStatus != 2 && this.form.collStatus==1)" type="primary" @click="handleAudit(form)">提交审核</el-button>
|
|
|
- <el-button type="primary" @click="submitForm('edit')" v-if="edit"
|
|
|
+ <el-button type="primary" @click="submitForm('edit')" v-if="edit && isEdit"
|
|
|
>确 定</el-button
|
|
|
>
|
|
|
|
|
@@ -761,6 +761,7 @@ export default {
|
|
|
return {
|
|
|
// 提交审核按钮
|
|
|
audit:false,
|
|
|
+ isEdit:true,
|
|
|
|
|
|
monthOpt: [{
|
|
|
value: '01',
|
|
@@ -1180,6 +1181,7 @@ export default {
|
|
|
},
|
|
|
// 表单重置
|
|
|
reset() {
|
|
|
+ this.isEdit = true;
|
|
|
this.audit = false;
|
|
|
this.deptName = "";
|
|
|
this.form = {
|
|
@@ -1283,20 +1285,32 @@ export default {
|
|
|
type: "1",
|
|
|
gatherId: row.id,
|
|
|
};
|
|
|
- setAudit(data).then((res) => {
|
|
|
- if (res.code) {
|
|
|
- this.$message.success("审核成功");
|
|
|
- this.getList();
|
|
|
- this.openDetail = false;
|
|
|
- }
|
|
|
+ this.form.collStatus = 1;
|
|
|
+ updateGATHER(this.form).then((response) => {
|
|
|
+ this.$modal.msgSuccess("修改成功");
|
|
|
+ compute(this.form).then((response) => {
|
|
|
+ setAudit(data).then((res) => {
|
|
|
+ if (res.code) {
|
|
|
+ this.$message.success("审核成功");
|
|
|
+ this.getList();
|
|
|
+ this.openDetail = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
});
|
|
|
+
|
|
|
},
|
|
|
/** 查看按钮操作 */
|
|
|
handleDetail(row, type) {
|
|
|
//false 查看 true修改
|
|
|
if (type == 0 ) {
|
|
|
this.edit = false;
|
|
|
- } else if (type == 1 || type == 3) {
|
|
|
+ } else if (type == 1 ) {
|
|
|
+ this.edit = true;
|
|
|
+ this.isEdit = true;
|
|
|
+ this.audit = false;
|
|
|
+ }else if(type == 3){
|
|
|
+ this.isEdit = false;
|
|
|
this.edit = true;
|
|
|
this.audit = true;
|
|
|
}
|