|
@@ -1,10 +1,10 @@
|
|
<template>
|
|
<template>
|
|
<div class="container">
|
|
<div class="container">
|
|
<el-row>
|
|
<el-row>
|
|
- <el-col :span="12" class="bg">
|
|
|
|
|
|
+ <el-col :span="12">
|
|
<h2 class="bg-left title">创建采购合同</h2>
|
|
<h2 class="bg-left title">创建采购合同</h2>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="12" class="bg-right bg">
|
|
|
|
|
|
+ <el-col :span="12" class="bg-right">
|
|
<el-button class="bg-bottom" type="primary" size="small" @click="returnsales()"><img width="6" height="10"
|
|
<el-button class="bg-bottom" type="primary" size="small" @click="returnsales()"><img width="6" height="10"
|
|
style="vertical-align: bottom; margin-right: 3px" src="../../../public/img/lujing.png" alt="" />返回
|
|
style="vertical-align: bottom; margin-right: 3px" src="../../../public/img/lujing.png" alt="" />返回
|
|
</el-button>
|
|
</el-button>
|
|
@@ -13,22 +13,9 @@
|
|
<ws-form ref="deptBudgetList" :rules="rules" :model="deptBudgetList">
|
|
<ws-form ref="deptBudgetList" :rules="rules" :model="deptBudgetList">
|
|
<div class="remark">
|
|
<div class="remark">
|
|
<h3>基本信息</h3>
|
|
<h3>基本信息</h3>
|
|
- <el-row>
|
|
|
|
- <el-col :span="12">
|
|
|
|
<p style="color: #8890b1">
|
|
<p style="color: #8890b1">
|
|
注:基本信息和货物信息均为必填项,“<span style="color:red">*</span>” 标记的条目提交后不可修改。
|
|
注:基本信息和货物信息均为必填项,“<span style="color:red">*</span>” 标记的条目提交后不可修改。
|
|
</p>
|
|
</p>
|
|
- </el-col>
|
|
|
|
- <el-col :span="12" style='text-align:right;'>
|
|
|
|
- <el-select v-model="contractNo" placeholder="请选择要复制的合同" class="typeselect" filterable clearable
|
|
|
|
- @change="copySelect">
|
|
|
|
- <el-option v-for="(item,index) in outContractNo" :key="'hetong'+index" :label="item.contractNo"
|
|
|
|
- :value="item.contractNo" />
|
|
|
|
- </el-select>
|
|
|
|
- <el-button class="bg-bottom" type="primary" size="small" @click="cancelcopy()">取消复制
|
|
|
|
- </el-button>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
</div>
|
|
</div>
|
|
<ws-info-table>
|
|
<ws-info-table>
|
|
<!--合同类型-->
|
|
<!--合同类型-->
|
|
@@ -408,11 +395,10 @@
|
|
delxiala,
|
|
delxiala,
|
|
getstafffind,
|
|
getstafffind,
|
|
getRelationContractNo,
|
|
getRelationContractNo,
|
|
- getcustomerinfo,
|
|
|
|
- examineList
|
|
|
|
|
|
+ getcustomerinfo
|
|
} from '@/model/contarct/index'
|
|
} from '@/model/contarct/index'
|
|
import {
|
|
import {
|
|
- getstaff,xialaNo,
|
|
|
|
|
|
+ getstaff,
|
|
} from '@/model/warehouse/index'
|
|
} from '@/model/warehouse/index'
|
|
import {
|
|
import {
|
|
regionData,
|
|
regionData,
|
|
@@ -456,7 +442,6 @@ import { isUndefined } from 'xe-utils/methods'
|
|
dialogApproveFormVisible: false,
|
|
dialogApproveFormVisible: false,
|
|
// 船舶类型
|
|
// 船舶类型
|
|
monetaryKey: null,
|
|
monetaryKey: null,
|
|
- contractNo:'',
|
|
|
|
// 表格显示数据
|
|
// 表格显示数据
|
|
tableDate: [],
|
|
tableDate: [],
|
|
// 是否显示
|
|
// 是否显示
|
|
@@ -589,50 +574,6 @@ import { isUndefined } from 'xe-utils/methods'
|
|
this.deptBudgetList.deliverType = '1'
|
|
this.deptBudgetList.deliverType = '1'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- copySelect(e){
|
|
|
|
- for (let i = 0; i < this.outContractNo.length; i++) {
|
|
|
|
- if(this.outContractNo[i].contractNo==e){
|
|
|
|
- examineList({
|
|
|
|
- id: this.outContractNo[i].id
|
|
|
|
- })
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- this.deptBudgetList = response
|
|
|
|
- if(this.deptBudgetList.personPhone){
|
|
|
|
- this.deptBudgetList.personPhone=this.deptBudgetList.personPhone.split(',')
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- if (this.deptBudgetList.deliverType == 1) {
|
|
|
|
- this.deptBudgetList.deliverType1 = '我方自提'
|
|
|
|
- } else if (this.deptBudgetList.deliverType == 2) {
|
|
|
|
- this.deptBudgetList.deliverType1 = '对方送货'
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- cancelcopy(){
|
|
|
|
- this.contractNo=''
|
|
|
|
- this.deptBudgetList={
|
|
|
|
- deliverType: '1',
|
|
|
|
- sourceGoods:'',
|
|
|
|
- placeDelivery:'',
|
|
|
|
- agreementType: '采购合同',
|
|
|
|
- addressUrl: '',
|
|
|
|
- sellerPhone:'',
|
|
|
|
- personPhone:'',
|
|
|
|
- personCharge:'',
|
|
|
|
- personChargeKey:'',
|
|
|
|
- finalTradingVolume: 0,
|
|
|
|
- totalContractPrice: 0,
|
|
|
|
- contractGoodsInfo: {
|
|
|
|
- goodsName: '',
|
|
|
|
- },
|
|
|
|
- contractProcessInfo: {},
|
|
|
|
- settlementWeightMethod: '1',
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
feedbackLeaderChange(e){
|
|
feedbackLeaderChange(e){
|
|
this.deptBudgetList.feedbackLeaderPhone = ""
|
|
this.deptBudgetList.feedbackLeaderPhone = ""
|
|
for(var num = 0 ; num < e.length ; num++){
|
|
for(var num = 0 ; num < e.length ; num++){
|
|
@@ -817,15 +758,6 @@ import { isUndefined } from 'xe-utils/methods'
|
|
})
|
|
})
|
|
},
|
|
},
|
|
loaddata() {
|
|
loaddata() {
|
|
- // 合同编号
|
|
|
|
- xialaNo({
|
|
|
|
- compId: localStorage.getItem('ws-pf_compId'),
|
|
|
|
- flag: 0,
|
|
|
|
- })
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- this.outContractNo = response
|
|
|
|
- })
|
|
|
|
// 包装方式
|
|
// 包装方式
|
|
packList({
|
|
packList({
|
|
constId: 'CON1'
|
|
constId: 'CON1'
|
|
@@ -1789,7 +1721,7 @@ import { isUndefined } from 'xe-utils/methods'
|
|
border-color: #5878e8;
|
|
border-color: #5878e8;
|
|
}
|
|
}
|
|
|
|
|
|
- .bg {
|
|
|
|
|
|
+ .el-col {
|
|
background: #f6f7fc;
|
|
background: #f6f7fc;
|
|
}
|
|
}
|
|
|
|
|