| | |
| | | <!-- <span style="font-weight:bold;cursor:default;"> |
| | | <a style="cursor:default;">{{ row.no }}</a>单据详情 |
| | | </span> --> |
| | | 物料类型: {{ materialType }} |
| | | <div style="margin-top: 10px;"> |
| | | <a-table :columns="columns" :data-source="list" row-key="id" :pagination="false" :scroll="{ x: true }"> |
| | | <template slot="index" slot-scope="text, record, index">{{ index + 1 }}</template> |
| | |
| | | }}</a-tag> |
| | | </span> |
| | | |
| | | <span slot="action" slot-scope="text, record"> |
| | | <!-- <span slot="action" slot-scope="text, record"> |
| | | <a-popconfirm v-if="hasPerm('BaseCustomer:delete')" placement="topRight" title="确认删除?" |
| | | @confirm="() => itemDelete(record, index)"> |
| | | <a>删除</a> |
| | | </a-popconfirm> |
| | | </span> |
| | | </span> --> |
| | | </a-table> |
| | | </div> |
| | | </div> |
| | | |
| | | <p @click="visible = true">新增行</p> |
| | | <!-- <p @click="visible = true">新增行</p> --> |
| | | |
| | | <a-modal title="包装关系" :width="900" :visible="visible" :confirmLoading="confirmLoading" @ok="handleSubmit" |
| | | @cancel="handleCancel"> |
| | |
| | | <script> |
| | | import { WmsOrderRukuDetail } from '@/api/modular/main/WmsOrderManage' |
| | | import showList from './index.vue' |
| | | |
| | | import { |
| | | WmsContainerPackagingPage, |
| | | WmsContainerPackagingDelete, |
| | | WmsContainerPackagingToExcel |
| | | } from '@/api/modular/main/WmsBase/WmsContainerPackagingManage' |
| | | export default { |
| | | name: 'wmsOrderRukuManagementDetailDrawer', |
| | | emits: ['update:visible'], |
| | |
| | | showSizeChanger: true, |
| | | total: 0, |
| | | size: 'small' |
| | | } |
| | | }, |
| | | materialType:'' |
| | | } |
| | | }, |
| | | |
| | |
| | | this.afterClsoe() |
| | | } |
| | | }, |
| | | initShow() { |
| | | initShow(materialType) { |
| | | if(materialType==''||materialType==null||materialType==undefined){ |
| | | this.$message.warning("请选择物料类型") |
| | | return |
| | | } |
| | | this.materialType = materialType |
| | | this.loading = true |
| | | this.getList(() => { |
| | | this.loading = false |
| | |
| | | }, |
| | | getList(row) { |
| | | let params = { id: row.id } |
| | | WmsOrderRukuDetail(params) |
| | | WmsContainerPackagingPage({ |
| | | // materialTypeCode: 'test2' |
| | | materialTypeCode: this.materialType |
| | | }) |
| | | .then(d => { |
| | | this.list = d.data.rows || [] |
| | | this.$emit('update:visible', true) |