吉安感知网项目-前端
shuishen
2026-02-02 c74a022726913c99dcdb8dd1885655674308a596
Merge branch 'master' of http://139.196.74.78:10010/r/jagzwxm/ja_web
5 files modified
348 ■■■■■ changed files
applications/task-work-order/src/views/orderView/appConfiguration/materials/接口文档.txt 321 ●●●●● patch | view | raw | blame | history
applications/task-work-order/src/views/orderView/orderManage/inspectionRequest/RefuseOrderDialog1.vue 7 ●●●●● patch | view | raw | blame | history
applications/task-work-order/src/views/orderView/orderManage/inspectionRequest/ViewDiaLog.vue 7 ●●●●● patch | view | raw | blame | history
applications/task-work-order/src/views/orderView/orderManage/orderManage/RefuseOrderDialog.vue 3 ●●●● patch | view | raw | blame | history
uniapps/work-app/src/subPackages/workDetail/index.vue 10 ●●●● patch | view | raw | blame | history
applications/task-work-order/src/views/orderView/appConfiguration/materials/接口文档.txt
@@ -0,0 +1,321 @@
## 分页
**接口地址**:`/implement/gdMaterial/page`
**请求方式**:`GET`
**请求数据类型**:`application/x-www-form-urlencoded`
**响应数据类型**:`*/*`
**接口描述**:<p>传入gdMaterial</p>
**请求参数**:
**请求参数**:
| 参数名称 | 参数说明 | 请求类型    | 是否必须 | 数据类型 | schema |
| -------- | -------- | ----- | -------- | -------- | ------ |
|areaCode|区域编码|query|false|string||
|current|当前页|query|false|integer(int32)||
|id|主键id|query|false|integer(int64)||
|isAllScenario|是否适用全部情形:1是 0否|query|false|integer(int32)||
|materialDesc|材料说明|query|false|string||
|materialName|材料名称(列表展示字段)|query|false|string||
|necessity|必要性:必填/可选/容缺|query|false|string||
|size|每页的数量|query|false|integer(int32)||
**响应状态**:
| 状态码 | 说明 | schema |
| -------- | -------- | ----- |
|200|OK|R«IPage«GdMaterialVO»»|
|401|Unauthorized||
|403|Forbidden||
|404|Not Found||
**响应参数**:
| 参数名称 | 参数说明 | 类型 | schema |
| -------- | -------- | ----- |----- |
|code|状态码|integer(int32)|integer(int32)|
|data|承载数据|IPage«GdMaterialVO»|IPage«GdMaterialVO»|
|&emsp;&emsp;current||integer(int64)||
|&emsp;&emsp;pages||integer(int64)||
|&emsp;&emsp;records||array|GdMaterialVO|
|&emsp;&emsp;&emsp;&emsp;areaCode|区域编码|string||
|&emsp;&emsp;&emsp;&emsp;id|主键id|integer||
|&emsp;&emsp;&emsp;&emsp;isAllScenario|是否适用全部情形:1是 0否|integer||
|&emsp;&emsp;&emsp;&emsp;materialDesc|材料说明|string||
|&emsp;&emsp;&emsp;&emsp;materialName|材料名称(列表展示字段)|string||
|&emsp;&emsp;&emsp;&emsp;necessity|必要性:必填/可选/容缺|string||
|&emsp;&emsp;size||integer(int64)||
|&emsp;&emsp;total||integer(int64)||
|msg|返回消息|string||
|success|是否成功|boolean||
**响应示例**:
```javascript
{
    "code": 0,
    "data": {
        "current": 0,
        "pages": 0,
        "records": [
            {
                "areaCode": "",
                "id": 0,
                "isAllScenario": 0,
                "materialDesc": "",
                "materialName": "",
                "necessity": ""
            }
        ],
        "size": 0,
        "total": 0
    },
    "msg": "",
    "success": true
}
```
## 详情
**接口地址**:`/implement/gdMaterial/detail`
**请求方式**:`GET`
**请求数据类型**:`application/x-www-form-urlencoded`
**响应数据类型**:`*/*`
**接口描述**:<p>传入gdMaterial</p>
**请求参数**:
**请求参数**:
| 参数名称 | 参数说明 | 请求类型    | 是否必须 | 数据类型 | schema |
| -------- | -------- | ----- | -------- | -------- | ------ |
|id|主键|query|true|integer(int64)||
**响应状态**:
| 状态码 | 说明 | schema |
| -------- | -------- | ----- |
|200|OK|R«GdMaterialVO»|
|401|Unauthorized||
|403|Forbidden||
|404|Not Found||
**响应参数**:
| 参数名称 | 参数说明 | 类型 | schema |
| -------- | -------- | ----- |----- |
|code|状态码|integer(int32)|integer(int32)|
|data|承载数据|GdMaterialVO|GdMaterialVO|
|&emsp;&emsp;areaCode|区域编码|string||
|&emsp;&emsp;id|主键id|integer(int64)||
|&emsp;&emsp;isAllScenario|是否适用全部情形:1是 0否|integer(int32)||
|&emsp;&emsp;materialDesc|材料说明|string||
|&emsp;&emsp;materialName|材料名称(列表展示字段)|string||
|&emsp;&emsp;necessity|必要性:必填/可选/容缺|string||
|msg|返回消息|string||
|success|是否成功|boolean||
**响应示例**:
```javascript
{
    "code": 0,
    "data": {
        "areaCode": "",
        "id": 0,
        "isAllScenario": 0,
        "materialDesc": "",
        "materialName": "",
        "necessity": ""
    },
    "msg": "",
    "success": true
}
```
## 新增或修改
**接口地址**:`/implement/gdMaterial/submit`
**请求方式**:`POST`
**请求数据类型**:`application/json`
**响应数据类型**:`*/*`
**接口描述**:<p>传入gdMaterial</p>
**请求示例**:
```javascript
{
  "areaCode": "",
  "id": 0,
  "isAllScenario": 0,
  "materialDesc": "",
  "materialName": "",
  "necessity": ""
}
```
**请求参数**:
**请求参数**:
| 参数名称 | 参数说明 | 请求类型    | 是否必须 | 数据类型 | schema |
| -------- | -------- | ----- | -------- | -------- | ------ |
|gdMaterial|gdMaterial|body|true|GdMaterialDTO|GdMaterialDTO|
|&emsp;&emsp;areaCode|区域编码||false|string||
|&emsp;&emsp;id|主键id||false|integer(int64)||
|&emsp;&emsp;isAllScenario|是否适用全部情形:1是 0否||false|integer(int32)||
|&emsp;&emsp;materialDesc|材料说明||false|string||
|&emsp;&emsp;materialName|材料名称(列表展示字段)||false|string||
|&emsp;&emsp;necessity|必要性:必填/可选/容缺||false|string||
**响应状态**:
| 状态码 | 说明 | schema |
| -------- | -------- | ----- |
|200|OK|R|
|201|Created||
|401|Unauthorized||
|403|Forbidden||
|404|Not Found||
**响应参数**:
| 参数名称 | 参数说明 | 类型 | schema |
| -------- | -------- | ----- |----- |
|code|状态码|integer(int32)|integer(int32)|
|data|承载数据|object||
|msg|返回消息|string||
|success|是否成功|boolean||
**响应示例**:
```javascript
{
    "code": 0,
    "data": {},
    "msg": "",
    "success": true
}
```
## 逻辑删除
**接口地址**:`/implement/gdMaterial/remove`
**请求方式**:`POST`
**请求数据类型**:`application/json`
**响应数据类型**:`*/*`
**接口描述**:<p>传入ids</p>
**请求参数**:
**请求参数**:
| 参数名称 | 参数说明 | 请求类型    | 是否必须 | 数据类型 | schema |
| -------- | -------- | ----- | -------- | -------- | ------ |
|ids|主键集合|query|true|string||
**响应状态**:
| 状态码 | 说明 | schema |
| -------- | -------- | ----- |
|200|OK|R|
|201|Created||
|401|Unauthorized||
|403|Forbidden||
|404|Not Found||
**响应参数**:
| 参数名称 | 参数说明 | 类型 | schema |
| -------- | -------- | ----- |----- |
|code|状态码|integer(int32)|integer(int32)|
|data|承载数据|object||
|msg|返回消息|string||
|success|是否成功|boolean||
**响应示例**:
```javascript
{
    "code": 0,
    "data": {},
    "msg": "",
    "success": true
}
```
applications/task-work-order/src/views/orderView/orderManage/inspectionRequest/RefuseOrderDialog1.vue
@@ -2,7 +2,7 @@
    <el-dialog
        class="gd-dialog"
        v-model="visible"
        :title="titleEnum[dialogMode]"
        :title="dialogTitle"
        @closed="visible = false"
        destroy-on-close
        :close-on-click-modal="false"
