查合同条件

This commit is contained in:
chenjianan
2019-06-15 14:43:16 +08:00
parent 6afe1cb8ab
commit be2a95b349
2 changed files with 17 additions and 13 deletions

View File

@@ -23,14 +23,14 @@ export function initBuyer() {
}) })
} }
// 采购合同查询 // 采购合同查询
export function searchTable1(pageCurrent, pageSize, check1, start, end, check2, contract, check3, name, check4, supplier, check5, approval) { export function searchTable1(pageCurrent, pageSize, check1, start, end, check2, contract, check3, name, check4, supplier, check5, approval, numberCheck, number) {
return request({ return request({
url: '', url: '',
method: 'post', method: 'post',
data: { data: {
type: '1', type: '1',
name: '采购管理_合同_查询数据_采购部采购', name: '采购管理_合同_查询数据_采购部采购',
param: '时间段_check=' + check1 + '&开始时间=' + start + '=datetime&结束时间=' + end + '=datetime&采购合同流水号_check=' + check2 + '&采购合同流水号=' + contract + '&人员编号_check=' + check3 + '&人员编号=' + name + '&供应商名称_check=' + check4 + '&供应商名称=' + supplier + '&审批情况流水号_check=' + check5 + '&审批情况流水号=' + approval, param: '时间段_check=' + check1 + '&开始时间=' + start + '=datetime&结束时间=' + end + '=datetime&采购合同流水号_check=' + check2 + '&采购合同流水号=' + contract + '&人员编号_check=' + check3 + '&人员编号=' + name + '&供应商名称_check=' + check4 + '&供应商名称=' + supplier + '&审批情况流水号_check=' + check5 + '&审批情况流水号=' + approval + '&采购合同编号_check=' + numberCheck + '&采购合同编号=' + number,
Pagination: pageCurrent + '&' + pageSize Pagination: pageCurrent + '&' + pageSize
} }
}) })

View File

@@ -14,16 +14,17 @@
<!--end-placeholder="结束日期"/>--> <!--end-placeholder="结束日期"/>-->
<el-row> <el-row>
<span>合同编号:</span> <span>合同编号:</span>
<el-select v-model="contractNumValue" placeholder="合同号" size="small" filterable clearable> <!--<el-select v-model="contractNumValue" placeholder="合同号" size="small" filterable clearable>-->
<el-option <!--<el-option-->
v-for="item in contractNum" <!--v-for="item in contractNum"-->
:key="item.value" <!--:key="item.value"-->
:label="item.label" <!--:label="item.label"-->
:value="item.value"> <!--:value="item.value">-->
<div style="float: left">{{ item.label }}</div> <!--<div style="float: left">{{ item.label }}</div>-->
<div style="float: right; color: #8492a6; font-size: 13px">{{ item.name }}</div> <!--<div style="float: right; color: #8492a6; font-size: 13px">{{ item.name }}</div>-->
</el-option> <!--</el-option>-->
</el-select> <!--</el-select>-->
<el-input v-model="contractNumber" placeholder="合同编号" size="small" clearable style="width:180px"/>
<span>供应商:</span> <span>供应商:</span>
<el-input v-model="supplierName" placeholder="供应商" size="small" clearable style="width:180px"/> <el-input v-model="supplierName" placeholder="供应商" size="small" clearable style="width:180px"/>
<span>采购员:</span> <span>采购员:</span>
@@ -194,6 +195,7 @@ import $ from 'jquery'
export default { export default {
data() { data() {
return { return {
contractNumber: '',
searchView: '', // 图片预览 searchView: '', // 图片预览
approval: [{ approval: [{
value: 0, value: 0,
@@ -335,7 +337,9 @@ export default {
} else { } else {
this.check5 = 1 this.check5 = 1
} }
searchTable1(this.pageCurrent1, this.pageSize1, this.check1, this.startEndDate[0], this.startEndDate[1], this.check2, this.contractNumValue, this.check3, this.personValue, this.check4, this.supplierName, this.check5, this.approvalValue).then(response => { let check
this.contractNumber ? check = 1 : check = 0
searchTable1(this.pageCurrent1, this.pageSize1, this.check1, this.startEndDate[0], this.startEndDate[1], this.check2, this.contractNumValue, this.check3, this.personValue, this.check4, this.supplierName, this.check5, this.approvalValue, check, this.contractNumber).then(response => {
for (let i = 0; i < response.data.rows.length; i++) { for (let i = 0; i < response.data.rows.length; i++) {
response.data.rows[i].审批情况内容 === '未审批' ? this.disable.push(false) : this.disable.push(true) // 删除按钮禁用 response.data.rows[i].审批情况内容 === '未审批' ? this.disable.push(false) : this.disable.push(true) // 删除按钮禁用
} }