南网智慧工程推送
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-table>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<!-- <MapDialog ref="mapDIalog" @getList="getList" />
|
<!-- <MapDialog ref="mapDIalog" @getList="getList" /> -->
|
||||||
<DialogPush ref="dialogPush" @getList="getList" /> -->
|
<DialogPush ref="dialogPush" @getList="getList" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -572,6 +572,7 @@ import {
|
||||||
getDetailsByTypeId,
|
getDetailsByTypeId,
|
||||||
submitOut,
|
submitOut,
|
||||||
submitNumOut,
|
submitNumOut,
|
||||||
|
pushSmartEngineeringApi,
|
||||||
} from '@/api/claimAndRefund/receive.js'
|
} from '@/api/claimAndRefund/receive.js'
|
||||||
import { getTypeList } from '@/api/store/warehousing'
|
import { getTypeList } from '@/api/store/warehousing'
|
||||||
import { equipmentTypeTree } from '@/api/store/tools'
|
import { equipmentTypeTree } from '@/api/store/tools'
|
||||||
|
|
@ -821,7 +822,6 @@ export default {
|
||||||
this.maCodeList = selection.map((item) => item.maId)
|
this.maCodeList = selection.map((item) => item.maId)
|
||||||
},
|
},
|
||||||
selectable(row) {
|
selectable(row) {
|
||||||
console.log(row)
|
|
||||||
if (row.maStatus == '在库') {
|
if (row.maStatus == '在库') {
|
||||||
return true
|
return true
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -892,9 +892,19 @@ export default {
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
// 推送智慧工地
|
// 推送智慧工地
|
||||||
handlePush() {
|
async handlePush() {
|
||||||
console.log('🚀 ~ handlePush ~ :')
|
// console.log('🚀 ~ handlePush ~ :')
|
||||||
this.$refs.dialogPush.openDialog(true)
|
// 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) {
|
handleSelect(val) {
|
||||||
console.log('🚀 ~ handleSelect ~ :', val)
|
console.log('🚀 ~ handleSelect ~ :', val)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue