oms已接单禁用修改,切换运单修改数据刷新
This commit is contained in:
parent
8139a359e4
commit
b7c1ad10e9
@ -939,6 +939,7 @@ data() {
|
|||||||
return time.getTime() < Date.now()-1 * 24 * 3600 * 1000
|
return time.getTime() < Date.now()-1 * 24 * 3600 * 1000
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
lastBillCode: '', // 手动缓存上一次的billCode
|
||||||
// 表单校验
|
// 表单校验
|
||||||
rules: {
|
rules: {
|
||||||
// billCode: [
|
// billCode: [
|
||||||
@ -1090,7 +1091,21 @@ watch: {
|
|||||||
deep: true
|
deep: true
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
activated(){
|
||||||
|
this.billCode = this.$route.query.billCode || '';
|
||||||
|
// 先判断是否是修改操作 再判断新旧值是否一致
|
||||||
|
if(this.$route.query.action=="modify" && this.billCode!=this.lastBillCode && this.lastBillCode){
|
||||||
|
const title = '修改:'+this.billCode;
|
||||||
|
const route = Object.assign({}, this.$route, { title: `${title}` })
|
||||||
|
this.$store.dispatch('tagsView/updateVisitedView', route)
|
||||||
|
this.initData();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
deactivated(){
|
||||||
|
this.lastBillCode = this.billCode;
|
||||||
|
},
|
||||||
created() {
|
created() {
|
||||||
|
this.billCode = this.$route.query.billCode || '';
|
||||||
if(this.$route.query.action=="copyOrder"){
|
if(this.$route.query.action=="copyOrder"){
|
||||||
this.action=this.$route.query.action;
|
this.action=this.$route.query.action;
|
||||||
this.billCode=this.$route.query.billCode;
|
this.billCode=this.$route.query.billCode;
|
||||||
@ -1098,7 +1113,7 @@ created() {
|
|||||||
const title = '再来一单';
|
const title = '再来一单';
|
||||||
const route = Object.assign({}, this.$route, { title: `${title}` })
|
const route = Object.assign({}, this.$route, { title: `${title}` })
|
||||||
this.$store.dispatch('tagsView/updateVisitedView', route)
|
this.$store.dispatch('tagsView/updateVisitedView', route)
|
||||||
|
|
||||||
this.initData();
|
this.initData();
|
||||||
}
|
}
|
||||||
else if(this.$route.query.action=="modify"){
|
else if(this.$route.query.action=="modify"){
|
||||||
|
|||||||
@ -239,7 +239,7 @@
|
|||||||
plain
|
plain
|
||||||
size="mini"
|
size="mini"
|
||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
:disabled="single"
|
:disabled="selectedOrderStatus==1 || single"
|
||||||
@click="handleUpdate"
|
@click="handleUpdate"
|
||||||
>修改</el-button>
|
>修改</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -652,6 +652,8 @@ export default {
|
|||||||
loading: true,
|
loading: true,
|
||||||
// 选中数组
|
// 选中数组
|
||||||
ids: [],
|
ids: [],
|
||||||
|
//选中订单状态
|
||||||
|
selectedOrderStatus:null,
|
||||||
// 非单个禁用
|
// 非单个禁用
|
||||||
single: true,
|
single: true,
|
||||||
// 非多个禁用
|
// 非多个禁用
|
||||||
@ -1109,6 +1111,12 @@ export default {
|
|||||||
this.ids = selection.map(item => item.id)
|
this.ids = selection.map(item => item.id)
|
||||||
this.single = selection.length!==1
|
this.single = selection.length!==1
|
||||||
this.multiple = !selection.length
|
this.multiple = !selection.length
|
||||||
|
if(!this.single){
|
||||||
|
// 选中订单状态
|
||||||
|
this.selectedOrderStatus=this.selectionList[0].orderStatus;
|
||||||
|
}else{
|
||||||
|
this.selectedOrderStatus=null;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 排序 查询字段是表格中字段名字 动态取值排序顺序
|
// 排序 查询字段是表格中字段名字 动态取值排序顺序
|
||||||
handleSortChange(column) {
|
handleSortChange(column) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user