材料站领料单

This commit is contained in:
bb_pan 2025-07-25 16:42:15 +08:00
parent 31a5e5f06b
commit be33ba43cc
3 changed files with 19 additions and 10 deletions

View File

@ -274,6 +274,15 @@ export function getApplyInfo(id) {
}) })
} }
// 获取领料单
export function getPickListApi(data) {
return request({
url: '/material/material_lease_apply_info/getPickList',
method: 'get',
params: data
})
}
// 领料申请-删除 // 领料申请-删除
export function applyRemove(ids) { export function applyRemove(ids) {
return request({ return request({

View File

@ -195,11 +195,12 @@
</div> </div>
<div class="item" style="width: 50%; display: flex; align-items: center; flex-wrap: wrap"> <div class="item" style="width: 50%; display: flex; align-items: center; flex-wrap: wrap">
<div style="display: flex; align-items: center"> <div style="display: flex; align-items: center">
<div style="width: 50px">领料</div> <div style="width: 50px;margin-right: 18px">领料</div>
<img <img
v-if="leaseApplyData.leaseSignUrl" v-if="leaseApplyData.leaseSignUrl"
:src="leaseApplyData.leaseSignUrl" :src="leaseApplyData.leaseSignUrl"
style="width: 50px; height: 110px; transform: rotate(-90deg)" style="width: 40px; height: 90px"
:style="{transform: leaseApplyData.leaseSignType == 0 ? 'rotate(90deg)' : ''}"
alt="" alt=""
/> />
</div> </div>
@ -256,7 +257,7 @@
</template> </template>
<script> <script>
import { getListLeaseApply, getApplyInfo, applyRemove } from '@/api/materialsStation' import { getListLeaseApply, getPickListApi, applyRemove } from '@/api/materialsStation'
import vueEasyPrint from 'vue-easy-print' import vueEasyPrint from 'vue-easy-print'
import printJS from 'print-js' import printJS from 'print-js'
@ -367,8 +368,7 @@ export default {
this.leaseApplyDetails = [] this.leaseApplyDetails = []
this.leaseApplyData = {} this.leaseApplyData = {}
this.open = true this.open = true
var ids = row.id const res = await getPickListApi({ id: row.id })
const res = await getApplyInfo(ids)
this.leaseApplyDetails = res.data.leaseApplyDetailsList this.leaseApplyDetails = res.data.leaseApplyDetailsList
this.leaseApplyData = res.data.leaseApplyInfo this.leaseApplyData = res.data.leaseApplyInfo
}, },

View File

@ -186,11 +186,12 @@
</div> </div>
<div class="item" style="width: 50%; display: flex; align-items: center; flex-wrap: wrap"> <div class="item" style="width: 50%; display: flex; align-items: center; flex-wrap: wrap">
<div style="display: flex; align-items: center"> <div style="display: flex; align-items: center">
<div style="width: 50px">领料</div> <div style="width: 50px;margin-right: 18px">领料</div>
<img <img
v-if="leaseApplyData.leaseSignUrl" v-if="leaseApplyData.leaseSignUrl"
:src="leaseApplyData.leaseSignUrl" :src="leaseApplyData.leaseSignUrl"
style="width: 70px; height: 50px" style="width: 40px; height: 90px"
:style="{transform: leaseApplyData.leaseSignType == 0 ? 'rotate(90deg)' : ''}"
alt="" alt=""
/> />
</div> </div>
@ -247,7 +248,7 @@
</template> </template>
<script> <script>
import { getListLeaseApply, getApplyInfo, applyRemove } from '@/api/materialsStation' import { getListLeaseApply, getPickListApi, applyRemove } from '@/api/materialsStation'
import vueEasyPrint from 'vue-easy-print' import vueEasyPrint from 'vue-easy-print'
import printJS from 'print-js' import printJS from 'print-js'
@ -359,8 +360,7 @@ export default {
this.leaseApplyData = {} this.leaseApplyData = {}
this.title = '领料单' this.title = '领料单'
this.open = true this.open = true
var ids = row.id const res = await getPickListApi({ id: row.id})
const res = await getApplyInfo(ids)
this.leaseApplyDetails = res.data.leaseApplyDetailsList this.leaseApplyDetails = res.data.leaseApplyDetailsList
this.leaseApplyData = res.data.leaseApplyInfo this.leaseApplyData = res.data.leaseApplyInfo
}, },