3c988b4f by 任超

style:业务申请

1 parent 829645ba
......@@ -32,7 +32,7 @@
</el-col>
<el-col :span="2" class="btnCol">
<el-form-item>
<el-button type="primary" @click="queryClick()">查询</el-button>
<el-button type="primary" @click="fetchData">查询</el-button>
</el-form-item>
</el-col>
</el-row>
......@@ -89,6 +89,7 @@ export default {
this.queryForm.sqywbm = this.djywbm;
selectQlxx({ ...this.queryForm, ...this.pageData })
.then((res) => {
console.log(res);
if (res.code === 200) {
let { total, records } = res.result;
this.tableData.total = total;
......
......@@ -33,7 +33,7 @@
</el-col>
<el-col :span="2" class="btnCol">
<el-form-item>
<el-button type="primary" @click="queryClick()">查询</el-button>
<el-button type="primary" @click="fetchData()">查询</el-button>
</el-form-item>
</el-col>
</el-row>
......
......@@ -32,7 +32,7 @@
</el-col>
<el-col :span="2" class="btnCol">
<el-form-item>
<el-button type="primary" @click="queryClick()">查询</el-button>
<el-button type="primary" @click="fetchData()">查询</el-button>
</el-form-item>
</el-col>
</el-row>
......@@ -53,7 +53,7 @@
</template>
<script>
//查封登记
import { mapGetters } from 'vuex'
import Cookies from 'js-cookie'
import { datas, sendThis } from "../javascript/cfdj.js";
import { defaultParameters } from "../javascript/publicDefaultPar.js";
import table from "@/utils/mixin/table";
......@@ -61,7 +61,8 @@ import jump from "../components/mixin/jump";
import { selectCfdj, startBusinessFlow } from "@/api/ywbl.js";
export default {
props: {
djywbm: { type: String, default: "" }
isJump: { type: Boolean, default: false },
djywbm: { type: String, default: '' }
},
mixins: [table, jump],
data () {
......@@ -80,9 +81,6 @@ export default {
mounted () {
sendThis(this);
},
computed: {
...mapGetters(['bsmSqyw', 'djywbm']),
},
methods: {
closeDialog () {
this.$emit("closeDialog")
......@@ -105,12 +103,23 @@ export default {
}
this.saveloding = true;
startBusinessFlow({
bsmSqyw: this.bsmSqyw,
bsmSqyw: Cookies.get("bsmSqyw"),
bdcdysz: this.bdcdysz,
djqxbm: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxbm : '',
djqxmc: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxmc : '',
}).then((res) => {
this.saveloding = false;
if (res.code == 200) {
this.jump(res.result)
this.$message({
showClose: true,
message: '发起申请成功',
type: 'success'
})
if (!this.isJump) {
this.jump(res.result, this.djywbm)
} else {
this.$emit('updateDialog', true)
}
} else {
this.$message.error(res.message);
}
......
......@@ -55,7 +55,7 @@
</template>
<script>
//抵押权首次登记
import { mapGetters } from 'vuex'
import Cookies from 'js-cookie'
import { datas, sendThis } from "../javascript/diyaq.js";
import { defaultParameters } from "../javascript/publicDefaultPar.js";
import table from "@/utils/mixin/table";
......@@ -63,6 +63,10 @@ import jump from "../components/mixin/jump";
import { selectDiyaq, startBusinessFlow } from "@/api/ywbl.js";
export default {
mixins: [table, jump],
props: {
isJump: { type: Boolean, default: false },
djywbm: { type: String, default: '' }
},
data () {
return {
queryForm: defaultParameters.defaultParameters(),
......@@ -79,15 +83,11 @@ export default {
mounted () {
sendThis(this);
},
computed: {
...mapGetters(['bsmSqyw', 'djqxObj', 'djywbm']),
},
methods: {
closeDialog () {
this.$emit("closeDialog");
},
fetchData () {
if (this.bsmSqyw) {
this.queryForm.sqywbm = this.djywbm;
selectDiyaq({ ...this.queryForm, ...this.pageData }).then((res) => {
if (res.code === 200) {
......@@ -96,7 +96,6 @@ export default {
this.tableData.data = records;
}
});
}
},
submitForm () {
if (this.bdcdysz.length == 0) {
......@@ -105,14 +104,23 @@ export default {
}
this.saveloding = true;
startBusinessFlow({
bsmSqyw: this.bsmSqyw,
bsmSqyw: Cookies.get("bsmSqyw"),
bdcdysz: this.bdcdysz,
djqxbm: this.djqxObj.djqxbm,
djqxmc: this.djqxObj.djqxmc,
djqxbm: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxbm : '',
djqxmc: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxmc : '',
}).then((res) => {
this.saveloding = false;
if (res.code == 200) {
this.jump(res.result)
this.$message({
showClose: true,
message: '发起申请成功',
type: 'success'
})
if (!this.isJump) {
this.jump(res.result, this.djywbm)
} else {
this.$emit('updateDialog', true)
}
} else {
this.$message.error(res.message);
}
......
......@@ -18,7 +18,7 @@
</el-col>
<el-col :span="4" class="btnCol">
<el-form-item>
<el-button type="primary" @click="queryClick()">查询</el-button>
<el-button type="primary" @click="fetchData">查询</el-button>
</el-form-item>
</el-col>
</el-row>
......@@ -65,11 +65,6 @@ export default {
saveloding: false,
};
},
watch: {
bsmSqyw (val) {
this.fetchData();
},
},
mounted () {
sendThis(this);
},
......@@ -78,7 +73,6 @@ export default {
this.$emit("closeDialog");
},
fetchData () {
if (this.bsmSqyw) {
this.queryForm.sqywbm = this.djywbm;
selectScBdcdy({ ...this.queryForm, ...this.pageData }).then((res) => {
......@@ -88,7 +82,6 @@ export default {
this.tableData.data = records;
}
});
}
},
submitForm () {
if (this.bdcdysz.length == 0) {
......
......@@ -34,7 +34,7 @@
</el-col>
<el-col :span="2" class="btnCol">
<el-form-item>
<el-button type="primary" @click="queryClick()">查询</el-button>
<el-button type="primary" @click="fetchData">查询</el-button>
</el-form-item>
</el-col>
</el-row>
......@@ -88,7 +88,6 @@ export default {
this.$emit("closeDialog");
},
fetchData () {
if (this.bsmSqyw) {
this.queryForm.sqywbm = this.djywbm;
selectQlxx({ ...this.queryForm, ...this.pageData }).then((res) => {
......@@ -98,7 +97,6 @@ export default {
this.tableData.data = records;
}
});
}
},
submitForm () {
if (this.bdcdysz.length == 0) {
......