合同
This commit is contained in:
@@ -59,8 +59,7 @@
|
||||
type="date"
|
||||
format="yyyy-MM-dd"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="选择日期"
|
||||
@change="contractChange"/>
|
||||
placeholder="选择日期"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
@@ -215,21 +214,6 @@
|
||||
<el-input v-model="contractSum" size="small"/>
|
||||
</el-card>
|
||||
<el-card>
|
||||
<el-table
|
||||
:data="tableData2"
|
||||
:show-header="false"
|
||||
highlight-current-row
|
||||
border
|
||||
height="280px"
|
||||
style="width: 250px;display:inline-block;max-height: 280px;"
|
||||
size="mini"
|
||||
@row-click="searchDemo">
|
||||
<el-table-column align="center" label="合同模板名称">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.合同模板名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<el-input :rows="20" v-model="textArea" type="textarea" style="width:calc(99% - 250px);float:right;margin-bottom: 20px" resize="none"/>
|
||||
<el-button
|
||||
type="primary"
|
||||
@@ -546,67 +530,10 @@ export default {
|
||||
this.riseFallPoint = this.riseFallPoint.toFixed(2)
|
||||
}
|
||||
},
|
||||
searchDemo(row = this.paramRow) {
|
||||
// for (let i = 0; i < this.payMethod.length; i++) {
|
||||
// if (this.payMethod[i].value === this.payMethodValue) {
|
||||
// this.payMethodName = this.payMethod[i].label
|
||||
// }
|
||||
// }
|
||||
this.paramRow = row
|
||||
searchContractDemo(this.paramRow.合同模板流水号).then(response => {
|
||||
this.textArea = response.data[0].合同模板内容.replace('stipulateArrivalTime', this.stipulateArrivalTime).replace('AdvanceCharge', this.AdvanceCharge)
|
||||
})
|
||||
},
|
||||
contractChange() {
|
||||
this.searchDemo(this.paramRow)
|
||||
},
|
||||
fetchData() {
|
||||
searchContractDemo().then(response => { // 初始化合同模板
|
||||
this.tableData2 = response.data
|
||||
searchContractDemo(1).then(response => {
|
||||
this.textArea = response.data[0].合同模板内容
|
||||
})
|
||||
// this.payMethod = []
|
||||
// initPayMethod().then(response => {
|
||||
// for (let i = 0; i < response.data.length; i++) {
|
||||
// this.payMethod.push({
|
||||
// label: response.data[i].付款方式内容,
|
||||
// value: response.data[i].付款方式流水号
|
||||
// })
|
||||
// }
|
||||
// })
|
||||
// this.payTime1 = []
|
||||
// this.payTime2 = []
|
||||
// this.payTime3 = []
|
||||
// this.payTime4 = []
|
||||
// this.payTime5 = []
|
||||
// this.payTime6 = []
|
||||
// initPayTimeNode().then(response => {
|
||||
// for (let i = 0; i < response.data.length; i++) {
|
||||
// this.payTime1.push({
|
||||
// label: response.data[i].付款时间节点名称,
|
||||
// value: response.data[i].付款时间节点流水号
|
||||
// })
|
||||
// this.payTime2.push({
|
||||
// label: response.data[i].付款时间节点名称,
|
||||
// value: response.data[i].付款时间节点流水号
|
||||
// })
|
||||
// this.payTime3.push({
|
||||
// label: response.data[i].付款时间节点名称,
|
||||
// value: response.data[i].付款时间节点流水号
|
||||
// })
|
||||
// this.payTime4.push({
|
||||
// label: response.data[i].付款时间节点名称,
|
||||
// value: response.data[i].付款时间节点流水号
|
||||
// })
|
||||
// this.payTime5.push({
|
||||
// label: response.data[i].付款时间节点名称,
|
||||
// value: response.data[i].付款时间节点流水号
|
||||
// })
|
||||
// this.payTime6.push({
|
||||
// label: response.data[i].付款时间节点名称,
|
||||
// value: response.data[i].付款时间节点流水号
|
||||
// })
|
||||
// }
|
||||
// })
|
||||
this.getSelect(initPurchaseOrder, ['请购单编号', '请购单流水号'], 'contractNum')
|
||||
},
|
||||
searchSupplier() { // 查询创立日期和注册资本大于符合条件的数据
|
||||
|
||||
Reference in New Issue
Block a user