南网智慧工程推送
This commit is contained in:
parent
9beae167e9
commit
8d02151e29
|
|
@ -308,7 +308,14 @@ export function getCostBearingApi() {
|
|||
})
|
||||
}
|
||||
|
||||
|
||||
// 推送智慧工程
|
||||
export function pushSmartEngineeringApi(data) {
|
||||
return request({
|
||||
url: '/material/base/tm_task/pushToIntelligentProject',
|
||||
method: 'post',
|
||||
data,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -558,8 +558,8 @@
|
|||
</el-table>
|
||||
</el-dialog>
|
||||
|
||||
<!-- <MapDialog ref="mapDIalog" @getList="getList" />
|
||||
<DialogPush ref="dialogPush" @getList="getList" /> -->
|
||||
<!-- <MapDialog ref="mapDIalog" @getList="getList" /> -->
|
||||
<DialogPush ref="dialogPush" @getList="getList" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
@ -572,6 +572,7 @@ import {
|
|||
getDetailsByTypeId,
|
||||
submitOut,
|
||||
submitNumOut,
|
||||
pushSmartEngineeringApi,
|
||||
} from '@/api/claimAndRefund/receive.js'
|
||||
import { getTypeList } from '@/api/store/warehousing'
|
||||
import { equipmentTypeTree } from '@/api/store/tools'
|
||||
|
|
@ -821,7 +822,6 @@ export default {
|
|||
this.maCodeList = selection.map((item) => item.maId)
|
||||
},
|
||||
selectable(row) {
|
||||
console.log(row)
|
||||
if (row.maStatus == '在库') {
|
||||
return true
|
||||
} else {
|
||||
|
|
@ -892,9 +892,19 @@ export default {
|
|||
)
|
||||
},
|
||||
// 推送智慧工地
|
||||
handlePush() {
|
||||
console.log('🚀 ~ handlePush ~ :')
|
||||
this.$refs.dialogPush.openDialog(true)
|
||||
async handlePush() {
|
||||
// console.log('🚀 ~ handlePush ~ :')
|
||||
// this.$refs.dialogPush.openDialog(true)
|
||||
|
||||
if (this.selectList.length < 1) {
|
||||
this.$message.error('请选择需要推送的数据!')
|
||||
return
|
||||
}
|
||||
|
||||
const res = await pushSmartEngineeringApi(this.selectList)
|
||||
console.log(res, '请求结果')
|
||||
|
||||
console.log(this.selectList, 'this.selectList')
|
||||
},
|
||||
handleSelect(val) {
|
||||
console.log('🚀 ~ handleSelect ~ :', val)
|
||||
|
|
|
|||
Loading…
Reference in New Issue