代码更新

This commit is contained in:
2022-12-01 10:23:48 +08:00
parent b4f1ee22c2
commit 0781e71d48
8 changed files with 25 additions and 12 deletions

View File

@@ -385,7 +385,7 @@ export default {
}
},
created() {
crudUserStor.getSect().then(res => {
crudUserStor.getSect({ 'stor_id': '' }).then(res => {
this.sects = res.content
})
},

View File

@@ -32,10 +32,11 @@ export function getUserStor(data) {
})
}
export function getSect() {
export function getSect(data) {
return request({
url: '/api/userStor/getSect',
method: 'post'
method: 'post',
data
})
}

View File

@@ -115,7 +115,7 @@
<span class="role-span">载具物料明细</span>
<div class="crud-opts-form">
<el-form ref="form" :inline="true" :model="form" size="mini">
<el-form-item label="区" prop="gender5">
<el-form-item label="区" prop="gender5">
<el-cascader
placeholder="请选择"
:options="sects"
@@ -228,6 +228,7 @@ import crudSectattr from '@/views/wms/basedata/st/sect/sectattr'
import StructDiv from '@/views/wms/pub/StructDialog'
import crudRawAssist from '@/views/wms/st/inbill/rawassist'
import crudPoint from '@/views/wms/sch/point/point'
import crudUserStor, { getSect } from '@/views/wms/basedata/st/userStor/userStor'
export default {
name: 'DivDialog',
@@ -251,6 +252,10 @@ export default {
billType: {
type: String,
default: null
},
storId: {
type: String,
default: null
}
},
data() {
@@ -288,10 +293,10 @@ export default {
},
methods: {
open() {
debugger
crudSectattr.getSect({ 'is_virtualstore': '1' }).then(res => {
crudUserStor.getSect({ 'stor_id': this.storId}).then(res => {
this.sects = res.content
})
const area_type = '1585164789083148288'
crudPoint.getPoint({ 'area_type': area_type }).then(res => {

View File

@@ -213,7 +213,7 @@
</div>
<AddDialog @AddChanged="querytable" />
<ViewDialog :dialog-show.sync="viewShow" :rowmst="mstrow" @AddChanged="querytable" />
<DivDialog :dialog-show.sync="divShow" :open-param="openParam" :bill-type="billType" :buss-config="bussConfig" @AddChanged="querytable" />
<DivDialog :dialog-show.sync="divShow" :stor-id="storId" :open-param="openParam" :bill-type="billType" :buss-config="bussConfig" @AddChanged="querytable" />
<TaskDialog :dialog-show.sync="taskShow" :open-param="openParam" :buss-config="bussConfig" @AddChanged="querytable" />
</div>
</template>
@@ -272,7 +272,8 @@ export default {
currentRow: null,
storlist: [],
createtypelist: [],
statuslist: []
statuslist: [],
storId: null
}
},
computed: {
@@ -361,6 +362,7 @@ export default {
divOpen() {
crudRawAssist.getIODtl({ 'bill_code': this.currentRow.bill_code, 'open_flag': '1' }).then(res => {
this.openParam = res
this.storId = this.currentRow.stor_id
this.billType = this.currentRow.bill_type
this.divShow = true
})