| | |
| | | importExcelUrl: '/qms/inspectionPlan/importExcel', |
| | | exportXlsUrl: '/qms/inspectionPlan/exportXls', |
| | | edit:'/qms/inspectionPlan/edit', |
| | | submit:'/qms/inspectionPlan/submit', |
| | | active: '/qms/inspectionPlan/active', |
| | | publish:'/qms/inspectionPlan/publish', |
| | | version:'/qms/inspectionPlan/version' |
| | |
| | | computed: { |
| | | /* 导入路径页面重新计算 */ |
| | | importExcelUrl: function () { |
| | | // return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;//开发环境指向 |
| | | return `${window._CONFIG['hxFileURL']}/${this.url.importExcelUrl}` |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;//开发环境指向 |
| | | }, |
| | | }, |
| | | methods: { |
| | |
| | | this.$refs.modalForm.title = '新增' |
| | | this.$refs.modalForm.disableSubmit = false |
| | | }, |
| | | handleSubmit(record) { |
| | | let that = this; |
| | | that.loading = true |
| | | getAction(that.url.submit, { id:record.id}).then((res) => { |
| | | if (res.success) { |
| | | that.$message.success(res.message); |
| | | that.loadData(); |
| | | } else { |
| | | that.$message.warning(res.message); |
| | | } |
| | | }).finally(() => { |
| | | that.loading = false |
| | | }) |
| | | }, |
| | | //启用禁用 |
| | | handleActive(id) { |
| | | if (!this.url.active) { |
| | |
| | | }, |
| | | isDisabled: false, |
| | | selectedRowKeys: {}, |
| | | state: { |
| | | show: false, |
| | | maintenanceValue: 1, |
| | | checkValue: 1, |
| | | maintenanceState: false, |
| | | checkState: false, |
| | | }, |
| | | inboundDate: '', |
| | | applicationDate: '', |
| | | supplierShow: false, |
| | | disableSubmit: false, |
| | | numDisable:false, |
| | | quantityDisable:false, |
| | | onlyCodeDisable:true, |
| | | returnShow:false, |
| | | toolingShow:false, |
| | | sharpenShow:false, |
| | | addDisable:false, |
| | | toolinngOptions:[], |
| | | title: '操作', |
| | | visible: false, |
| | | model: {}, |
| | |
| | | loading: false, |
| | | form: this.$form.createForm(this), |
| | | dataSource: [], |
| | | toolingTreeData:[], |
| | | warehouseOptions:[], |
| | | locationOptions:[], |
| | | allToolingList:[], |
| | | param: {}, |
| | | barcodeCurrentType: false, |
| | | planId:'', |
| | | validatorRules: { |
| | | planCode: { |
| | |
| | | return filterObj(this.param) |
| | | }, |
| | | add() { |
| | | this.handle = store.getters.userInfo.username |
| | | this.edit({}) |
| | | }, |
| | | edit(record) { |
| | | let that = this |
| | | this.form.resetFields() |
| | | this.model = Object.assign({}, record) |
| | | this.visible = true |
| | |
| | | this.$emit('close') |
| | | this.dataSource = [] |
| | | this.visible = false |
| | | this.supplierShow = false, |
| | | this.disableSubmit = false, |
| | | this.numDisable = false, |
| | | this.quantityDisable = false, |
| | | this.onlyCodeDisable = true, |
| | | this.returnShow = false, |
| | | this.toolingShow = false, |
| | | this.sharpenShow = false, |
| | | this.addDisable = false |
| | | this.disableSubmit = false |
| | | }, |
| | | handleTableChange(pagination, filters, sorter) { |
| | | this.ipagination = pagination |
| | |
| | | handleCancel() { |
| | | this.close() |
| | | }, |
| | | //选择工具 |
| | | //选择检验项目 |
| | | selectInspectionItemList: function () { |
| | | let ids = [] |
| | | for (let i = 0; i < this.dataSource.length; i++) { |
| | |
| | | }, |
| | | handleDelete(record, index) { |
| | | this.dataSource.splice(index, 1) |
| | | }, |
| | | onChange() {}, |
| | | //手选人员值 |
| | | selectCurrentUserChange(e) { |
| | | console.log('当前手选', e) |
| | | // this.form.setFieldsValue({ |
| | | // // userName: e, |
| | | // userNameId: e, |
| | | // }) |
| | | }, |
| | | detailList(planId) { |
| | | this.param.planId = planId |
| | |
| | | qualitativeOrQuantitativeName:data[i].qualitativeOrQuantitativeName |
| | | }) |
| | | } |
| | | //this.ipaginationm.total = this.dataSource.length |
| | | }) |
| | | }, |
| | | } |