代码更新

This commit is contained in:
2022-12-03 14:19:41 +08:00
parent 6aad57945e
commit 2329278856
4 changed files with 27 additions and 4 deletions

View File

@@ -129,7 +129,7 @@
</template>
</el-table-column>
</el-table>
<AddDtl :dialog-show.sync="dtlShow" @tableChanged="tableChanged" />
<AddDtl :dialog-show.sync="dtlShow" :stor-id="storId" @tableChanged="tableChanged" />
</el-dialog>
</template>
@@ -168,6 +168,7 @@ export default {
dialogVisible: false,
dtlShow: false,
flagnow: false,
storId: null,
nowrow: {},
nowindex: '',
storlist: [],
@@ -235,6 +236,11 @@ export default {
this.crud.notify('请选择盘点单类型!', CRUD.NOTIFICATION_TYPE.INFO)
return
}
if (this.form.stor_id === '') {
this.crud.notify('请选择仓库!', CRUD.NOTIFICATION_TYPE.INFO)
return
}
this.storId = this.form.stor_id
this.dtlShow = true
},
tableChanged(rows) {

View File

@@ -109,6 +109,9 @@ export default {
},
openParam: {
type: String
},
storId: {
type: String
}
},
data() {
@@ -132,8 +135,11 @@ export default {
}
},
methods: {
[CRUD.HOOK.beforeRefresh]() {
this.crud.query.stor_id = this.storId
},
open() {
crudUserStor.getSect({ 'stor_id': '' }).then(res => {
crudUserStor.getSect({ 'stor_id': this.storId }).then(res => {
this.sects = res.content
})
this.crud.toQuery()

View File

@@ -228,7 +228,7 @@
</template>
</el-table-column>
</el-table>
<AddDtl :dialog-show.sync="dtlShow" @tableChanged="tableChanged" />
<AddDtl :dialog-show.sync="dtlShow" :stor-id="storId" @tableChanged="tableChanged" />
<StructDiv ref="child" :dialog-show.sync="structShow" @tableChanged="structChanged" />
</el-dialog>
</template>
@@ -274,6 +274,7 @@ export default {
structShow2: false,
flagnow: false,
nowrow: {},
storId: null,
nowindex: '',
storlist: [],
invtypelist: [],
@@ -351,6 +352,10 @@ export default {
})
},
async queryDtl() {
if (!this.form.stor_id) {
return this.crud.notify('请先选择仓库!', CRUD.NOTIFICATION_TYPE.INFO)
}
this.storId = this.form.stor_id
this.dtlShow = true
},
async queryStruct(index, row) {

View File

@@ -123,6 +123,9 @@ export default {
},
openParam: {
type: String
},
storId: {
type: String
}
},
dicts: ['ST_QUALITY_SCODE', 'ST_IVT_LEVEL', 'is_usable'],
@@ -147,8 +150,11 @@ export default {
}
},
methods: {
[CRUD.HOOK.beforeRefresh]() {
this.crud.query.stor_id = this.storId
},
open() {
crudUserStor.getSect({ 'stor_id': '' }).then(res => {
crudUserStor.getSect({ 'stor_id': this.storId }).then(res => {
this.sects = res.content
})
this.crud.toQuery()