代码更新
This commit is contained in:
@@ -385,7 +385,7 @@ export default {
|
||||
}
|
||||
},
|
||||
created() {
|
||||
crudUserStor.getSect().then(res => {
|
||||
crudUserStor.getSect({ 'stor_id': '' }).then(res => {
|
||||
this.sects = res.content
|
||||
})
|
||||
},
|
||||
|
||||
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -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 => {
|
||||
|
||||
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user