This commit is contained in:
liuyuan
2025-09-03 15:06:22 +08:00
parent ccffb7be6b
commit 5da8058834
4 changed files with 4895 additions and 5840 deletions

View File

@@ -128,8 +128,14 @@
</el-radio-group>
</el-form-item>
<el-form-item label="付费价格" prop="abroadPrice">
<el-input v-model="dataForm.abroadPrice" placeholder="付费价格(美元)"></el-input>
<el-form-item label="付费价格" prop="abroadPriceId">
<el-select v-model="dataForm.abroadPriceId" filterable allow-create default-first-option
placeholder="请选择付费价格NZD">
<el-option v-for="item in priceList" :key="item.id + ''" :label="item.dictValue+' NZD'" :value="item.id+''">
</el-option>
</el-select>
<!-- <el-input v-model="dataForm.abroadPrice" placeholder="付费价格(美元)"></el-input> -->
</el-form-item>
<el-form-item label="付费类型" prop="isVip">
<el-radio-group v-model="dataForm.isVip">
@@ -250,6 +256,7 @@
restaurants: [],
author: '',
publisherList: [],
priceList: [],
fileList: [],
fileListNovel: [],
dialogImageUrl: '',
@@ -285,7 +292,8 @@
clockIn: 2,
teachIn: 0,
relationId:0,
abroadPrice: ''
abroadPrice: '',
abroadPriceId: '',
},
splitsTypeList: [],
dataRule: {
@@ -394,6 +402,7 @@
this.dataForm.relationId = data.book.relationId
this.dataForm.abroadPrice = data.book.abroadPrice //价格
var checklist = data.book.type
this.dataForm.abroadPriceId=data.book.abroadPriceId
var medicaldeschecklist = data.book.medicaldesBookType
var authorList = data.book.authorId
var publisherlish = data.book.publisherId
@@ -427,6 +436,9 @@
attr.push(novel)
this.fileListNovel = attr
}
}
})
}
@@ -460,9 +472,13 @@
this.$refs['dataForm'].validate((valid) => {
if (valid) {
//价格逻辑
let abroadPrice = this.formatNumber(Number(this.dataForm.abroadPrice));
if(!abroadPrice&&abroadPrice!=0){
return
// let abroadPrice = this.formatNumber(Number(this.dataForm.abroadPrice));
// if(!abroadPrice&&abroadPrice!=0){
// return
// }
if(!this.dataForm.abroadPriceId){
this.$message.error('请选择付费价格')
return false
}
this.$http({
url: this.$http.adornUrl(`/book/book/${!this.dataForm.id ? 'save' : 'update'}`),
@@ -498,7 +514,8 @@
'relationId': this.dataForm.relationId,
'clockIn': this.dataForm.clockIn,
'teachIn': this.dataForm.teachIn,
'abroadPrice': abroadPrice //价格
abroadPriceId:this.dataForm.abroadPriceId,
})
}).then(({
data
@@ -624,6 +641,19 @@
}) => {
this.publisherList = data.list
})
this.$http({
url: this.$http.adornUrl('/book/sysdictdata/getData'),
method: 'post',
data: this.$http.adornData({
'dictLabel': 'googleProduct',
})
})
.then(({
data
}) => {
this.priceList = data.sysDictDatas
})
},
// handleSelect(item) {

View File

@@ -34,7 +34,7 @@
<el-table-column prop="authorName" header-align="center" align="center" label="作者姓名" width="120">
</el-table-column>
<el-table-column prop="abroadPrice" header-align="center" align="center" label="付费价格" width="120">
<template slot-scope="scope">${{ scope.row.abroadPrice }}</template>
<template slot-scope="scope">${{ scope.row.priceData.dictValue }} NZD</template>
</el-table-column>
<el-table-column header-align="center" align="center" label="插图" width="100">
<template slot-scope="scope">