|
|
@@ -160,7 +160,8 @@
|
|
|
approveOption: {
|
|
|
submitText: "同意",
|
|
|
emptyBtn: false,
|
|
|
- column: []
|
|
|
+ column: [],
|
|
|
+ group: [],
|
|
|
},
|
|
|
|
|
|
show: false,
|
|
|
@@ -383,18 +384,25 @@
|
|
|
this.$refs.crud.rowEdit(row, index);
|
|
|
},
|
|
|
approveYesEnd(){
|
|
|
- let row = this.deepClone(this.approveForm);
|
|
|
- delete row.createTime,delete row.createUser,delete row.createUserName;
|
|
|
- let form = this.beforeSave(row);
|
|
|
- // form.id = row.id, form.remark = row.remark;
|
|
|
- approveYes(form, true).then(res => {
|
|
|
- this.approveVisible = false;
|
|
|
- this.onLoad(this.page);
|
|
|
- this.$message({
|
|
|
- type: "success",
|
|
|
- message: "審批成功!"
|
|
|
- });
|
|
|
+ this.$confirm("請確認您是否為最後的審批人?", {
|
|
|
+ confirmButtonText: "確定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
})
|
|
|
+ .then(() => {
|
|
|
+ let row = this.deepClone(this.approveForm);
|
|
|
+ delete row.createTime,delete row.createUser,delete row.createUserName;
|
|
|
+ let form = this.beforeSave(row);
|
|
|
+ // form.id = row.id, form.remark = row.remark;
|
|
|
+ approveYes(form, true).then(res => {
|
|
|
+ this.approveVisible = false;
|
|
|
+ this.onLoad(this.page);
|
|
|
+ this.$message({
|
|
|
+ type: "success",
|
|
|
+ message: "審批成功!"
|
|
|
+ });
|
|
|
+ })
|
|
|
+ })
|
|
|
},
|
|
|
approveYes(data, done){
|
|
|
let row = this.deepClone(this.approveForm);
|
|
|
@@ -567,6 +575,10 @@
|
|
|
}
|
|
|
this.option = option;
|
|
|
this.approveOption.column = this.deepClone(option.column);
|
|
|
+ if (option.group){
|
|
|
+ this.approveOption.group = this.deepClone(option.group);
|
|
|
+ this.approveOption.group[0].column.forEach(item=>{item.disabled = true})
|
|
|
+ }
|
|
|
this.approveOption.column.forEach(item => {
|
|
|
item.disabled = true;
|
|
|
if (item.prop == 'receiverName'){
|