1.修复部分bug;

2.删除单据编辑码详情页编辑弹窗审核时间;
master
x_z 3 years ago
parent b16e9bd6a3
commit 74b33f07ec

@ -144,7 +144,8 @@
<span>地址&nbsp;</span> <span>地址&nbsp;</span>
</div> </div>
<el-form-item prop="addr"> <el-form-item prop="addr">
<el-input type="" v-model="editQuery.addr" style="width: 80%" auto-complete="off"></el-input> <el-input type="" v-model="editQuery.addr" style="width: 80%"
auto-complete="off"></el-input>
</el-form-item> </el-form-item>
</div> </div>
</el-col> </el-col>
@ -230,9 +231,8 @@ export default {
}, },
editQuery: { editQuery: {
unitId: null,
thirdId: null,
name: null, name: null,
thirdId: null,
creditNo: null, creditNo: null,
pinyinCode: null, pinyinCode: null,
contact: null, contact: null,
@ -302,12 +302,6 @@ export default {
}; };
this.getList(); this.getList();
}, },
//
resetForm() {
this.$nextTick(() => {
this.$refs['editQuery'].resetFields();
});
},
search() { search() {
this.query.page = 1; this.query.page = 1;
this.getList(); this.getList();
@ -372,9 +366,17 @@ export default {
handleAddClick() { handleAddClick() {
this.editType = 0; this.editType = 0;
this.editDialogVisible = true; this.editDialogVisible = true;
this.resetForm(); this.editQuery = {
var timestamp3 = new Date().getTime(); name: null,
this.editQuery.unitId = timestamp3; thirdId: null,
creditNo: null,
pinyinCode: null,
contact: null,
mobile: null,
corpType: null,
addr: null,
unitId: new Date().getTime()
};
}, },
change() { change() {

@ -341,7 +341,15 @@ export default {
resetForm() { resetForm() {
this.$nextTick(() => { this.$nextTick(() => {
if (this.formName === "add") { if (this.formName === "add") {
this.$refs["dataForm"].resetFields(); this.formData = {
userName: null,
employeeName: null,
passWord: null,
checkPassword: null,
comments: null,
userFlag: 1,
roles: null
};
} }
this.$refs["dataForm"].clearValidate(); this.$refs["dataForm"].clearValidate();
}); });

@ -157,17 +157,6 @@
</el-date-picker> </el-date-picker>
</el-row> </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;"> <div style="text-align: right; margin-top: 10px;">
<el-button type="primary" size="small" icon="search" @click="updateOrderInfo" <el-button type="primary" size="small" icon="search" @click="updateOrderInfo"
>提交 >提交
@ -222,7 +211,14 @@
}, },
actDate: null, actDate: null,
auditTime: 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: { components: {
@ -332,21 +328,18 @@
}); });
}, },
updateOrderInfo() { updateOrderInfo() {
if (this.actDate === null || this.auditTime === null) { if (this.actDate === null || this.actDate === undefined) {
this.$message.warning("创建时间和审核时间不能为空"); this.$message.warning("创建时间不能为空");
return;
} else if (this.actDate > this.auditTime) {
this.$message.warning("请检查创建时间和审核时间是否正确");
return; return;
} }
let data = { let data = {
actDate: this.actDate, actDate: this.actDate,
auditTime: this.auditTime, orderIds: [this.query.orderId]
orderIds: [this.query.corpOrderId]
}; };
updateOrderInfo(data).then((res) => { updateOrderInfo(data).then((res) => {
if (res.code === 20000) { if (res.code === 20000) {
this.$message.success("修改成功"); this.$message.success("修改成功");
this.getCodeList();
} }
}).catch((error) => { }).catch((error) => {
}); });

@ -339,6 +339,7 @@ export default {
this.query = Object.assign(this.query, query); this.query = Object.assign(this.query, query);
this.query.limit = parseInt(this.query.limit); this.query.limit = parseInt(this.query.limit);
this.query.corpOrderId = query.id; this.query.corpOrderId = query.id;
this.query.code = null;
// //
this.getCodeList(); this.getCodeList();

@ -146,13 +146,13 @@
> >
<el-form :inline="true" :model="unitquery" class="query-form" size="mini"> <el-form :inline="true" :model="unitquery" class="query-form" size="mini">
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-input v-model="unitquery.key" placeholder="搜索"></el-input> <el-input v-model="unitquery.key" placeholder="搜索" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" type="primary"
icon="search" icon="search"
@click.native.stop="getUnitList()" @click.native.stop="getUnitList(1)"
>查询 >查询
</el-button </el-button
> >
@ -347,8 +347,11 @@ export default {
}).catch((error) => { }).catch((error) => {
}); });
}, },
getUnitList() { getUnitList(page) {
this.loading = true; this.loading = true;
if (page != null) {
this.unitquery.page = 1;
}
unitListBykey(this.unitquery) unitListBykey(this.unitquery)
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;

@ -232,7 +232,7 @@
limit: 10 limit: 10
}, },
detailQuery: { detailQuery: {
orderIdFk: "", orderId: null,
page: 1, page: 1,
limit: 20 limit: 20
}, },
@ -354,7 +354,6 @@
getOrderDetailList(row) { getOrderDetailList(row) {
if (this.$isNotBlank(row)) { if (this.$isNotBlank(row)) {
this.detailQuery.orderId = row.orderId; this.detailQuery.orderId = row.orderId;
this.detailQuery.orderIdFk = row.orderId;
} }
this.detailLoading = true; this.detailLoading = true;
orderDetail(this.detailQuery) orderDetail(this.detailQuery)

Loading…
Cancel
Save