|
@@ -51,6 +51,7 @@
|
|
import myPagination from "@/components/ledger/lib/myPagination";
|
|
import myPagination from "@/components/ledger/lib/myPagination";
|
|
import { getListForSupplier } from "@/api/scan/request"
|
|
import { getListForSupplier } from "@/api/scan/request"
|
|
import tools from "@/utils/scan/tools"
|
|
import tools from "@/utils/scan/tools"
|
|
|
|
+import { mapGetters, mapActions } from "vuex";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
@@ -70,6 +71,9 @@ export default {
|
|
default: 0
|
|
default: 0
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ computed: {
|
|
|
|
+ ...mapGetters("layout", ["projectId", "secret", "userId"])
|
|
|
|
+ },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
search: "", //搜索文案
|
|
search: "", //搜索文案
|
|
@@ -126,11 +130,11 @@ export default {
|
|
if (!!this.id) {
|
|
if (!!this.id) {
|
|
let param = {
|
|
let param = {
|
|
data: {
|
|
data: {
|
|
- projectId: this.$route.query.projId,
|
|
|
|
|
|
+ projectId: this.projectId,
|
|
venderId: this.id
|
|
venderId: this.id
|
|
},
|
|
},
|
|
- ProjId: this.$route.query.projId,
|
|
|
|
- secret: this.$route.query.secret,
|
|
|
|
|
|
+ ProjId: this.projectId,
|
|
|
|
+ secret: this.secret,
|
|
}
|
|
}
|
|
getListForSupplier(param, res => {
|
|
getListForSupplier(param, res => {
|
|
_this.$refs.ruleForm.resetFields()
|
|
_this.$refs.ruleForm.resetFields()
|