提交 822f2341 authored 作者: lidongxu's avatar lidongxu

refactor(examine): 稽核详情返回计划状态变成了文字

传递的接口还是 0 和 1
上级 eb4e3483
...@@ -251,9 +251,9 @@ const getDetail = async () => { ...@@ -251,9 +251,9 @@ const getDetail = async () => {
form.value.storePicture = res.data.storePicture ? [{ form.value.storePicture = res.data.storePicture ? [{
url: res.data.storePicture url: res.data.storePicture
}] : [] }] : []
form.value.planStatus = Boolean(res.data.planStatus * 1) // 0 未执行(false) 1 执行(true) form.value.planStatus = res.data.planStatus === '执行' // 未执行(false) 执行(true)
// 如果执行了促销人数默认为 1,否则为 0 // 如果执行了促销人数默认为 1,否则为 0
form.value.temNum = res.data.temNum || (res.data.planStatus ? 1 : 0) form.value.temNum = res.data.temNum || (form.value.planStatus ? 1 : 0)
// 如果执行了则所有单选框的值默认有值,否则为否 // 如果执行了则所有单选框的值默认有值,否则为否
if (form.value.planStatus) { if (form.value.planStatus) {
// 执行 // 执行
......
...@@ -205,6 +205,7 @@ const clickExamine = async () => { ...@@ -205,6 +205,7 @@ const clickExamine = async () => {
...planDetail.value, ...planDetail.value,
id: '', id: '',
planId: planDetail.value.id, planId: planDetail.value.id,
planStatus: planDetail.value.planStatus === 0 ? '未执行' : '执行',
employeeId: userStore().userInfo.userId, // 稽查人id employeeId: userStore().userInfo.userId, // 稽查人id
employeeName: userStore().userInfo.nickName, // 稽查人名字 employeeName: userStore().userInfo.nickName, // 稽查人名字
employeeNo: userStore().getEmployeeNo, // 稽查人工号 employeeNo: userStore().getEmployeeNo, // 稽查人工号
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论