代码修改
This commit is contained in:
@@ -56,10 +56,8 @@
|
||||
<el-table-column show-overflow-tooltip prop="material_spec" label="规格" align="center"/>
|
||||
<el-table-column show-overflow-tooltip prop="material_model" label="型号" align="center"/>
|
||||
<el-table-column show-overflow-tooltip prop="plan_qty" :formatter="crud.formatNum3" label="数量" align="center"/>
|
||||
<el-table-column show-overflow-tooltip prop="assign_qty" :formatter="crud.formatNum3" label="已出数量"
|
||||
align="center"/>
|
||||
<el-table-column show-overflow-tooltip prop="unassign_qty" :formatter="crud.formatNum3" label="未出数量"
|
||||
align="center"/>
|
||||
<el-table-column show-overflow-tooltip prop="assign_qty" :formatter="crud.formatNum3" label="已出数量" align="center"/>
|
||||
<el-table-column show-overflow-tooltip prop="unassign_qty" :formatter="crud.formatNum3" label="未出数量" align="center"/>
|
||||
<el-table-column show-overflow-tooltip prop="qty_unit_name" label="单位" align="center"/>
|
||||
</el-table>
|
||||
</el-card>
|
||||
@@ -86,7 +84,7 @@
|
||||
type="warning"
|
||||
icon="el-icon-check"
|
||||
size="mini"
|
||||
@click="createCode()"
|
||||
@click="openStructIvt()"
|
||||
>
|
||||
手动分配
|
||||
</el-button>
|
||||
@@ -100,16 +98,6 @@
|
||||
>
|
||||
删除分配
|
||||
</el-button>
|
||||
<el-button
|
||||
slot="left"
|
||||
class="filter-item"
|
||||
type="primary"
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="divStruct()"
|
||||
>
|
||||
确认
|
||||
</el-button>
|
||||
</span>
|
||||
</div>
|
||||
<el-card class="box-card" shadow="never" :body-style="{padding:'0'}">
|
||||
@@ -134,19 +122,19 @@
|
||||
</el-table>
|
||||
</el-card>
|
||||
|
||||
<StructDiv ref="child" :dialog-show.sync="structShow" :sect-prop="sectProp" @tableChanged="tableChanged"/>
|
||||
<StructIvt :dialog-show.sync="structShow" :open-array="ivtParam" :rowmst="openRow" @StructIvtClosed="queryTableDtl"/>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import CRUD, { crud } from '@crud/crud'
|
||||
import crudSectattr from '@/api/wms/basedata/st/sectattr'
|
||||
import StructDiv from '@/views/wms/sb/inbill/StructDialog'
|
||||
import sparePart from '@/api/wms/sb/sparepart'
|
||||
import StructIvt from '@/views/wms/sb/outbill/StructIvt'
|
||||
import sparePart from '@/api/wms/sb/sparepartout'
|
||||
|
||||
export default {
|
||||
name: 'DivDialog',
|
||||
components: { StructDiv },
|
||||
components: { StructIvt },
|
||||
mixins: [crud()],
|
||||
dicts: ['io_bill_status'],
|
||||
props: {
|
||||
@@ -173,11 +161,13 @@ export default {
|
||||
dialogVisible: false,
|
||||
stor_id: '',
|
||||
sect_id: '',
|
||||
ivtParam: [],
|
||||
sectProp: null,
|
||||
structShow: false,
|
||||
bucketObj: null,
|
||||
sects: [],
|
||||
sect_val: null,
|
||||
openRow: {},
|
||||
form: {
|
||||
dtl_row: null,
|
||||
tableMater: []
|
||||
@@ -198,25 +188,18 @@ export default {
|
||||
crudSectattr.getSect({ 'is_attachment': '1', 'sect_type_attr': '00' }).then(res => {
|
||||
this.sects = res.content
|
||||
})
|
||||
/*let area_type = ''
|
||||
if (this.billType === '000101' || this.billType === '000102' || this.billType === '000201' || this.billType === '000202' || this.billType === '000305') {
|
||||
area_type = '\'21\''
|
||||
},
|
||||
openStructIvt() {
|
||||
if (!this.form.dtl_row) {
|
||||
this.crud.notify('请选择一条出库明细', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
return
|
||||
}
|
||||
if (this.billType === '000301' || this.billType === '000303' || this.billType === '000304') {
|
||||
area_type = '\'37\''
|
||||
}
|
||||
if (this.billType === '000302') {
|
||||
area_type = '\'26\',\'32\',\'33\',\'34\''
|
||||
}
|
||||
if (this.billType === '000601') {
|
||||
area_type = '\'29\''
|
||||
}
|
||||
if (this.billType === '000401') {
|
||||
area_type = '\'21\',\'26\',\'29\',\'31\',\'35\',\'32\',\'33\',\'34\''
|
||||
}
|
||||
crudPoint.getPoint({ 'area_type': area_type }).then(res => {
|
||||
this.pointlist = res
|
||||
})*/
|
||||
debugger
|
||||
sparePart.getStructIvt(this.form.dtl_row).then(res => {
|
||||
this.ivtParam = res
|
||||
this.structShow = true
|
||||
this.openRow = this.form.dtl_row
|
||||
})
|
||||
},
|
||||
toDelete(data) {
|
||||
data.pop = true
|
||||
@@ -231,6 +214,7 @@ export default {
|
||||
this.$refs['form2'].resetFields()
|
||||
},
|
||||
clcikRow(row, column, event) {
|
||||
debugger
|
||||
this.form.dtl_row = row
|
||||
sparePart.getIODtl({ 'bill_code': this.form.dtl_row.bill_code }).then(res => {
|
||||
this.openParam = res
|
||||
@@ -291,6 +275,11 @@ export default {
|
||||
})
|
||||
})
|
||||
},
|
||||
queryTableDtl() {
|
||||
sparePart.getIODtl({ 'bill_code': this.form.dtl_row.bill_code }).then(res => {
|
||||
this.openParam = res
|
||||
})
|
||||
},
|
||||
disConfirm() {
|
||||
debugger
|
||||
let rows = this.$refs.dis_table.selection
|
||||
@@ -343,20 +332,6 @@ export default {
|
||||
this.bucketObj = row
|
||||
this.form.bucketunique = row.bucketunique
|
||||
this.form.storage_qty = row.storage_qty
|
||||
},
|
||||
divStruct() {
|
||||
debugger
|
||||
let rows = this.$refs.dis_table.selection
|
||||
if (rows.length == 0) {
|
||||
this.crud.notify('请至少勾选一条记录!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
return
|
||||
}
|
||||
if (!this.sect_id || !this.stor_id) {
|
||||
this.crud.notify('请先选择备件库区!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
return
|
||||
}
|
||||
this.structShow = true
|
||||
this.$refs.child.getMsg(false)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user