给销售出库增加销售人员

This commit is contained in:
季圣华
2021-04-12 00:34:46 +08:00
parent fd3388de89
commit 33edd279f3
3 changed files with 26 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
import { VALIDATE_NO_PASSED, validateFormAndTables } from '@/utils/JEditableTableUtil'
import {findBySelectSup,findBySelectCus,findBySelectRetail,getMaterialByBarCode,findStockByDepotAndBarCode,getAccount} from '@/api/api'
import {findBySelectSup,findBySelectCus,findBySelectRetail,getMaterialByBarCode,findStockByDepotAndBarCode,getAccount,getPersonByNumType} from '@/api/api'
import { getAction,putAction } from '@/api/manage'
import { getMpListShort, getNowFormatDateTime } from "@/utils/util"
import Vue from 'vue'
@@ -12,6 +12,10 @@ export const BillModalMixin = {
supList: [],
cusList: [],
retailList: [],
personList: {
options: [],
value: ''
},
depotList: [],
accountList: [],
accountIdList: [],
@@ -35,6 +39,7 @@ export const BillModalMixin = {
this.initSupplier()
this.initCustomer()
this.initRetail()
this.initSalesman()
this.initDepot()
this.initAccount()
},
@@ -96,6 +101,14 @@ export const BillModalMixin = {
}
});
},
initSalesman() {
let that = this;
getPersonByNumType({type:1}).then((res)=>{
if(res) {
that.personList.options = res;
}
});
},
initDepot() {
let that = this;
getAction('/depot/findDepotByUserId?UBType=UserDepot&UBKeyId=').then((res) => {