dateTimeFtt
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
<td>{{e.bucketunique}}</td>
|
||||
<td>{{e.material_code}}</td>
|
||||
<td>{{e.material_name}}</td>
|
||||
<td>{{e.sale_qty}}</td>
|
||||
<td>{{e.sale_qty | numeric(3)}}</td>
|
||||
<td>{{e.qty_unit_name}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -69,12 +69,13 @@
|
||||
|
||||
<script>
|
||||
import { getMaterial } from '../../../config/getData1.js'
|
||||
import {dateTimeFtt} from '@config/utils.js'
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
val1: '',
|
||||
val2: '',
|
||||
date: [new Date((new Date().getTime() - 24 * 60 * 60 * 1000)), new Date((new Date().getTime() + 24 * 60 * 60 * 1000))],
|
||||
date: [new Date((new Date().getTime() - 6 * 24 * 60 * 60 * 1000)), new Date((new Date().getTime()))],
|
||||
dataList: [{sale_code: '030301010031'}],
|
||||
pkId: '',
|
||||
pkObj: {}
|
||||
@@ -86,7 +87,7 @@ export default {
|
||||
methods: {
|
||||
// 查询
|
||||
async _getMaterial () {
|
||||
let res = await getMaterial(this.date, this.val1, this.val2)
|
||||
let res = await getMaterial(this.date !== null ? dateTimeFtt(this.date[0]) : '', this.date !== null ? dateTimeFtt(this.date[1]) : '', this.val1, this.val2)
|
||||
this.dataList = [...res.data]
|
||||
},
|
||||
toRadio (e) {
|
||||
@@ -94,6 +95,7 @@ export default {
|
||||
this.pkObj = this.pkId === e.sale_code ? e : {}
|
||||
},
|
||||
toSure () {
|
||||
this.$store.dispatch('setMaterObj', JSON.stringify(this.pkObj))
|
||||
this.$router.push('/finishedinstore')
|
||||
},
|
||||
clear () {
|
||||
|
||||
Reference in New Issue
Block a user