|
@@ -31,8 +31,20 @@
|
|
</el-row>
|
|
</el-row>
|
|
</div>
|
|
</div>
|
|
<ws-info-table>
|
|
<ws-info-table>
|
|
- <!--合同编号-->
|
|
|
|
- <ws-form-item label="合同编号" span="1" prop="contractNo" class="readonly" required>
|
|
|
|
|
|
+ <!-- <ws-form-item label="合同类型" span="1" prop="agreementType" class="readonly">
|
|
|
|
+ <el-radio v-model="deptBudgetList.agreementType" label="收购合同">收购合同</el-radio>
|
|
|
|
+ <el-radio v-model="deptBudgetList.agreementType" label="补充协议">补充协议</el-radio>
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <ws-form-item prop="agreementNo" label="关联合同" span="1" v-show="deptBudgetList.agreementType =='补充协议'">
|
|
|
|
+ <ws-select v-model="deptBudgetList.agreementNo" placeholder="请选择编号" @change="selectRelation">
|
|
|
|
+ <ws-option v-for="item in contractNoList" :key="item.id" :label="item.contractNo"
|
|
|
|
+ :value="item.contractNo"></ws-option>
|
|
|
|
+ </ws-select>
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <ws-form-item v-show="deptBudgetList.agreementType == '补充协议'" label="补充协议编号" span="1" prop="contractNo">
|
|
|
|
+ <ws-input v-model="deptBudgetList.contractNo" placeholder="请输入补充协议编号" maxlength="100" size="small" />
|
|
|
|
+ </ws-form-item> -->
|
|
|
|
+ <ws-form-item v-show="deptBudgetList.agreementType =='收购合同'" label="合同编号" span="1" prop="contractNo" class="readonly" required>
|
|
<ws-input v-model="deptBudgetList.contractNo" placeholder="请输入合同编号" maxlength="50" size="small" />
|
|
<ws-input v-model="deptBudgetList.contractNo" placeholder="请输入合同编号" maxlength="50" size="small" />
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<ws-form-item label="交易主体" span="1" prop="transactionSubject" class="readonly">
|
|
<ws-form-item label="交易主体" span="1" prop="transactionSubject" class="readonly">
|
|
@@ -51,6 +63,9 @@
|
|
:value="item.customerName" />
|
|
:value="item.customerName" />
|
|
</el-select>
|
|
</el-select>
|
|
</ws-form-item>
|
|
</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">
|
|
<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="2">对方送货</el-radio>
|
|
<el-radio v-model="deptBudgetList.deliverType" label="1">我方自提</el-radio>
|
|
<el-radio v-model="deptBudgetList.deliverType" label="1">我方自提</el-radio>
|
|
@@ -61,15 +76,13 @@
|
|
对方送货</el-radio>
|
|
对方送货</el-radio>
|
|
<el-radio v-model="deptBudgetList.deliverType" v-else label="2">对方送货</el-radio> -->
|
|
<el-radio v-model="deptBudgetList.deliverType" v-else label="2">对方送货</el-radio> -->
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
- <!--卖方-->
|
|
|
|
<ws-form-item v-if="deptBudgetList.transactionSubject == '合营'" label="合营方" span="1" prop="seller" class="readonly">
|
|
<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" /> -->
|
|
<!-- <ws-input v-model="deptBudgetList.seller" placeholder="请输入卖方名称" maxlength="100" size="small" /> -->
|
|
<!-- <el-autocomplete class="inline-input" v-model="deptBudgetList.seller" :fetch-suggestions="querySearch2"
|
|
<!-- <el-autocomplete class="inline-input" v-model="deptBudgetList.seller" :fetch-suggestions="querySearch2"
|
|
@select="handleSelect"></el-autocomplete>
|
|
@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"
|
|
<el-option v-for="(item,index) in customerinfo" :key="index" :label="item.customerName"
|
|
:value="item.customerName" />
|
|
:value="item.customerName" />
|
|
</el-select>
|
|
</el-select>
|
|
@@ -87,6 +100,9 @@
|
|
<!-- <ws-input v-model.number="deptBudgetList.buyerPhone" placeholder="请输入买方电话" maxlength="100" size="small" /> -->
|
|
<!-- <ws-input v-model.number="deptBudgetList.buyerPhone" placeholder="请输入买方电话" maxlength="100" size="small" /> -->
|
|
<el-autocomplete class="inline-input" v-model="deptBudgetList.buyerPhone" :fetch-suggestions="querySearch3"
|
|
<el-autocomplete class="inline-input" v-model="deptBudgetList.buyerPhone" :fetch-suggestions="querySearch3"
|
|
placeholder="请输入收购方电话" @select="handleSelect"></el-autocomplete>
|
|
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>
|
|
<!--交货日期(止)-->
|
|
<!--交货日期(止)-->
|
|
<ws-form-item label="交货日期(止)" span="1" prop="deliveryDateEnd">
|
|
<ws-form-item label="交货日期(止)" span="1" prop="deliveryDateEnd">
|
|
@@ -95,7 +111,7 @@
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<ws-form-item v-if="deptBudgetList.transactionSubject == '合营'" label="合营方电话" span="1" prop="sellerPhone">
|
|
<ws-form-item v-if="deptBudgetList.transactionSubject == '合营'" label="合营方电话" span="1" prop="sellerPhone">
|
|
<!-- <ws-input v-model="deptBudgetList.sellerPhone" placeholder="请输入卖方电话" maxlength="100" size="small" /> -->
|
|
<!-- <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>
|
|
placeholder="请输入合营方电话" @select="handleSelect"></el-autocomplete>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<!--价格类型-->
|
|
<!--价格类型-->
|
|
@@ -369,6 +385,7 @@ import { isUndefined } from 'xe-utils/methods'
|
|
placeDelivery:'',
|
|
placeDelivery:'',
|
|
addressUrl: '',
|
|
addressUrl: '',
|
|
sellerPhone:'',
|
|
sellerPhone:'',
|
|
|
|
+ seller:'无',
|
|
buyer:localStorage.getItem('ws-pf_compName'),
|
|
buyer:localStorage.getItem('ws-pf_compName'),
|
|
buyerPhone:'',
|
|
buyerPhone:'',
|
|
personPhone:'',
|
|
personPhone:'',
|
|
@@ -467,12 +484,12 @@ import { isUndefined } from 'xe-utils/methods'
|
|
handleSelect(item) {
|
|
handleSelect(item) {
|
|
console.log(item);
|
|
console.log(item);
|
|
},
|
|
},
|
|
- sellerSelect(item) {
|
|
|
|
|
|
+ jointSelect(item) {
|
|
console.log(item)
|
|
console.log(item)
|
|
for (let i = 0; i < this.customerinfo.length; i++) {
|
|
for (let i = 0; i < this.customerinfo.length; i++) {
|
|
console.log(this.customerinfo[i].customerName,item)
|
|
console.log(this.customerinfo[i].customerName,item)
|
|
if(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
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -669,6 +686,14 @@ import { isUndefined } from 'xe-utils/methods'
|
|
_obj.staffMobilePhone = "(默认)"
|
|
_obj.staffMobilePhone = "(默认)"
|
|
this.feedbackLeaders.unshift(_obj)
|
|
this.feedbackLeaders.unshift(_obj)
|
|
})
|
|
})
|
|
|
|
+ getRelationContractNo({
|
|
|
|
+ agreementType: '收购合同',
|
|
|
|
+ goodsType: 1
|
|
|
|
+ })
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.contractNoList = response
|
|
|
|
+ })
|
|
getcustomerinfo({compId: localStorage.getItem('ws-pf_compId'),}).toPromise()
|
|
getcustomerinfo({compId: localStorage.getItem('ws-pf_compId'),}).toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
var arr=[]
|
|
var arr=[]
|
|
@@ -751,14 +776,14 @@ import { isUndefined } from 'xe-utils/methods'
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if(this.deptBudgetList.transactionSubject == '合营'){
|
|
if(this.deptBudgetList.transactionSubject == '合营'){
|
|
- if (!this.deptBudgetList.seller) {
|
|
|
|
|
|
+ if (!this.deptBudgetList.jointVentureParties) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '请输入合营方名称!',
|
|
message: '请输入合营方名称!',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (this.deptBudgetList.seller.length > 30) {
|
|
|
|
|
|
+ if (this.deptBudgetList.jointVentureParties.length > 30) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '合营方名称长度不符合要求,请输入30个字符之内!',
|
|
message: '合营方名称长度不符合要求,请输入30个字符之内!',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
@@ -782,7 +807,7 @@ import { isUndefined } from 'xe-utils/methods'
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if(this.deptBudgetList.transactionSubject == '合营'){
|
|
if(this.deptBudgetList.transactionSubject == '合营'){
|
|
- if (!this.deptBudgetList.sellerPhone) {
|
|
|
|
|
|
+ if (!this.deptBudgetList.jointPhone) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '请输入合营方电话!',
|
|
message: '请输入合营方电话!',
|
|
type: 'warning',
|
|
type: 'warning',
|