fix:立库界面优化
This commit is contained in:
@@ -229,7 +229,7 @@
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<AddDtl :dialog-show.sync="dtlShow" :stor-id="storId" @tableChanged="tableChanged" />
|
||||
<StructDiv ref="child" :dialog-show.sync="structShow" @tableChanged="structChanged" />
|
||||
<StructDiv ref="child" :layer-num="layer_num" :stor-id="storId" :dialog-show.sync="structShow" @tableChanged="structChanged" />
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
@@ -243,7 +243,7 @@ import crudUserStor from '@/views/wms/basedata/st/userStor/userStor'
|
||||
|
||||
const defaultForm = {
|
||||
bill_code: '',
|
||||
stor_id: '',
|
||||
stor_id: '1582991156504039424',
|
||||
stor_code: '',
|
||||
stor_name: '',
|
||||
bill_status: '10',
|
||||
@@ -278,6 +278,7 @@ export default {
|
||||
nowindex: '',
|
||||
storlist: [],
|
||||
invtypelist: [],
|
||||
layer_num: null,
|
||||
rules: {
|
||||
stor_id: [
|
||||
{ required: true, message: '仓库不能为空', trigger: 'blur' }
|
||||
@@ -350,6 +351,7 @@ export default {
|
||||
this.form.stor_name = item.stor_name
|
||||
}
|
||||
})
|
||||
this.form.tableData = []
|
||||
},
|
||||
async queryDtl() {
|
||||
if (!this.form.stor_id) {
|
||||
@@ -359,6 +361,7 @@ export default {
|
||||
this.dtlShow = true
|
||||
},
|
||||
async queryStruct(index, row) {
|
||||
this.layer_num = row.turnout_struct_code.charAt(row.turnout_struct_code.length - 1)
|
||||
this.structShow = true
|
||||
this.$refs.child.getMsg(false)
|
||||
this.nowindex = index
|
||||
|
||||
@@ -9,18 +9,36 @@
|
||||
@close="close"
|
||||
@open="open"
|
||||
>
|
||||
<el-row>
|
||||
<el-col :span="5">
|
||||
<!-- 搜索 -->
|
||||
<!-- 搜索 -->
|
||||
<el-form
|
||||
:inline="true"
|
||||
class="demo-form-inline"
|
||||
label-position="right"
|
||||
label-width="80px"
|
||||
label-suffix=":"
|
||||
>
|
||||
<el-form-item label="库区">
|
||||
<el-cascader
|
||||
v-model="defaultList"
|
||||
placeholder="库区"
|
||||
:options="sects"
|
||||
:props="{ checkStrictly: true }"
|
||||
clearable
|
||||
@change="sectQueryChange"
|
||||
/>
|
||||
</el-col>
|
||||
<el-col :span="5">
|
||||
</el-form-item>
|
||||
<el-form-item label="木箱">
|
||||
<el-input
|
||||
v-model="query.package_box_sn"
|
||||
clearable
|
||||
size="mini"
|
||||
placeholder="木箱号模糊查询"
|
||||
style="width: 200px;"
|
||||
class="filter-item"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="货位">
|
||||
<el-input
|
||||
v-model="query.struct_code"
|
||||
clearable
|
||||
@@ -30,8 +48,8 @@
|
||||
class="filter-item"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
</el-col>
|
||||
<el-col :span="5">
|
||||
</el-form-item>
|
||||
<el-form-item label="物料">
|
||||
<el-input
|
||||
v-model="query.remark"
|
||||
clearable
|
||||
@@ -41,8 +59,8 @@
|
||||
class="filter-item"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
</el-col>
|
||||
<el-col :span="5">
|
||||
</el-form-item>
|
||||
<el-form-item label="批次">
|
||||
<el-input
|
||||
v-model="query.pcsn"
|
||||
clearable
|
||||
@@ -52,12 +70,9 @@
|
||||
class="filter-item"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="4">
|
||||
<rrOperation />
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form-item>
|
||||
<rrOperation />
|
||||
</el-form>
|
||||
<!--表格渲染-->
|
||||
<div style="padding: 10px" />
|
||||
<el-table
|
||||
@@ -135,7 +150,8 @@ export default {
|
||||
dialogVisible: false,
|
||||
opendtlParam: '',
|
||||
sects: [],
|
||||
rows: []
|
||||
rows: [],
|
||||
defaultList: ['1582991156504039424', '1582991348217286656']
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@@ -153,6 +169,9 @@ export default {
|
||||
methods: {
|
||||
[CRUD.HOOK.beforeRefresh]() {
|
||||
this.crud.query.stor_id = this.storId
|
||||
if (this.storId === this.defaultList[0]) {
|
||||
this.crud.query.sect_id = this.defaultList[1]
|
||||
}
|
||||
},
|
||||
open() {
|
||||
crudUserStor.getSect({ 'stor_id': this.storId }).then(res => {
|
||||
@@ -186,6 +205,7 @@ export default {
|
||||
this.crud.query.stor_id = val[0]
|
||||
this.crud.query.sect_id = val[1]
|
||||
}
|
||||
this.crud.toQuery()
|
||||
},
|
||||
submit() {
|
||||
debugger
|
||||
|
||||
Reference in New Issue
Block a user