修改bug

This commit is contained in:
齐天大圣 2024-01-10 13:54:45 +08:00
parent 289b04f406
commit ce2f96006b
4 changed files with 16 additions and 10 deletions

View File

@ -11,7 +11,7 @@ export function getList(query) {
// 查询油号 // 查询油号
export function oilName(oilType) { export function oilName(oilType) {
return request({ return request({
url: 'business/petrolStationManagement/oilName/getList?oilType='+oilType, url: '/business/petrolStationManagement/oilNumber/getList2?oilType='+oilType,
method: 'get', method: 'get',
}) })

View File

@ -465,7 +465,7 @@
label="券详情" label="券详情"
width="100"> width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{scope.row.fullDeduction}} {{scope.row.discountAmount}} </span> <span>{{scope.row.satisfiedAmount}} {{scope.row.discountAmount}} </span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -767,7 +767,7 @@
validityZero: row.validityZero, validityZero: row.validityZero,
validityOne: row.validityOne, validityOne: row.validityOne,
validityTwo:row.validityTwo, validityTwo:row.validityTwo,
giftCardDetail: "满"+ row.fullDeduction+"减 "+row.discountAmount+"元" , // giftCardDetail: "满"+ row.satisfiedAmount+"减 "+row.discountAmount+"元" , //
giftCardTime: "", // giftCardTime: "", //
giftCardTotal: 1// giftCardTotal: 1//
} }

View File

@ -167,9 +167,9 @@
<el-select v-model="ruleForm.oilType" placeholder="请选择" > <el-select v-model="ruleForm.oilType" placeholder="请选择" >
<el-option <el-option
v-for="dict in oilList" v-for="dict in oilList"
:key="dict.id.toString()" :key="dict.id"
:label="dict.oilName" :label="dict.oilName"
:value="dict.id.toString()"> :value="dict.id">
</el-option> </el-option>
</el-select> </el-select>
@ -365,8 +365,8 @@
this.oilList = [] this.oilList = []
oilName(this.queryParams.type).then(res=>{ oilName(this.queryParams.type).then(res=>{
this.oilList = res.data this.oilList = res.data.records
console.log( this.oilList) console.log('我的油站' ,res)
}) })
}, },
getlist(){ getlist(){

View File

@ -31,17 +31,23 @@
where store_id = #{oilNumber.storeId} where store_id = #{oilNumber.storeId}
</select> </select>
<select id="selectOilNumberList2" resultMap="OilNumberResult"> <select id="selectOilNumberList2" resultMap="OilNumberResult">
select select
omm.number_id , omm.number_id ,
onn.oil_type, onn.oil_type,
onn.oil_name, onn.oil_name,
onn.id,
omm.oil_price, omm.oil_price,
omm.gb_price omm.gb_price
from oil_number omm from oil_number omm
left join oil_name onn on omm.oil_name = onn.id left join oil_name onn on omm.oil_name = onn.id
<where>
where omm.store_id = #{oilNumber.storeId} omm.store_id = #{oilNumber.storeId}
<if test="oilNumber.oilType != null and oilNumber.oilType != ''">
and onn.oil_type = #{oilNumber.oilType}
</if>
</where>
</select> </select>
<!-- select--> <!-- select-->
@ -139,4 +145,4 @@
onu.store_id = #{storeId} and onu.state = '启用' onu.store_id = #{storeId} and onu.state = '启用'
</where> </where>
</select> </select>
</mapper> </mapper>