项目管理
This commit is contained in:
@@ -199,11 +199,18 @@
|
||||
</el-card>
|
||||
<el-card>
|
||||
<el-input :rows="20" v-model="textArea" type="textarea" style="width:calc(99% - 250px);float:right;margin-bottom: 20px" resize="none"/>
|
||||
<el-select v-model="contractValue" size="small" style="width: 110px;margin-left: 7.5%;margin-top: 10px" @change="changeContract">
|
||||
<el-option
|
||||
v-for="item in contract"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
icon=""
|
||||
style="margin-left: 4.5%"
|
||||
style="margin-left: 7.5%; margin-top: 10px"
|
||||
@click="doneContract">生成采购合同</el-button>
|
||||
</el-card>
|
||||
|
||||
@@ -350,8 +357,16 @@ export default {
|
||||
deliveryDay1: [],
|
||||
contractNumValue: '',
|
||||
RequisitionNumber: '',
|
||||
contract: [{
|
||||
label: '合同模板1',
|
||||
value: 1
|
||||
}, {
|
||||
label: '合同模板2',
|
||||
value: 2
|
||||
}],
|
||||
contractValue: 1,
|
||||
contractNum: [], // 合同号
|
||||
contractName: '产品购销合同', // 合同名称
|
||||
contractName: '产品采购合同', // 合同名称
|
||||
supplierName: '', // 供应商
|
||||
supplier: [],
|
||||
supplierValue: '', // 供应商流水号
|
||||
@@ -410,7 +425,7 @@ export default {
|
||||
planArrivalTime: '', // 计划到货时间
|
||||
stipulateArrivalTime: '', // 规定到货时间
|
||||
freight: '', // 运费
|
||||
taxRate: '0.16', // 税率
|
||||
taxRate: '0.13', // 税率
|
||||
tableData3: [],
|
||||
tableData4: [],
|
||||
groupNum1: [],
|
||||
@@ -506,6 +521,11 @@ export default {
|
||||
})
|
||||
this.getSelect(initPurchaseOrder, ['请购单编号', '请购单流水号'], 'contractNum')
|
||||
},
|
||||
changeContract() {
|
||||
searchContractDemo(this.contractValue).then(response => {
|
||||
this.textArea = response.data[0].合同模板内容
|
||||
})
|
||||
},
|
||||
searchSupplier() { // 查询创立日期和注册资本大于符合条件的数据
|
||||
this.supplierName ? this.supplierCheck1 = 1 : (this.supplierCheck1 = 0, this.supplierName = '')
|
||||
this.enterpriseNature ? this.supplierCheck2 = 1 : (this.supplierCheck2 = 0, this.enterpriseNature = '')
|
||||
@@ -614,7 +634,7 @@ export default {
|
||||
this.group1 = this.group1.substr(0, this.group1.length - 1)
|
||||
this.group2 = this.group2.substr(0, this.group2.length - 1)
|
||||
this.group3 = this.group3.substr(0, this.group3.length - 1)
|
||||
doneContract(this.contractNumValue, this.RequisitionNumber, this.contractName, this.planArrivalTime, this.stipulateArrivalTime, this.supplierValue, this.textArea, this.freight, this.group1, this.group2, this.group3, this.group7, this.group8, this.group9, this.id, this.group11, this.group12, this.AdvanceCharge).then(response => {
|
||||
doneContract(this.contractNumValue, this.RequisitionNumber, this.contractName, this.planArrivalTime, this.stipulateArrivalTime, this.supplierValue, this.textArea, this.contractValue, this.freight, this.group1, this.group2, this.group3, this.group7, this.group8, this.group9, this.id, this.group11, this.group12, this.AdvanceCharge).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('生成合同成功')
|
||||
this.reload()
|
||||
|
||||
Reference in New Issue
Block a user