|
|
@@ -2283,51 +2283,39 @@
|
|
|
},
|
|
|
confirm () {
|
|
|
this.btnLoading = true
|
|
|
- this.$confirm('确认提交入库', '提示', {
|
|
|
- confirmButtonText: '确认',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning'
|
|
|
- }).then(() => {
|
|
|
- let params = {
|
|
|
- Status: '1',
|
|
|
- SupplierId: this.formData.Id
|
|
|
- }
|
|
|
- let _this = this
|
|
|
- // console.log(this.$route.query.annualId, 'QWE')
|
|
|
- annualapi.updateIsStorage(this.$route.query.annualId, params, this.$axios).then(res => {
|
|
|
- if (res.data.code === 0) {
|
|
|
- if (this.is_todo === '1') {
|
|
|
- _this.$router.push('/')
|
|
|
- } else {
|
|
|
- this.initDatas()
|
|
|
- if (_this.$refs['WfHistory']) {
|
|
|
- _this.$refs['WfHistory'].getHistoryTask()
|
|
|
- }
|
|
|
- _this.getstatus(this.$route.query.annualId)
|
|
|
- _this.isAccess()
|
|
|
- // console.log('已强制刷新历史审批流程')
|
|
|
- }
|
|
|
- this.$message({
|
|
|
- duration: 10000,
|
|
|
- type: 'success',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
- this.btnLoading = false
|
|
|
+ let params = {
|
|
|
+ Status: '1',
|
|
|
+ SupplierId: this.formData.Id
|
|
|
+ }
|
|
|
+ let _this = this
|
|
|
+ // console.log(this.$route.query.annualId, 'QWE')
|
|
|
+ annualapi.updateIsStorage(this.$route.query.annualId, params, this.$axios).then(res => {
|
|
|
+ if (res.data.code === 0) {
|
|
|
+ if (this.is_todo === '1') {
|
|
|
+ _this.$router.push('/')
|
|
|
} else {
|
|
|
- this.$message({
|
|
|
- duration: 10000,
|
|
|
- type: 'warning',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
- this.btnLoading = false
|
|
|
+ this.initDatas()
|
|
|
+ if (_this.$refs['WfHistory']) {
|
|
|
+ _this.$refs['WfHistory'].getHistoryTask()
|
|
|
+ }
|
|
|
+ _this.getstatus(this.$route.query.annualId)
|
|
|
+ _this.isAccess()
|
|
|
+ // console.log('已强制刷新历史审批流程')
|
|
|
}
|
|
|
- })
|
|
|
- }).catch(() => {
|
|
|
- this.$message({
|
|
|
- type: 'info',
|
|
|
- message: '已取消'
|
|
|
- })
|
|
|
- this.btnLoading = false
|
|
|
+ this.$message({
|
|
|
+ duration: 10000,
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ this.btnLoading = false
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ duration: 10000,
|
|
|
+ type: 'warning',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ this.btnLoading = false
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
commonAuditClick () {
|