Commit 67e0c018 authored by 高宇's avatar 高宇

出入库记录添加两个字段

parent db8a702a
...@@ -145,7 +145,7 @@ ...@@ -145,7 +145,7 @@
append-to-body append-to-body
@closed="handleClose" @closed="handleClose"
> >
<el-form ref="formDetails" :model="singleDetails" size="small" label-width="100px"> <el-form ref="formDetails" :model="singleDetails" size="small" label-width="140px">
<el-row :gutter="10" justify="start" align="middle"> <el-row :gutter="10" justify="start" align="middle">
<el-col :span="12"> <el-col :span="12">
...@@ -158,6 +158,9 @@ ...@@ -158,6 +158,9 @@
<el-form-item label="plocation:" prop="plocation"> <el-form-item label="plocation:" prop="plocation">
<el-input v-model.trim="singleDetails.plocation" :readonly="isReadOnly" /> <el-input v-model.trim="singleDetails.plocation" :readonly="isReadOnly" />
</el-form-item> </el-form-item>
<el-form-item label="unlockUsername:" prop="unlockUsername">
<el-input v-model.trim="singleDetails.unlockUsername" :readonly="isReadOnly" />
</el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
...@@ -170,6 +173,9 @@ ...@@ -170,6 +173,9 @@
<el-form-item label="fqYs:" prop="fqYs"> <el-form-item label="fqYs:" prop="fqYs">
{{ singleDetails.fqYs }} {{ singleDetails.fqYs }}
</el-form-item> </el-form-item>
<el-form-item label="unlockDate:" prop="unlockDate">
<el-input v-model.trim="singleDetails.unlockDate" :readonly="isReadOnly" />
</el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -578,6 +584,7 @@ export default { ...@@ -578,6 +584,7 @@ export default {
type: 'warning' type: 'warning'
}) })
} else { } else {
console.log('详情')
var { fqYs, fqBz, fqDbxi, fqDd, fqMcode, fqYy } = response.data var { fqYs, fqBz, fqDbxi, fqDd, fqMcode, fqYy } = response.data
var fq = { fqYs, fqBz, fqDbxi, fqDd, fqMcode, fqYy } var fq = { fqYs, fqBz, fqDbxi, fqDd, fqMcode, fqYy }
this.singleDetails = Object.assign({}, { ...row }, { ...fq }) this.singleDetails = Object.assign({}, { ...row }, { ...fq })
......
...@@ -100,20 +100,20 @@ ...@@ -100,20 +100,20 @@
</el-button> </el-button>
</el-form-item> </el-form-item>
<!-- &lt;!&ndash;TODO: 导出按钮所在 &ndash;&gt;--> <!-- &lt;!&ndash;TODO: 导出按钮所在 &ndash;&gt;-->
<!-- <div style="float: right; padding:3px 10px;">--> <!-- <div style="float: right; padding:3px 10px;">-->
<!-- <el-row :gutter="10">--> <!-- <el-row :gutter="10">-->
<!-- <el-col :span="1.5">--> <!-- <el-col :span="1.5">-->
<!-- </el-col>--> <!-- </el-col>-->
<!-- </el-row>--> <!-- </el-row>-->
<!-- </div>--> <!-- </div>-->
</el-form> </el-form>
</div> </div>
<!-- TODO: 分隔符--> <!-- TODO: 分隔符-->
<div class="placeholder" /> <div class="placeholder"/>
<!--TODO: Table表单--> <!--TODO: Table表单-->
<transition name="fade-transform" mode="out-in"> <transition name="fade-transform" mode="out-in">
...@@ -145,18 +145,21 @@ ...@@ -145,18 +145,21 @@
append-to-body append-to-body
@closed="handleClose" @closed="handleClose"
> >
<el-form ref="formDetails" :model="singleDetails" size="small" label-width="100px"> <el-form ref="formDetails" :model="singleDetails" size="small" label-width="140px">
<el-row :gutter="10" justify="start" align="middle"> <el-row :gutter="10" justify="start" align="middle">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="pn:" prop="pn"> <el-form-item label="pn:" prop="pn">
<el-input v-model.trim="singleDetails.pn" :readonly="isReadOnly" /> <el-input v-model.trim="singleDetails.pn" :readonly="isReadOnly"/>
</el-form-item> </el-form-item>
<el-form-item label="lot:" prop="lot"> <el-form-item label="lot:" prop="lot">
<el-input v-model.trim="singleDetails.lot" :readonly="isReadOnly" /> <el-input v-model.trim="singleDetails.lot" :readonly="isReadOnly"/>
</el-form-item> </el-form-item>
<el-form-item label="plocation:" prop="plocation"> <el-form-item label="plocation:" prop="plocation">
<el-input v-model.trim="singleDetails.plocation" :readonly="isReadOnly" /> <el-input v-model.trim="singleDetails.plocation" :readonly="isReadOnly"/>
</el-form-item>
<el-form-item label="unlockUsername:" prop="unlockUsername">
<el-input v-model.trim="singleDetails.unlockUsername" :readonly="isReadOnly"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -170,6 +173,9 @@ ...@@ -170,6 +173,9 @@
<el-form-item label="fqYs:" prop="fqYs"> <el-form-item label="fqYs:" prop="fqYs">
{{ singleDetails.fqYs }} {{ singleDetails.fqYs }}
</el-form-item> </el-form-item>
<el-form-item label="unlockDate:" prop="unlockDate">
<el-input v-model.trim="singleDetails.unlockDate" :readonly="isReadOnly"/>
</el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -201,13 +207,13 @@ ...@@ -201,13 +207,13 @@
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="操作员:" prop="userName"> <el-form-item label="操作员:" prop="userName">
<el-input v-model.trim="singleDetails.userName" :readonly="isReadOnly" /> <el-input v-model.trim="singleDetails.userName" :readonly="isReadOnly"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="操作时间:" prop="createDate"> <el-form-item label="操作时间:" prop="createDate">
<el-input v-model.trim="singleDetails.createDate" :readonly="isReadOnly" /> <el-input v-model.trim="singleDetails.createDate" :readonly="isReadOnly"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -219,10 +225,10 @@ ...@@ -219,10 +225,10 @@
</template> </template>
<script> <script>
import { exportInventoryRecord, findSingleLogDetail, listLog } from '@/api/processMangement/InventoryRecord' import {exportInventoryRecord, findSingleLogDetail, listLog} from '@/api/processMangement/InventoryRecord'
import BaseTable from '@/components/Table/BaseTable/index.vue' import BaseTable from '@/components/Table/BaseTable/index.vue'
import { BaseTableArgumentsTest } from '@/components/Table/AllTableArguments/BaseTableArguments' import {BaseTableArgumentsTest} from '@/components/Table/AllTableArguments/BaseTableArguments'
import { getDictData } from '@/api/equipment/application' import {getDictData} from '@/api/equipment/application'
export default { export default {
name: 'InventoryRecord', name: 'InventoryRecord',
...@@ -446,9 +452,10 @@ export default { ...@@ -446,9 +452,10 @@ export default {
}, },
created() { created() {
if (this.$store.getters.searchParams[this.$route.path]) { if (this.$store.getters.searchParams[this.$route.path]) {
const { searchParams } = this.$store.getters; const { path } = this.$route const {searchParams} = this.$store.getters;
const {path} = this.$route
const param = JSON.parse(searchParams[path]) // 保留着的查询条件 const param = JSON.parse(searchParams[path]) // 保留着的查询条件
this.queryParams = { ...param } this.queryParams = {...param}
} }
this.getList() this.getList()
this.getDict() this.getDict()
...@@ -544,7 +551,7 @@ export default { ...@@ -544,7 +551,7 @@ export default {
this.singleLogIdAndPn = {} this.singleLogIdAndPn = {}
}, },
/* TODO: 进行排序 */ /* TODO: 进行排序 */
changeTableSort: function(val) { changeTableSort: function (val) {
console.log('column', val) console.log('column', val)
// TODO:按照降序排序 // TODO:按照降序排序
if (val.order === 'descending') { if (val.order === 'descending') {
...@@ -556,10 +563,10 @@ export default { ...@@ -556,10 +563,10 @@ export default {
this.getList() this.getList()
}, },
/* TODO: 获取详情信息*/ /* TODO: 获取详情信息*/
handleDetail: function(row) { handleDetail: function (row) {
/* TODO: 如果库状态为‘废弃’,即为‘4’时,则可以进入 */ /* TODO: 如果库状态为‘废弃’,即为‘4’时,则可以进入 */
if (row.poperate !== '4') { if (row.poperate !== '4') {
this.singleDetails = { ...row } this.singleDetails = {...row}
} else { } else {
/* TODO: 设置单项详情的查询的条件 */ /* TODO: 设置单项详情的查询的条件 */
this.singleLogIdAndPn['businessId'] = row.businessId this.singleLogIdAndPn['businessId'] = row.businessId
...@@ -571,16 +578,16 @@ export default { ...@@ -571,16 +578,16 @@ export default {
this.activateAbandonedState = true this.activateAbandonedState = true
this.title = '记录详情' this.title = '记录详情'
if (response.data === 'fail') { if (response.data === 'fail') {
this.singleDetails = Object.assign({}, { ...row }) this.singleDetails = Object.assign({}, {...row})
this.$message({ this.$message({
showClose: true, showClose: true,
message: response.message, message: response.message,
type: 'warning' type: 'warning'
}) })
} else { } else {
var { fqYs, fqBz, fqDbxi, fqDd, fqMcode, fqYy } = response.data var {fqYs, fqBz, fqDbxi, fqDd, fqMcode, fqYy} = response.data
var fq = { fqYs, fqBz, fqDbxi, fqDd, fqMcode, fqYy } var fq = {fqYs, fqBz, fqDbxi, fqDd, fqMcode, fqYy}
this.singleDetails = Object.assign({}, { ...row }, { ...fq }) this.singleDetails = Object.assign({}, {...row}, {...fq})
} }
} }
) )
...@@ -621,51 +628,54 @@ export default { ...@@ -621,51 +628,54 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.app-container { .app-container {
padding: 0; padding: 0;
font-size: 18px; font-size: 18px;
.placeholder{
height:1.3vh; .placeholder {
background-color: #F4F4F4; height: 1.3vh;
margin-bottom:10px background-color: #F4F4F4;
} margin-bottom: 10px
}
/*TODO: 这里是调整ToolBar的样式的噢!*/ /*TODO: 这里是调整ToolBar的样式的噢!*/
.ToolBar{ .ToolBar {
.el-form{ .el-form {
.el-form-item{ .el-form-item {
.el-select{ .el-select {
width: 160px width: 160px
} }
.el-input{
width: 180px .el-input {
} width: 180px
} }
} }
/* TODO: 定义按钮样式 */ }
.el-button{
padding: 8px 7px; /* TODO: 定义按钮样式 */
} .el-button {
padding: 8px 7px;
} }
} }
}
/* TODO: 专门用来解决el-input边框的问题 */ /* TODO: 专门用来解决el-input边框的问题 */
.aboutSingleDetails{ .aboutSingleDetails {
.el-form{ .el-form {
.el-form-item{ .el-form-item {
.el-input >>> .el-input__inner { .el-input > > > .el-input__inner {
-webkit-appearance: none; -webkit-appearance: none;
background-color: #FFF; background-color: #FFF;
background-image: none; background-image: none;
border-radius: 4px; border-radius: 4px;
border: 0; border: 0;
width: 100%; width: 100%;
}
} }
} }
} }
</style> }
</style>
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