| | |
| | | { |
| | | id: 1, |
| | | name: "1检验员", |
| | | classType: '-1', |
| | | info: "", |
| | | infoTitle:"不合格情况描述:", |
| | | time: "", |
| | |
| | | { |
| | | id: 2, |
| | | name: "2检测主管确认", |
| | | classType: '-1', |
| | | infoTitle:"处理意见:", |
| | | info: "", |
| | | time: "", |
| | |
| | | { |
| | | id: 3, |
| | | name: "3物流部确认", |
| | | classType: '-1', |
| | | infoTitle:"处理意见:", |
| | | info: "", |
| | | time: "", |
| | |
| | | { |
| | | id: 4, |
| | | name: "4产品工程师处理意见", |
| | | classType: '-1', |
| | | infoTitle:"处理意见:", |
| | | info: "", |
| | | time: "", |
| | |
| | | { |
| | | id: 5, |
| | | name: "5.总工或者副经理的处理意见", |
| | | classType: '-1', |
| | | infoTitle:"处理意见:", |
| | | info: "", |
| | | time: "", |
| | |
| | | { |
| | | id: 6, |
| | | name: "6质量部处理意见", |
| | | classType: '-1', |
| | | infoTitle:"处理意见:", |
| | | info: "", |
| | | time: "", |
| | |
| | | { |
| | | id: 7, |
| | | name: "7质量部经理", |
| | | classType: '-1', |
| | | infoTitle:"处理意见:", |
| | | info: "", |
| | | time: "", |
| | |
| | | { |
| | | id: 8, |
| | | name: "8核算员", |
| | | classType: '-1', |
| | | infoTitle:"处理意见:", |
| | | info: "", |
| | | time: "", |
| | |
| | | { |
| | | id: 9, |
| | | name: "9物流部索赔结果", |
| | | classType: '-1', |
| | | infoTitle:"处理意见:", |
| | | info: "", |
| | | time: "", |
| | |
| | | operation: "", |
| | | hasData: false, |
| | | }, |
| | | { |
| | | id: 9, |
| | | classType: "0", |
| | | name: "6归档(一类不合格)", |
| | | info: "", |
| | | infoTitle:"处理意见:", |
| | | time: "", |
| | | operator: "", |
| | | operation: "", |
| | | hasData: false, |
| | | }, |
| | | // { |
| | | // id: 9, |
| | | // classType: "0", |
| | | // name: "6归档(一类不合格)", |
| | | // info: "", |
| | | // infoTitle:"处理意见:", |
| | | // time: "", |
| | | // operator: "", |
| | | // operation: "", |
| | | // hasData: false, |
| | | // }, |
| | | { |
| | | id: 10, |
| | | classType: "1", |
| | |
| | | operation: "", |
| | | hasData: false, |
| | | }, |
| | | { |
| | | id: 11, |
| | | classType: "1", |
| | | name: "7归档(二类不合格)", |
| | | info: "", |
| | | infoTitle:"处理意见:", |
| | | time: "", |
| | | operator: "", |
| | | operation: "", |
| | | hasData: false, |
| | | }, |
| | | // { |
| | | // id: 11, |
| | | // classType: "1", |
| | | // name: "7归档(二类不合格)", |
| | | // info: "", |
| | | // infoTitle:"处理意见:", |
| | | // time: "", |
| | | // operator: "", |
| | | // operation: "", |
| | | // hasData: false, |
| | | // }, |
| | | ], |
| | | classType:null, |
| | | }; |
| | |
| | | <el-row > |
| | | <el-col :span="12"> |
| | | <el-form-item label="分类" prop="classification"> |
| | | <el-select style="width:100%" v-model="unPassForm.classification" :disabled="type === 'view' || !unPassForm.id" size="small" placeholder="请选择"> |
| | | <el-select style="width:100%" v-model="unPassForm.classification" disabled size="small" placeholder="请选择"> |
| | | <el-option v-for="item in classificationOptions" :key="item.value" :label="item.label" |
| | | :value="item.value"></el-option> |
| | | </el-select> |
| | |
| | | this.$emit('resetForm') |
| | | } |
| | | this.handlunPassLoading = false |
| | | }).catch(error => { |
| | | console.error(error) |
| | | this.handlunPassLoading = false |
| | | }) |
| | | } else { |
| | | console.log('error submit!!'); |
| | |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="OA审核状态" prop="operation"> |
| | | <el-form-item label="OA审核状态" prop="oaState"> |
| | | <el-select |
| | | clearable |
| | | size="small" |
| | | v-model="entity.operation" |
| | | v-model="entity.oaState" |
| | | style="width: 100%" |
| | | @change="refreshTable()" |
| | | > |
| | |
| | | :close-on-click-modal="false" |
| | | :visible.sync="insOrderVisible" |
| | | @closed="resetInsOrderForm" |
| | | @open="getListData" |
| | | width="50%" |
| | | > |
| | | <el-row :gutter="20" style="margin-bottom: 10px"> |
| | |
| | | :tableData="insOrderDataList" |
| | | :column="insOrderTableDataColumn" |
| | | :isSelection="true" |
| | | :selectionSelectable="insOrderSelectable" |
| | | :handleSelectionChange="handlerSelection" |
| | | :rowClassName="insOrderRowClassName" |
| | | @pagination="insOrderPageination" |
| | | :height="500" |
| | | :page="insOrderPage" |
| | |
| | | :tableData="wgInsOrderDataList" |
| | | :column="wgInsOrderTableDataColumn" |
| | | :isSelection="true" |
| | | :selectionSelectable="insOrderSelectable" |
| | | :handleSelectionChange="handlerSelection" |
| | | :rowClassName="insOrderRowClassName" |
| | | @pagination="wgInsOrderPageination" |
| | | :height="500" |
| | | :page="wgInsOrderPage" |
| | |
| | | deleteUnqualifiedHandler, |
| | | page, |
| | | pushOA, |
| | | exportUnqualifiedHandler, |
| | | getList |
| | | exportUnqualifiedHandler |
| | | } from "@/api/business/unqualifiedHandler"; |
| | | import { transformExcel } from "@/utils/file"; |
| | | export default { |
| | |
| | | supplierName: null, |
| | | feedbackDateTime: [], |
| | | materialProp: null, |
| | | operation: null, |
| | | oaState: null, |
| | | }, |
| | | tableData: [], |
| | | tableLoading: false, |
| | |
| | | { label: "编号", prop: "no", width: "160px" }, |
| | | { |
| | | label: "OA审核状态", |
| | | prop: "operation", |
| | | prop: "oaState", |
| | | width: "100px", |
| | | dataType: "tag", |
| | | formatData: (params) => { |
| | | if (params) { |
| | | this.dict.type.oa_workflow_state.forEach((item) => { |
| | | if (item.value == params) { |
| | | params = item.raw.dictLabel; |
| | | } |
| | | }); |
| | | } |
| | | return params; |
| | | }, |
| | | formatType: (params) => { |
| | | if (params) { |
| | | this.dict.type.oa_workflow_state.forEach((item) => { |
| | | if (item.value === params) { |
| | | if (item.value == params) { |
| | | params = item.raw.listClass; |
| | | } |
| | | }); |
| | |
| | | operation: [ |
| | | { |
| | | name: (row) => { |
| | | return row.requestId !== null && row.operation === "退回" |
| | | return row.requestId !== null && row.oaState === 4 |
| | | ? "重新提交" |
| | | : "提交OA"; |
| | | }, |
| | |
| | | this.openOA(row); |
| | | }, |
| | | disabled: (row, index) => { |
| | | return row.requestId !== null && row.operation !== "退回"; // 有requestId说明已经提交过OA,不可再次提交 |
| | | return row.requestId !== null && row.oaState !== 4; // 有requestId说明已经提交过OA,不可再次提交 |
| | | }, |
| | | }, |
| | | { |
| | |
| | | this.deleteOA(row); |
| | | }, |
| | | disabled: (row, index) => { |
| | | return row.requestId !== null && row.operation !== "退回"; // 有requestId说明已经提交过OA,不可再次提交 |
| | | return row.requestId !== null && row.oaState !== 4; // 有requestId说明已经提交过OA,不可再次提交 |
| | | }, |
| | | }, |
| | | ], |
| | |
| | | this.refreshTable(); |
| | | }, |
| | | methods: { |
| | | getListData(){ |
| | | getList().then(res => { |
| | | this.insOrderIds = []; |
| | | if(res.code === 200){ |
| | | this.insOrderIds = res.data; |
| | | } |
| | | }).catch(err => { |
| | | console.error(err) |
| | | }) |
| | | }, |
| | | insOrderSelectable(row) { |
| | | const existsInMain = this.insOrderIds.some( |
| | | (id) => id === row.enterOrderId |
| | | ); |
| | | return !existsInMain; |
| | | }, |
| | | insOrderRowClassName({ row }) { |
| | | const existsInMain = this.insOrderIds.some( |
| | | (id) => id === row.enterOrderId |
| | | ); |
| | | return existsInMain ? "disabled-selection-row" : ""; |
| | | }, |
| | | resetInsOrderForm() { |
| | | this.activeName = "raw"; |
| | | this.insOrderDataList = []; |