代码更新

This commit is contained in:
2022-12-01 11:49:08 +08:00
parent 5b4e93239c
commit d92bbafaf3
6 changed files with 65 additions and 19 deletions

View File

@@ -6,6 +6,7 @@
:show-close="false"
fullscreen
@close="close"
@open="open"
>
<span slot="title" class="dialog-footer">
@@ -20,7 +21,7 @@
</span>
<div class="crud-opts2">
<span class="role-span">出库明细</span>
<!-- <div class="crud-opts-form">
<div class="crud-opts-form">
<el-form ref="form" :inline="true" :model="form" size="mini">
<el-form-item label="库区" prop="gender2">
<el-cascader
@@ -32,7 +33,7 @@
/>
</el-form-item>
</el-form>
</div>-->
</div>
<span class="crud-opts-right2">
<!--左侧插槽-->
<slot name="left" />
@@ -227,6 +228,7 @@ import StructIvt from '@/views/wms/st/outbill/StructIvt'
import PointDialog from '@/views/wms/pub/PointDialog'
import crudSectattr from '@/views/wms/basedata/st/sect/sectattr'
import crudPoint from '@/views/wms/sch/point/point'
import crudUserStor from '@/views/wms/basedata/st/userStor/userStor'
export default {
name: 'DivDialog',
@@ -244,6 +246,10 @@ export default {
openArray: {
type: Array,
default: () => { return [] }
},
storId: {
type: String,
default: null
}
},
data() {
@@ -298,9 +304,6 @@ export default {
}
},
created() {
crudSectattr.getSect({ is_materialstore: '1' }).then(res => {
this.sects = res.content
})
checkoutbill.getInvTypes().then(res => {
this.invtypelist = res
})
@@ -311,6 +314,12 @@ export default {
})
},
methods: {
open() {
crudUserStor.getSect({ 'stor_id': this.storId }).then(res => {
debugger
this.sects = res.content
})
},
close() {
this.$refs['form2'].resetFields()
this.tabledis = []
@@ -434,12 +443,20 @@ export default {
}
},
allDiv() {
if (!this.mstrow.sect_id) {
this.crud.notify('请先选择库区!', CRUD.NOTIFICATION_TYPE.INFO)
return
}
checkoutbill.allDiv(this.mstrow).then(res => {
this.crud.notify('分配成功!', CRUD.NOTIFICATION_TYPE.INFO)
this.queryTableDtl()
})
},
oneDiv() {
if (!this.mstrow.sect_id) {
this.crud.notify('请先选择库区!', CRUD.NOTIFICATION_TYPE.INFO)
return
}
if (this.currentRow.iostorinvdtl_id !== null) {
this.mstrow.iostorinvdtl_id = this.currentRow.iostorinvdtl_id
checkoutbill.allDivOne(this.mstrow).then(res => {