|
@@ -254,7 +254,6 @@ export default {
|
|
|
orderId(n, o) {
|
|
orderId(n, o) {
|
|
|
if(n){
|
|
if(n){
|
|
|
// 如果Id改变,需要重新查询数据库
|
|
// 如果Id改变,需要重新查询数据库
|
|
|
- console.log('n',n)
|
|
|
|
|
this.getDataTable();
|
|
this.getDataTable();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -501,8 +500,9 @@ export default {
|
|
|
param.leafFlag = this.leafFlag
|
|
param.leafFlag = this.leafFlag
|
|
|
// 不分页
|
|
// 不分页
|
|
|
param.pageSize = null
|
|
param.pageSize = null
|
|
|
- // 如果是结算方式或仓库,需要赋值给
|
|
|
|
|
- if (this.type === this.$config.MagnifierType.settlementType || this.type === this.$config.MagnifierType.warehouse) {
|
|
|
|
|
|
|
+ // 如果是结算方式或仓库、资金账户,需要赋值给
|
|
|
|
|
+ if (this.type === this.$config.MagnifierType.settlementType || this.type === this.$config.MagnifierType.warehouse
|
|
|
|
|
+ ||this.type === this.$config.MagnifierType.moneyAccount) {
|
|
|
param['orgId'] = this.orderId;
|
|
param['orgId'] = this.orderId;
|
|
|
if (this.organizationFlag) {
|
|
if (this.organizationFlag) {
|
|
|
param.organizationFlag = true;
|
|
param.organizationFlag = true;
|
|
@@ -532,7 +532,6 @@ export default {
|
|
|
// 如果value传递的不是数组,那么需要处理成数组
|
|
// 如果value传递的不是数组,那么需要处理成数组
|
|
|
|
|
|
|
|
this.value.forEach(it => {
|
|
this.value.forEach(it => {
|
|
|
- console.log('va',this.value,arr,this.selectKey,it)
|
|
|
|
|
filterRows = arr.filter(row => row[this.selectKey] === it[this.selectKey])
|
|
filterRows = arr.filter(row => row[this.selectKey] === it[this.selectKey])
|
|
|
if (filterRows && filterRows.length > 0) {
|
|
if (filterRows && filterRows.length > 0) {
|
|
|
//给第一个行赋值 为了滚动定位 TODO
|
|
//给第一个行赋值 为了滚动定位 TODO
|
|
@@ -955,7 +954,7 @@ export default {
|
|
|
// 仓库
|
|
// 仓库
|
|
|
else if (self.type === self.$config.MagnifierType.warehouse) {
|
|
else if (self.type === self.$config.MagnifierType.warehouse) {
|
|
|
self.service = this.$service.commonService
|
|
self.service = this.$service.commonService
|
|
|
- self.methodsNameDetail = 'getWarehouse' //详细函数名称,目前对应后台的查询接口名称
|
|
|
|
|
|
|
+ self.methodsNameDetail = 'getMultiWarehouse' //详细函数名称,目前对应后台的查询接口名称
|
|
|
self.searchContent = [
|
|
self.searchContent = [
|
|
|
{itemCode: 'whName'}, //查询条件
|
|
{itemCode: 'whName'}, //查询条件
|
|
|
{itemCode: 'whCode'},
|
|
{itemCode: 'whCode'},
|
|
@@ -976,7 +975,7 @@ export default {
|
|
|
//资金账号
|
|
//资金账号
|
|
|
else if (self.type === self.$config.MagnifierType.moneyAccount) {
|
|
else if (self.type === self.$config.MagnifierType.moneyAccount) {
|
|
|
self.service = this.$service.commonService
|
|
self.service = this.$service.commonService
|
|
|
- self.methodsNameDetail = 'getMoneyAccount'
|
|
|
|
|
|
|
+ self.methodsNameDetail = 'getMultiMoneyAccount'
|
|
|
self.searchContent = [
|
|
self.searchContent = [
|
|
|
{itemCode: 'macCode'},
|
|
{itemCode: 'macCode'},
|
|
|
{itemCode: 'macName'},
|
|
{itemCode: 'macName'},
|
|
@@ -1004,7 +1003,10 @@ export default {
|
|
|
this.setDefaultValue();
|
|
this.setDefaultValue();
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
- // this.getDataTable()
|
|
|
|
|
|
|
+ // 如果orderId有值,查询数据
|
|
|
|
|
+ if(this.orderId){
|
|
|
|
|
+ this.getDataTable()
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|