重庆需求整改
This commit is contained in:
parent
824464cc3c
commit
d59a1f0919
|
|
@ -156,6 +156,14 @@ export function getLeaseListAll(params = {}) {
|
||||||
params: params,
|
params: params,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function getLeaseOutOrder(params = {}) {
|
||||||
|
return request({
|
||||||
|
url: '/material/base/leaseOutDetails/getLeaseOutOrder',
|
||||||
|
method: 'get',
|
||||||
|
params: params,
|
||||||
|
})
|
||||||
|
}
|
||||||
// 根据 领料任务id 获取详情数据
|
// 根据 领料任务id 获取详情数据
|
||||||
export function getLeaseListAllCq(params = {}) {
|
export function getLeaseListAllCq(params = {}) {
|
||||||
return request({
|
return request({
|
||||||
|
|
|
||||||
|
|
@ -279,6 +279,9 @@
|
||||||
<el-button type="text" @click="onPreviewRecord(row)"
|
<el-button type="text" @click="onPreviewRecord(row)"
|
||||||
>出库记录</el-button
|
>出库记录</el-button
|
||||||
>
|
>
|
||||||
|
<el-button type="text" @click="openLld(row)"
|
||||||
|
>出库单</el-button
|
||||||
|
>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
|
|
@ -614,27 +617,169 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
|
<!-- 领料单弹窗 -->
|
||||||
|
<el-dialog :visible.sync="open" width="800px" append-to-body>
|
||||||
|
<div style="height: 500px; overflow-y: scroll; padding: 0 20px">
|
||||||
|
<vue-easy-print tableShow ref="remarksPrintRef" class="print">
|
||||||
|
<div
|
||||||
|
class="title"
|
||||||
|
style="
|
||||||
|
text-align: center;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 16px;
|
||||||
|
"
|
||||||
|
>
|
||||||
|
出库单
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
class="info"
|
||||||
|
style="margin-top: 10px; display: flex; flex-wrap: wrap"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="item"
|
||||||
|
style="
|
||||||
|
width: 50%;
|
||||||
|
flex-shrink: 0;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
font-size: 14px;
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<span>领料单位:</span>{{ leaseOutData.unitName }}
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
class="item"
|
||||||
|
style="
|
||||||
|
width: 50%;
|
||||||
|
flex-shrink: 0;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
font-size: 14px;
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<span>工程名称:</span>{{ leaseOutData.proName }}
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
class="item"
|
||||||
|
style="
|
||||||
|
width: 50%;
|
||||||
|
flex-shrink: 0;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
font-size: 14px;
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<span>时间:</span>{{ leaseOutData.updateTime }}
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
class="item"
|
||||||
|
style="
|
||||||
|
width: 50%;
|
||||||
|
flex-shrink: 0;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
font-size: 14px;
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<span>编号:</span>{{ leaseOutData.code }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<el-table
|
||||||
|
:data="leaseOutDetailRecord"
|
||||||
|
class="table"
|
||||||
|
border
|
||||||
|
style="margin-top: 20px; padding: 1px"
|
||||||
|
>
|
||||||
|
<!-- <el-table-column type="selection" width="55" align="center" />-->
|
||||||
|
<el-table-column
|
||||||
|
label="序号"
|
||||||
|
align="center"
|
||||||
|
type="index"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="类型名称"
|
||||||
|
align="center"
|
||||||
|
prop="typeName"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="规格型号"
|
||||||
|
align="center"
|
||||||
|
prop="typeModelName"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="计量单位"
|
||||||
|
align="center"
|
||||||
|
prop="unitName"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="出库数量"
|
||||||
|
align="center"
|
||||||
|
prop="outNum"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="设备编码"
|
||||||
|
align="center"
|
||||||
|
prop="maCode"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="备注"
|
||||||
|
align="center"
|
||||||
|
prop="remark"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="出库方式"
|
||||||
|
align="center"
|
||||||
|
prop="manageTypeName"
|
||||||
|
/>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<div
|
||||||
|
class="fillIn"
|
||||||
|
style="
|
||||||
|
margin-top: 30px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<div class="item" style="width: 25%">
|
||||||
|
<span>审核:</span>
|
||||||
|
</div>
|
||||||
|
<div class="item" style="width: 25%">
|
||||||
|
<span>领料:</span>
|
||||||
|
</div>
|
||||||
|
<div class="item" style="width: 25%">
|
||||||
|
<span>仓库:</span>
|
||||||
|
</div>
|
||||||
|
<div class="item" style="width: 25%">
|
||||||
|
<span>操作人:</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</vue-easy-print>
|
||||||
|
</div>
|
||||||
|
<div slot="footer" class="dialog-footer" style="text-align: center">
|
||||||
|
<el-button type="primary" @click="print">打 印</el-button>
|
||||||
|
<el-button @click="open = false">关 闭</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
getUnitData,
|
getUnitData,
|
||||||
getProData,
|
getProData,
|
||||||
getLeaseAuditList,
|
getLeaseAuditList,
|
||||||
getLeaseAuditListDetail,
|
getLeaseAuditListDetail,
|
||||||
getDetailsByTypeId,
|
getDetailsByTypeId,
|
||||||
submitOut,
|
submitOut,
|
||||||
submitNumOut,
|
submitNumOut,
|
||||||
getLeaseOutDetailRecordApi,
|
getLeaseOutDetailRecordApi, getLeaseListAll, getLeaseOutOrder,
|
||||||
} from '@/api/claimAndRefund/receive.js'
|
} from '@/api/claimAndRefund/receive.js'
|
||||||
import { getTypeList } from '@/api/store/warehousing'
|
import { getTypeList } from '@/api/store/warehousing'
|
||||||
import { equipmentTypeTree } from '@/api/store/tools'
|
import { equipmentTypeTree } from '@/api/store/tools'
|
||||||
import Treeselect from '@riophae/vue-treeselect'
|
import Treeselect from '@riophae/vue-treeselect'
|
||||||
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
||||||
|
import vueEasyPrint from 'vue-easy-print'
|
||||||
export default {
|
export default {
|
||||||
name: 'receiveOut',
|
name: 'receiveOut',
|
||||||
components: { Treeselect },
|
components: { Treeselect,vueEasyPrint },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
|
|
@ -649,6 +794,8 @@ export default {
|
||||||
showSearch: true,
|
showSearch: true,
|
||||||
// 总条数
|
// 总条数
|
||||||
total: 0,
|
total: 0,
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
// 表格数据
|
// 表格数据
|
||||||
leaseList: [],
|
leaseList: [],
|
||||||
// 弹出层标题
|
// 弹出层标题
|
||||||
|
|
@ -721,6 +868,9 @@ export default {
|
||||||
},
|
},
|
||||||
leaseOutDetailsList: [],
|
leaseOutDetailsList: [],
|
||||||
outTime: [],
|
outTime: [],
|
||||||
|
// 领料任务详情数据
|
||||||
|
leaseOutDetailRecord: [],
|
||||||
|
leaseOutData: {},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
@ -969,6 +1119,21 @@ export default {
|
||||||
this.outRecordVisible = true
|
this.outRecordVisible = true
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
/* 打开出库单 */
|
||||||
|
async openLld(row) {
|
||||||
|
this.open = true
|
||||||
|
|
||||||
|
const res = await getLeaseOutOrder({ parentId: row.parentId,typeId: row.typeId})
|
||||||
|
|
||||||
|
this.leaseOutDetailRecord = res.data.leaseOutDetailRecord
|
||||||
|
this.leaseOutData = res.data
|
||||||
|
|
||||||
|
console.log('this.leaseApplyData ============', this.leaseApplyData)
|
||||||
|
},
|
||||||
|
// 领料单 打印
|
||||||
|
print() {
|
||||||
|
this.$refs.remarksPrintRef.print()
|
||||||
|
},
|
||||||
|
|
||||||
async onHandleQuery() {
|
async onHandleQuery() {
|
||||||
const res = await getLeaseOutDetailRecordApi(
|
const res = await getLeaseOutDetailRecordApi(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue