Commit 86e420f3 authored by 耿迪迪's avatar 耿迪迪

计量单位-交易项目明细模糊查询

parent 7ce40ca2
...@@ -119,6 +119,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -119,6 +119,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="isDel != null and isDel != ''"> and is_del = #{isDel}</if> <if test="isDel != null and isDel != ''"> and is_del = #{isDel}</if>
<if test="queryApplyDeptId != null">and apply_dept_id = #{queryApplyDeptId}</if> <if test="queryApplyDeptId != null">and apply_dept_id = #{queryApplyDeptId}</if>
<if test="queryTradeDeptId != null">and trade_dept_id = #{queryTradeDeptId}</if> <if test="queryTradeDeptId != null">and trade_dept_id = #{queryTradeDeptId}</if>
<if test="transactionDetailName != null">and transaction_detail_name like concat('%', #{transactionDetailName}, '%')</if>
</where> </where>
order by update_time,create_time desc order by update_time,create_time desc
</select> </select>
......
...@@ -8,6 +8,17 @@ ...@@ -8,6 +8,17 @@
:formatter="transactionProjectName" :formatter="transactionProjectName"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
/> />
<el-table-column
label="交易细项名称"
align="center"
prop="transactionDetailName"
:show-overflow-tooltip="true"
>
<template slot-scope="scope">
<span v-if="scope.row.transactionDetailName">{{scope.row.transactionDetailName}}</span>
<span v-else>-</span>
</template>
</el-table-column>
<el-table-column <el-table-column
label="交易状态" label="交易状态"
align="center" align="center"
......
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
v-show="showSearch" v-show="showSearch"
label-width="100px" label-width="100px"
> >
<el-form-item label="交易项目" prop="relationTransactionProjectId"> <el-form-item label="交易细项名称" prop="transactionDetailName">
<el-select <!--<el-select
v-model="queryParams.relationTransactionProjectId" v-model="queryParams.relationTransactionProjectId"
placeholder="请选择交易项目" placeholder="请选择交易项目"
> >
...@@ -19,7 +19,16 @@ ...@@ -19,7 +19,16 @@
:label="item.transactionProjectName" :label="item.transactionProjectName"
:value="item.transactionProjectId" :value="item.transactionProjectId"
/> />
</el-select> </el-select>-->
<el-input
v-model="queryParams.transactionDetailName"
placeholder="请输入交易细项名称"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item> </el-form-item>
<el-form-item label="项目状态" prop="tradeStatus"> <el-form-item label="项目状态" prop="tradeStatus">
<el-select <el-select
...@@ -239,6 +248,13 @@ ...@@ -239,6 +248,13 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12">
<el-form-item label="计量单位">
<el-input v-model="form.unit" placeholder="请输入计量单位" disabled/>
</el-form-item>
</el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item v-if="priceType == '1'" label="单价" prop="tradePrice" > <el-form-item v-if="priceType == '1'" label="单价" prop="tradePrice" >
<el-input v-model="form.tradePrice" placeholder="请输入单价" :disabled="true" @blur="sumAmount"/> <el-input v-model="form.tradePrice" placeholder="请输入单价" :disabled="true" @blur="sumAmount"/>
...@@ -251,23 +267,21 @@ ...@@ -251,23 +267,21 @@
<el-input v-model="form.tradePrice" placeholder="请输入单价" :disabled="true" @blur="sumAmount"/> <el-input v-model="form.tradePrice" placeholder="请输入单价" :disabled="true" @blur="sumAmount"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12">
<el-form-item label="数量" v-if="priceType == '1'" prop="tradeCount">
<el-input v-model="form.tradeCount" placeholder="请输入交易数量" @blur="sumAmount" :disabled="priceType == '2'"/>
</el-form-item>
<el-form-item label="数量" v-if="priceType == '2'" prop="tradeCount" :rules="[
{ required: false, message:'数量不能为空', trigger: 'blur' }
]" >
<el-input v-model="form.tradeCount" placeholder="请输入交易数量" @blur="sumAmount" :disabled="priceType == '2'"/>
</el-form-item>
</el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="单位"> <el-form-item label="数量" v-if="priceType == '1'" prop="tradeCount">
<el-input v-model="form.unit" placeholder="请输入单位" disabled/> <el-input v-model="form.tradeCount" placeholder="请输入交易数量" @blur="sumAmount" :disabled="priceType == '2'"/>
</el-form-item>
<el-form-item label="数量" v-if="priceType == '2'" prop="tradeCount" :rules="[
{ required: false, message:'数量不能为空', trigger: 'blur' }
]" >
<el-input v-model="form.tradeCount" placeholder="请输入交易数量" @blur="sumAmount" :disabled="priceType == '2'"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="总价" prop="tradeTotal"> <el-form-item label="总价" prop="tradeTotal">
<el-input v-model="form.tradeTotal" placeholder="请输入交易总价" :disabled="priceType == '1'"/> <el-input v-model="form.tradeTotal" placeholder="请输入交易总价" :disabled="priceType == '1'"/>
...@@ -378,6 +392,7 @@ export default { ...@@ -378,6 +392,7 @@ export default {
pageSize: 10, pageSize: 10,
queryType: "all", queryType: "all",
relationTransactionProjectId: null, relationTransactionProjectId: null,
transactionDetailName: null,
applyDeptId: null, applyDeptId: null,
tradeType: null, tradeType: null,
tradeDeptId: null, tradeDeptId: null,
......
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
<span v-else>-</span> <span v-else>-</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="单位" align="center" prop="unit"> <el-table-column label="计量单位" align="center" prop="unit">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.price">{{scope.row.unit}}</span> <span v-if="scope.row.price">{{scope.row.unit}}</span>
<span v-else>-</span> <span v-else>-</span>
...@@ -179,7 +179,7 @@ ...@@ -179,7 +179,7 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="单位" prop="unit"> <el-form-item label="计量单位" prop="unit">
<el-input v-model="form.unit" placeholder="请输入单位"/> <el-input v-model="form.unit" placeholder="请输入单位"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment