Commit af2d1f75 authored by qinj's avatar qinj

审批页注册资本可编辑

parent 1a9cdbd7
...@@ -8,6 +8,10 @@ ...@@ -8,6 +8,10 @@
:rules="rules" :rules="rules"
:sections="sections"> :sections="sections">
<template v-slot:ExtRegisteredCapital_SDK="{ formData }">
<el-input v-if="formData.ExtProcessNode_SDK==4" v-model="formData.ExtRegisteredCapital_SDK" :disabled="!formData.ExtRegisteredCapital_SDK=='' || !formData.ExtRegisteredCapital_SDK==null">
</el-input>
</template>
<template v-slot:ExtLockRsp_SDK="{ formData }"> <template v-slot:ExtLockRsp_SDK="{ formData }">
<!-- 插槽内容有el-form-item组件包裹 --> <!-- 插槽内容有el-form-item组件包裹 -->
<el-select v-if="formData.ExtProcessNode_SDK==2" <el-select v-if="formData.ExtProcessNode_SDK==2"
...@@ -434,6 +438,8 @@ export default { ...@@ -434,6 +438,8 @@ export default {
approve() { approve() {
if(this.formData.ExtLockRsp_SDK.length==0||this.formData.ExtLockCity_SDK.length==0||this.formData.ExtChannelType_SDK.length==0){ if(this.formData.ExtLockRsp_SDK.length==0||this.formData.ExtLockCity_SDK.length==0||this.formData.ExtChannelType_SDK.length==0){
return this.$message.warning('请输入必填信息') return this.$message.warning('请输入必填信息')
}else if(formData.ExtRegisteredCapital_SDK=='' || formData.ExtRegisteredCapital_SDK==null){
return this.$message.warning('请输入注册资金')
}else{ }else{
this.dialogFormVisible = true this.dialogFormVisible = true
this.status = 1 this.status = 1
...@@ -450,6 +456,7 @@ export default { ...@@ -450,6 +456,7 @@ export default {
const extLockCity_SDK = this.formData.ExtLockCity_SDK.toString() const extLockCity_SDK = this.formData.ExtLockCity_SDK.toString()
const extLockCityName_SDK = this.formData.ExtLockCityName_SDK.toString() const extLockCityName_SDK = this.formData.ExtLockCityName_SDK.toString()
const cc = { const cc = {
extRegisteredCapital_SDK:this.formData.ExtRegisteredCapital_SDK,
extProcessNode_SDK: this.formData.ExtProcessNode_SDK, extProcessNode_SDK: this.formData.ExtProcessNode_SDK,
extCustomerType_SDK: this.formData.ExtCustomerType_SDK, extCustomerType_SDK: this.formData.ExtCustomerType_SDK,
extProvince_SDK: this.formData.ExtProvince_SDK, extProvince_SDK: this.formData.ExtProvince_SDK,
......
...@@ -7,6 +7,10 @@ ...@@ -7,6 +7,10 @@
<ele-form-section v-model="formData" <ele-form-section v-model="formData"
:rules="rules" :rules="rules"
:sections="sections"> :sections="sections">
<template v-slot:ExtRegisteredCapital_SDK="{ formData }">
<el-input v-if="formData.ExtProcessNode_SDK==5" v-model="formData.ExtRegisteredCapital_SDK" :disabled="!formData.ExtRegisteredCapital_SDK=='' || !formData.ExtRegisteredCapital_SDK==null">
</el-input>
</template>
<template v-slot:ExtLockCity_SDK="{ formData }"> <template v-slot:ExtLockCity_SDK="{ formData }">
<!-- 插槽内容有el-form-item组件包裹 --> <!-- 插槽内容有el-form-item组件包裹 -->
<el-select v-if="formData.ExtProcessNode_SDK==2" <el-select v-if="formData.ExtProcessNode_SDK==2"
...@@ -377,9 +381,10 @@ export default { ...@@ -377,9 +381,10 @@ export default {
// this.$message.success('创建成功') // this.$message.success('创建成功')
}, },
approve() { approve() {
console.log('formdadada',this.formData)
if(this.formData.ExtLockCity_SDK.length==0){ if(this.formData.ExtLockCity_SDK.length==0){
return this.$message.warning('请输入必填信息') return this.$message.warning('请输入必填信息')
}else if(formData.ExtRegisteredCapital_SDK=='' || formData.ExtRegisteredCapital_SDK==null){
return this.$message.warning('请输入注册资金')
}else{ }else{
this.dialogFormVisible = true this.dialogFormVisible = true
this.status = 1 this.status = 1
...@@ -395,6 +400,7 @@ export default { ...@@ -395,6 +400,7 @@ export default {
const ExtLockCityName_SDK = this.formData.ExtLockCityName_SDK.toString() const ExtLockCityName_SDK = this.formData.ExtLockCityName_SDK.toString()
const cc = { const cc = {
extRegisteredCapital_SDK:this.formData.ExtRegisteredCapital_SDK,
extProcessNode_SDK: this.formData.ExtProcessNode_SDK, extProcessNode_SDK: this.formData.ExtProcessNode_SDK,
extCustomerType_SDK: this.formData.ExtCustomerType_SDK, extCustomerType_SDK: this.formData.ExtCustomerType_SDK,
extProvince_SDK: this.formData.ExtProvince_SDK, extProvince_SDK: this.formData.ExtProvince_SDK,
......
...@@ -282,7 +282,7 @@ ...@@ -282,7 +282,7 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col align="center"> <el-col align="center">
<el-button type="primary" <el-button v-if="isShow" type="primary"
:loading="btnloading" :loading="btnloading"
@click="handleApprove">提交</el-button> @click="handleApprove">提交</el-button>
</el-col> </el-col>
...@@ -377,6 +377,7 @@ export default { ...@@ -377,6 +377,7 @@ export default {
{ type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }], { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }],
}, },
dialogTableVisible: false, dialogTableVisible: false,
isShow:true,
TotalRecords: 0, TotalRecords: 0,
page: { page: {
pageSize: 10, pageSize: 10,
...@@ -473,20 +474,7 @@ export default { ...@@ -473,20 +474,7 @@ export default {
this.$request(Customer.searchUrl, this.paramsToFormData(this.formData)).then((resp) => { this.$request(Customer.searchUrl, this.paramsToFormData(this.formData)).then((resp) => {
this.btnloading = false this.btnloading = false
this.$message.success('提交成功!') this.$message.success('提交成功!')
this.isShow=false
// var userAgent = navigator.userAgent;
// if (userAgent.indexOf("Firefox") != -1 || userAgent.indexOf("Chrome") != -1) {
// window.open('', '_self').close()
// } else {
this.$store.dispatch("tagsView/delView", this.$route);
this.$router.go(-1);
// }
// setTimeout(function(){
// console.log('延时两秒')
//    window.location.href="about:blank";
// window.close();
//    },20000);
}).catch((err) => { }).catch((err) => {
this.btnloading = false this.btnloading = false
}) })
......
...@@ -380,7 +380,7 @@ ...@@ -380,7 +380,7 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col align="center"> <el-col align="center">
<el-button type="primary" <el-button v-if="isShow" type="primary"
:loading="btnloading" :loading="btnloading"
@click="handleApprove()">提交</el-button> @click="handleApprove()">提交</el-button>
</el-col> </el-col>
...@@ -487,6 +487,7 @@ export default { ...@@ -487,6 +487,7 @@ export default {
file: [{ required: true, message: '请上传附件' }], file: [{ required: true, message: '请上传附件' }],
}, },
dialogTableVisible: false, dialogTableVisible: false,
isShow:true,
TotalRecords: 0, TotalRecords: 0,
page: { page: {
pageSize: 10, pageSize: 10,
...@@ -496,7 +497,12 @@ export default { ...@@ -496,7 +497,12 @@ export default {
} }
}, },
watch: { watch: {
extProvince_SDK(newName, oldName) {
if(newName!=oldName){
this.formData.extCity_SDK=[]
this.formData.extDistrict_SDK=[]
}
}
}, },
computed: { computed: {
visitedViews() { visitedViews() {
...@@ -556,7 +562,6 @@ export default { ...@@ -556,7 +562,6 @@ export default {
}); });
this.formData.extProvinceName_SDK = obj.Name//获取的 name this.formData.extProvinceName_SDK = obj.Name//获取的 name
this.formData.extProvince_SDK = value//获取的 id this.formData.extProvince_SDK = value//获取的 id
}, },
handleSelectCity(value) { handleSelectCity(value) {
const app = { cityCode: value } const app = { cityCode: value }
...@@ -636,9 +641,7 @@ export default { ...@@ -636,9 +641,7 @@ export default {
this.$request(Customer.searchUrl, this.paramsToFormData(this.formData)).then((resp) => { this.$request(Customer.searchUrl, this.paramsToFormData(this.formData)).then((resp) => {
this.btnloading = false this.btnloading = false
this.$message.success('提交成功!') this.$message.success('提交成功!')
setTimeout(function(){ this.isShow=false
   this.$router.back()
   },1000);
}).catch((err) => { }).catch((err) => {
this.btnloading = false this.btnloading = false
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment