Browse Source

订单列表字段修改

clientSet-zq-1128
zq 5 days ago
parent
commit
91fb956256
  1. 19
      src/views/super/clientSet/headerPage.vue
  2. 27
      src/views/super/clientSet/mainTextPage.vue
  3. 4
      src/views/super/paiban/college.vue
  4. 70
      src/views/super/paiban/orderlist.vue

19
src/views/super/clientSet/headerPage.vue

@ -6,7 +6,7 @@
:fontDetailflag="true" :showIndentation="false" :fontWeightflag="false" @cancel="(data) => handleCancelEvent(data, 'oneLevel')" :fontDetailflag="true" :showIndentation="false" :fontWeightflag="false" @cancel="(data) => handleCancelEvent(data, 'oneLevel')"
@submit="(data) => handleSubmitEvent(data, 'oneLevel')" /> @submit="(data) => handleSubmitEvent(data, 'oneLevel')" />
<ClientForm ref="twoLevelRef" title="页码" :fontDetailflag="true" :lineSpaceShow="false" :showIndentation="false" <ClientForm ref="twoLevelRef" title="页码" :fontDetailflag="true" :lineSpaceShow="false" :showIndentation="false"
:init-data="twoFormData" @cancel="(data) => handleCancelEvent(data, 'twoLevel')" :outputStructure="['page_number','content']" :init-data="twoFormData" @cancel="(data) => handleCancelEvent(data, 'twoLevel')" :outputStructure="['page_number','title']"
@submit="(data) => handleSubmitEvent(data, 'twoLevel')" /> @submit="(data) => handleSubmitEvent(data, 'twoLevel')" />
</div> </div>
<div class="flex-between mt12 flex-common" id="headerTwo"> <div class="flex-between mt12 flex-common" id="headerTwo">
@ -31,28 +31,19 @@ export default {
}, },
data() { data() {
return { return {
oneFormData: {
fontSize: '12',
align: 1,
},
twoFormData: {
fontSize: '12',
align: 1,
},
}; };
}, },
mounted() { mounted() {
// this.getHeaderInfo();
}, },
computed: { computed: {
...mapState(['client_tpl_config']), ...mapState(['client_tpl_config']),
// //
level1HeadingData() { oneFormData() {
return this.getDynamicDataSafe(['text', 'content']); return this.getDynamicDataSafe(['page_number', 'content']);
}, },
level2HeadingData() { twoFormData() {
return this.getDynamicDataSafe(['text', 'content']); return this.getDynamicDataSafe(['page_number', 'title']);
}, },
pageMarginData() { pageMarginData() {
console.log(this.getDynamicDataSafe(['page_margin']),'===00099'); console.log(this.getDynamicDataSafe(['page_margin']),'===00099');

27
src/views/super/clientSet/mainTextPage.vue

@ -4,17 +4,17 @@
<div class="flex-between flex-common" id="mainTextTitle"> <div class="flex-between flex-common" id="mainTextTitle">
<ClientForm ref="level_1_heading" title="一级标题" :key="time" :init-data="level1HeadingData" <ClientForm ref="level_1_heading" title="一级标题" :key="time" :init-data="level1HeadingData"
:fontDetailflag="true" @cancel="(data) => handleCancelEvent(data, 'level_1_heading')" :fontDetailflag="true" @cancel="(data) => handleCancelEvent(data, 'level_1_heading')"
:outputStructure="['text','content','level_1_heading']" :outputStructure="['title','content','level_1_heading']"
@submit="(data) => handleSubmitEvent(data, 'level_1_heading')" /> @submit="(data) => handleSubmitEvent(data, 'level_1_heading')" />
<ClientForm ref="level_2_heading" title="二级标题" :fontDetailflag="true" <ClientForm ref="level_2_heading" title="二级标题" :fontDetailflag="true"
:init-data="level2HeadingData" @cancel="(data) => handleCancelEvent(data, 'level_2_heading')" :init-data="level2HeadingData" @cancel="(data) => handleCancelEvent(data, 'level_2_heading')"
:outputStructure="['text','content','level_2_heading']" :outputStructure="['title','content','level_2_heading']"
@submit="(data) => handleSubmitEvent(data, 'level_2_heading')" /> @submit="(data) => handleSubmitEvent(data, 'level_2_heading')" />
</div> </div>
<div class="flex-between flex-common mt12" id=""> <div class="flex-between flex-common mt12" id="">
<ClientForm ref="level_3_heading" title="三级标题" :fontDetailflag="true" <ClientForm ref="level_3_heading" title="三级标题" :fontDetailflag="true"
:init-data="level3HeadingData" @cancel="(data) => handleCancelEvent(data, 'level_3_heading')" :init-data="level3HeadingData" @cancel="(data) => handleCancelEvent(data, 'level_3_heading')"
:outputStructure="['text','content','level_3_heading']" :outputStructure="['title','content','level_3_heading']"
@submit="(data) => handleSubmitEvent(data, 'level_3_heading')" /> @submit="(data) => handleSubmitEvent(data, 'level_3_heading')" />
</div> </div>
<div class="flex-between flex-common mt12" id="mainTextContent"> <div class="flex-between flex-common mt12" id="mainTextContent">
@ -59,33 +59,18 @@ export default {
time:Date.now(), time:Date.now(),
}; };
}, },
watch: {
// client_tpl_config: {
// immediate: true,
// deep: true,
// handler(config) {
// if (config?.text?.content) {
// this.oneFormData.font = config.text.content.level_1_heading.font || '';
// this.oneFormData.alignment = config.text.content.level_1_heading.alignment || '';
// this.oneFormData.indentation = config.text.content.level_1_heading.indentation || '';
// this.oneFormData.spacing = config.text.content.level_1_heading.spacing || '';
// this.time = Date.now();
// }
// }
// }
},
computed: { computed: {
...mapState(['client_tpl_review_status','client_tpl_type','client_tpl_id','client_tpl_config']), ...mapState(['client_tpl_review_status','client_tpl_type','client_tpl_id','client_tpl_config']),
// //
level1HeadingData() { level1HeadingData() {
return this.getDynamicDataSafe(['text', 'content', 'level_1_heading']); return this.getDynamicDataSafe(['title', 'content', 'level_1_heading']);
}, },
level2HeadingData() { level2HeadingData() {
return this.getDynamicDataSafe(['text', 'content', 'level_2_heading']); return this.getDynamicDataSafe(['title', 'content', 'level_2_heading']);
}, },
level3HeadingData() { level3HeadingData() {
return this.getDynamicDataSafe(['text', 'content', 'level_3_heading']); return this.getDynamicDataSafe(['title', 'content', 'level_3_heading']);
}, },
// //

4
src/views/super/paiban/college.vue

@ -262,9 +262,9 @@ export default {
handleLunwen(id,type){ handleLunwen(id,type){
// this.refuse_id = row.id // this.refuse_id = row.id
let url = 'supernew/down_paiban_template_require?template_id=' let url = '/supernew/down_paiban_template_require?template_id='
if(type == 1){ if(type == 1){
url = 'supernew/down_paiban_template_paper?template_id=' url = '/supernew/down_paiban_template_paper?template_id='
} }
window.open(url+id) window.open(url+id)

70
src/views/super/paiban/orderlist.vue

@ -5,15 +5,21 @@
<div class="flex-between filter-area"> <div class="flex-between filter-area">
<label for="">订单管理</label> <label for="">订单管理</label>
<div class="flex gap12"> <div class="flex gap12">
<GuipSelect ref="GuipSelect" label="订单状态" placeholder="请选择订单状态" v-model="status"/>
<GuipInput ref="GuipInput" label="订单号" placeholder="请输入订单号" v-model="orderId" width="280px"/> <GuipInput ref="GuipInput" label="订单号" placeholder="请输入订单号" v-model="orderId" width="280px"/>
<GuipButton type="system">搜索</GuipButton> <GuipButton type="system">搜索</GuipButton>
</div> </div>
</div> </div>
<GuipTable :tableData="tableList" :key="tableKey" ref="multipleTable" autoColumn="true" :loading="tableLoading" style="flex:1"> <GuipTable :tableData="tableList" :key="tableKey" ref="multipleTable" autoColumn="true" :loading="tableLoading" style="flex:1">
<template> <template>
<el-table-column fixed="left" prop="school_name" label="ID" min-width="150"></el-table-column> <el-table-column fixed="left" prop="sale_id" label="ID" min-width="150"></el-table-column>
<el-table-column prop="degree_name" label="订单号" min-width="200"></el-table-column> <el-table-column prop="degree_name" label="订单号" min-width="200">
<el-table-column prop="college_name" label="支付方式" min-width="100"></el-table-column> <template slot-scope="scope">
<div class="flex" v-for="item in scope.row.tids" :key="item">
{{ item }}
</div>
</template>
</el-table-column>
<el-table-column prop="src" label="渠道" min-width="100"> <el-table-column prop="src" label="渠道" min-width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="flex"> <div class="flex">
@ -23,10 +29,17 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="review_status_desc" label="IP" min-width="200"></el-table-column> <el-table-column prop="pay_type" label="支付方式" min-width="100"></el-table-column>
<el-table-column prop="review_status_desc" label="销售时间" min-width="200"></el-table-column> <el-table-column prop="agent_nick" label="代理商昵称" min-width="100"></el-table-column>
<el-table-column prop="review_status_desc" label="订单收入" min-width="200"></el-table-column> <el-table-column prop="school_name" label="学校" min-width="100"></el-table-column>
<el-table-column prop="status_desc" label="状态" min-width="200"> <el-table-column prop="degree_name" label="学历" min-width="100"></el-table-column>
<el-table-column prop="college_name" label="学院" min-width="100"></el-table-column>
<el-table-column prop="income" label="订单收入" min-width="100"></el-table-column>
<el-table-column prop="page_number" label="页数" min-width="60"></el-table-column>
<el-table-column prop="finish_time" label="上传/完成时间" min-width="200"></el-table-column>
<el-table-column prop="pay_time" label="支付时间" min-width="200"></el-table-column>
<el-table-column prop="ip" label="IP" min-width="200"></el-table-column>
<el-table-column fixed="right" prop="status_desc" label="状态" min-width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="flex"> <div class="flex">
<div v-if="scope.row.status == 1" class="status-item divgreen"> <div v-if="scope.row.status == 1" class="status-item divgreen">
@ -58,16 +71,19 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="status_desc" label="原论文" min-width="200"> <el-table-column fixed="right" prop="status_desc" label="原论文" min-width="90">
<template slot-scope="scope"> <template slot-scope="scope">
<img src="@/assets/order_down.svg" @click="downLunwen(scope.row.id)" alt=""> <img src="@/assets/order_down.svg" @click="downLunwen(scope.row.id)" alt="">
</template> </template>
</el-table-column> </el-table-column>
<el-table-column fixed="right" prop="tid" label="操作" min-width="100"> <el-table-column fixed="right" prop="tid" label="操作" min-width="280">
<template slot-scope="scope"> <template slot-scope="scope">
<GuipButton type="text" @click="handleShowInfo(scope.row.tid)">下载结果</GuipButton> <div class="flex gap12">
<GuipButton type="text" v-if="false" @click="handleShowInfo(scope.row.tid)">重新生成</GuipButton> <span class="resetBtn" @click="handleShowInfo(scope.row.tid)">重新提取</span>
<span class="resetBtn" @click="handleShowInfo(scope.row.tid)">重新排版</span>
<GuipButton type="text" @click="downLoadInfo(scope.row.tid)">下载</GuipButton>
</div>
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
@ -83,6 +99,7 @@
import GuipButton from "@/components/GuipButton.vue"; import GuipButton from "@/components/GuipButton.vue";
import GuipSelect from "@/components/GuipSelect.vue";
import GuipTable from "@/components/GuipTable.vue"; import GuipTable from "@/components/GuipTable.vue";
import GuipInput from "@/components/GuipInput.vue"; import GuipInput from "@/components/GuipInput.vue";
import GuipToolTip from "@/components/GuipToolTip.vue"; import GuipToolTip from "@/components/GuipToolTip.vue";
@ -93,11 +110,13 @@ export default {
GuipInput, GuipInput,
GuipTable, GuipTable,
GuipButton, GuipButton,
GuipSelect
}, },
options: { styleIsolation: "shared" }, options: { styleIsolation: "shared" },
data() { data() {
return { return {
status: '',
tableLoading:false, tableLoading:false,
tableKey: '', tableKey: '',
orderId:'', orderId:'',
@ -142,7 +161,7 @@ export default {
pagesize: this.pageSize pagesize: this.pageSize
}).then(response => { }).then(response => {
this.$nextTick(() => { this.$nextTick(() => {
this.tableList = response.data.list this.tableList = Object.values(response.data.list)
this.total = response.data.count this.total = response.data.count
}) })
}).catch(error => { }).catch(error => {
@ -154,8 +173,26 @@ export default {
}, },
downLunwen(id){ downLunwen(id){
try { try {
this.$http('POST', '/supernew/down_paiban_template_paper', { this.$http('GET', `supernew/down_paiban_template_paper?template_id=${id}`, {
template_id:id }).then(response => {
},{
headers: {
'Content-Type':'multipart/form-data'
}
}).then(response => {
console.log(response,'===000');
}).catch(error => {
console.error(error, 'error')
})
} catch (error) {
console.error('数据加载失败:', error)
}
},
downLoadInfo(tid){
try {
this.$http('POST', '/supernew/down_paiban_template_require', {
template_id:tid
}).then(response => {
this.$nextTick(() => { this.$nextTick(() => {
this.tableList = response.data.list this.tableList = response.data.list
this.total = response.data.count this.total = response.data.count
@ -164,7 +201,7 @@ export default {
console.error(error, 'error') console.error(error, 'error')
}) })
} catch (error) { } catch (error) {
console.error('数据加载失败:', error) console.error('数据加载')
} }
}, },
handleSizeChange(val) { handleSizeChange(val) {
@ -196,6 +233,9 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.resetBtn{
color: #8A9099;
}
::v-deep .el-form-item{ ::v-deep .el-form-item{
margin: 0; margin: 0;
} }

Loading…
Cancel
Save