|
@@ -13,7 +13,7 @@
|
|
|
<el-step title="4.等供销商|外仓发货"></el-step>
|
|
|
<el-step title="5.已发货"></el-step>
|
|
|
</el-steps>
|
|
|
- <div class="other" v-else>{{ stepTypeName(orderValue.status) }}</div>
|
|
|
+ <div class="other" v-if="stepTypeName(orderValue.status)">{{ stepTypeName(orderValue.status) }}</div>
|
|
|
</div>
|
|
|
<el-collapse v-model="activeNames">
|
|
|
<el-collapse-item title="基本信息" name="1" class="add-order-item">
|
|
@@ -49,7 +49,7 @@
|
|
|
<el-collapse-item title="订单支付情况" name="4" class="add-order-item" v-if="orderValue.id">
|
|
|
<div class="pay-row" v-if="orderValue.status != 'Split' && orderValue.status != 'Merged' && orderValue.status != 'Cancelled'">
|
|
|
<el-button type="text" v-if="!orderValue.pays || orderValue.pays.length == 0">快速支付</el-button>
|
|
|
- <div class="add-pay-btn">
|
|
|
+ <div class="add-pay-btn" v-if="orderValue.status !== 'Delivering' && orderValue.status !== 'Sent'">
|
|
|
<el-button type="text" v-if="!showPay" @click="showPay = true">添加手工支付</el-button>
|
|
|
<el-button v-else icon="el-icon-close" size="mini" circle @click="showPay = false"></el-button>
|
|
|
</div>
|
|
@@ -64,7 +64,7 @@
|
|
|
<el-descriptions-item label="单号">{{item.outerPayId}}</el-descriptions-item>
|
|
|
<el-descriptions-item label="金额">{{item.amount}}</el-descriptions-item>
|
|
|
<el-descriptions-item label="支付日期">{{item.payDate}}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="状态">
|
|
|
+ <el-descriptions-item label="状态" v-if="orderValue.status !== 'Delivering' && orderValue.status !== 'Sent'">
|
|
|
<div class="payHandle" v-if="item.status == 'WaitConfirm'">
|
|
|
<span @click="payStatusHandle(item,'Confirmed')">审核通过</span>
|
|
|
<span @click="payStatusHandle(item,'Invalid')">作废</span>
|
|
@@ -80,7 +80,7 @@
|
|
|
</el-collapse-item>
|
|
|
<el-collapse-item title="商品订单" name="3" class="add-order-item">
|
|
|
<div class="addProductTool">
|
|
|
- <by-tool :propConfig="toolConfig" ref="tool"></by-tool>
|
|
|
+ <by-tool :propConfig="toolConfig" ref="tool" v-if="orderValue.status !== 'Delivering' && orderValue.status !== 'Sent'"></by-tool>
|
|
|
<div class="preferential">
|
|
|
<div class="pre-title">抵扣金额<i class="el-icon-info" title="支持输入数字和百分比。若输入百分比,将自动计算折扣金额=商品成交总金额*百分比(举例:打9折,请输入10%),
|
|
|
只在订单创建时计算一次,在订单创建后修改商品价格不会自动计算,运费不参与折扣。"></i>:</div>
|
|
@@ -197,7 +197,7 @@ export default class AddOrder extends Vue {
|
|
|
orderValue:any={}; //新增订单值
|
|
|
radioPay=1;
|
|
|
stepActive:number=0;
|
|
|
- stepCon=['WaitPay','WaitConfirm','WaitFConfirm','WaitOuterSent','Sent']
|
|
|
+ stepCon=['WaitPay','WaitConfirm','WaitFConfirm','WaitOuterSent','Sent','Delivering']
|
|
|
activeNames:Array<any> =['1','2','3','4','5','save'];
|
|
|
sourceFrom:any={
|
|
|
'ERP':'手工下单',
|
|
@@ -492,7 +492,7 @@ export default class AddOrder extends Vue {
|
|
|
}
|
|
|
},{
|
|
|
span:6,
|
|
|
- label:'电话',
|
|
|
+ label:'固定电话',
|
|
|
prop:'receiverPhone',
|
|
|
component:'by-input',
|
|
|
compConfig:{
|
|
@@ -1095,13 +1095,16 @@ export default class AddOrder extends Vue {
|
|
|
if(this.orderValue.status == 'Merged' || this.orderValue.status == 'Cancelled'){
|
|
|
(this.$refs.tool as any).setTool([]);
|
|
|
}else{
|
|
|
- (this.$refs.tool as any).setCustomTools([{
|
|
|
- name: '商品编辑', icon: 'el-icon-edit', event:{
|
|
|
- click:()=>{
|
|
|
- this.editProduct()
|
|
|
+ if(this.$refs.tool) {
|
|
|
+ (this.$refs.tool as any).setCustomTools([{
|
|
|
+ name: '商品编辑', icon: 'el-icon-edit', event:{
|
|
|
+ click:()=>{
|
|
|
+ this.editProduct()
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- }])
|
|
|
+ }])
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|
|
|
|
|
@@ -1286,6 +1289,13 @@ export default class AddOrder extends Vue {
|
|
|
}
|
|
|
//删除商品
|
|
|
deletaProduct(row:any){
|
|
|
+ if (this.orderValue.status == 'Delivering' || this.orderValue.status == 'Sent') {
|
|
|
+ this.$message({
|
|
|
+ message:'该订单已发货不能进行修改!',
|
|
|
+ type:'warning'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
let n = row.isGift == 1 ? '赠品' : '商品';
|
|
|
this.$confirm('此操作将删除'+n+'“'+row.name+'”, 是否继续?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
@@ -1531,7 +1541,7 @@ export default class AddOrder extends Vue {
|
|
|
width: 100%;
|
|
|
padding-bottom: 8px;
|
|
|
display: flex;
|
|
|
- justify-content: space-between;
|
|
|
+ justify-content: flex-end;
|
|
|
.preferential{
|
|
|
width: 240px;
|
|
|
flex-shrink: 0;
|