添加 采集 修改车辆信息页面 备货单页面调整 审核菜单徽标

This commit is contained in:
浅念
2025-10-12 17:14:32 +08:00
parent dee800f90f
commit 0b89bade20
35 changed files with 5848 additions and 543 deletions
+110 -5
View File
@@ -95,10 +95,11 @@
<el-link
v-if="
scope.row.is_use == 0 &&
scope.row.approval_status == 1 &&(scope.row.appro_status?scope.row.appro_status.status=='approved':false)
scope.row.approval_status == 2 &&(scope.row.appro_status?scope.row.appro_status.status=='approved':false)
"
type="primary"
underline="never"
style="margin-right: 8px"
@click="handleCreateRepair(scope.row)"
>
<i class="iconfont-sys">&#xe6bf;</i> 创建终版
@@ -107,16 +108,54 @@
v-if="scope.row.is_use == 1"
type="success"
underline="never"
style="margin-right: 8px"
@click="handleView1(scope.row)"
>
<i class="iconfont-sys">&#xe76c;</i> 查看终版
</el-link>
<el-link type="warning" underline="never" @click="copys(scope.row)">
<el-link
type="warning"
underline="never"
@click="copys(scope.row)"
style="margin-right: 8px"
>
<i class="iconfont-sys">&#xe8b7;</i> 复制
</el-link>
<el-link type="warning" underline="never" @click="showDialogtimeline(scope.row)">
<el-link
type="warning"
underline="never"
@click="showDialogtimeline(scope.row)"
style="margin-right: 8px"
>
<i class="iconfont-sys">&#xe728;</i> 查看审批
</el-link>
<el-link
v-if="scope.row.approval_status == 1"
type="primary"
underline="never"
@click="stockrecallfn(scope.row)"
style="margin-right: 8px"
>
<i class="iconfont-sys">&#xe65e;</i> 撤回
</el-link>
<el-link
v-if="scope.row.approval_status == 2"
type="danger"
underline="never"
@click="stockinvalidfn(scope.row)"
style="margin-right: 8px"
>
<i class="iconfont-sys">&#xe80a;</i> 作废
</el-link>
<el-link
v-if="scope.row.approval_status == 3 || scope.row.approval_status == 4"
type="danger"
underline="never"
@click="stockdeletefn(scope.row)"
style="margin-right: 8px"
>
<i class="iconfont-sys">&#xe783;</i> 删除
</el-link>
</ElRow>
</template>
</ElTableColumn>
@@ -262,7 +301,7 @@
getList()
})
//审批进度
const showDialogtimeline = async (row: any) => {
const showDialogtimeline = async (row: any) => {
// 审批记录(兼容多种字段)
const resstockapprovallogs = await manageService.stockapprovaltimeline({
id: row.id,
@@ -284,7 +323,7 @@
timelineDialogVisible.value = true
}
function statusClass(status: any) {
if (status === 'rejected') return 'status-lost'
if (status === 'rejected' || status === 'voided') return 'status-lost'
if (status === 'approved') return 'status-following'
return 'status-dealed'
}
@@ -531,6 +570,72 @@
})
// 添加具体的复制逻辑
}
//备货单撤回
const stockrecallfn = (row: any) => {
ElMessageBox.confirm('确定要撤回此备货单吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(async () => {
CrmService.stockrecall({ id: row.id })
.then((res) => {
ElMessage.success(res?.message || '操作成功')
getList()
})
.catch((err) => {
console.log(err)
})
// 你可以在这里调用接口或做后续处理
})
.catch(() => {
// 用户点击了取消
})
}
//备货单作废
const stockinvalidfn = (row: any) => {
ElMessageBox.confirm('确定要作废此备货单吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(async () => {
CrmService.stockinvalid({ id: row.id })
.then((res) => {
ElMessage.success(res?.message || '操作成功')
getList()
})
.catch((err) => {
console.log(err)
})
// 你可以在这里调用接口或做后续处理
})
.catch(() => {
// 用户点击了取消
})
}
//删除
const stockdeletefn = (row: any) => {
ElMessageBox.confirm('确定要删除此备货单吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(async () => {
CrmService.stockdelete({ id: row.id })
.then((res) => {
ElMessage.success(res?.message || '操作成功')
getList()
})
.catch((err) => {
console.log(err)
})
// 你可以在这里调用接口或做后续处理
})
.catch(() => {
// 用户点击了取消
})
}
</script>
<style scoped lang="scss">