|
@@ -26,8 +26,8 @@
|
|
|
<!--</el-popover>-->
|
|
<!--</el-popover>-->
|
|
|
<el-button type="primary" size="mini" style="margin-right: 5px" v-if="this,formData.Status == '7'" @click="createJFAccessCardNo">生成准入编码</el-button>
|
|
<el-button type="primary" size="mini" style="margin-right: 5px" v-if="this,formData.Status == '7'" @click="createJFAccessCardNo">生成准入编码</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-right: 5px" v-if="this,formData.Status == '7'" @click="saveAccessCardNo">保存准入编码</el-button>
|
|
<el-button type="primary" size="mini" style="margin-right: 5px" v-if="this,formData.Status == '7'" @click="saveAccessCardNo">保存准入编码</el-button>
|
|
|
- <el-button type="primary" size="mini" style="margin-right: 5px" v-if="this,formData.Status == '7'" @click="confirm">确认入库</el-button>
|
|
|
|
|
- <el-button type="warning" size="mini" style="margin-right: 5px" v-if="this,formData.Status == '7'" @click="backStatus">退回</el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" size="mini" style="margin-right: 5px" v-if="this,formData.Status == '7'" @click="confirm" :loading="btnLoading">确认入库</el-button>
|
|
|
|
|
+ <el-button type="warning" size="mini" style="margin-right: 5px" v-if="this,formData.Status == '7'" @click="backStatus" :loading="btnLoading">退回</el-button>
|
|
|
<router-link :to="'/oilsupplier/supplierstorage/techlist'">
|
|
<router-link :to="'/oilsupplier/supplierstorage/techlist'">
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px" v-if="showReturn">返回
|
|
<el-button type="primary" size="mini" style="margin-left: 8px" v-if="showReturn">返回
|
|
|
</el-button>
|
|
</el-button>
|
|
@@ -328,6 +328,7 @@
|
|
|
|
|
|
|
|
data () {
|
|
data () {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ btnLoading: false,
|
|
|
backRemark: '',
|
|
backRemark: '',
|
|
|
dialogVisibleBack: false,
|
|
dialogVisibleBack: false,
|
|
|
activeName: '1',
|
|
activeName: '1',
|
|
@@ -515,13 +516,18 @@
|
|
|
Status: '-7',
|
|
Status: '-7',
|
|
|
BackRemark: this.backRemark
|
|
BackRemark: this.backRemark
|
|
|
}
|
|
}
|
|
|
|
|
+ this.btnLoading = true
|
|
|
apiCert.backStatus(this.formData.CertId, params, this.$axios).then(res => {
|
|
apiCert.backStatus(this.formData.CertId, params, this.$axios).then(res => {
|
|
|
this.dialogVisibleBack = false
|
|
this.dialogVisibleBack = false
|
|
|
|
|
+ this.initDatas()
|
|
|
|
|
+ this.$refs['WfHistory'].$forceUpdate()
|
|
|
|
|
+ console.log('已强制刷新历史审批流程')
|
|
|
if (res.data.code === 0) {
|
|
if (res.data.code === 0) {
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: 'success',
|
|
type: 'success',
|
|
|
message: res.data.message
|
|
message: res.data.message
|
|
|
})
|
|
})
|
|
|
|
|
+ this.btnLoading = false
|
|
|
this.$router.push('/')
|
|
this.$router.push('/')
|
|
|
} else {
|
|
} else {
|
|
|
this.$message({
|
|
this.$message({
|
|
@@ -529,8 +535,10 @@
|
|
|
message: res.data.message
|
|
message: res.data.message
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
+ this.btnLoading = false
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
this.dialogVisibleBack = false
|
|
this.dialogVisibleBack = false
|
|
|
|
|
+ this.btnLoading = false
|
|
|
console.log(err)
|
|
console.log(err)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
@@ -587,6 +595,7 @@
|
|
|
})
|
|
})
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
+ this.btnLoading = true
|
|
|
this.$confirm('确认提交入库', '提示', {
|
|
this.$confirm('确认提交入库', '提示', {
|
|
|
confirmButtonText: '确认',
|
|
confirmButtonText: '确认',
|
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
@@ -598,17 +607,27 @@
|
|
|
tepApi.updateIsStorage(this.certId, params, this.$axios).then(res => {
|
|
tepApi.updateIsStorage(this.certId, params, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
if (res.data.code === 0) {
|
|
|
this.initDatas()
|
|
this.initDatas()
|
|
|
|
|
+ this.$refs['WfHistory'].$forceUpdate()
|
|
|
|
|
+ console.log('已强制刷新历史审批流程')
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: 'success',
|
|
type: 'success',
|
|
|
message: res.data.message
|
|
message: res.data.message
|
|
|
})
|
|
})
|
|
|
- this.$router.push('/')
|
|
|
|
|
|
|
+ this.btnLoading = false
|
|
|
|
|
+ // this.$router.push('/') //TODO
|
|
|
} else {
|
|
} else {
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: 'warning',
|
|
type: 'warning',
|
|
|
message: res.data.message
|
|
message: res.data.message
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
+ this.btnLoading = false
|
|
|
|
|
+ }).catch(() => {
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: 'info',
|
|
|
|
|
+ message: '已取消'
|
|
|
|
|
+ })
|
|
|
|
|
+ this.btnLoading = false
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|