From 0e59e3ebb9f7e9f83c7f906f40d0a562a8a686e8 Mon Sep 17 00:00:00 2001
From: cuilei <ray_tsu1@163.com>
Date: 星期一, 18 八月 2025 17:07:08 +0800
Subject: [PATCH] 排产功能物料下拉框调整
---
src/views/pms/modules/PmsProcessBillMaterialsModal.vue | 82 +++++++++++++++++++++--------------------
1 files changed, 42 insertions(+), 40 deletions(-)
diff --git a/src/views/pms/modules/PmsProcessBillMaterialsModal.vue b/src/views/pms/modules/PmsProcessBillMaterialsModal.vue
index 806a2e2..d6fce85 100644
--- a/src/views/pms/modules/PmsProcessBillMaterialsModal.vue
+++ b/src/views/pms/modules/PmsProcessBillMaterialsModal.vue
@@ -8,53 +8,55 @@
:okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
@cancel="handleCancel"
cancelText="鍏抽棴">
- <pms-process-bill-materials-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit"></pms-process-bill-materials-form>
+ <pms-process-bill-materials-form ref="realForm" @ok="submitCallback"
+ :disabled="disableSubmit"></pms-process-bill-materials-form>
</j-modal>
</template>
<script>
- import PmsProcessBillMaterialsForm from './PmsProcessBillMaterialsForm'
- export default {
- name: 'PmsProcessBillMaterialsModal',
- components: {
- PmsProcessBillMaterialsForm
+import PmsProcessBillMaterialsForm from './PmsProcessBillMaterialsForm'
+
+export default {
+ name: 'PmsProcessBillMaterialsModal',
+ components: {
+ PmsProcessBillMaterialsForm
+ },
+ data() {
+ return {
+ title: '',
+ width: 896,
+ visible: false,
+ disableSubmit: false
+ }
+ },
+ methods: {
+ add() {
+ this.visible = true
+ this.$nextTick(() => {
+ this.$refs.realForm.add()
+ })
},
- data () {
- return {
- title:'',
- width:896,
- visible: false,
- disableSubmit: false
- }
+ edit(record) {
+ this.visible = true
+ this.$nextTick(() => {
+ this.$refs.realForm.edit(record)
+ })
},
- methods: {
- add () {
- this.visible=true
- this.$nextTick(()=>{
- this.$refs.realForm.add();
- })
- },
- edit (record) {
- this.visible=true
- this.$nextTick(()=>{
- this.$refs.realForm.edit(record);
- })
- },
- close () {
- this.$emit('close');
- this.visible = false;
- },
- handleOk () {
- this.$refs.realForm.submitForm();
- },
- submitCallback(){
- this.$emit('ok');
- this.visible = false;
- },
- handleCancel () {
- this.close()
- }
+ close() {
+ this.$emit('close')
+ this.visible = false
+ },
+ handleOk() {
+ this.$refs.realForm.submitForm()
+ },
+ submitCallback() {
+ this.$emit('ok')
+ this.visible = false
+ },
+ handleCancel() {
+ this.close()
}
}
+}
</script>
\ No newline at end of file
--
Gitblit v1.9.3