|
@@ -209,7 +209,7 @@
|
|
|
</div>
|
|
|
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="rejectshow = false">取 消</el-button>
|
|
|
+ <el-button @click="cancelShow">取 消</el-button>
|
|
|
<el-button type="primary" @click="rejectclick">确 定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
@@ -263,7 +263,7 @@ export default {
|
|
|
date: 20
|
|
|
}
|
|
|
], //货值
|
|
|
- auditList: [],//审核附件
|
|
|
+ auditList: "",//审核附件
|
|
|
auditUrl: ""
|
|
|
|
|
|
}
|
|
@@ -272,6 +272,11 @@ export default {
|
|
|
this.getList()
|
|
|
},
|
|
|
methods: {
|
|
|
+ cancelShow() {
|
|
|
+ this.rejectshow = false
|
|
|
+ this.auditList = [],//审核附件
|
|
|
+ this.auditUrl = ""
|
|
|
+ },
|
|
|
auditUrlChange() {//审核附件
|
|
|
this.$refs.upload
|
|
|
.handleSaveBill()
|
|
@@ -296,16 +301,9 @@ export default {
|
|
|
this.rejectshow = false
|
|
|
},
|
|
|
pass() {
|
|
|
- this.$confirm('确认通过请款信息?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- this.title = '通过'
|
|
|
- this.rejectshow = true
|
|
|
|
|
|
- })
|
|
|
+ this.title = '通过'
|
|
|
+ this.rejectshow = true
|
|
|
},
|
|
|
returnsales() {
|
|
|
this.$router.go(-1)
|
|
@@ -315,46 +313,55 @@ export default {
|
|
|
this.rejectshow = true
|
|
|
},
|
|
|
rejectclick() {
|
|
|
- if (this.title == '驳回') {
|
|
|
- woekflowhandle({
|
|
|
- taskId: this.deptBudgetList.taskId,
|
|
|
- approved: false,
|
|
|
- auditMind: this.textarea+"##"+this.auditUrl,
|
|
|
- needReapply: true,
|
|
|
- }).toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.$message({
|
|
|
- message: '驳回成功!',
|
|
|
- type: 'success',
|
|
|
- })
|
|
|
- this.rejectshow = false
|
|
|
- this.$router.go(-1)
|
|
|
- }).catch((response) => {
|
|
|
- this.$message({
|
|
|
- message: '驳回失败!',
|
|
|
- type: 'error',
|
|
|
- })
|
|
|
- })
|
|
|
- } else {
|
|
|
- woekflowhandle({
|
|
|
- taskId: this.deptBudgetList.taskId,
|
|
|
- approved: true,
|
|
|
- auditMind: this.textarea+"##"+this.auditUrl,
|
|
|
- needReapply: true,
|
|
|
- }).toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.$message({
|
|
|
- message: '通过成功!',
|
|
|
- type: 'success',
|
|
|
- })
|
|
|
- this.$router.go(-1)
|
|
|
- }).catch((response) => {
|
|
|
- this.$message({
|
|
|
- message: '通过失败!',
|
|
|
- type: 'error',
|
|
|
- })
|
|
|
- })
|
|
|
- }
|
|
|
+ this.$confirm('确认' + this.title + '请款信息?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ if (this.title == '驳回') {
|
|
|
+ woekflowhandle({
|
|
|
+ taskId: this.deptBudgetList.taskId,
|
|
|
+ approved: false,
|
|
|
+ auditMind: this.textarea + "##" + this.auditUrl,
|
|
|
+ needReapply: true,
|
|
|
+ }).toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.$message({
|
|
|
+ message: '驳回成功!',
|
|
|
+ type: 'success',
|
|
|
+ })
|
|
|
+ this.rejectshow = false
|
|
|
+ this.$router.go(-1)
|
|
|
+ }).catch((response) => {
|
|
|
+ this.$message({
|
|
|
+ message: '驳回失败!',
|
|
|
+ type: 'error',
|
|
|
+ })
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ woekflowhandle({
|
|
|
+ taskId: this.deptBudgetList.taskId,
|
|
|
+ approved: true,
|
|
|
+ auditMind: this.textarea + "##" + this.auditUrl,
|
|
|
+ needReapply: true,
|
|
|
+ }).toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.$message({
|
|
|
+ message: '通过成功!',
|
|
|
+ type: 'success',
|
|
|
+ })
|
|
|
+ this.$router.go(-1)
|
|
|
+ }).catch((response) => {
|
|
|
+ this.$message({
|
|
|
+ message: '通过失败!',
|
|
|
+ type: 'error',
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ })
|
|
|
+
|
|
|
|
|
|
},
|
|
|
getList() {
|