|
@@ -48,8 +48,13 @@
|
|
<!--买方-->
|
|
<!--买方-->
|
|
<ws-form-item label="买方" span="1" prop="buyer" class="readonly">
|
|
<ws-form-item label="买方" span="1" prop="buyer" class="readonly">
|
|
<!-- <ws-input v-model="deptBudgetList.buyer" placeholder="请输入买方名称" maxlength="100" size="small" /> -->
|
|
<!-- <ws-input v-model="deptBudgetList.buyer" placeholder="请输入买方名称" maxlength="100" size="small" /> -->
|
|
- <el-autocomplete class="inline-input" v-model="deptBudgetList.buyer" :fetch-suggestions="querySearch1"
|
|
|
|
- placeholder="请输入买方名称" @select="handleSelect"></el-autocomplete>
|
|
|
|
|
|
+ <!-- <el-autocomplete class="inline-input" v-model="deptBudgetList.buyer" :fetch-suggestions="querySearch1"
|
|
|
|
+ placeholder="请输入买方名称" @select="handleSelect"></el-autocomplete> -->
|
|
|
|
+ <ws-select v-model="deptBudgetList.buyer" placeholder="请选择买方名称" class="typeselect"
|
|
|
|
+ @change="buyerSelect">
|
|
|
|
+ <ws-option v-for="item in customerinfo" :key="item.customerName" :label="item.customerName"
|
|
|
|
+ :value="item.customerName" />
|
|
|
|
+ </ws-select>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<!--运输方式-->
|
|
<!--运输方式-->
|
|
<ws-form-item label="运输方式" span="1" prop="shippingType">
|
|
<ws-form-item label="运输方式" span="1" prop="shippingType">
|
|
@@ -364,6 +369,7 @@
|
|
editxiala,
|
|
editxiala,
|
|
delxiala,
|
|
delxiala,
|
|
getRelationContractNo,
|
|
getRelationContractNo,
|
|
|
|
+ getcustomerinfo
|
|
} from '@/model/contarct/index'
|
|
} from '@/model/contarct/index'
|
|
import WsUpload from '@/components/WsUpload'
|
|
import WsUpload from '@/components/WsUpload'
|
|
import {
|
|
import {
|
|
@@ -393,6 +399,7 @@
|
|
restaurants2: [],
|
|
restaurants2: [],
|
|
restaurants3: [],
|
|
restaurants3: [],
|
|
restaurants4: [],
|
|
restaurants4: [],
|
|
|
|
+ customerinfo:[],
|
|
//弹出框
|
|
//弹出框
|
|
dialogViewSpareMoney: false,
|
|
dialogViewSpareMoney: false,
|
|
dialogApproveFormVisible: false,
|
|
dialogApproveFormVisible: false,
|
|
@@ -436,6 +443,7 @@
|
|
contractGoodsInfo: {
|
|
contractGoodsInfo: {
|
|
goodsName: '',
|
|
goodsName: '',
|
|
},
|
|
},
|
|
|
|
+ buyerPhone:'',
|
|
contractProcessInfo: {},
|
|
contractProcessInfo: {},
|
|
addressUrl: '',
|
|
addressUrl: '',
|
|
sourceGoods: '',
|
|
sourceGoods: '',
|
|
@@ -495,6 +503,15 @@
|
|
if (!this.restaurants4) this.restaurants4 = [];
|
|
if (!this.restaurants4) this.restaurants4 = [];
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ buyerSelect(item) {
|
|
|
|
+ console.log(item)
|
|
|
|
+ for (let i = 0; i < this.customerinfo.length; i++) {
|
|
|
|
+ console.log(this.customerinfo[i].customerName,item)
|
|
|
|
+ if(this.customerinfo[i].customerName==item){
|
|
|
|
+ this.deptBudgetList.buyerPhone=this.customerinfo[i].customerPhone
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
querySearch1(queryString, cb) {
|
|
querySearch1(queryString, cb) {
|
|
var restaurants1 = this.restaurants1;
|
|
var restaurants1 = this.restaurants1;
|
|
var results = queryString ? restaurants1.filter(this.createFilter(queryString)) : restaurants1;
|
|
var results = queryString ? restaurants1.filter(this.createFilter(queryString)) : restaurants1;
|
|
@@ -616,6 +633,18 @@
|
|
.then((response) => {
|
|
.then((response) => {
|
|
this.contractNoList = response
|
|
this.contractNoList = response
|
|
})
|
|
})
|
|
|
|
+ getcustomerinfo({compId: sessionStorage.getItem('ws-pf_compId'),}).toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ var arr=[]
|
|
|
|
+ for (let i = 0; i < response.length; i++) {
|
|
|
|
+ if(response[i].customerType=='个人客户'){
|
|
|
|
+ arr.push({customerName:response[i].customerName,customerPhone:response[i].customerPhone})
|
|
|
|
+ }else{
|
|
|
|
+ arr.push({customerName:response[i].compName,customerPhone:response[i].customerPhone})
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ this.customerinfo = arr
|
|
|
|
+ })
|
|
},
|
|
},
|
|
selectRelation(e) {
|
|
selectRelation(e) {
|
|
for (var i = 0; i < this.contractNoList.length; i++) {
|
|
for (var i = 0; i < this.contractNoList.length; i++) {
|