|
@@ -1,10 +1,10 @@
|
|
<template>
|
|
<template>
|
|
<div class="container">
|
|
<div class="container">
|
|
<el-row>
|
|
<el-row>
|
|
- <el-col :span="12">
|
|
|
|
|
|
+ <el-col :span="12" class="bg">
|
|
<h2 class="bg-left title">创建采购合同</h2>
|
|
<h2 class="bg-left title">创建采购合同</h2>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="12" class="bg-right">
|
|
|
|
|
|
+ <el-col :span="12" class="bg-right bg">
|
|
<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,9 +13,22 @@
|
|
<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>
|
|
<!--合同类型-->
|
|
<!--合同类型-->
|
|
@@ -395,10 +408,11 @@
|
|
delxiala,
|
|
delxiala,
|
|
getstafffind,
|
|
getstafffind,
|
|
getRelationContractNo,
|
|
getRelationContractNo,
|
|
- getcustomerinfo
|
|
|
|
|
|
+ getcustomerinfo,
|
|
|
|
+ examineList
|
|
} from '@/model/contarct/index'
|
|
} from '@/model/contarct/index'
|
|
import {
|
|
import {
|
|
- getstaff,
|
|
|
|
|
|
+ getstaff,xialaNo,
|
|
} from '@/model/warehouse/index'
|
|
} from '@/model/warehouse/index'
|
|
import {
|
|
import {
|
|
regionData,
|
|
regionData,
|
|
@@ -437,6 +451,8 @@ import { isUndefined } from 'xe-utils/methods'
|
|
customerinfo:[],
|
|
customerinfo:[],
|
|
type: '',
|
|
type: '',
|
|
dialogVisible: false,
|
|
dialogVisible: false,
|
|
|
|
+ contractNo:'',
|
|
|
|
+ outContractNo:[],
|
|
//弹出框
|
|
//弹出框
|
|
dialogViewSpareMoney: false,
|
|
dialogViewSpareMoney: false,
|
|
dialogApproveFormVisible: false,
|
|
dialogApproveFormVisible: false,
|
|
@@ -569,6 +585,50 @@ import { isUndefined } from 'xe-utils/methods'
|
|
if (!this.restaurants4) this.restaurants4 = [];
|
|
if (!this.restaurants4) this.restaurants4 = [];
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ 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',
|
|
|
|
+ }
|
|
|
|
+ },
|
|
selectpriceType(e) {
|
|
selectpriceType(e) {
|
|
if (e == '随行就市') {
|
|
if (e == '随行就市') {
|
|
this.deptBudgetList.deliverType = '1'
|
|
this.deptBudgetList.deliverType = '1'
|
|
@@ -758,6 +818,15 @@ 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'
|
|
@@ -1721,7 +1790,7 @@ import { isUndefined } from 'xe-utils/methods'
|
|
border-color: #5878e8;
|
|
border-color: #5878e8;
|
|
}
|
|
}
|
|
|
|
|
|
- .el-col {
|
|
|
|
|
|
+ .bg {
|
|
background: #f6f7fc;
|
|
background: #f6f7fc;
|
|
}
|
|
}
|
|
|
|
|