代码更新

This commit is contained in:
2022-11-28 16:10:29 +08:00
parent 8857845c7e
commit 800eeb8f8a
5 changed files with 46 additions and 33 deletions

View File

@@ -213,7 +213,7 @@ export default {
mater_btn: false,
materType: '',
storlist: [],
billtypelist: [{ 'code': '000101', 'name': '生产入库' }],
billtypelist: [],
rules: {
stor_id: [
{ required: true, message: '仓库不能为空', trigger: 'blur' }
@@ -237,7 +237,7 @@ export default {
methods: {
open() {
// 查询原材料库的仓库
crudStorattr.getStor({ 'is_productstore': '1' }).then(res => {
crudStorattr.getStor({ 'is_virtualstore': '1' }).then(res => {
this.storlist = res.content
})
},

View File

@@ -289,7 +289,7 @@ export default {
methods: {
open() {
debugger
crudSectattr.getSect({ 'is_productstore': '1' }).then(res => {
crudSectattr.getSect({ 'is_virtualstore': '1' }).then(res => {
this.sects = res.content
})
const area_type = '1585164789083148288'
@@ -499,6 +499,10 @@ export default {
}
// 如果勾选了,直接跳后台
if (this.form.checked) {
if (!this.sect_id) {
this.crud.notify('请先选择区域!', CRUD.NOTIFICATION_TYPE.INFO)
return
}
this.form.sect_id = this.sect_id
this.form.stor_id = this.stor_id
this.form.is_pc = '1'