|
@@ -51,6 +51,9 @@
|
|
|
:value="item.customerName" />
|
|
|
</el-select>
|
|
|
</ws-form-item>
|
|
|
+ <ws-form-item label="卖方" span="1" prop="seller">
|
|
|
+ <ws-input v-model="deptBudgetList.seller" placeholder="请输入卖方名称" maxlength="100" size="small" />
|
|
|
+ </ws-form-item>
|
|
|
<ws-form-item label="交货方式" span="1" prop="seller" class="readonly">
|
|
|
<el-radio v-model="deptBudgetList.deliverType" label="2">对方送货</el-radio>
|
|
|
<el-radio v-model="deptBudgetList.deliverType" label="1">我方自提</el-radio>
|
|
@@ -61,15 +64,13 @@
|
|
|
对方送货</el-radio>
|
|
|
<el-radio v-model="deptBudgetList.deliverType" v-else label="2">对方送货</el-radio> -->
|
|
|
</ws-form-item>
|
|
|
- <!--卖方-->
|
|
|
<ws-form-item v-if="deptBudgetList.transactionSubject == '合营'" label="合营方" span="1" prop="seller" class="readonly">
|
|
|
<!-- <ws-input v-model="deptBudgetList.seller" placeholder="请输入卖方名称" maxlength="100" size="small" /> -->
|
|
|
<!-- <el-autocomplete class="inline-input" v-model="deptBudgetList.seller" :fetch-suggestions="querySearch2"
|
|
|
@select="handleSelect"></el-autocomplete>
|
|
|
-->
|
|
|
- <el-select filterable v-model="deptBudgetList.seller" placeholder="请选择合营方名称" class="typeselect"
|
|
|
- @change="sellerSelect" filterable clearable>
|
|
|
-
|
|
|
+ <el-select filterable v-model="deptBudgetList.jointVentureParties" placeholder="请选择合营方名称" class="typeselect"
|
|
|
+ @change="jointSelect" filterable clearable>
|
|
|
<el-option v-for="(item,index) in customerinfo" :key="index" :label="item.customerName"
|
|
|
:value="item.customerName" />
|
|
|
</el-select>
|
|
@@ -87,6 +88,9 @@
|
|
|
<!-- <ws-input v-model.number="deptBudgetList.buyerPhone" placeholder="请输入买方电话" maxlength="100" size="small" /> -->
|
|
|
<el-autocomplete class="inline-input" v-model="deptBudgetList.buyerPhone" :fetch-suggestions="querySearch3"
|
|
|
placeholder="请输入收购方电话" @select="handleSelect"></el-autocomplete>
|
|
|
+ </ws-form-item>
|
|
|
+ <ws-form-item label="卖方电话" span="1" prop="sellerPhone">
|
|
|
+ <ws-input v-model="deptBudgetList.sellerPhone" placeholder="请输入卖方电话" maxlength="100" size="small" />
|
|
|
</ws-form-item>
|
|
|
<!--交货日期(止)-->
|
|
|
<ws-form-item label="交货日期(止)" span="1" prop="deliveryDateEnd">
|
|
@@ -95,7 +99,7 @@
|
|
|
</ws-form-item>
|
|
|
<ws-form-item v-if="deptBudgetList.transactionSubject == '合营'" label="合营方电话" span="1" prop="sellerPhone">
|
|
|
<!-- <ws-input v-model="deptBudgetList.sellerPhone" placeholder="请输入卖方电话" maxlength="100" size="small" /> -->
|
|
|
- <el-autocomplete class="inline-input" v-model="deptBudgetList.sellerPhone" :fetch-suggestions="querySearch4"
|
|
|
+ <el-autocomplete class="inline-input" v-model="deptBudgetList.jointPhone" :fetch-suggestions="querySearch4"
|
|
|
placeholder="请输入合营方电话" @select="handleSelect"></el-autocomplete>
|
|
|
</ws-form-item>
|
|
|
<!--价格类型-->
|
|
@@ -369,6 +373,7 @@ import { isUndefined } from 'xe-utils/methods'
|
|
|
placeDelivery:'',
|
|
|
addressUrl: '',
|
|
|
sellerPhone:'',
|
|
|
+ seller:'无',
|
|
|
buyer:localStorage.getItem('ws-pf_compName'),
|
|
|
buyerPhone:'',
|
|
|
personPhone:'',
|
|
@@ -467,12 +472,12 @@ import { isUndefined } from 'xe-utils/methods'
|
|
|
handleSelect(item) {
|
|
|
console.log(item);
|
|
|
},
|
|
|
- sellerSelect(item) {
|
|
|
+ jointSelect(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.sellerPhone=this.customerinfo[i].customerPhone
|
|
|
+ this.deptBudgetList.jointPhone=this.customerinfo[i].customerPhone
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -751,14 +756,14 @@ import { isUndefined } from 'xe-utils/methods'
|
|
|
return
|
|
|
}
|
|
|
if(this.deptBudgetList.transactionSubject == '合营'){
|
|
|
- if (!this.deptBudgetList.seller) {
|
|
|
+ if (!this.deptBudgetList.jointVentureParties) {
|
|
|
this.$message({
|
|
|
message: '请输入合营方名称!',
|
|
|
type: 'warning',
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (this.deptBudgetList.seller.length > 30) {
|
|
|
+ if (this.deptBudgetList.jointVentureParties.length > 30) {
|
|
|
this.$message({
|
|
|
message: '合营方名称长度不符合要求,请输入30个字符之内!',
|
|
|
type: 'warning',
|
|
@@ -782,7 +787,7 @@ import { isUndefined } from 'xe-utils/methods'
|
|
|
return
|
|
|
}
|
|
|
if(this.deptBudgetList.transactionSubject == '合营'){
|
|
|
- if (!this.deptBudgetList.sellerPhone) {
|
|
|
+ if (!this.deptBudgetList.jointPhone) {
|
|
|
this.$message({
|
|
|
message: '请输入合营方电话!',
|
|
|
type: 'warning',
|