优化供应商和客户的加载逻辑
This commit is contained in:
@@ -190,11 +190,10 @@
|
|||||||
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
|
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
|
||||||
import { BillModalMixin } from '../mixins/BillModalMixin'
|
import { BillModalMixin } from '../mixins/BillModalMixin'
|
||||||
import { getMpListShort} from "@/utils/util"
|
import { getMpListShort} from "@/utils/util"
|
||||||
import { getAction } from '@/api/manage'
|
|
||||||
import JUpload from '@/components/jeecg/JUpload'
|
import JUpload from '@/components/jeecg/JUpload'
|
||||||
import JDate from '@/components/jeecg/JDate'
|
import JDate from '@/components/jeecg/JDate'
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import { getCurrentSystemConfig } from '@/api/api'
|
import { getCurrentSystemConfig, findBySelectSup } from '@/api/api'
|
||||||
export default {
|
export default {
|
||||||
name: "PurchaseBackModal",
|
name: "PurchaseBackModal",
|
||||||
mixins: [JEditableTableMixin, BillModalMixin],
|
mixins: [JEditableTableMixin, BillModalMixin],
|
||||||
@@ -452,6 +451,9 @@
|
|||||||
'accountId': accountId,
|
'accountId': accountId,
|
||||||
'remark': remark
|
'remark': remark
|
||||||
})
|
})
|
||||||
|
findBySelectSup({organId: organId}).then((res)=> {
|
||||||
|
this.supList = res && Array.isArray(res) ? res : [];
|
||||||
|
})
|
||||||
getCurrentSystemConfig().then((res) => {
|
getCurrentSystemConfig().then((res) => {
|
||||||
if (res.code === 200 && res.data) {
|
if (res.code === 200 && res.data) {
|
||||||
let flag = res.data.zeroChangeAmountFlag==='1'?true:false
|
let flag = res.data.zeroChangeAmountFlag==='1'?true:false
|
||||||
|
|||||||
@@ -221,7 +221,7 @@
|
|||||||
import JUpload from '@/components/jeecg/JUpload'
|
import JUpload from '@/components/jeecg/JUpload'
|
||||||
import JDate from '@/components/jeecg/JDate'
|
import JDate from '@/components/jeecg/JDate'
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import { getCurrentSystemConfig } from '@/api/api'
|
import { getCurrentSystemConfig, findBySelectSup } from '@/api/api'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "PurchaseInModal",
|
name: "PurchaseInModal",
|
||||||
@@ -510,6 +510,9 @@
|
|||||||
'accountId': accountId,
|
'accountId': accountId,
|
||||||
'remark': remark
|
'remark': remark
|
||||||
})
|
})
|
||||||
|
findBySelectSup({organId: organId}).then((res)=> {
|
||||||
|
this.supList = res && Array.isArray(res) ? res : [];
|
||||||
|
})
|
||||||
getCurrentSystemConfig().then((res) => {
|
getCurrentSystemConfig().then((res) => {
|
||||||
if (res.code === 200 && res.data) {
|
if (res.code === 200 && res.data) {
|
||||||
let flag = res.data.zeroChangeAmountFlag==='1'?true:false
|
let flag = res.data.zeroChangeAmountFlag==='1'?true:false
|
||||||
|
|||||||
@@ -193,12 +193,11 @@
|
|||||||
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
|
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
|
||||||
import { BillModalMixin } from '../mixins/BillModalMixin'
|
import { BillModalMixin } from '../mixins/BillModalMixin'
|
||||||
import { getMpListShort, changeListFmtMinus, handleIntroJs } from '@/utils/util'
|
import { getMpListShort, changeListFmtMinus, handleIntroJs } from '@/utils/util'
|
||||||
import { getAction } from '@/api/manage'
|
|
||||||
import JSelectMultiple from '@/components/jeecg/JSelectMultiple'
|
import JSelectMultiple from '@/components/jeecg/JSelectMultiple'
|
||||||
import JUpload from '@/components/jeecg/JUpload'
|
import JUpload from '@/components/jeecg/JUpload'
|
||||||
import JDate from '@/components/jeecg/JDate'
|
import JDate from '@/components/jeecg/JDate'
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import { getCurrentSystemConfig } from '@/api/api'
|
import { getCurrentSystemConfig, findBySelectCus } from '@/api/api'
|
||||||
export default {
|
export default {
|
||||||
name: "SaleBackModal",
|
name: "SaleBackModal",
|
||||||
mixins: [JEditableTableMixin, BillModalMixin],
|
mixins: [JEditableTableMixin, BillModalMixin],
|
||||||
@@ -462,6 +461,9 @@
|
|||||||
'accountId': accountId,
|
'accountId': accountId,
|
||||||
'remark': remark
|
'remark': remark
|
||||||
})
|
})
|
||||||
|
findBySelectCus({organId: organId}).then((res)=> {
|
||||||
|
this.cusList = res && Array.isArray(res) ? res : [];
|
||||||
|
})
|
||||||
getCurrentSystemConfig().then((res) => {
|
getCurrentSystemConfig().then((res) => {
|
||||||
if (res.code === 200 && res.data) {
|
if (res.code === 200 && res.data) {
|
||||||
let flag = res.data.zeroChangeAmountFlag==='1'?true:false
|
let flag = res.data.zeroChangeAmountFlag==='1'?true:false
|
||||||
|
|||||||
@@ -236,7 +236,7 @@
|
|||||||
import JUpload from '@/components/jeecg/JUpload'
|
import JUpload from '@/components/jeecg/JUpload'
|
||||||
import JDate from '@/components/jeecg/JDate'
|
import JDate from '@/components/jeecg/JDate'
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import { getCurrentSystemConfig } from '@/api/api'
|
import { getCurrentSystemConfig, findBySelectCus } from '@/api/api'
|
||||||
export default {
|
export default {
|
||||||
name: "SaleOutModal",
|
name: "SaleOutModal",
|
||||||
mixins: [JEditableTableMixin, BillModalMixin],
|
mixins: [JEditableTableMixin, BillModalMixin],
|
||||||
@@ -527,6 +527,9 @@
|
|||||||
'accountId': accountId,
|
'accountId': accountId,
|
||||||
'remark': remark
|
'remark': remark
|
||||||
})
|
})
|
||||||
|
findBySelectCus({organId: organId}).then((res)=> {
|
||||||
|
this.cusList = res && Array.isArray(res) ? res : [];
|
||||||
|
})
|
||||||
getCurrentSystemConfig().then((res) => {
|
getCurrentSystemConfig().then((res) => {
|
||||||
if (res.code === 200 && res.data) {
|
if (res.code === 200 && res.data) {
|
||||||
let flag = res.data.zeroChangeAmountFlag==='1'?true:false
|
let flag = res.data.zeroChangeAmountFlag==='1'?true:false
|
||||||
|
|||||||
@@ -290,6 +290,15 @@ export const FinancialModalMixin = {
|
|||||||
waitNeedListOk(organType, organId, selectBillRows) {
|
waitNeedListOk(organType, organId, selectBillRows) {
|
||||||
if(organId) {
|
if(organId) {
|
||||||
this.form.setFieldsValue({'organId': organId})
|
this.form.setFieldsValue({'organId': organId})
|
||||||
|
if(organType === '供应商') {
|
||||||
|
findBySelectSup({organId: organId}).then((res)=> {
|
||||||
|
this.supList = res && Array.isArray(res) ? res : [];
|
||||||
|
})
|
||||||
|
} else if(organType === '客户') {
|
||||||
|
findBySelectCus({organId: organId}).then((res)=> {
|
||||||
|
this.cusList = res && Array.isArray(res) ? res : [];
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (selectBillRows && selectBillRows.length > 0) {
|
if (selectBillRows && selectBillRows.length > 0) {
|
||||||
this.requestSubTableDataEx(selectBillRows, this.accountTable);
|
this.requestSubTableDataEx(selectBillRows, this.accountTable);
|
||||||
|
|||||||
Reference in New Issue
Block a user