Compare commits

..

No commits in common. "d775dc7371740d9996fbc916dba0c4073f9d2c4a" and "d3de840af15c1059aa9c5ce71b299e61311d1606" have entirely different histories.

4 changed files with 10 additions and 23 deletions

View File

@ -190,7 +190,6 @@ import {
} from '@/api/basicConfig'
import { commonUploadPath } from '@/api/app'
import { getToken } from '@/utils/auth'
import moment from 'moment'
export default {
name: 'ConsumablesAdd',
data() {
@ -206,8 +205,8 @@ export default {
price: '',
imgId: '',
supplier: '',
purchaseDate: moment().format('YYYY-MM-DD'),
productDate: moment().format('YYYY-MM-DD'),
purchaseDate: '',
productDate: '',
remark: '',
enabled: 1
},
@ -256,11 +255,7 @@ export default {
}
this.form.supplier = res.data.supplier
this.form.purchaseDate = res.data.purchaseDate
? res.data.purchaseDate
: ''
this.form.productDate = res.data.productDate
? res.data.productDate
: ''
this.form.remark = res.data.remark
this.form.enabled = res.data.enabled
}

View File

@ -246,9 +246,6 @@ export default {
this.form.minNum = res.data.minNum ? res.data.minNum : 0
this.form.maxNum = res.data.maxNum ? res.data.maxNum : 0
this.form.remark = res.data.remark
this.form.recipient = this.$store.getters.username
? this.$store.getters.username
: ''
})
if (param.type === 'edit') {
this.showEdit = true

View File

@ -197,6 +197,7 @@ export default {
methods: {
getList() {
getOutInRecordRecord({ ...this.listQuery }).then((res) => {
console.log(res)
if (res.code === 0) {
this.total = res.data.total
this.tableData = res.data.records
@ -204,6 +205,7 @@ export default {
})
},
selectChanged(val) {
console.log(val)
if (val.value) {
let id = null
let line = JSON.parse(localStorage.getItem('publicList')).proLineVoList
@ -215,8 +217,6 @@ export default {
})
sideLibraryList({ id }).then((res) => {
if (res.code === 0) {
this.formConfig[0].defaultSelect =
this.$refs.searchBarForm.formInline.timeVal
this.formConfig[3].selectOptions = res.data
this.formConfig[3].defaultSelect = null
}
@ -225,12 +225,14 @@ export default {
},
getMaterialList() {
materialList().then((res) => {
console.log(res)
if (res.code === 0) {
this.formConfig[4].selectOptions = res.data
}
})
},
buttonClick(val) {
console.log(val)
if (val.btnName === 'search') {
this.listQuery.startTime = val.timeVal ? val.timeVal[0] : ''
this.listQuery.endTime = val.timeVal ? val.timeVal[1] : ''

View File

@ -13,12 +13,6 @@
:max-height="tableH"
:row-class-name="tableRowClassName"
/>
<pagination
:page.sync="listQuery.current"
:limit.sync="listQuery.size"
:total="total"
@pagination="getList"
/>
<!-- 设置预警值 -->
<base-dialog
dialogTitle="设置预警值"
@ -114,11 +108,11 @@ export default {
],
tableProps,
tableData: [],
tableH: tableHeight(270),
tableH: tableHeight(230),
total: 0,
listQuery: {
current: 1,
size: 20,
size: 1000,
proLineId: '',
stockId: ''
},
@ -127,7 +121,7 @@ export default {
},
mounted() {
window.addEventListener('resize', () => {
this.tableH = tableHeight(270)
this.tableH = tableHeight(230)
})
this.getList()
},
@ -135,8 +129,7 @@ export default {
getList() {
onlineMaterialTrackSelect({ ...this.listQuery }).then((res) => {
if (res.code === 0) {
this.tableData = res.data.records
this.total = res.data.total ? res.data.total : 0
this.tableData = res.data
}
})
},