|
@@ -51,7 +51,7 @@
|
|
<el-collapse-item title="发票信息" name="5" class="add-order-item" v-if="orderValue.id">
|
|
<el-collapse-item title="发票信息" name="5" class="add-order-item" v-if="orderValue.id">
|
|
<by-form :propConfig="newInvoicesConfig" ref="invoicesform"></by-form>
|
|
<by-form :propConfig="newInvoicesConfig" ref="invoicesform"></by-form>
|
|
</el-collapse-item>
|
|
</el-collapse-item>
|
|
- <div class="btn-save" v-if="orderValue.id && orderValue.isSubmitted != 1">
|
|
|
|
|
|
+ <div class="btn-save" v-if="orderValue.id && orderValue.isSubmitted != 1 && orderValue.upSourceName !== 'DS_JUSHUITAN'">
|
|
<el-button type="primary" size="small" @click="saveBase">保存基本信息及收获地址</el-button>
|
|
<el-button type="primary" size="small" @click="saveBase">保存基本信息及收获地址</el-button>
|
|
</div>
|
|
</div>
|
|
<el-collapse-item title="订单支付情况" name="4" class="add-order-item" v-if="orderValue.id">
|
|
<el-collapse-item title="订单支付情况" name="4" class="add-order-item" v-if="orderValue.id">
|
|
@@ -417,6 +417,9 @@ export default class AddOrder extends Vue {
|
|
}, {
|
|
}, {
|
|
value: '5',
|
|
value: '5',
|
|
label: '线下'
|
|
label: '线下'
|
|
|
|
+ }, {
|
|
|
|
+ value: '6',
|
|
|
|
+ label: '分销'
|
|
}]
|
|
}]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -626,7 +629,7 @@ export default class AddOrder extends Vue {
|
|
audit:'',
|
|
audit:'',
|
|
event:{
|
|
event:{
|
|
show:(row:any) => {
|
|
show:(row:any) => {
|
|
- if(row.status == 'Merged' || row.status == 'Cancelled'){
|
|
|
|
|
|
+ if(row.status == 'Merged' || row.status == 'Cancelled' || this.orderValue.upSourceName !== 'DS_JUSHUITAN'){
|
|
return false
|
|
return false
|
|
}else{
|
|
}else{
|
|
return true
|
|
return true
|
|
@@ -652,7 +655,6 @@ export default class AddOrder extends Vue {
|
|
name: '添加赠品', icon: 'el-icon-plus', event:{
|
|
name: '添加赠品', icon: 'el-icon-plus', event:{
|
|
click:()=>{
|
|
click:()=>{
|
|
this.toolAddGift();
|
|
this.toolAddGift();
|
|
-
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -1157,6 +1159,13 @@ export default class AddOrder extends Vue {
|
|
}
|
|
}
|
|
//添加商品
|
|
//添加商品
|
|
toolAddProduct(){
|
|
toolAddProduct(){
|
|
|
|
+ if(this.orderValue.upSourceName !== 'DS_JUSHUITAN'){
|
|
|
|
+ this.$message({
|
|
|
|
+ message:'点三不能进行修改!',
|
|
|
|
+ type:'warning'
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
if (this.orderValue.status == 'Delivering' || this.orderValue.status == 'Sent') {
|
|
if (this.orderValue.status == 'Delivering' || this.orderValue.status == 'Sent') {
|
|
this.$message({
|
|
this.$message({
|
|
message:'该订单已发货不能进行修改!',
|
|
message:'该订单已发货不能进行修改!',
|
|
@@ -1175,6 +1184,13 @@ export default class AddOrder extends Vue {
|
|
}
|
|
}
|
|
//添加赠品
|
|
//添加赠品
|
|
toolAddGift(){
|
|
toolAddGift(){
|
|
|
|
+ if(this.orderValue.upSourceName !== 'DS_JUSHUITAN'){
|
|
|
|
+ this.$message({
|
|
|
|
+ message:'点三不能进行修改!',
|
|
|
|
+ type:'warning'
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
if (this.orderValue.status == 'Delivering' || this.orderValue.status == 'Sent') {
|
|
if (this.orderValue.status == 'Delivering' || this.orderValue.status == 'Sent') {
|
|
this.$message({
|
|
this.$message({
|
|
message:'该订单已发货不能进行修改!',
|
|
message:'该订单已发货不能进行修改!',
|
|
@@ -1210,6 +1226,13 @@ export default class AddOrder extends Vue {
|
|
}
|
|
}
|
|
//商品编辑
|
|
//商品编辑
|
|
editProduct(){
|
|
editProduct(){
|
|
|
|
+ if(this.orderValue.upSourceName !== 'DS_JUSHUITAN'){
|
|
|
|
+ this.$message({
|
|
|
|
+ message:'点三订单不能进行修改!',
|
|
|
|
+ type:'warning'
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
if (this.orderValue.status == 'Delivering' || this.orderValue.status == 'Sent') {
|
|
if (this.orderValue.status == 'Delivering' || this.orderValue.status == 'Sent') {
|
|
this.$message({
|
|
this.$message({
|
|
message:'该订单已发货不能进行修改!',
|
|
message:'该订单已发货不能进行修改!',
|