Commit a3adb6db authored by 高宇's avatar 高宇

Merge remote-tracking branch 'origin/project1' into project1

# Conflicts:
#	src/views/processManagement/draw.vue
parents ff7452c4 744d7026
...@@ -306,6 +306,11 @@ ...@@ -306,6 +306,11 @@
{{ scope.row.psm || '-' }} {{ scope.row.psm || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="创建时间" prop="createDate">
<template slot-scope="scope">
{{ parseTime(scope.row.createDate, '{y}-{m}-{d}') || '-' }}
</template>
</el-table-column>
</el-table> </el-table>
<pagination <pagination
v-show="totalDetail>0" v-show="totalDetail>0"
...@@ -516,9 +521,12 @@ export default { ...@@ -516,9 +521,12 @@ export default {
this.loadingDetail = false this.loadingDetail = false
}) })
}, },
// 处理点击
handle(row) { handle(row) {
console.log('row', row) console.log('row', row)
this.applyId = row.businessId this.applyId = row.businessId
this.pn = row.pn
this.ptype = row.ptype this.ptype = row.ptype
this.pgx = row.pgx this.pgx = row.pgx
this.prank = row.prank this.prank = row.prank
...@@ -533,28 +541,19 @@ export default { ...@@ -533,28 +541,19 @@ export default {
rows: this.queryParamsDetail.rows rows: this.queryParamsDetail.rows
} }
getEquipment(obj).then(res => { getEquipment(obj).then(res => {
if (res.code && res.code === null) { if (res.code === 200) {
this.$message.warning(res.message) if (res.data.createDate !== null) {
} res.data.createDate = parseTime(res.data.createDate, '{y}-{m}-{d}')
console.log('res') }
if (res.rows.createDate && res.rows.createDate !== null) { this.detailApplyList = res.data
res.rows.createDate = parseTime(res.rows.createDate, '{y}-{m}-{d}') this.loadingDetail = false
this.openHandle = true
} }
this.detailApplyList = res.rows
this.loadingDetail = false
this.openHandle = true
}) })
// this.applyId = row.businessId
this.title = '处理' this.title = '处理'
// this.openHandle = !this.openHandle
this.loadingDetail = true this.loadingDetail = true
// detailList(this.queryParamsDetail).then(res => {
// res.rows.createDate = parseTime(res.rows.createDate, '{y}-{m}-{d}')
// this.totalDetail = res.total
// this.detailApplyList = res.rows
// this.loadingDetail = false
// })
}, },
// 获取所选行详情信息 // 获取所选行详情信息
handleDetail(row) { handleDetail(row) {
const id = row.businessId const id = row.businessId
......
...@@ -626,6 +626,7 @@ export default { ...@@ -626,6 +626,7 @@ export default {
}) })
}, },
// 处理弹窗里的勾选确定
handleCance() { handleCance() {
this.loadingDetail = true this.loadingDetail = true
if (this.multipleSelection.length === 0) { if (this.multipleSelection.length === 0) {
...@@ -670,6 +671,7 @@ export default { ...@@ -670,6 +671,7 @@ export default {
} }
} }
}, },
/** 查询warehouse列表 */ /** 查询warehouse列表 */
getDeviceList() { getDeviceList() {
this.loadingDetail = true this.loadingDetail = true
...@@ -701,9 +703,12 @@ export default { ...@@ -701,9 +703,12 @@ export default {
this.handcheckPermissionQuery() this.handcheckPermissionQuery()
} }
}, },
// 处理点击
handle(row) { handle(row) {
console.log('row', row) console.log('row', row)
this.monthDate = false this.monthDate = false
this.openHandle = true
this.applyId = row.businessId this.applyId = row.businessId
this.pn = row.pn this.pn = row.pn
this.ptype = row.ptype this.ptype = row.ptype
...@@ -720,6 +725,7 @@ export default { ...@@ -720,6 +725,7 @@ export default {
page: this.queryParamsDetail.page, page: this.queryParamsDetail.page,
rows: this.queryParamsDetail.rows rows: this.queryParamsDetail.rows
} }
// 调warehouse分页查询接口
getEquipment(obj).then(res => { getEquipment(obj).then(res => {
if (res.code === 200) { if (res.code === 200) {
if (res.data.createDate !== null) { if (res.data.createDate !== null) {
...@@ -733,7 +739,8 @@ export default { ...@@ -733,7 +739,8 @@ export default {
this.title = '处理' this.title = '处理'
this.loadingDetail = true this.loadingDetail = true
}, },
// 获取所选行详情信息
// 获取行详情信息
handleDetail(row) { handleDetail(row) {
const id = row.businessId const id = row.businessId
this.openDetails = true this.openDetails = true
...@@ -746,7 +753,8 @@ export default { ...@@ -746,7 +753,8 @@ export default {
this.loadingDetail = false this.loadingDetail = false
}) })
}, },
/** 查询apply列表 */
// 查询apply表单
getList() { getList() {
this.isCheck = false this.isCheck = false
this.radio1 = '2' this.radio1 = '2'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment