售后代码生成配置

This commit is contained in:
Aaron
2021-06-30 14:57:21 +08:00
parent 0c4966130f
commit fd6b93df8f
5 changed files with 104 additions and 60 deletions

View File

@ -1,7 +1,8 @@
ENV = 'development' ENV = 'development'
# 接口地址 # 接口地址
VUE_APP_BASE_API = 'http://8.129.208.109:8001' # VUE_APP_BASE_API = 'http://8.129.208.109:8001'
VUE_APP_BASE_API = 'http://www.itxzz.top'
VUE_APP_WS_API = 'ws://8.129.208.109:8001' VUE_APP_WS_API = 'ws://8.129.208.109:8001'

View File

@ -21,7 +21,12 @@
</crudOperation> </crudOperation>
</div> </div>
<!--表格渲染--> <!--表格渲染-->
<el-table ref="table" v-loading="crud.loading" :data="crud.data" style="width: 100%;" @selection-change="crud.selectionChangeHandler"> <el-table
ref="table"
v-loading="crud.loading"
:data="crud.data"
style="width: 100%;"
@selection-change="crud.selectionChangeHandler">
<el-table-column type="selection" width="55" /> <el-table-column type="selection" width="55" />
<el-table-column v-if="columns.visible('tableName')" :show-overflow-tooltip="true" prop="tableName" label="表名" /> <el-table-column v-if="columns.visible('tableName')" :show-overflow-tooltip="true" prop="tableName" label="表名" />
<el-table-column v-if="columns.visible('engine')" :show-overflow-tooltip="true" prop="engine" label="数据库引擎" /> <el-table-column v-if="columns.visible('engine')" :show-overflow-tooltip="true" prop="engine" label="数据库引擎" />
@ -29,7 +34,8 @@
<el-table-column v-if="columns.visible('remark')" :show-overflow-tooltip="true" prop="remark" label="备注" /> <el-table-column v-if="columns.visible('remark')" :show-overflow-tooltip="true" prop="remark" label="备注" />
<el-table-column v-if="columns.visible('createTime')" prop="createTime" label="创建日期"> <el-table-column v-if="columns.visible('createTime')" prop="createTime" label="创建日期">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.createTime) }}</span> <!-- <span>{{ parseTime(scope.row.createTime) }}</span> -->
<span>{{ scope.row.createTime }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" width="160px" align="center" fixed="right"> <el-table-column label="操作" width="160px" align="center" fixed="right">

View File

@ -265,39 +265,39 @@
:description="item.acceptTime"></el-step> :description="item.acceptTime"></el-step>
</el-steps> </el-steps>
</el-dialog> </el-dialog>
<!-- <el-dialog title="修改收货人信息"--> <!-- <el-dialog title="修改收货人信息"
<!-- :visible.sync="receiverDialogVisible"--> :visible.sync="receiverDialogVisible"
<!-- width="40%">--> width="40%">
<!-- <el-form :model="receiverInfo"--> <el-form :model="receiverInfo"
<!-- ref="receiverInfoForm"--> ref="receiverInfoForm"
<!-- label-width="150px">--> label-width="150px">
<!-- <el-form-item label="收货人姓名:">--> <el-form-item label="收货人姓名:">
<!-- <el-input v-model="receiverInfo.receiverName" style="width: 200px"></el-input>--> <el-input v-model="receiverInfo.receiverName" style="width: 200px"></el-input>
<!-- </el-form-item>--> </el-form-item>
<!-- <el-form-item label="手机号码:">--> <el-form-item label="手机号码:">
<!-- <el-input v-model="receiverInfo.receiverPhone" style="width: 200px">--> <el-input v-model="receiverInfo.receiverPhone" style="width: 200px">
<!-- </el-input>--> </el-input>
<!-- </el-form-item>--> </el-form-item>
<!-- <el-form-item label="邮政编码:">--> <el-form-item label="邮政编码:">
<!-- <el-input v-model="receiverInfo.receiverPostCode" style="width: 200px">--> <el-input v-model="receiverInfo.receiverPostCode" style="width: 200px">
<!-- </el-input>--> </el-input>
<!-- </el-form-item>--> </el-form-item>
<!-- <el-form-item label="所在区域:">--> <el-form-item label="所在区域:">
<!-- <v-distpicker :province="receiverInfo.receiverProvince"--> <v-distpicker :province="receiverInfo.receiverProvince"
<!-- :city="receiverInfo.receiverCity"--> :city="receiverInfo.receiverCity"
<!-- :area="receiverInfo.receiverRegion"--> :area="receiverInfo.receiverRegion"
<!-- @selected="onSelectRegion"></v-distpicker>--> @selected="onSelectRegion"></v-distpicker>
<!-- </el-form-item>--> </el-form-item>
<!-- <el-form-item label="详细地址:">--> <el-form-item label="详细地址:">
<!-- <el-input v-model="receiverInfo.receiverDetailAddress" type="textarea" rows="3">--> <el-input v-model="receiverInfo.receiverDetailAddress" type="textarea" rows="3">
<!-- </el-input>--> </el-input>
<!-- </el-form-item>--> </el-form-item>
<!-- </el-form>--> </el-form>
<!-- <span slot="footer" class="dialog-footer">--> <span slot="footer" class="dialog-footer">
<!-- <el-button @click="receiverDialogVisible = false"> </el-button>--> <el-button @click="receiverDialogVisible = false"> </el-button>
<!-- <el-button type="primary" @click="handleUpdateReceiverInfo"> </el-button>--> <el-button type="primary" @click="handleUpdateReceiverInfo"> </el-button>
<!-- </span>--> </span>
<!-- </el-dialog>--> </el-dialog> -->
<!-- <el-dialog title="修改费用信息" <!-- <el-dialog title="修改费用信息"
:visible.sync="moneyDialogVisible" :visible.sync="moneyDialogVisible"
width="80%"> width="80%">
@ -766,9 +766,8 @@ import eRemark from './remark'
} }
express(params).then(res=>{ express(params).then(res=>{
console.log(res,89888)
this.expressInfo = res.Traces this.expressInfo = res.Traces
this.kuaidiDialogVisible=true; this.kuaidiDialogVisible = true;
this.logisticsList = this.expressInfo this.logisticsList = this.expressInfo
}).catch(err => { }).catch(err => {
}) })
@ -784,9 +783,9 @@ import eRemark from './remark'
}); });
}, },
onSelectRegion(data){ onSelectRegion(data){
this.receiverInfo.receiverProvince=data.province.value; this.receiverInfo.receiverProvince = data.province.value;
this.receiverInfo.receiverCity=data.city.value; this.receiverInfo.receiverCity = data.city.value;
this.receiverInfo.receiverRegion=data.area.value; this.receiverInfo.receiverRegion = data.area.value;
}, },
formatTime(time) { formatTime(time) {
if (time == null || time === '') { if (time == null || time === '') {
@ -925,6 +924,7 @@ import eRemark from './remark'
this.markInfo.id=this.id; this.markInfo.id=this.id;
this.order.remark=null; this.order.remark=null;
}, },
// 备注订单
handleMarkOrder(){ handleMarkOrder(){
this.$confirm('是否要备注订单?', '提示', { this.$confirm('是否要备注订单?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
@ -968,8 +968,8 @@ import eRemark from './remark'
showLogisticsDialog(){ showLogisticsDialog(){
this.express(); this.express();
}, //获取当前订单状态 },
//获取当前订单状态
getNowOrderStatus() { getNowOrderStatus() {
let id = this.$route.params.id || 0; let id = this.$route.params.id || 0;

View File

@ -67,7 +67,8 @@
</div> </div>
<!--表单组件--> <!--表单组件-->
<eForm ref="form" :is-add="isAdd" /> <eForm ref="form" :is-add="isAdd" />
<eDetail ref="form1" :is-add="isAdd" /> <!-- <eDetail ref="form1" :is-add="isAdd" /> -->
<!-- <eDetail ref="form1" :is-add="isAdd" /> -->
<eRefund ref="form2" :is-add="isAdd" /> <eRefund ref="form2" :is-add="isAdd" />
<editOrder ref="form3" :is-add="isAdd" /> <editOrder ref="form3" :is-add="isAdd" />
<eRemark ref="form4" :is-add="isAdd" /> <eRemark ref="form4" :is-add="isAdd" />
@ -97,23 +98,43 @@
</el-table-column> </el-table-column>
<el-table-column prop="cartInfoList" width="300" label="商品信息"> <el-table-column prop="cartInfoList" width="300" label="商品信息">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-for="(item,index) in scope.row.cartInfoList" v-if="item.cartInfoMap.productInfo.attrInfo"> <!-- <div v-for="(item,index) in scope.row.cartInfoList"
<span> :key="index"
<img v-if="item.cartInfoMap.productInfo.attrInfo">
style="width: 30px;height: 30px;margin:0;cursor: pointer;" <span>
:src="item.cartInfoMap.productInfo.attrInfo.image" <img style="width: 30px;height: 30px;margin:0;cursor: pointer;"
> :src="item.cartInfoMap.productInfo.attrInfo.image"
</span> >
</span>
<span>{{ item.cartInfoMap.productInfo.storeName }}&nbsp;{{ item.cartInfoMap.productInfo.attrInfo.suk }}</span> <span>{{ item.cartInfoMap.productInfo.storeName }}&nbsp;{{ item.cartInfoMap.productInfo.attrInfo.suk }}</span>
<span> | ¥{{ item.cartInfoMap.truePrice }}×{{ item.cartInfoMap.cartNum }}</span> <span> | ¥{{ item.cartInfoMap.truePrice }}×{{ item.cartInfoMap.cartNum }}</span>
</div> </div>
<div v-else> <div v-else>
<span><img <span>
style="width: 30px;height: 30px;margin:0;cursor: pointer;" <img
:src="item.cartInfoMap.productInfo.image" style="width: 30px;height: 30px;margin:0;cursor: pointer;"
></span> :src="item.cartInfoMap.productInfo.image">
</span>
<span>{{ item.cartInfoMap.productInfo.storeName }}</span> <span>{{ item.cartInfoMap.productInfo.storeName }}</span>
<span> | ¥{{ item.cartInfoMap.truePrice }}×{{ item.cartInfoMap.cartNum }}</span> <span> | ¥{{ item.cartInfoMap.truePrice }}×{{ item.cartInfoMap.cartNum }}</span>
</div> -->
<div v-for="(item,index) in scope.row.cartInfoList"
:key="index">
<span v-if="item.cartInfoMap.productInfo.attrInfo">
<img style="width: 30px;height: 30px;margin:0;cursor: pointer;"
:src="item.cartInfoMap.productInfo.attrInfo.image"
>
</span>
<span v-else>
<img
style="width: 30px;height: 30px;margin:0;cursor: pointer;"
:src="item.cartInfoMap.productInfo.image">
</span>
<span>
{{ item.cartInfoMap.productInfo.storeName }}
<span v-if="item.cartInfoMap.productInfo.attrInfo">&nbsp;{{ item.cartInfoMap.productInfo.attrInfo.suk }}</span>
</span>
<span> | {{ item.cartInfoMap.truePrice }}×{{ item.cartInfoMap.cartNum }}</span>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
@ -238,8 +259,7 @@
style="margin-top: 8px;" style="margin-top: 8px;"
layout="total, prev, pager, next, sizes" layout="total, prev, pager, next, sizes"
@size-change="sizeChange" @size-change="sizeChange"
@current-change="pageChange" @current-change="pageChange" />
/>
</el-footer> </el-footer>
</div> </div>
</template> </template>
@ -262,7 +282,15 @@
mixins: [initData], mixins: [initData],
data() { data() {
return { return {
delLoading: false, status: '-9', orderType: '0',createTime: '', checkList: [], printChecked: false, batchHandle: '', batchExport: '', listContent: [], delLoading: false,
status: '-9',
orderType: '0',
createTime: '',
checkList: [],
printChecked: false,
batchHandle: '',
batchExport: '',
listContent: [],
queryTypeOptions: [ queryTypeOptions: [
{ key: 'orderId', display_name: '订单号' }, { key: 'orderId', display_name: '订单号' },
{ key: 'realName', display_name: '用户姓名' }, { key: 'realName', display_name: '用户姓名' },
@ -323,7 +351,15 @@
beforeInit() { beforeInit() {
this.url = 'api/yxStoreOrder' this.url = 'api/yxStoreOrder'
const sort = 'id,desc' const sort = 'id,desc'
this.params = { page: this.page, size: this.size, sort: sort, orderStatus: this.status, orderType: this.orderType, createTime: this.createTime, listContent: this.listContent } this.params = {
page: this.page,
size: this.size,
sort: sort,
orderStatus: this.status,
orderType: this.orderType,
createTime: this.createTime,
listContent: this.listContent
}
const query = this.query const query = this.query
const type = query.type const type = query.type
const value = query.value const value = query.value
@ -701,6 +737,7 @@
this.$refs.multipleTable.clearSelection(); this.$refs.multipleTable.clearSelection();
} }
}, },
// 导出选中
handlePrintOption(val){ handlePrintOption(val){
switch (val) { switch (val) {
case '0': case '0':

View File

@ -17,7 +17,7 @@ module.exports = {
productionSourceMap: false, productionSourceMap: false,
devServer: { devServer: {
port: port, port: port,
open: true, open: false,
overlay: { overlay: {
warnings: false, warnings: false,
errors: true errors: true