Merge branch 'material-ui' of http://192.168.30.2:3000/bonus/bonus-ui into material-ui

This commit is contained in:
hongchao 2025-07-25 18:42:51 +08:00
commit 0f1bee7070
6 changed files with 57 additions and 41 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

@ -24,7 +24,7 @@ const service = axios.create({
// axios中请求配置有baseURL选项表示请求URL公共部分 // axios中请求配置有baseURL选项表示请求URL公共部分
baseURL: process.env.VUE_APP_BASE_API, baseURL: process.env.VUE_APP_BASE_API,
// 超时 // 超时
timeout: 15000 timeout: 30000
}) })
// request 拦截器 // request 拦截器

View File

@ -68,13 +68,11 @@
<el-table-column label="租赁单位" align="center" prop="unitName" width="180px" /> <el-table-column label="租赁单位" align="center" prop="unitName" width="180px" />
<el-table-column label="租赁工程" align="center" prop="projectName" width="180px" /> <el-table-column label="租赁工程" align="center" prop="projectName" width="180px" />
<el-table-column label="协议号" align="center" prop="agreementCode" width="140px" show-overflow-tooltip /> <el-table-column label="协议号" align="center" prop="agreementCode" width="140px" show-overflow-tooltip />
<el-table-column <el-table-column label="租赁申请单号" align="center" prop="code" width="140px" show-overflow-tooltip>
label="租赁申请单号" <template slot-scope="{ row }">
align="center" <span>{{ row.code || row.businessCode }}</span>
prop="code" </template>
width="140px" </el-table-column>
show-overflow-tooltip
></el-table-column>
<el-table-column <el-table-column
label="申请数量" label="申请数量"
@ -186,9 +184,11 @@
</template> </template>
</el-table-column> </el-table-column>
<!-- 操作 --> <!-- 操作 -->
<el-table-column label="操作" align="center" width="240" v-if="!isView"> <el-table-column label="操作" align="center" width="240">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<el-button v-if="row.isConfirm != 2" type="primary" size="mini" @click="handleConfirm(row)">确认</el-button> <el-button v-if="row.isConfirm != 2 && !isView" type="primary" size="mini" @click="handleConfirm(row)">
确认
</el-button>
<el-button type="" size="mini" @click="openBills(row)">领料单</el-button> <el-button type="" size="mini" @click="openBills(row)">领料单</el-button>
<el-button type="" size="mini" @click="openPass(row)">出门证</el-button> <el-button type="" size="mini" @click="openPass(row)">出门证</el-button>
</template> </template>
@ -278,22 +278,22 @@
<div class="fillIn" style="margin-top: 30px; display: flex; justify-content: space-between"> <div class="fillIn" style="margin-top: 30px; display: flex; justify-content: space-between">
<div class="item" style="width: 23%; display: flex; align-items: center; flex-wrap: wrap"> <div class="item" style="width: 23%; display: flex; align-items: center; flex-wrap: wrap">
<div style="width: 25%">审核</div> <div style="width: 25%">审核</div>
<div
style="width: 75%; display: flex; align-items: center; flex-wrap: wrap"
v-if="approveSignList.length > 0"
>
<div <div
style="width: 75%; display: flex; align-items: center; flex-wrap: wrap" style="width: 80%; margin-left: 20px; height: 40px"
v-if="approveSignList.length > 0" v-for="(item, index) in approveSignList"
:key="index"
> >
<div <img
style="width: 80%; margin-left: 20px; height: 40px" :src="item.outSignUrl"
v-for="(item, index) in approveSignList" :class="{ 'is-rotate': item.outSignType == 0 }"
:key="index" style="width: 40px; height: 90px; max-width: 100%"
> alt=""
<img />
:src="item.outSignUrl" </div>
:class="{ 'is-rotate': item.outSignType == 0 }"
style="width: 40px; height: 90px; max-width: 100%"
alt=""
/>
</div>
</div> </div>
</div> </div>
<div class="item" style="width: 24%; display: flex; align-items: center; flex-wrap: wrap"> <div class="item" style="width: 24%; display: flex; align-items: center; flex-wrap: wrap">
@ -336,14 +336,18 @@
<div class="item" style="width: 28%; display: flex; align-items: center"> <div class="item" style="width: 28%; display: flex; align-items: center">
<div style="width: 25%">库管</div> <div style="width: 25%">库管</div>
<div style="width: 75%; display: flex; align-items: center; flex-wrap: wrap" v-if="kgSignList.length > 0"> <div style="width: 75%; display: flex; align-items: center; flex-wrap: wrap" v-if="kgSignList.length > 0">
<img <div
style="width: 80%; margin-left: 20px; height: 40px"
v-for="(item, index) in kgSignList" v-for="(item, index) in kgSignList"
:key="index" :key="index"
:src="item.outSignUrl" >
style="width: 50px; height: 100px" <img
:style="{ transform: item.outSignType == 0 ? 'rotate(-90deg)' : '' }" :src="item.outSignUrl"
alt="" :class="{ 'is-rotate': item.outSignType == 0 }"
/> style="width: 40px; height: 90px; max-width: 100%"
alt=""
/>
</div>
</div> </div>
</div> </div>
<div class="item" style="width: 25%; display: flex; align-items: center"> <div class="item" style="width: 25%; display: flex; align-items: center">
@ -741,4 +745,7 @@ export default {
border-collapse: collapse; border-collapse: collapse;
} }
} }
.is-rotate {
transform: rotate(-90deg);
}
</style> </style>

View File

@ -688,7 +688,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" v-if="addTitle === '修改' && this.levelTemp == 2"> <el-col :span="12" v-if="addTitle === '修改' && this.levelTemp == 2">
<el-form-item label="是否绑定班组" prop="keeperUserId"> <el-form-item label="是否绑定班组" prop="keeperUserId">
<el-select style="width: 100%" v-model="addFormParams.keeperUserId"> <el-select style="width: 100%" v-model="addFormParams.keeperUserId">
<el-option v-for="(item, index) in teamLeaderList" :key="index" :label="item.keeperUserName" :value="item.keeperUserId" /> <el-option v-for="(item, index) in teamLeaderList" :key="index" :label="item.keeperUserName" :value="item.keeperUserId" />
</el-select> </el-select>

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
}, },