From 1a36656584100441d8dbfb6858935782371cf27a Mon Sep 17 00:00:00 2001
From: yunuo970428 <405378304@qq.com>
Date: Thu, 24 Nov 2022 15:24:21 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=88=86=E5=85=AC=E5=8F=B8?=
=?UTF-8?q?=E9=97=B4=E8=B0=83=E8=BD=A6=E8=B0=83=E8=B4=A6--=E9=87=8D?=
=?UTF-8?q?=E5=A4=8D=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../tiaozhangshenqingguanliAdd.vue | 44 ++---------------
.../tiaozhangshenqingguanliInfo.vue | 6 +--
.../tiaozhangshenqingEdit.vue | 47 +++++++------------
3 files changed, 24 insertions(+), 73 deletions(-)
diff --git a/anrui-scm/anrui-scm-ui/src/views/supplychain/tiaozhangshenqingguanli/tiaozhangshenqingguanliAdd.vue b/anrui-scm/anrui-scm-ui/src/views/supplychain/tiaozhangshenqingguanli/tiaozhangshenqingguanliAdd.vue
index e2faedcf43..9506d2872e 100644
--- a/anrui-scm/anrui-scm-ui/src/views/supplychain/tiaozhangshenqingguanli/tiaozhangshenqingguanliAdd.vue
+++ b/anrui-scm/anrui-scm-ui/src/views/supplychain/tiaozhangshenqingguanli/tiaozhangshenqingguanliAdd.vue
@@ -17,7 +17,7 @@
-
分公司间调账申请
+
分公司间调账申请
@@ -347,6 +347,7 @@ export default {
this.list = []
this.useOrg = ''
this.useOrgName = ''
+ this.submitdisabled = false
this.$refs['dataForm'].resetFields()
this.$emit('doback')
},
@@ -355,15 +356,7 @@ export default {
this.$nextTick(() => {
this.$refs['dataForm'].clearValidate()
})
- // this.temp.name = window.sessionStorage.getItem('name')
this.temp.createBySid = window.sessionStorage.getItem('userSid')
- // req.detailsInfo(this.temp.sid).then(resp => {
- // const data = resp.data
- // this.temp.applicationCode = data.applicationCode
- // this.temp.createTime = data.createTime
- // }).catch(e => {
- // this.submitdisabled = false
- // })
this.dialogStatus = 'add'
this.viewTitle = '【新增】分公司间调账申请'
this.getPathSid()
@@ -376,7 +369,7 @@ export default {
})
this.dialogStatus = 'edit'
this.viewTitle = '【编辑】分公司间调账申请'
- fetchDetailsBySid(row.sid).then(resp => {
+ fetchDetailsBySid(row.sid).then((resp) => {
if (resp.success) {
const data = resp.data
this.temp = data
@@ -385,8 +378,6 @@ export default {
this.temp.accSids = []
console.log('编辑初始化', this.temp)
}
- }).catch(e => {
- this.submitdisabled = false
})
this.getPathSid()
this.getType()
@@ -400,8 +391,7 @@ export default {
this.list.forEach(element => {
this.temp.accSids.push(element.sid)
})
- save(this.temp).then(resp => {
- this.submitdisabled = false
+ save(this.temp).then((resp) => {
if (resp.success) {
if (resp.success) {
_this.handleReturn('true')
@@ -423,26 +413,6 @@ export default {
}
})
},
- // saveEdit() {
- // const _this = this
- // this.$refs['dataForm'].validate(valid => {
- // if (valid) {
- // this.submitdisabled = true
- // req.save(this.temp).then(resp => {
- // this.submitdisabled = false
- // if (resp.success) {
- // if (resp.success) {
- // _this.handleReturn('true')
- // }
- // }
- // }).catch(() => {
- // this.submitdisabled = false
- // })
- // } else {
- // return false
- // }
- // })
- // },
handleSubmit() {
const _this = this
this.$refs['dataForm'].validate(valid => {
@@ -458,8 +428,7 @@ export default {
}).then(() => {
this.submitdisabled = true
this.temp.detailsList = this.list
- submitAccAdjApply(this.temp).then(resp => {
- this.submitdisabled = false
+ submitAccAdjApply(this.temp).then((resp) => {
if (resp.success) {
if (resp.success) {
_this.handleReturn('true')
@@ -487,9 +456,6 @@ export default {