src/views/quality/exception/exception-form.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/quality/exception/exceptionform.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/views/quality/exception/exception-form.vue
@@ -78,7 +78,7 @@ ></el-button> </el-input> </el-form-item> <el-form-item label="微信通知组" prop="notifierGroupId"> <!-- <el-form-item label="微信通知组" prop="notifierGroupId"> <el-select v-model="dataForm.notifierGroupId" style="width:100%;" @@ -92,7 +92,7 @@ > </el-option> </el-select> </el-form-item> </el-form-item> --> <el-form-item label="备注" prop="remark"> <el-input type="textarea" @@ -163,7 +163,7 @@ <script> import { getObj, putObj } from '@/api/quality/exception' import { fetchList } from '@/api/quality/wxnotice' // import { fetchList } from '@/api/quality/wxnotice' import workstationDialog from '@/views/common/workstation.vue' import productoutDialog from '@/views/common/productout.vue' import { getStore } from '../../../util/store' @@ -216,7 +216,7 @@ }, created() { this.getExceptionHandleType() this.getWxNoticeList() // this.getWxNoticeList() }, methods: { init(id) { @@ -229,6 +229,7 @@ this.$refs.dataForm.resetFields() if (this.dataForm.id) { getObj(this.dataForm.id).then((response) => { console.log(response,"----"); this.dataForm = response.data.data this.fileList = response.data.data.urlList }) @@ -304,6 +305,7 @@ }, getExceptionHandleType() { remote('exception_handle_type').then((response) => { console.log(response,"111111"); if (response.data.code === 0) { this.exceptionHandleTypeOptions = response.data.data } else { @@ -324,6 +326,7 @@ }) }, selectUser(param) { console.log(param,"----===-="); if (param) { this.dataForm.processUser = param.userId this.dataForm.processUserName = param.username src/views/quality/exception/exceptionform.vue
@@ -40,10 +40,23 @@ </el-input> </el-form-item> <el-form-item label="异常类型" prop="exceptionType"> <el-input <!-- <el-input v-model="dataForm.exceptionType" placeholder="异常类型" ></el-input> ></el-input> --> <el-select v-model="dataForm.exceptionType" style="width:100%;" placeholder="异常类型" > <el-option v-for="item in exceptionHandleTypeOptions" :key="item.value" :label="item.label" :value="item.value" > </el-option> </el-select> </el-form-item> <el-form-item label="异常描述" prop="exceptionDescription"> <el-input @@ -88,6 +101,7 @@ import productoutDialog from '@/views/common/productout.vue' import { loadWarehouse } from '../../../api/warehouse/location' import { loadWorkstation } from '../../../api/basic/workstation' import { remote } from '@/api/admin/dict' import { loadProductMain } from '../../../api/product/personboard' export default { @@ -98,6 +112,7 @@ productoutVisible: false, workstationVisible: false, visible: false, exceptionHandleTypeOptions:[], dataForm: { id: 0, code: '', @@ -124,7 +139,21 @@ clickSaveArr: [] } }, created() { console.log("22222222"); this.getExceptionHandleType() }, methods: { getExceptionHandleType() { remote('exception_handle_type').then((response) => { console.log(response,"-----"); if (response.data.code === 0) { this.exceptionHandleTypeOptions = response.data.data } else { this.exceptionHandleTypeOptions = [] } }) }, init(id, id1, id2) { this.dataForm.workstationId = id1 if (this.dataForm.workstationId) {