Commit 4d85cd19 by zhouzy

日期传递格式规范及领用搜索框布局

1 parent 42e1db48
...@@ -268,7 +268,7 @@ ...@@ -268,7 +268,7 @@
<div class="Input"> <div class="Input">
<el-input <el-input
v-model="collectionListSearch.condition.searchValue" v-model="collectionListSearch.condition.searchValue"
placeholder="请输入批次号" placeholder="请输入设备SN"
size="small" size="small"
></el-input> ></el-input>
</div> </div>
...@@ -622,8 +622,7 @@ export default { ...@@ -622,8 +622,7 @@ export default {
}, },
], ],
}, },
// 领用记录表格
// 领用记录表格表格
collectionTableParams: { collectionTableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000), btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: "list", listName: "list",
...@@ -681,7 +680,8 @@ export default { ...@@ -681,7 +680,8 @@ export default {
prop: "status", prop: "status",
formatter: (cellValue) => { formatter: (cellValue) => {
return { return {
1: "正常", 1: '已激活',
0:'未激活'
}[cellValue.status]; }[cellValue.status];
}, },
minWidth: "200", minWidth: "200",
...@@ -856,10 +856,10 @@ export default { ...@@ -856,10 +856,10 @@ export default {
changeBatchDataFormat() { changeBatchDataFormat() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.batchListSearch.createdDateEnd = this.batchDate this.batchListSearch.createdDateEnd = this.batchDate
? this.batchDate[1] + '23:59:59' ? this.batchDate[1] + ' 23:59:59'
: '' : ''
this.batchListSearch.createdDateStart = this.batchDate this.batchListSearch.createdDateStart = this.batchDate
? this.batchDate[0] + '00:00:01' ? this.batchDate[0] + ' 00:00:01'
: ''; : '';
this.batchListSearch.batchId = parseInt(this.selectBatchId) this.batchListSearch.batchId = parseInt(this.selectBatchId)
console.log(this.batchListSearch) console.log(this.batchListSearch)
...@@ -871,10 +871,10 @@ export default { ...@@ -871,10 +871,10 @@ export default {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
console.log(this.colletionDate) console.log(this.colletionDate)
this.collectionListSearch.condition.endTime = this.colletionDate this.collectionListSearch.condition.endTime = this.colletionDate
? this.colletionDate[1] + '23:59:59' ? this.colletionDate[1] + ' 23:59:59'
: '' || undefined : '' || undefined
this.collectionListSearch.condition.beginTime = this.colletionDate this.collectionListSearch.condition.beginTime = this.colletionDate
? this.colletionDate[0] + '00:00:01' ? this.colletionDate[0] + ' 00:00:01'
: '' || undefined : '' || undefined
resolve() resolve()
}) })
...@@ -1004,12 +1004,12 @@ export default { ...@@ -1004,12 +1004,12 @@ export default {
.InputContainer { .InputContainer {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
margin-left: 20px; margin-left: -100px;
} }
.lastInputContainer { .lastInputContainer {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
margin-left: 100px; margin-left: 40px;
} }
.firstpickerContainer { .firstpickerContainer {
margin-left: 20px; margin-left: 20px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!