f2427aed by 任超
2 parents 99b5486c 30a7ac05
......@@ -34,9 +34,13 @@ export function Init (data) {
})
}
// 受理信息保存
export function saveData (data) {
export function saveData (data,djlx) {
let apiUrl = "/rest/ywbl/dyaq/saveData";
if(djlx=="400"){
apiUrl = "/rest/ywbl/dyaq/saveLogoutData";
}
return request({
url: SERVER.SERVERAPI + '/rest/ywbl/dyaq/saveData',
url: SERVER.SERVERAPI + apiUrl,
method: 'post',
data
})
......
......@@ -284,7 +284,7 @@ export default {
},
methods: {
onSubmitClick () {
saveData(this.ruleForm).then((res) => {
saveData(this.ruleForm,this.propsParam.djlx).then((res) => {
if (res.code === 200) {
this.$message({
showClose: true,
......
......@@ -216,7 +216,13 @@
</div>
<el-row :gutter="10">
<el-col>
<el-form-item :class="flag ? 'marginBot0' : ''" label="登记原因:" prop="djyy">
<el-form-item v-if="ruleForm.slywxx.djlx == '400'" :class="flag ? 'marginBot0' : ''" label="注销抵押原因:"
prop="djyy">
<el-input class="textArea" type="textarea" :disabled="$route.query.viewtype == 1"
v-model="ruleForm.diyaq.zxdyyy">
</el-input>
</el-form-item>
<el-form-item v-else :class="flag ? 'marginBot0' : ''" label="登记原因:" prop="djyy">
<el-input class="textArea" type="textarea" :disabled="$route.query.viewtype == 1"
v-model="ruleForm.diyaq.djyy">
</el-input>
......@@ -272,7 +278,7 @@ export default {
},
methods: {
onSubmitClick () {
saveData(this.ruleForm).then((res) => {
saveData(this.ruleForm,this.propsParam.djlx).then((res) => {
if (res.code === 200) {
this.$message({
showClose: true,
......