Commit b0760bef by 夏超

[fix] 玖姿收入支出添加类型字段

parent 02074aa0
...@@ -245,6 +245,9 @@ ...@@ -245,6 +245,9 @@
}, },
// 获取列表数据 // 获取列表数据
getDataList() { getDataList() {
if(!this.datePickerValue){
this.datePickerValue = ['', '']
}
this.loading = true; this.loading = true;
let parameter = { let parameter = {
limit: 10, //每页数量 非必填 limit: 10, //每页数量 非必填
...@@ -350,6 +353,12 @@ ...@@ -350,6 +353,12 @@
}, },
// 保存 // 保存
saveListData() { saveListData() {
if (!this.createList[0].business_date) {
return this.$message({
type: "warning",
message: "请选择业务日期",
});
}
if (this.createList[0].machinery_type == '') { if (this.createList[0].machinery_type == '') {
this.$message({ this.$message({
type: "warning", type: "warning",
...@@ -381,9 +390,13 @@ ...@@ -381,9 +390,13 @@
income: '', income: '',
expenditure: '', expenditure: '',
user_name: this.user_name, user_name: this.user_name,
user_id: this.user_id user_id: this.user_id,
machinery_type:''
} }
] ]
this.select_value = ''
this.machinery_type_value = ''
this.datePickerValue = ''
this.getDataList() this.getDataList()
} else { } else {
this.$message({ this.$message({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment