|
@@ -318,7 +318,7 @@ export default {
|
|
|
},
|
|
|
components: { chooseGoodsVue },
|
|
|
mounted() {
|
|
|
- if(this.$route.params.key) {
|
|
|
+ if(this.$route.query.key) {
|
|
|
this.getDetail()
|
|
|
} else {
|
|
|
// this.getCenterComList()
|
|
@@ -330,7 +330,7 @@ export default {
|
|
|
request({
|
|
|
url: '/bill/getDetail',
|
|
|
method: 'get',
|
|
|
- params: { taskId: this.$route.params.taskId, businessKey: this.$route.params.key,
|
|
|
+ params: { taskId: this.$route.query.taskId, businessKey: this.$route.query.key,
|
|
|
Loading: true }
|
|
|
}).then(({ data }) => {
|
|
|
Object.keys(this.ruleForm).forEach(key => {
|
|
@@ -569,12 +569,12 @@ export default {
|
|
|
}
|
|
|
// this.isLoading = true
|
|
|
let data = new FormData()
|
|
|
- if(this.$route.params.key) {
|
|
|
- data.append('businessKey', this.$route.params.key)
|
|
|
- data.append('id', this.$route.params.key)
|
|
|
+ if(this.$route.query.key) {
|
|
|
+ data.append('businessKey', this.$route.query.key)
|
|
|
+ data.append('id', this.$route.query.key)
|
|
|
}
|
|
|
- if(this.$route.params.taskId) {
|
|
|
- data.append('taskId', this.$route.params.taskId)
|
|
|
+ if(this.$route.query.taskId) {
|
|
|
+ data.append('taskId', this.$route.query.taskId)
|
|
|
}
|
|
|
data.append('supplierId', this.businessInfo.supplierId)
|
|
|
data.append('businessNumber', this.ruleForm.businessNumber)
|
|
@@ -621,7 +621,7 @@ export default {
|
|
|
});
|
|
|
data.append('submit', flag == 2)
|
|
|
request({
|
|
|
- url: this.$route.params.key ? '/bill/updateBill' : '/bill/addBillBasicInformation',
|
|
|
+ url: this.$route.query.key ? '/bill/updateBill' : '/bill/addBillBasicInformation',
|
|
|
method: 'post',
|
|
|
data
|
|
|
}).then(() => {
|
|
@@ -652,12 +652,12 @@ export default {
|
|
|
}
|
|
|
this.loading = true
|
|
|
let data = new FormData()
|
|
|
- if(this.$route.params.key) {
|
|
|
- data.append('businessKey', this.$route.params.key)
|
|
|
- data.append('id', this.$route.params.key)
|
|
|
+ if(this.$route.query.key) {
|
|
|
+ data.append('businessKey', this.$route.query.key)
|
|
|
+ data.append('id', this.$route.query.key)
|
|
|
}
|
|
|
- if(this.$route.params.taskId) {
|
|
|
- data.append('taskId', this.$route.params.taskId)
|
|
|
+ if(this.$route.query.taskId) {
|
|
|
+ data.append('taskId', this.$route.query.taskId)
|
|
|
}
|
|
|
data.append('supplierId', this.businessInfo.supplierId)
|
|
|
data.append('businessNumber', this.ruleForm.businessNumber)
|