领料审核联调

This commit is contained in:
hongchao 2025-06-23 14:40:10 +08:00
parent c8f0dc90cb
commit 41af3266de
3 changed files with 43 additions and 33 deletions

View File

@ -22,9 +22,9 @@
@clear="clearPro"
></eselect>
</uni-forms-item>
<uni-forms-item label="采购申请编号" name="applyCode" required>
<!-- <uni-forms-item label="采购申请编号" name="applyCode" required>
<uni-easyinput v-model="formData.applyCode" maxlength="10" placeholder="请输入采购申请编号" />
</uni-forms-item>
</uni-forms-item> -->
<uni-forms-item label="领料人" name="leasePerson" required>
<uni-easyinput v-model="formData.leasePerson" maxlength="10" placeholder="请输入领料人" />
</uni-forms-item>
@ -148,7 +148,7 @@ const formData = ref({
leasePerson: '',
phone: '',
configId: '',
applyCode: '',
// applyCode: '',
code:''
}
})
@ -192,15 +192,15 @@ const rules = ref({
}
]
},
applyCode: {
rules: [
{
required: true,
errorMessage: '采购申请编号为必填项',
trigger: 'blur'
}
]
},
// applyCode: {
// rules: [
// {
// required: true,
// errorMessage: '',
// trigger: 'blur'
// }
// ]
// },
leasePerson: {
rules: [
{
@ -485,7 +485,7 @@ const submitNum = async() => {
"phone":formData.value.phone,
"code": formData.value.code,
"standardConfigId":configId.value,
"applyCode":formData.value.applyCode,
// "applyCode":formData.value.applyCode,
"bmFileInfos": bmFileInfos.value,
},
"leaseApplyDetailsList":typeList.value

View File

@ -58,7 +58,11 @@
}"
>
{{ item.isAccept == 0 ? '待审批' : item.isAccept == 1 ? '已通过' : '已驳回' }}
{{ item.createTime ? ` ${item.createTime}` : '' }}
<br />
<text class="black-text">{{ item.auditBy ? item.auditBy : '' }}</text>
<br />
<!-- 显示创建时间使用新的 CSS 类设置文字颜色为黑色 -->
<text class="black-text">{{ item.createTime ? item.createTime : '' }}</text>
</text>
</view>
</view>
@ -271,6 +275,7 @@ const fetchAuditInfo = async () => {
const res = await getAuditInfoAPI({taskId:queryParams.value.taskId})
console.log('🚀 ~ fetchAuditInfo ~ res:', res)
auditingList.value = res.rows
console.log('🚀 ~ fetchAuditInfo ~ auditingList:', auditingList.value)
} catch (error) {
//
@ -302,7 +307,7 @@ const getCodeDeviceListData = async () => {
const handleReview = (action) => {
uni.showModal({
title: action == 1 ? '通过' : '驳回',
content: '请输入审核意见',
placeholderText: '请输入审核意见',
editable: true,
confirmText: '确认',
cancelText: '取消',
@ -398,7 +403,9 @@ const onHandleOutbound = async () => {
<style lang="scss" scoped>
.black-text {
color: #000;
}
.custom-steps {
margin-bottom: 5px;
}
@ -430,15 +437,15 @@ const onHandleOutbound = async () => {
}
.step-icon.pending {
background-color: #fadb14;
background-color: #19a4a0;
}
.step-icon.approved {
background-color: #52c41a;
background-color: #19a4a0;
}
.step-icon.rejected {
background-color: #ff4d4f;
background-color: #19a4a0;
}
.step-line {
@ -447,15 +454,15 @@ const onHandleOutbound = async () => {
left: 50%;
width: 100%;
height: 2px;
background-color: #d9d9d9;
background-color: #19a4a0;
}
.step-line.approved {
background-color: #52c41a;
background-color: #19a4a0;
}
.step-line.rejected {
background-color: #ff4d4f;
background-color: #19a4a0;
}
.step-content {
@ -466,39 +473,42 @@ const onHandleOutbound = async () => {
}
.step-title {
font-size: 14px;
font-weight: 500;
font-size: 11px;
font-weight: 400;
margin-bottom: 3px;
text-align: center;
}
.step-title.pending {
color: #fadb14;
color: #19a4a0;
}
.step-title.approved {
color: #52c41a;
color: #19a4a0;
}
.step-title.rejected {
color: #ff4d4f;
color: #19a4a0;
}
.step-desc {
font-size: 12px;
font-size: 10px;
text-align: center;
color: #8c8c8c; //
}
.step-desc.pending {
color: #fadb14; //
font-size: 10px;
color: #409EFF; //
}
.step-desc.approved {
color: #52c41a; // 绿
font-size: 10px;
color: #13ce66; // 绿
}
.step-desc.rejected {
font-size: 10px;
color: #ff4d4f; //
}
.page-container {

View File

@ -147,7 +147,7 @@ const queryParams = ref({
startTime: '', //
endTime: '', //
keyWord: '', //
// statusList: [4], //
statusList: [4], //
pageNum: 1,
pageSize: 3,
})
@ -255,11 +255,11 @@ const changeTab = (index) => {
active.value = index
console.log('index', index)
if (index == 2) {
// queryParams.value.statusList = [3] //
queryParams.value.statusList = [2,3] //
queryParams.value.pageNum = 1
getTableList(true)
} else if (index == 1) {
// queryParams.value.statusList = [4] //
queryParams.value.statusList = [0,1] //
queryParams.value.pageNum = 1
getTableList(true)
}