src/assets/api/controller.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/components/view/rawInsDetail.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/components/view/rawUnqualified/raw.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/components/view/unqualifiedManagement.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/assets/api/controller.js
@@ -27,7 +27,8 @@ } //不合格原材料 const unqualifiedaa ={ selectUnRawInspectsList: "/inspectUnaccepted/selectURawMaterials" selectUnRawInspectsList: "/inspectUnaccepted/selectURawMaterials", // 查询原材料不合格品检验单列表 evaluatePassOrNo: "/inspectUnaccepted/evaluatePassOrNo" // 评审 } // 查询成品不合格品管理 const unRawInspects ={ src/components/view/rawInsDetail.vue
@@ -118,7 +118,7 @@ <el-col :span="7"> <el-form-item label="供应商名称:"> <el-input :placeholder="detailId !== null ? '' : '请输入检验数量'" :placeholder="detailId !== null ? '' : '请输入供应商名称'" :disabled="detailId !== null" v-model="detailInfo.supplier" ></el-input> @@ -274,7 +274,7 @@ <el-table :data="conclusionTable" style="100%"> <el-table-column prop="code" label="物料编号"> </el-table-column> <el-table-column prop="name" label="物料名称"> </el-table-column> <el-table-column prop="uName" label="检验员"> <el-table-column v-if="detailId != null" prop="uName" label="检验员"> <template slot-scope="scope"> <span v-for="item in scope.row.uName" @@ -439,7 +439,11 @@ this.projectTable = res.data.children; this.projectTable.forEach(i => { // 解决重新赋值无法编辑操作 this.$set(i, "testValueList", i.testValue.split(",")); if (i.testValue == null) { this.$set(i, "testValueList", []); } else { this.$set(i, "testValueList", i.testValue.split(",")); } // 取最长的列表数 if (i.testValueList.length > this.empiricalValueAdd) { this.empiricalValueAdd = i.testValueList.length; src/components/view/rawUnqualified/raw.vue
@@ -108,25 +108,61 @@ </el-table-column> <el-table-column prop="deal_reasult" label="处理结果" width="100"> <template slot-scope="scope"> <span style="color:#34BD66;" v-if="scope.row.deal_reasult == 1" <span style="color:#E84738;" v-if="scope.row.deal_reasult == 0" >不通过</span > <span style="color:#E84738;" v-else-if="scope.row.deal_reasult == 0" style="color:#34BD66;" v-else-if="scope.row.deal_reasult == 1" >通过</span > </template> </el-table-column> <el-table-column label="操作" width="100"> <template> <template slot-scope="scope"> <div style="display: flex;"> <el-button type="text" siae="small" size="mini">评审</el-button> <el-popover placement="left" width="160" :ref="`popover-${scope.$index}`" > <div style="padding: 6px">评审是否通过?</div> <div style="text-align: right; margin: 6px;"> <el-button size="mini" type="text" style="color: #E84738;" @click=" scope._self.$refs[`popover-${scope.$index}`].doClose(); rawEvaluate(scope.row, 0); " >不通过</el-button > <el-button type="text" style="color: #34bd66;" size="mini" @click=" scope._self.$refs[`popover-${scope.$index}`].doClose(); rawEvaluate(scope.row, 1); " >通过</el-button > </div> <el-button slot="reference" type="text" siae="small" size="mini" >评审</el-button > </el-popover> <el-button type="text" siae="small" size="mini" style=" color:87, 138, 193 ;" style=" color:87, 138, 193 ; margin-left: 10px;" >查看</el-button > </div> @@ -165,7 +201,8 @@ supplier: "" // 供应商 }, unqualifiedTable: [], // 页面表格数据 total: 0 total: 0, visible: false }; }, mounted() { @@ -200,6 +237,17 @@ supplier: "" // 供应商 }; this.getDetailInfo(); }, rawEvaluate(row, passOrNo) { this.$axios .post(this.$api.url.evaluatePassOrNo, { rawId: row.id, passOrNo: passOrNo }) .then(res => { this.unqualifiedTable = []; this.getDetailInfo(); }); } } }; src/components/view/unqualifiedManagement.vue
@@ -97,12 +97,12 @@ </el-table-column> <el-table-column prop="deal_reasult" label="处理结果" width="100"> <template slot-scope="scope"> <span style="color:#34BD66;" v-if="scope.row.deal_reasult == 1" <span style="color:#E84738;" v-if="scope.row.deal_reasult == 0" >不通过</span > <span style="color:#E84738;" v-else-if="scope.row.deal_reasult == 0" style="color:#34BD66;" v-else-if="scope.row.deal_reasult == 1" >通过</span > </template>