Merge remote-tracking branch 'origin/main' into feature/sap-interface-0804
This commit is contained in:
180
nladmin-ui/src/views/system/appVersion/index.vue
Normal file
180
nladmin-ui/src/views/system/appVersion/index.vue
Normal file
@@ -0,0 +1,180 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<div class="head-container">
|
||||
<div v-if="crud.props.searchToggle">
|
||||
<el-input
|
||||
v-model="query.app_name"
|
||||
clearable
|
||||
size="mini"
|
||||
placeholder="应用名称"
|
||||
style="width: 200px;"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
<rrOperation />
|
||||
</div>
|
||||
<crudOperation :permission="permission">
|
||||
<el-button
|
||||
slot="left"
|
||||
class="filter-item"
|
||||
size="mini"
|
||||
type="primary"
|
||||
icon="el-icon-upload"
|
||||
@click="dialogVisible = true"
|
||||
>发布版本</el-button>
|
||||
</crudOperation>
|
||||
<el-table v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;">
|
||||
<el-table-column type="index" label="序号" width="55" align="center" />
|
||||
<el-table-column prop="app_name" label="应用名称" min-width="140" />
|
||||
<el-table-column prop="version_name" label="版本号" width="120" />
|
||||
<el-table-column prop="apk_name" label="APK 文件名" min-width="200" />
|
||||
<el-table-column :formatter="formatSize" prop="apk_size" label="文件大小" width="110" align="right" />
|
||||
<el-table-column prop="create_name" label="发布人" width="100" />
|
||||
<el-table-column prop="create_time" label="发布时间" width="160" />
|
||||
<el-table-column label="操作" width="100" fixed="right" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-link type="primary" :href="downloadUrl(scope.row.app_version_id)">下载</el-link>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<pagination />
|
||||
</div>
|
||||
|
||||
<el-dialog
|
||||
:close-on-click-modal="false"
|
||||
title="发布 APP 版本"
|
||||
:visible.sync="dialogVisible"
|
||||
width="480px"
|
||||
@close="resetForm"
|
||||
>
|
||||
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="90px">
|
||||
<el-form-item label="应用名称" prop="app_name">
|
||||
<el-input v-model="form.app_name" maxlength="100" placeholder="例如:WMS PDA" />
|
||||
</el-form-item>
|
||||
<el-form-item label="版本号" prop="version_name">
|
||||
<el-input v-model="form.version_name" maxlength="50" placeholder="例如:1.2.0" />
|
||||
</el-form-item>
|
||||
<el-form-item label="APK 文件" prop="file">
|
||||
<el-upload
|
||||
ref="upload"
|
||||
:action="publishUrl"
|
||||
:auto-upload="false"
|
||||
:data="form"
|
||||
:headers="headers"
|
||||
:limit="1"
|
||||
accept=".apk,application/vnd.android.package-archive"
|
||||
:before-upload="beforeUpload"
|
||||
:on-success="uploadSuccess"
|
||||
:on-error="uploadError"
|
||||
:on-exceed="handleExceed"
|
||||
>
|
||||
<el-button size="small" type="primary">选择 APK</el-button>
|
||||
<div slot="tip" class="el-upload__tip">仅支持 APK,文件名将保存为“应用名称-版本号.apk”。</div>
|
||||
</el-upload>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click="dialogVisible = false">取消</el-button>
|
||||
<el-button :loading="uploading" type="primary" @click="publish">发布</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapGetters } from 'vuex'
|
||||
import { getToken } from '@/utils/auth'
|
||||
import CRUD, { crud, header, presenter } from '@crud/crud'
|
||||
import rrOperation from '@crud/RR.operation'
|
||||
import crudOperation from '@crud/CRUD.operation'
|
||||
import pagination from '@crud/Pagination'
|
||||
const baseURLStr = window.g.prod.VUE_APP_BASE_API
|
||||
const defaultForm = { app_name: '', version_name: '' }
|
||||
const baseURL = process.env.NODE_ENV === 'production' ? baseURLStr : '/'
|
||||
|
||||
export default {
|
||||
name: 'AppVersion',
|
||||
components: { crudOperation, rrOperation, pagination },
|
||||
cruds() {
|
||||
return CRUD({
|
||||
title: 'APP版本',
|
||||
idField: 'app_version_id',
|
||||
url: 'api/appVersion',
|
||||
optShow: { add: false, edit: false, del: false, reset: true, download: false }
|
||||
})
|
||||
},
|
||||
mixins: [presenter(), header(), crud()],
|
||||
data() {
|
||||
return {
|
||||
dialogVisible: false,
|
||||
uploading: false,
|
||||
headers: { Authorization: getToken() },
|
||||
form: { ...defaultForm },
|
||||
permission: {},
|
||||
rules: {
|
||||
app_name: [{ required: true, message: '请输入应用名称', trigger: 'blur' }],
|
||||
version_name: [{ required: true, message: '请输入版本号', trigger: 'blur' }]
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
publishUrl() {
|
||||
return baseURL + '/api/appVersion/publish'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
publish() {
|
||||
this.$refs.form.validate(valid => {
|
||||
if (!valid) return
|
||||
if (this.$refs.upload.uploadFiles.length === 0) {
|
||||
this.$message.warning('请选择 APK 文件')
|
||||
return
|
||||
}
|
||||
this.uploading = true
|
||||
this.$refs.upload.submit()
|
||||
})
|
||||
},
|
||||
beforeUpload(file) {
|
||||
const isApk = file.name.toLowerCase().endsWith('.apk')
|
||||
if (!isApk) {
|
||||
this.$message.error('只能上传 APK 文件')
|
||||
this.uploading = false
|
||||
}
|
||||
return isApk
|
||||
},
|
||||
uploadSuccess() {
|
||||
this.$message.success('版本发布成功')
|
||||
this.dialogVisible = false
|
||||
this.crud.toQuery()
|
||||
},
|
||||
uploadError(error) {
|
||||
let message = '版本发布失败'
|
||||
try {
|
||||
message = JSON.parse(error.message).message || message
|
||||
} catch (e) {
|
||||
// Element UI does not always expose a JSON response body.
|
||||
}
|
||||
this.$message.error(message)
|
||||
this.uploading = false
|
||||
},
|
||||
handleExceed() {
|
||||
this.$message.warning('一次只能上传一个 APK 文件')
|
||||
},
|
||||
resetForm() {
|
||||
this.uploading = false
|
||||
this.form = { ...defaultForm }
|
||||
if (this.$refs.form) this.$refs.form.resetFields()
|
||||
if (this.$refs.upload) this.$refs.upload.clearFiles()
|
||||
},
|
||||
formatSize(row) {
|
||||
if (!row.apk_size) return '0 B'
|
||||
const units = ['B', 'KB', 'MB', 'GB']
|
||||
const index = Math.min(Math.floor(Math.log(row.apk_size) / Math.log(1024)), units.length - 1)
|
||||
const value = row.apk_size / Math.pow(1024, index)
|
||||
return value.toFixed(index === 0 ? 0 : 2) + ' ' + units[index]
|
||||
},
|
||||
downloadUrl(id) {
|
||||
return baseURL + '/api/appVersion/download/' + id
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -21,6 +21,7 @@
|
||||
</el-form>
|
||||
</div>
|
||||
<crudOperation :permission="permission">
|
||||
<el-button slot="right" v-permission="permission.del" class="filter-item" type="danger" icon="el-icon-delete" size="mini" :loading="batchDeleting" :disabled="!multipleSelection.length || batchDeleting" @click="handleBatchDelete">批量删除</el-button>
|
||||
<el-button slot="right" v-has-user="['admin']" class="filter-item" type="warning" icon="el-icon-s-promotion" size="mini" :disabled="audit_flag" @click="issueReturnBill">强制回传EAS</el-button>
|
||||
<el-button slot="right" class="filter-item" type="success" icon="el-icon-s-promotion" size="mini" :disabled="isPushDisabled()" @click="handleBatchPush">下推出库</el-button>
|
||||
<el-button slot="right" class="filter-item" type="warning" icon="el-icon-house" size="mini" :disabled="isBatchAllocateDisabled()" @click="openBatchAllocateDialog">批量分配</el-button>
|
||||
@@ -105,6 +106,16 @@
|
||||
<el-table-column prop="targetArea" label="目标库存地点" min-width="140" show-overflow-tooltip />
|
||||
<el-table-column prop="targetHouseCode" label="目标库" min-width="140" show-overflow-tooltip />
|
||||
<el-table-column prop="inventoryDis" label="分配仓库" width="110" />
|
||||
<el-table-column prop="pkInv" label="平库库存" width="110">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.pkInv || '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="lkInv" label="立库库存" width="110">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.lkInv || '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="carrierType" label="托盘类型" min-width="140" show-overflow-tooltip />
|
||||
<el-table-column prop="productionLine" label="产线" min-width="100" show-overflow-tooltip />
|
||||
<el-table-column prop="sn" label="车辆序列号" min-width="140" show-overflow-tooltip />
|
||||
@@ -122,7 +133,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import crudDemand, {queryInventory, allocate, batchAllocate, push, batchAllcation} from './demand'
|
||||
import crudDemand, { del, queryInventory, allocate, batchAllocate, push, batchAllcation } from './demand'
|
||||
import CRUD, { crud, form, header, presenter } from '@crud/crud'
|
||||
import crudOperation from '@crud/CRUD.operation.vue'
|
||||
import udOperation from '@crud/UD.operation.vue'
|
||||
@@ -165,6 +176,7 @@ export default {
|
||||
{ code: '6.002', name: '中鼎立库' }
|
||||
],
|
||||
audit_flag: true,
|
||||
batchDeleting: false,
|
||||
allocateVisible: false,
|
||||
inventoryLoading: false,
|
||||
allocateSaving: false,
|
||||
@@ -239,6 +251,31 @@ export default {
|
||||
})
|
||||
}).catch(() => {})
|
||||
},
|
||||
handleBatchDelete() {
|
||||
const ids = this.multipleSelection.map(item => item.id)
|
||||
if (!ids.length) {
|
||||
this.$message.warning('请至少选择一条需求单')
|
||||
return
|
||||
}
|
||||
this.$confirm(`确认删除已选择的 ${ids.length} 条需求单吗?`, '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(async() => {
|
||||
this.batchDeleting = true
|
||||
try {
|
||||
for (const id of ids) {
|
||||
await del([id])
|
||||
}
|
||||
this.$message.success('批量删除成功')
|
||||
} catch (error) {
|
||||
this.$message.error('批量删除失败,已删除的记录不会恢复')
|
||||
} finally {
|
||||
this.batchDeleting = false
|
||||
this.crud.toQuery()
|
||||
}
|
||||
}).catch(() => {})
|
||||
},
|
||||
openAllocateDialog(row) {
|
||||
this.currentDemand = { ...row }
|
||||
this.inventoryList = []
|
||||
|
||||
@@ -9,14 +9,26 @@
|
||||
<el-form-item label="出入库单号">
|
||||
<el-input v-model="query.requestId" clearable @keyup.enter.native="crud.toQuery" />
|
||||
</el-form-item>
|
||||
<el-form-item label="产线">
|
||||
<el-select
|
||||
v-model="query.workArea"
|
||||
placeholder="请选择产线"
|
||||
style="width: 200px"
|
||||
clearable
|
||||
multiple
|
||||
>
|
||||
<el-option
|
||||
v-for="item in dict.work_code"
|
||||
:key="item.id"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="序列码">
|
||||
<el-input v-model="query.sn" clearable @keyup.enter.native="crud.toQuery" />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="机构编号">
|
||||
<el-input v-model="query.orgno" clearable placeholder="请输入机构编号" @keyup.enter.native="crud.toQuery" />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="回传状态">
|
||||
<el-select v-model="query.status" clearable placeholder="全部" @change="crud.toQuery">
|
||||
<el-option v-for="item in statusOptions" :key="item.value" :label="item.label" :value="item.value" />
|
||||
@@ -115,23 +127,35 @@
|
||||
</el-dialog>
|
||||
|
||||
<el-dialog :visible.sync="viewShow" title="倒扣回传详情" width="1300px" :close-on-click-modal="false">
|
||||
<el-descriptions :column="2" border size="mini">
|
||||
<el-descriptions
|
||||
:column="2"
|
||||
border
|
||||
size="mini"
|
||||
class="custom-descriptions"
|
||||
>
|
||||
<el-descriptions-item label="工单">{{ currentRow.billno }}</el-descriptions-item>
|
||||
<el-descriptions-item label="序列码">{{ currentRow.sn }}</el-descriptions-item>
|
||||
|
||||
<el-descriptions-item label="产线">{{ currentRow.workArea }}</el-descriptions-item>
|
||||
<el-descriptions-item label="跟踪号">{{ currentRow.trackNo }}</el-descriptions-item>
|
||||
|
||||
<el-descriptions-item label="备注">{{ currentRow.comment }}</el-descriptions-item>
|
||||
<el-descriptions-item label="回传状态">{{ statusLabel(currentRow.status) }}</el-descriptions-item>
|
||||
<el-descriptions-item label="回传备注" :span="2">{{ currentRow.remark }}</el-descriptions-item>
|
||||
|
||||
<el-descriptions-item :span="2" label="回传备注">{{ currentRow.remark }}</el-descriptions-item>
|
||||
<el-descriptions-item label="机构">{{ currentRow.orgno }}</el-descriptions-item>
|
||||
|
||||
<el-descriptions-item label="业务">{{ currentRow.biztype }}</el-descriptions-item>
|
||||
<el-descriptions-item label="库存方案">{{ currentRow.invscheme }}</el-descriptions-item>
|
||||
|
||||
<el-descriptions-item label="交易类型">{{ currentRow.transtype }}</el-descriptions-item>
|
||||
<el-descriptions-item label="业务时间">{{ currentRow.biztime }}</el-descriptions-item>
|
||||
|
||||
<el-descriptions-item label="创建时间">{{ currentRow.createTime }}</el-descriptions-item>
|
||||
<el-descriptions-item label="更新时间">{{ currentRow.updateTime }}</el-descriptions-item>
|
||||
<el-descriptions-item label="出入库单号" :span="2">{{ currentRow.requestId }}</el-descriptions-item>
|
||||
<el-descriptions-item label="报工参数" :span="2">{{ currentRow.reportParam }}</el-descriptions-item>
|
||||
|
||||
<el-descriptions-item label="出入库单号">{{ currentRow.requestId }}</el-descriptions-item>
|
||||
<el-descriptions-item :span="2" label="报工参数">{{ currentRow.reportParam }}</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
<div style="margin-top: 12px;">
|
||||
<el-button size="mini" type="warning" plain :disabled="!canBatchIgnore" @click="handleBatchIgnore">
|
||||
@@ -152,6 +176,7 @@
|
||||
<el-table-column prop="materialno" label="物料编号" min-width="120" />
|
||||
<el-table-column prop="materialname" label="物料名称" min-width="180" />
|
||||
<el-table-column prop="unitno" label="单位" min-width="70" />
|
||||
<el-table-column prop="easQty" label="库存信息" min-width="100" />
|
||||
<el-table-column prop="baseqty" label="BOM数量" min-width="50" />
|
||||
<el-table-column prop="warehouseno" label="仓库" min-width="60" />
|
||||
<el-table-column prop="remark" label="备注" min-width="180" />
|
||||
@@ -214,6 +239,7 @@ const createDefaultForm = () => ({
|
||||
|
||||
export default {
|
||||
name: 'ReceiveOutReturn',
|
||||
dicts: ['work_code'],
|
||||
components: { crudOperation, rrOperation, udOperation, pagination },
|
||||
mixins: [presenter(), header(), form(createDefaultForm()), crud()],
|
||||
cruds() {
|
||||
@@ -278,6 +304,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
[CRUD.HOOK.beforeRefresh]() {
|
||||
console.log(this.query.workArea)
|
||||
if (this.query.dateRange) {
|
||||
this.query.beginTime = this.query.dateRange[0]
|
||||
this.query.endTime = this.query.dateRange[1] || this.query.dateRange[0]
|
||||
@@ -467,4 +494,22 @@ export default {
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.custom-descriptions {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.custom-descriptions >>> table {
|
||||
width: 100%;
|
||||
table-layout: fixed;
|
||||
}
|
||||
|
||||
.custom-descriptions >>> .el-descriptions-item__label {
|
||||
width: 100px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.custom-descriptions >>> .el-descriptions-item__content {
|
||||
width: calc(50% - 100px);
|
||||
word-break: break-all;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -135,6 +135,7 @@
|
||||
<el-table-column prop="qty_unit_name" label="单位" align="center" />
|
||||
<el-table-column prop="source_bill_code" label="源单号" align="center" width="130px" />
|
||||
<el-table-column prop="source_load_port" label="指定上料口" align="center" width="130px" />
|
||||
<el-table-column prop="vehicle_type" label="载具名称" align="center" width="130px" />
|
||||
<el-table-column show-overflow-tooltip prop="remark" label="明细备注" align="center" />
|
||||
</el-table>
|
||||
</el-card>
|
||||
|
||||
@@ -440,19 +440,22 @@ export default {
|
||||
const skuName = dtl.material_name || ''
|
||||
const qty = dtl.plan_qty || ''
|
||||
const assQty = dtl.assign_qty || ''
|
||||
const qrText = orderNo + '#' + itemNo + '#' + skuCode + '#' + skuName + '##' + qty + '#'
|
||||
const vehicle_type = dtl.vehicle_type || ''
|
||||
const source_load_port = dtl.source_load_port || ''
|
||||
const qrText = orderNo + '#' + vehicle_type + '#' + skuCode + '#' + skuName + '##' + qty + '#' + source_load_port + '#'
|
||||
const imgSrc = await QRCode.toDataURL(qrText, {
|
||||
width: 300
|
||||
})
|
||||
html += '<div class="label">'
|
||||
html += '<h3>上海诺力</h3>'
|
||||
html += '<table>'
|
||||
html += '<tr><td class="lbl">出库单号</td><td class="val">' + orderNo + '</td><td class="qr" rowspan="6"><img src="' + imgSrc + '" width="150" height="150" /></td></tr>'
|
||||
html += '<tr><td class="lbl">出库单号</td><td class="val">' + orderNo + '</td><td class="qr" rowspan="7"><img src="' + imgSrc + '" width="150" height="150" /></td></tr>'
|
||||
html += '<tr><td class="lbl">行号</td><td class="val">' + itemNo + '</td></tr>'
|
||||
html += '<tr><td class="lbl">物料编码</td><td class="val">' + skuCode + '</td></tr>'
|
||||
html += '<tr><td class="lbl">物料名称</td><td class="val">' + skuName + '</td></tr>'
|
||||
html += '<tr><td class="lbl">出库数量</td><td class="val">' + assQty + '</td></tr>'
|
||||
html += '<tr><td class="lbl">用料位置</td><td class="val">' + house_code + '</td></tr>'
|
||||
html += '<tr><td class="lbl">载具名称</td><td class="val">' + vehicle_type + '</td></tr>'
|
||||
html += '</table></div>'
|
||||
}
|
||||
html += '</body></html>'
|
||||
|
||||
101
nladmin-ui/src/views/wms/st/outbilldetail/index.vue
Normal file
101
nladmin-ui/src/views/wms/st/outbilldetail/index.vue
Normal file
@@ -0,0 +1,101 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<div class="head-container">
|
||||
<div v-if="crud.props.searchToggle">
|
||||
<el-form :inline="true" label-position="right" label-width="80px" label-suffix=":">
|
||||
<el-form-item label="单据号">
|
||||
<el-input v-model="query.bill_code" clearable size="mini" placeholder="单据号" @keyup.enter.native="crud.toQuery" />
|
||||
</el-form-item>
|
||||
<el-form-item label="物料编码">
|
||||
<el-input v-model="query.material_code" clearable size="mini" placeholder="物料编码" @keyup.enter.native="crud.toQuery" />
|
||||
</el-form-item>
|
||||
<el-form-item label="物料名称">
|
||||
<el-input v-model="query.material_name" clearable size="mini" placeholder="物料名称" @keyup.enter.native="crud.toQuery" />
|
||||
</el-form-item>
|
||||
<el-form-item label="批次号">
|
||||
<el-input v-model="query.pcsn" clearable size="mini" placeholder="批次号" @keyup.enter.native="crud.toQuery" />
|
||||
</el-form-item>
|
||||
<el-form-item label="所属仓库">
|
||||
<el-select v-model="query.stor_id" clearable size="mini" placeholder="全部" @change="crud.toQuery">
|
||||
<el-option v-for="item in storlist" :key="item.stor_id" :label="item.stor_name" :value="item.stor_id" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="单据状态">
|
||||
<el-select v-model="query.bill_status" clearable size="mini" placeholder="全部" @change="crud.toQuery">
|
||||
<el-option v-for="item in dict.io_bill_status" :key="item.value" :label="item.label" :value="item.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="业务类型">
|
||||
<el-select v-model="query.bill_type" clearable filterable size="mini" placeholder="全部" @change="crud.toQuery">
|
||||
<el-option v-for="item in dict.ST_INV_OUT_TYPE" :key="item.value" :label="item.label" :value="item.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<rrOperation />
|
||||
</el-form>
|
||||
</div>
|
||||
<crudOperation :permission="permission" />
|
||||
<el-table v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;">
|
||||
<el-table-column type="index" label="序号" width="55" align="center" />
|
||||
<el-table-column show-overflow-tooltip prop="bill_code" label="单据号" width="140" />
|
||||
<el-table-column show-overflow-tooltip prop="stor_name" label="仓库" width="200" />
|
||||
<el-table-column :formatter="billStatusFormat" prop="mst_bill_status" label="单据状态" width="90" />
|
||||
<el-table-column :formatter="billTypeFormat" prop="bill_type" label="业务类型" width="110" />
|
||||
<el-table-column prop="biz_date" label="业务日期" width="100" />
|
||||
<el-table-column prop="seq_no" label="行号" width="70" align="center" />
|
||||
<el-table-column show-overflow-tooltip prop="material_code" label="物料编码" min-width="140" />
|
||||
<el-table-column show-overflow-tooltip prop="material_name" label="物料名称" min-width="140" />
|
||||
<el-table-column show-overflow-tooltip prop="pcsn" label="批次号" width="130" />
|
||||
<el-table-column :formatter="crud.formatNum3" prop="plan_qty" label="计划数量" width="100" align="right" />
|
||||
<el-table-column :formatter="crud.formatNum3" prop="assign_qty" label="已分配数量" width="110" align="right" />
|
||||
<el-table-column :formatter="crud.formatNum3" prop="unassign_qty" label="未分配数量" width="110" align="right" />
|
||||
<el-table-column prop="qty_unit_name" label="单位" width="80" />
|
||||
<el-table-column show-overflow-tooltip prop="source_bill_code" label="源单号" width="140" />
|
||||
<el-table-column show-overflow-tooltip prop="source_load_port" label="指定上料口" width="120" />
|
||||
<el-table-column show-overflow-tooltip prop="remark" label="备注" min-width="120" />
|
||||
</el-table>
|
||||
<pagination />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import CRUD, { crud, header, presenter } from '@crud/crud'
|
||||
import rrOperation from '@crud/RR.operation'
|
||||
import crudOperation from '@crud/CRUD.operation'
|
||||
import pagination from '@crud/Pagination'
|
||||
import crudBsrealstorattr from '@/views/wms/basedata/bsrealstorattr/bsrealstorattr'
|
||||
|
||||
export default {
|
||||
name: 'OutbillDetail',
|
||||
components: { crudOperation, rrOperation, pagination },
|
||||
cruds() {
|
||||
return CRUD({
|
||||
title: '出库单明细',
|
||||
idField: 'iostorinvdtl_id',
|
||||
url: 'api/checkoutbill/details',
|
||||
optShow: { add: false, edit: false, del: false, reset: true, download: false }
|
||||
})
|
||||
},
|
||||
mixins: [presenter(), header(), crud()],
|
||||
dicts: ['io_bill_status', 'ST_INV_OUT_TYPE'],
|
||||
data() {
|
||||
return {
|
||||
permission: {},
|
||||
storlist: []
|
||||
}
|
||||
},
|
||||
created() {
|
||||
crudBsrealstorattr.getStor().then(res => {
|
||||
this.storlist = res.data
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
billStatusFormat(row) {
|
||||
return this.dict.label.io_bill_status[row.mst_bill_status]
|
||||
},
|
||||
billTypeFormat(row) {
|
||||
return this.dict.label.ST_INV_OUT_TYPE[row.bill_type]
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user