|
|
|
|
@ -284,6 +284,7 @@ export default {
|
|
|
|
|
// 处理url中default_json
|
|
|
|
|
handleDefaultJSON() {
|
|
|
|
|
console.log("123")
|
|
|
|
|
this.form['form_canal'] = 'oa'
|
|
|
|
|
try {
|
|
|
|
|
if(!this.$route.query?.default_json) return
|
|
|
|
|
const res = JSON.parse(this.$route.query?.default_json)
|
|
|
|
|
@ -294,6 +295,9 @@ export default {
|
|
|
|
|
if(/^borrow_id/.test(key)) {
|
|
|
|
|
this.form[key] = this.$route.query[key]
|
|
|
|
|
}
|
|
|
|
|
if(/^form_canal/.test(key)){
|
|
|
|
|
this.form[key] = this.$route.query[key]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
for (let key in res) {
|
|
|
|
|
try {
|
|
|
|
|
@ -301,6 +305,7 @@ export default {
|
|
|
|
|
if (this.form.hasOwnProperty(key)) {
|
|
|
|
|
this.form[key] = jsonObj;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} catch (err) {
|
|
|
|
|
if (this.form.hasOwnProperty(key)) {
|
|
|
|
|
this.form[key] = res[key];
|
|
|
|
|
|