+
{{ tabsList[1].name }}
@@ -390,6 +432,24 @@
+
+
+
+
+
+ USD
+
+
+
+
+
+
+
+
+
@@ -405,9 +465,16 @@ export default {
props: ['type'],
data() {
return {
+ finalFeeData:{
+
+ },
+ article_pay_info: {},
feeStatus: null,
isShowCommit: false,
+ tableData: [],
talkMsgs: [],
+ finalFeeVisible: false,
+ FeeVisible: false,
communVisible: false,
msgform: {
username: localStorage.getItem('U_name'),
@@ -444,8 +511,13 @@ export default {
// rongCont: 'Please upload the article file.'
// },
{
- name: 'Reference Conversion',
+ name: 'Article Processing Charge',
refName: 'setOneRef',
+ rongCont: ''
+ },
+ {
+ name: 'Reference Conversion',
+ refName: 'setTwoRef',
rongCont: 'Revise, check and complete the references of the manuscript.'
},
// {
@@ -455,7 +527,7 @@ export default {
// },
{
name: 'Text Proofread',
- refName: 'setTwoRef',
+ refName: 'setThreeRef',
rongCont: 'HTML layout.'
}
// {
@@ -681,166 +753,22 @@ export default {
deAuthorYul: {},
deMesYul: {},
rules: {
- title: [
- {
- required: true,
- message: 'Please enter title',
- trigger: 'blur'
- }
- ],
- npp: [
- {
- required: true,
- message: 'Please enter page',
- trigger: 'blur'
- }
- ],
- journal_stage_id: [
- {
- required: true,
- message: 'Please select stage',
- trigger: 'blur'
- }
- ],
- type: [
- {
- required: true,
- message: 'Please select type',
- trigger: 'blur'
- }
- ],
- icon: [
- {
- required: true,
- message: 'Please select picture',
- trigger: 'blur'
- }
- ],
- abbr: [
- {
- required: true,
- message: 'Please enter abbr',
- trigger: 'blur'
- }
- ],
- tradition_tag: [
- {
- required: true,
- message: 'Please enter tradition tag',
- trigger: 'blur'
- }
- ],
- tradition: [
- {
- required: true,
- message: 'Please enter tradition',
- trigger: 'blur'
- }
- ],
- pubDate: [
- {
- required: true,
- message: 'Please select pubDate',
- trigger: 'blur'
- }
- ],
- doi: [
- {
- required: true,
- message: 'Please enter doi',
- trigger: 'blur'
- }
- ],
- abstract: [
- {
- required: true,
- message: 'Please enter abstract',
- trigger: 'blur'
- }
- ],
- keywords: [
- {
- required: true,
- message: 'Please enter keywords',
- trigger: 'blur'
- }
- ],
- fund: [
- {
- required: true,
- message: 'Please enter Fund',
- trigger: 'blur'
- }
- ],
- acknowledgment: [
- {
- required: true,
- message: 'Please enter acknowledgment',
- trigger: 'blur'
- }
- ],
- abbreviation: [
- {
- required: true,
- message: 'Please enter abbreviation',
- trigger: 'blur'
- }
- ],
- author_contribution: [
- {
- required: true,
- message: 'Please enter author contribution',
- trigger: 'blur'
- }
- ],
- pub_date: [
- {
- required: true,
- message: 'Please enter date',
- trigger: 'blur'
- }
- ],
- first_name: [
- {
- required: true,
- message: 'Please enter author name',
- trigger: 'blur'
- }
- ],
- last_name: [
- {
- required: true,
- message: 'Please enter author name',
- trigger: 'blur'
- }
- ],
- email: [
- {
- required: true,
- message: 'Please enter contact author email',
- trigger: 'blur'
- }
- ],
- author_country: [
- {
- required: true,
- message: 'Please select a country',
- trigger: 'blur'
- }
- ],
- organ_name: [
- {
- required: true,
- message: 'Please enter mechanism',
- trigger: 'blur'
- }
- ]
+ fee: [{
+ required: true,
+ message: 'Please enter the final price after discount',
+ trigger: 'blur'
+ }],
+ fee_remark: [{
+ required: true,
+ message: 'Please enter the discount description',
+ trigger: 'blur'
+ }],
}
};
},
created() {
this.opMedical = this.$commonJS.opMedicalList();
- this.getDetail();
+ this.getPreacceptPayment();
this.getHight();
window.addEventListener('resize', this.getHight);
// this.getData();
@@ -851,9 +779,64 @@ export default {
// this.getWorldPdf();
},
activated() {
- this.getDetail();
+ this.getPreacceptPayment();
},
methods: {
+ saveFinalFee(){
+ this.$refs.finalFee.validate((valid) => {
+ if (valid) {
+
+ const integerRegex = /^-?\d+$/;
+ if (!integerRegex.test(this.finalFeeData.fee)) {
+ this.$message.error('Please enter a valid integer for the final price after discount');
+ return false;
+ }
+
+ const load = this.$loading({
+ lock: true,
+ text: 'Loading...',
+ spinner: 'el-icon-loading',
+ background: 'rgba(0, 0, 0, 0.7)'
+ });
+ this.$api
+ .post('api/Order/changePrice', {
+ article_id: this.$route.query.id,
+ editor_id: localStorage.getItem('U_id'),
+ fee: Number(this.finalFeeData.fee).toFixed(2),
+ fee_remark: this.finalFeeData.fee_remark,
+ })
+ .then((res) => { load.close()
+
+ if(res.code==0){
+ this.finalFeeVisible=false
+ this.getPreacceptPayment()
+ }else{
+ this.$message.error(res.msg)
+ }
+
+ })
+ .catch((err) => {
+ load.close()
+ console.log(err);
+ });
+ }else{
+ return false
+ }
+ })
+ },
+ handleEditFee(){
+ this.finalFeeVisible = true;
+ this.finalFeeData={
+ fee:this.article_pay_info.fee?Number(this.article_pay_info.fee).toFixed(0):0,
+ fee_remark:this.article_pay_info.fee_remark
+ }
+
+
+ },
+
+ formatAmount(amount) {
+ return amount.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
+ },
talksave(val) {
this.msgform.ad_content = '';
this.getTalkList();
@@ -917,7 +900,7 @@ export default {
loading.close();
});
},
- getDetail() {
+ getPreacceptPayment() {
this.isShowCommit = false;
this.$api
.post('api/Preaccept/getPreacceptPayment', {
@@ -926,6 +909,28 @@ export default {
.then((res) => {
console.log('res at line 191:', res);
if (res.code == 0) {
+ this.article_pay_info = {
+ fee: res.data.article.fee,
+ is_buy: res.data.article.is_buy,
+ original_price: res.data.journal.fee,
+ fee_remark: res.data.article.fee_remark,
+ order: res.data.order,
+ paystation_fee: res.data.order&&res.data.order.paystation ? res.data.order.paystation.amount : '',
+ paystation_time: res.data.order&&res.data.order.paystation ? res.data.order.paystation.request_time : '',
+ paystation_currency: res.data.order&&res.data.order.paystation ? res.data.order.paystation.currency : ''
+ };
+
+ if (this.article_pay_info.is_buy == 1) {
+
+ if (this.article_pay_info.fee == 0) {
+ this.feeStatus = 2;
+ }else{
+ this.feeStatus = 1;
+ }
+ } else {
+ this.feeStatus = 0;
+ }
+this.tableData=[{...this.article_pay_info}]
this.feeStatus = res.data.state;
this.isShowCommit = res.data.state == 1 ? true : false;
console.log(this.isShowCommit);
@@ -2126,17 +2131,17 @@ export default {
.catch(() => {});
},
pushToProduce(detailMes) {
- if (!this.isShowCommit) {
- this.$message.error('The manuscript has not been paid, please contact the author promptly for payment');
- return false;
- }
+ // if (!this.isShowCommit) {
+ // this.$message.error('The manuscript has not been paid, please contact the author promptly for payment');
+ // return false;
+ // }
- this.$confirm(`Please confirm if you would like to push this article to the production stage?`, 'Prompt', {
- confirmButtonText: 'Yes',
- cancelButtonText: 'Cancle',
- type: 'warning'
- })
- .then(() => {
+ // this.$confirm(`Please confirm if you would like to push this article to the production stage?`, 'Prompt', {
+ // confirmButtonText: 'Yes',
+ // cancelButtonText: 'Cancle',
+ // type: 'warning'
+ // })
+ // .then(() => {
const load = this.$loading({
lock: true,
text: 'Loading...',
@@ -2150,13 +2155,13 @@ export default {
.then((res) => {
if (res.code == 0) {
load.close();
- this.$message.success('successed!');
- setTimeout(() => {
- localStorage.setItem('U_point', 2);
- this.$router.push({
- path: 'articleListEditor'
- });
- }, 1000);
+ // this.$message.success('successed!');
+ // setTimeout(() => {
+ // localStorage.setItem('U_point', 2);
+ // this.$router.push({
+ // path: 'articleListEditor'
+ // });
+ // }, 1000);
} else {
load.close();
this.$message.error(res.msg);
@@ -2166,8 +2171,8 @@ export default {
load.close();
this.$message.error(err);
});
- })
- .catch(() => {});
+ // })
+ // .catch(() => {});
},
// 点击开始上线显示
pushOnline(detailMes) {
@@ -2348,6 +2353,60 @@ export default {
.scroll-item {
margin: 0 30px 50px 276px;
}
+.payment_info_box {
+ margin-bottom: 10px;
+}
+.payment_info_box li {
+ list-style: none;
+ margin-top: 2px;
+}
+.payment_info {
+ color: #333;
+ font-size: 14px;
+}
+.payment_info .label {
+ color: #333;
+}
+.payment_info .price {
+ font-weight: 700;
+}
+.payment_info .remark {
+ /* color: #888; */
+}
+.payment_info .price {
+ color: #ff5000;
+ /* color: #888; */
+}
+.unpaid {
+ color: #f56c6c;
+ background: #fef0f0;
+ border-color: #fbc4c4;
+ font-size: 14px;
+ padding: 10px;
+ box-sizing: border-box;
+ margin: 0;
+}
+.paid {
+ color: #67c23a;
+ margin: 0;
+ background: #f0f9eb;
+ border-color: #c2e7b0;
+ color: #67c23a;
+ font-weight: bold;
+ font-size: 12px;
+ padding: 10px;
+ box-sizing: border-box;
+}
+::v-deep .box-card .el-table th {
+ background-color: #f0f0f0 !important;
+ /* border-top: 1px solid #b0b0b0 !important; */
+
+ color: #333 !important;
+}
+::v-deep .box-card .el-table td.el-table__cell,
+::v-deep .box-card .el-table th.el-table__cell.is-leaf {
+ /* border-bottom: 1px solid #b0b0b0 !important; */
+}