|
|
|
@ -157,17 +157,6 @@
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row style="width: 100%; margin-top: 20px;">
|
|
|
|
|
<el-lable>审核时间:</el-lable>
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="auditTime"
|
|
|
|
|
type="datetime"
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
:picker-options="pickerOptions"
|
|
|
|
|
placeholder="选择日期">
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<div style="text-align: right; margin-top: 10px;">
|
|
|
|
|
<el-button type="primary" size="small" icon="search" @click="updateOrderInfo"
|
|
|
|
|
>提交
|
|
|
|
@ -222,7 +211,14 @@
|
|
|
|
|
},
|
|
|
|
|
actDate: null,
|
|
|
|
|
auditTime: null,
|
|
|
|
|
editOrderVisible: false
|
|
|
|
|
editOrderVisible: false,
|
|
|
|
|
pickerOptions: {
|
|
|
|
|
disabledDate: time => {
|
|
|
|
|
let endDate = new Date().getTime();
|
|
|
|
|
let nowDate = new Date(time).getTime();
|
|
|
|
|
return (nowDate > endDate);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
components: {
|
|
|
|
@ -332,21 +328,18 @@
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
updateOrderInfo() {
|
|
|
|
|
if (this.actDate === null || this.auditTime === null) {
|
|
|
|
|
this.$message.warning("创建时间和审核时间不能为空");
|
|
|
|
|
return;
|
|
|
|
|
} else if (this.actDate > this.auditTime) {
|
|
|
|
|
this.$message.warning("请检查创建时间和审核时间是否正确");
|
|
|
|
|
if (this.actDate === null || this.actDate === undefined) {
|
|
|
|
|
this.$message.warning("创建时间不能为空");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
let data = {
|
|
|
|
|
actDate: this.actDate,
|
|
|
|
|
auditTime: this.auditTime,
|
|
|
|
|
orderIds: [this.query.corpOrderId]
|
|
|
|
|
orderIds: [this.query.orderId]
|
|
|
|
|
};
|
|
|
|
|
updateOrderInfo(data).then((res) => {
|
|
|
|
|
if (res.code === 20000) {
|
|
|
|
|
this.$message.success("修改成功");
|
|
|
|
|
this.getCodeList();
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
});
|
|
|
|
|