@@ -76,7 +76,6 @@
const dialogMode = ref('add') // 弹框模式
const submitting = ref(false) // 提交中
const dialogReadonly = computed(() => dialogMode.value === 'view')
const titleEnum = ref({ edit: '编辑', view: '查看', add: '新增' })
const rules = {
    rejectReason: fieldRules(true, 200),
@@ -99,12 +98,14 @@
}
let formLabelStr = ref('原因')
let dialogTitle = ref('新增')
// 操作类型:1.同意签收、2.拒绝签收 、3.撤回任务 、4.同意审核、 5.拒绝审核、 6.验收通过、 7.验收拒绝
async function open({ mode = 'add', row, formLabel, type } = {}) {
async function open({ mode = 'add', row, formLabel, type,title } = {}) {
    dialogMode.value = mode
    formLabelStr.value = formLabel
    dialogTitle.value =  dialogMode.value === 'add' ? title : '查看'
    formData.value = {
        id: row.id,
        auditStatus: type,
applications/task-work-order/src/views/orderView/orderManage/inspectionRequest/ViewDiaLog.vue
@@ -235,7 +235,7 @@
            </template>
            <template v-if="permission.flyOrder_controlReview">
                <el-button v-if="taskStatus === '3'" @click="addDescription" color="#F2F3F5">驳回</el-button>
                <el-button v-if="taskStatus === '3'" @click="statusChange(4)" color="#4C34FF">同意</el-button>
                <el-button v-if="taskStatus === '3'" @click="statusChange(4)" color="#4C34FF">通过</el-button>
            </template>
        </template>
        <RefuseOrderDialog1
@@ -300,10 +300,10 @@
const getAirName = inject('getAirName')
const gdStatusObj = {
    '0': { reason: '拒绝原因', operationType: '2' },
    '0': { reason: '拒绝原因', operationType: '2',title:'拒绝签收' },
    '1': { reason: '拒绝原因' },
    '2': { reason: '' },
    '3': { reason: '驳回原因', operationType: '5' },
    '3': { reason: '驳回原因', operationType: '5',title:'驳回' },
    '4': { reason: '驳回原因' },
    '5': { reason: '' },
    '6': { reason: '拒绝原因' },
@@ -337,6 +337,7 @@
            row: formData.value,
            type: gdStatusObj[taskStatus.value].operationType,
            formLabel: gdStatusObj[taskStatus.value].reason,
            title: gdStatusObj[taskStatus.value]?.title
        })
    })
}
applications/task-work-order/src/views/orderView/orderManage/orderManage/RefuseOrderDialog.vue
@@ -58,7 +58,7 @@
<script setup>
import { computed, ref } from 'vue'
import { ElMessage } from 'element-plus'
import { fieldRules, getDictLabel } from '@ztzf/utils'
import { fieldRules } from '@ztzf/utils'
import { gdWorkOrderHandleStatusApi } from '@/views/orderView/orderManage/orderManage/orderManageApi'
// 初始化表单数据
@@ -75,7 +75,6 @@
const dialogMode = ref('add') // 弹框模式
const submitting = ref(false) // 提交中
const dialogReadonly = computed(() => dialogMode.value === 'view')
const titleEnum = ref({ edit: '编辑', view: '查看', add: '新增' })
const rules = {
    rejectReason: fieldRules(true, 200),
uniapps/work-app/src/subPackages/workDetail/index.vue
@@ -155,10 +155,10 @@
    const smallUrl = detail.eventImageUrl
    imageArr.push(smallUrl)
  }
  if (detail.update_photo_url) {
    const smallUrl = detail.update_photo_url
    imageArr.push(smallUrl)
  }
  // if (detail.update_photo_url) {
  //   const smallUrl = detail.update_photo_url
  //   imageArr.push(smallUrl)
  // }
  return imageArr
})
// 跳转地图
@@ -277,7 +277,7 @@
            title: workDetailData.value.event_name || '工单详情',
            summary: '查看工单详情',
            href: 'https://example.com/workDetail?eventNum=' + workDetailData.value.event_num,
            imageUrl: workDetailData.value.photo_url,
            imageUrl: workDetailData.value.eventImageUrl,
            success: () => {
                uni.showToast({ title: '分享成功', icon: 'success' })
                onShareModalClose()