| | |
| | | @click="() => (exportDialogVisible = true)" |
| | | >导出台账</el-button |
| | | > |
| | | <!-- <el-button |
| | | style="margin-left: 10px" |
| | | type="primary" |
| | | @click="() => ($refs.technology.init())" |
| | | >编写技术交底单</el-button |
| | | > --> |
| | | </template> |
| | | </ttable> |
| | | <!-- 弹窗, 日期选择 --> |
| | |
| | | ></el-table-column> |
| | | </el-table> |
| | | </el-dialog> |
| | | <technology-form ref="technology"></technology-form> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | } from '@/api/plan/customerOrderInterrelated' |
| | | import ConfirmPullCustomerorder from './confirm-pull-customerorder' |
| | | import TableForm from './customerorder-form' |
| | | import TechnologyForm from './technology-form.vue' |
| | | import TableFormDEesc from './customerorder-form-desc' |
| | | import SampleTableForm from './sample-customerorder-form' |
| | | import { mapGetters } from 'vuex' |
| | |
| | | interrelatedOrderId: null, |
| | | interrelatedOrderData: [], |
| | | showInterrelatedOrderDialog: false, |
| | | technologyDialog:true, |
| | | uniqueStateArr: [], |
| | | dataForm: { |
| | | selectTime: null, |
| | | exportTime: null, |
| | | }, |
| | | expandRowKeys: null, |
| | | dataRule: { |
| | | exportTime: [ |
| | | { required: true, message: '导出日期不能为空', trigger: 'change' }, |
| | |
| | | SalesPartBatchDialog, |
| | | TableFormDEesc, |
| | | CustomerorderReturnDialog, |
| | | TechnologyForm, |
| | | }, |
| | | computed: { |
| | | ...mapGetters(['permissions']), |
| | |
| | | created() { |
| | | // this.getManufactureAttrs() |
| | | this.getTitles() |
| | | if (this.permissions.plan_customerorder_add) { |
| | | this.table.toolbar.push({ |
| | | text: '新增销售订单', |
| | | type: 'primary', |
| | |
| | | disabled: false, |
| | | permitArr: [], |
| | | }) |
| | | } |
| | | if (this.permissions.customerorder_from_otc) { |
| | | this.table.toolbar.push({ |
| | | text: '获取销售订单', |
| | |
| | | permitArr: [], |
| | | }) |
| | | } |
| | | this.table.toolbar.push({ |
| | | text: '下载工艺文件', |
| | | disabled: false, |
| | | type: 'primary', |
| | | fun: this.downloadWord, |
| | | permitArr: ['03plan','04planed'], |
| | | }) |
| | | this.table.toolbar.push({ |
| | | text: '下载排产单', |
| | | disabled: false, |
| | | type: 'primary', |
| | | permitArr: [], |
| | | fun: this.downloadProductionScheduling, |
| | | }) |
| | | if(this.permissions.plan_download_process_file){ |
| | | this.table.toolbar.push({ |
| | | text: '下载工艺文件', |
| | | disabled: false, |
| | | type: 'primary', |
| | | fun: this.downloadWord, |
| | | permitArr: ['03plan','04planed'], |
| | | }) |
| | | } |
| | | if(this.permissions.plan_download_product_file){ |
| | | this.table.toolbar.push({ |
| | | text: '下载排产单', |
| | | disabled: false, |
| | | type: 'primary', |
| | | permitArr: [], |
| | | fun: this.downloadProductionScheduling, |
| | | }) |
| | | } |
| | | if(this.permissions.plan_relevance_order){ |
| | | this.table.toolbar.push({ |
| | | text: '关联订单', |
| | | disabled: false, |
| | |
| | | fun: this.interrelatedOrderFun, |
| | | permitArr: [], |
| | | }) |
| | | } |
| | | if (this.permissions.customerorder_create_masterplan) { |
| | | this.table.toolbar.push({ |
| | | text: '主生产计划', |
| | |
| | | this.getData() |
| | | }, |
| | | |
| | | getData() { |
| | | this.$refs.customerOrderTable.getDataList() |
| | | async getData() { |
| | | await this.$refs.customerOrderTable.getDataList() |
| | | this.$refs.customerOrderTable.tableData.forEach((ele) => { |
| | | this.$refs.customerOrderTable.$refs.lmesTable.toggleRowExpansion(ele,false) |
| | | }) |
| | | this.expandRowKeys && this.$refs.customerOrderTable.$refs.lmesTable.toggleRowExpansion(this.expandRowKeys,true) |
| | | }, |
| | | // 获取数据列表去除已完成状态的 |
| | | handleDataList(command) { |
| | |
| | | this.$refs.addSampleForm.init(row ? row.contractNo : null) |
| | | }) |
| | | } |
| | | this.$refs.customerOrderTable.tableData.forEach((item) => { |
| | | if(item.children&&item.children.find(m=>m.id==row.id)){ |
| | | this.expandRowKeys = item; |
| | | } |
| | | }) |
| | | }, |
| | | // 新增样品订单 |
| | | addSampleCustomerOrder() { |