diff --git a/config/host.js b/config/host.js index 8085b22..f4b6276 100644 --- a/config/host.js +++ b/config/host.js @@ -23,8 +23,8 @@ // cg // const devhost = 'http://192.168.10.200:13000/' // lg -// const devhost = 'http://192.168.3.16:9922/' -const devhost = 'http://192.168.5.34:9922/' +const devhost = 'http://192.168.3.16:9922/' +// const devhost = 'http://192.168.5.34:9922/' /** * 正式域名 * */ diff --git a/pagesHome/pages/afterSalesDetails/afterSalesDetails.vue b/pagesHome/pages/afterSalesDetails/afterSalesDetails.vue index fc522f8..313f415 100644 --- a/pagesHome/pages/afterSalesDetails/afterSalesDetails.vue +++ b/pagesHome/pages/afterSalesDetails/afterSalesDetails.vue @@ -12,7 +12,7 @@ - 关联任务编号: + 关联任务编号:{{details.info.install && details.info.install.no}} @@ -87,7 +87,8 @@ 确认完工 - + 确认到货 @@ -347,6 +348,28 @@ return false }), + /** 确认到货 */ + confirmAOG: computed(() => { + const { id } = details.userInfo + + console.log('id :>> ', id); + + const { installSales, installWork } = details.info as any + + if (utils.getObjType(installSales) !== 'object' || utils.getObjType(installWork) !== 'object') return false + + if (!installWork.work_user_ids || !installWork.work_user_ids.includes(id)) return false + + if (installSales.type === 5 || installSales.type === 6) return true + + const _status = Number(installSales.status) + + const whiteArr = [4] + + if (whiteArr.includes(_status)) return true + + return false + }), /** 确认指派 */ confirmAssign: computed(() => { console.log('Number(details.userInfo.role_code) :>> ', Number(details.userInfo.role_code)); @@ -373,8 +396,6 @@ onLoad(async (e) => { console.log('e :>> ', e); details.pageInfo = JSON.parse(e.pageInfo) - - }) onShow(async () => { diff --git a/pagesHome/pages/taskDetails/clientInfo.vue b/pagesHome/pages/taskDetails/clientInfo.vue index 39d33a6..c6466ca 100644 --- a/pagesHome/pages/taskDetails/clientInfo.vue +++ b/pagesHome/pages/taskDetails/clientInfo.vue @@ -73,8 +73,8 @@ --> - 预约完成时间 - {{info.install_time}} + 预计完成时间 + {{installWork.estimated_finish_time}} @@ -141,6 +141,13 @@ else return {} }) + const installWork = computed(() => { + console.log('props.info :>> ', props.info); + + if (props.info && props.info.installWork) return props.info.installWork + else return {} + }) + /** 打电话 */ const handleCallPhone = () => { uni.makePhoneCall({ diff --git a/pagesUser/pages/InstallTaskList/InstallTaskList.vue b/pagesUser/pages/InstallTaskList/InstallTaskList.vue index c9392bd..d8c6d6a 100644 --- a/pagesUser/pages/InstallTaskList/InstallTaskList.vue +++ b/pagesUser/pages/InstallTaskList/InstallTaskList.vue @@ -114,7 +114,7 @@ - 预计完成时间:{{ item.expect_install_time }} + 预计安装时间:{{ item.expect_install_time }} @@ -150,7 +150,7 @@ 安装人员:{{ item.work_users }} - 预计完成时间:{{ item.expect_install_time }} + 预计安装时间:{{ item.expect_install_time }}