parent
4f1621c7c2
commit
6ac659ffac
11 changed files with 413 additions and 255 deletions
@ -0,0 +1,95 @@ |
|||||||
|
<template> |
||||||
|
<el-dialog title="详情" append-to-body :modelValue="openShow" width="30%" @close="closeDialog"> |
||||||
|
<avue-form ref="form" v-model="form" :option="option"></avue-form> |
||||||
|
|
||||||
|
<template #footer> |
||||||
|
<span class="dialog-footer"> |
||||||
|
<el-button @click="closeDialog">取 消</el-button> |
||||||
|
</span> |
||||||
|
</template> |
||||||
|
</el-dialog> |
||||||
|
</template> |
||||||
|
<script> |
||||||
|
import { detailData } from "@/api/storeManagement/additionalPlan" |
||||||
|
export default { |
||||||
|
props: { |
||||||
|
showDialog: { |
||||||
|
type: Boolean, |
||||||
|
default: false, |
||||||
|
}, |
||||||
|
rowItem: { |
||||||
|
type: Object, |
||||||
|
default: {}, |
||||||
|
} |
||||||
|
}, |
||||||
|
data() { |
||||||
|
return { |
||||||
|
openShow: false, |
||||||
|
form: {}, |
||||||
|
option: { |
||||||
|
submitBtn: false, |
||||||
|
emptyBtn: false, |
||||||
|
labelWidth: 'auto', |
||||||
|
column: [ |
||||||
|
{ |
||||||
|
label: '采购部计划员名称', |
||||||
|
prop: 'planBuyManName', |
||||||
|
span: 24, |
||||||
|
disabled: true, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '需求状态', |
||||||
|
prop: 'needStatus', |
||||||
|
span: 24, |
||||||
|
disabled: true, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: 'erp采购单号', |
||||||
|
prop: 'erpBuyCode', |
||||||
|
span: 24, |
||||||
|
disabled: true, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '采购员名称', |
||||||
|
prop: 'buyManName', |
||||||
|
span: 24, |
||||||
|
disabled: true, |
||||||
|
}, |
||||||
|
], |
||||||
|
}, |
||||||
|
}; |
||||||
|
}, |
||||||
|
mounted() { |
||||||
|
this.openShow = this.showDialog; |
||||||
|
this.init() |
||||||
|
}, |
||||||
|
methods: { |
||||||
|
init() { |
||||||
|
detailData({ id: this.rowItem.id }).then(res => { |
||||||
|
this.form = res.data.data; |
||||||
|
}); |
||||||
|
}, |
||||||
|
closeDialog() { |
||||||
|
this.openShow = false; |
||||||
|
this.$emit('closeDialog'); |
||||||
|
}, |
||||||
|
submit() { |
||||||
|
this.$refs.form.validate(async valid => { |
||||||
|
if (valid) { |
||||||
|
// let params = { |
||||||
|
// id: this.$route.query.id, |
||||||
|
// approvalStatus: '', |
||||||
|
// }; |
||||||
|
// updateProcess(params).then((res) => { |
||||||
|
// if (res.code == 200) { |
||||||
|
// this.$message.success('操作成功'); |
||||||
|
// this.closeDialog(); |
||||||
|
// } |
||||||
|
// }); |
||||||
|
} |
||||||
|
}); |
||||||
|
}, |
||||||
|
}, |
||||||
|
}; |
||||||
|
</script> |
||||||
|
<style lang="scss" scoped></style> |
||||||
Loading…
Reference in new issue