提交 bbef9b77 编写于 作者: bo.dang's avatar bo.dang

Merge branch 'dev-20210528' into 'release'

Dev 20210528,code review:bo.dang

See merge request com.pica.cloud.education.frontend/pica.cloud.web-education-admin!263
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
</div> </div>
</template> </template>
<script> <script>
// import { openLoading, closeLoading } from "../../utils/utils"; import { openLoading, closeLoading } from "../../utils/utils";
import ChangeInfo from "./change-info"; import ChangeInfo from "./change-info";
import { checkMobile } from '@/utils/patients/checkValid'; import { checkMobile } from '@/utils/patients/checkValid';
import { updateExpress } from "@/utils/shop"; import { updateExpress } from "@/utils/shop";
...@@ -167,12 +167,19 @@ ...@@ -167,12 +167,19 @@
if (para.orderNo) { if (para.orderNo) {
para.id = para.orderNo; para.id = para.orderNo;
} }
openLoading(this);
updateExpress(para).then(res => { updateExpress(para).then(res => {
closeLoading(this);
if (res.code == '000000') { if (res.code == '000000') {
this.$message.success('操作成功') this.$message.success('操作成功')
this.$refs.sendSetForm.resetFields(); this.$refs.sendSetForm.resetFields();
this.sendSetForm.remark = ''; this.sendSetForm.remark = '';
this.$emit('closeSendSet',{type: 2}) // this.$emit('closeSendSet',{type: 2})
let timeoutId = null
timeoutId && clearTimeout(timeoutId)
timeoutId = setTimeout(() => {
this.close()
}, 500)
}else { }else {
this.$message.error(res.message); this.$message.error(res.message);
} }
...@@ -183,6 +190,11 @@ ...@@ -183,6 +190,11 @@
}) })
}, },
close(){
this.$emit('closeSendSet',{type: 2})
},
//修改买家收货信息 //修改买家收货信息
changeInfo() { changeInfo() {
this.showChangeInfo = true; this.showChangeInfo = true;
......
...@@ -812,6 +812,7 @@ ...@@ -812,6 +812,7 @@
goodsId: 0, // 新增时传0,更新时必需>0 goodsId: 0, // 新增时传0,更新时必需>0
goodsType: '', goodsType: '',
storeId: '', storeId: '',
commissionFlag: 2,
// 不同类型服务的表单通用字段 // 不同类型服务的表单通用字段
// 不同类型服务的表单通用字段 // 不同类型服务的表单通用字段
// 不同类型服务的表单通用字段 // 不同类型服务的表单通用字段
...@@ -842,10 +843,11 @@ ...@@ -842,10 +843,11 @@
}, },
created() { created() {
vm = this; vm = this;
const { id, storeId, goodsType, inputType } = this.$route.query; const { id, storeId, goodsType, inputType, commissionFlag} = this.$route.query;
this.goodsType = goodsType; this.goodsType = goodsType;
this.storeId = storeId; this.storeId = storeId;
this.inputType = inputType || ''; this.inputType = inputType || '';
this.commissionFlag = commissionFlag;
// this.formData = originForm; // this.formData = originForm;
// this.formData1 = originForm1; // this.formData1 = originForm1;
// this.formData2 = originForm2; // this.formData2 = originForm2;
...@@ -854,7 +856,7 @@ ...@@ -854,7 +856,7 @@
this.rules2 = originRules2; this.rules2 = originRules2;
// this.rules2.barCode = originRules.barCode; // this.rules2.barCode = originRules.barCode;
this.jumPathThird = '/goods-manage?storeId='+storeId this.jumPathThird = '/goods-manage?storeId=' + storeId +'&commissionFlag=' + this.commissionFlag;
//this.jumPathThird = '/create-good?id=add&storeId=46' //this.jumPathThird = '/create-good?id=add&storeId=46'
this.title = id == 'add' ? '新增商品' : '编辑商品'; this.title = id == 'add' ? '新增商品' : '编辑商品';
this.isEdit = id != 'add'; this.isEdit = id != 'add';
...@@ -1295,6 +1297,7 @@ ...@@ -1295,6 +1297,7 @@
path: '/goods-manage', path: '/goods-manage',
query: { query: {
storeId: this.formData.storeId, storeId: this.formData.storeId,
commissionFlag: this.commissionFlag
} }
}) })
}) })
......
此差异已折叠。
...@@ -56,6 +56,7 @@ ...@@ -56,6 +56,7 @@
<span>{{ scope.row.amount | toFixed2}}</span> <span>{{ scope.row.amount | toFixed2}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="prescriberName" label="创建人" min-width="100" align="center"></el-table-column>
<el-table-column prop="receiver" label="买家" min-width="100" align="center"></el-table-column> <el-table-column prop="receiver" label="买家" min-width="100" align="center"></el-table-column>
<el-table-column prop="goodsQuantityList" label="数量" min-width="100" align="center"> <el-table-column prop="goodsQuantityList" label="数量" min-width="100" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -86,6 +87,7 @@ ...@@ -86,6 +87,7 @@
<div> <div>
<!--<el-button @click="closeTrade(scope.row)" type="text" size="small">关闭交易</el-button>--> <!--<el-button @click="closeTrade(scope.row)" type="text" size="small">关闭交易</el-button>-->
<!--<el-button @click="changePrice(scope.row)" type="text" size="small">修改价格</el-button>--> <!--<el-button @click="changePrice(scope.row)" type="text" size="small">修改价格</el-button>-->
<!-- <el-button @click="sendGoods(scope.row)" type="text" size="small">发货</el-button>-->
<el-button v-if="scope.row.storeType == 1 && scope.row.showStatus == 3 && scope.row.refundStatus == 0" @click="sendGoods(scope.row)" type="text" size="small">发货</el-button> <el-button v-if="scope.row.storeType == 1 && scope.row.showStatus == 3 && scope.row.refundStatus == 0" @click="sendGoods(scope.row)" type="text" size="small">发货</el-button>
<el-button v-if="scope.row.storeType == 2 && scope.row.showStatus == 3 && scope.row.refundStatus == 0" @click="distribute(scope.row)" type="text" size="small">配送</el-button> <el-button v-if="scope.row.storeType == 2 && scope.row.showStatus == 3 && scope.row.refundStatus == 0" @click="distribute(scope.row)" type="text" size="small">配送</el-button>
<el-button v-if="scope.row.storeType == 1 && (scope.row.showStatus == 1 || scope.row.showStatus == 2)" @click="viewLogistics(scope.row)" type="text" size="small">查看物流</el-button> <el-button v-if="scope.row.storeType == 1 && (scope.row.showStatus == 1 || scope.row.showStatus == 2)" @click="viewLogistics(scope.row)" type="text" size="small">查看物流</el-button>
...@@ -245,7 +247,7 @@ ...@@ -245,7 +247,7 @@
</div> </div>
</template> </template>
<script> <script>
// import { openLoading, closeLoading } from "../../utils/utils"; import { openLoading, closeLoading } from "../../utils/utils";
import BreadCrumb from "@/components/breadcrumb.vue"; import BreadCrumb from "@/components/breadcrumb.vue";
import SendSetDialog from "@/components/shop/send-set-dialog"; import SendSetDialog from "@/components/shop/send-set-dialog";
import { getOrdersExportUrl } from "@/utils/yqrange/yqrangeApi"; import { getOrdersExportUrl } from "@/utils/yqrange/yqrangeApi";
...@@ -342,14 +344,19 @@ ...@@ -342,14 +344,19 @@
}, },
methods: { methods: {
searchList(){ searchList(){
console.log("searchList搜索开始")
openLoading(this);
queryOrderList(this.searchForm).then(res => { queryOrderList(this.searchForm).then(res => {
closeLoading(this);
if (res.code == '000000') { if (res.code == '000000') {
console.log("searchList搜索结束")
this.tableData = res.data.orderSingleDtoList; this.tableData = res.data.orderSingleDtoList;
this.totalRows = res.data.totalNum; this.totalRows = res.data.totalNum;
} }
}) })
}, },
resetForm() { resetForm() {
console.log("resetForm重置")
this.activeName = 'all'; this.activeName = 'all';
this.searchForm = { this.searchForm = {
showStatus: -1, showStatus: -1,
...@@ -417,8 +424,10 @@ ...@@ -417,8 +424,10 @@
this.sendSetForm = row; this.sendSetForm = row;
}, },
closeSendSet(val) { closeSendSet(val) {
console.log("关闭,val.type:" + val.type);
//保存操作 //保存操作
if (val.type == 2) { if (val.type == 2) {
console.log("刷新列表resetForm");
this.resetForm();//更新列表 this.resetForm();//更新列表
} }
this.sendGoodsDialog = false; this.sendGoodsDialog = false;
......
此差异已折叠。
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册