| | |
| | | <style scoped> |
| | | .unqualifiedBox{ |
| | | width: 100%; |
| | | height: 100%; |
| | | display: flex; |
| | | flex-direction: column; |
| | | } |
| | | .unqualifiedBox .title .el-button { |
| | | height: 32px; |
| | | border: 1px solid rgba(190, 190, 190, 0.44); |
| | | box-shadow: 0px 2px 4px rgba(220, 220, 220, 0.41); |
| | | padding: 0 12px; |
| | | } |
| | | .unqualifiedBox .title { |
| | | margin-bottom: 10px; |
| | | padding: 0 20px; |
| | | } |
| | | /* 条件查询头部样式 */ |
| | | .choose { |
| | | padding: 21px 24px; |
| | | display: flex; |
| | | align-items: center; |
| | | background-color: #fff; |
| | | border-bottom: 3px solid rgb(245, 247, 251); |
| | | } |
| | | |
| | | .choose * { |
| | | font-size: 14px; |
| | | } |
| | | |
| | | .choose .el-button { |
| | | height: 32px; |
| | | border: 1px solid rgba(190, 190, 190, 0.44); |
| | | box-shadow: 0px 2px 4px rgba(220, 220, 220, 0.41); |
| | | padding: 0 12px; |
| | | } |
| | | /* 不合格表格样式 */ |
| | | .unqualifiedTable{ |
| | | flex: 1; |
| | | background: #fff; |
| | | margin-top: 11px; |
| | | padding: 23px 21px; |
| | | } |
| | | </style> |
| | | |
| | | <template> |
| | | <div class="unqualifiedBox"> |
| | | <div class="title"> |
| | | <el-row> |
| | | <el-col :span="12" style="line-height: 32px;">原材料检验</el-col> |
| | | <el-col :span="12" style="text-align: right;"> |
| | | <el-button icon="el-icon-download" @click="()=>{}">导出</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | <div class="choose"> |
| | | <span>处理状态:</span> |
| | | <el-select v-model="search.insState" size="small" placeholder="请选择" style="width: 224px;margin-right: 30px;"> |
| | | <el-option label="已处理" :value="2"></el-option> |
| | | <el-option label="待处理" :value="0"></el-option> |
| | | </el-select> |
| | | <span>来料日期:</span> |
| | | <el-date-picker v-model="search.createTime" size="small" placeholder="请输入" |
| | | style="width: 224px;margin-right: 30px;" clearable value-format="yyyy-MM-dd"></el-date-picker> |
| | | <span>供应商:</span> |
| | | <el-select v-model="search.insState" size="small" placeholder="请选择" style="width: 224px;margin-right: 30px;"> |
| | | <el-option label="全部" :value="2"></el-option> |
| | | <el-option label="未检测" :value="0"></el-option> |
| | | <el-option label="已检测" :value="1"></el-option> |
| | | </el-select> |
| | | <el-button size="mini" @click="clean()"><span>重 置</span></el-button> |
| | | <el-button size="mini" type="primary" style="background: #004EA2;" @click="selectRawInspectsList()"><span>查 |
| | | 询</span></el-button> |
| | | </div> |
| | | <div class="unqualifiedTable"> |
| | | <el-table :data="unqualifiedData" height="630"> |
| | | <el-table-column |
| | | type="selection" |
| | | width="55"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | type="index" |
| | | label="序号" |
| | | width="60"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="name" |
| | | label="缺陷名称" |
| | | width="97"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | label="材料编码" |
| | | width="141"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="name" |
| | | label="材料名称" |
| | | width="214"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | label="规格型号"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | label="单位" |
| | | width="250"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | label="数量" |
| | | width="75"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | label="报检日期" |
| | | width="128"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | label="报检人" |
| | | width="78"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | label="处理日期" |
| | | width="120"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | label="处理状态" |
| | | width="100"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | label="处理结果" |
| | | width="100"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | label="操作" |
| | | width="118"> |
| | | </el-table-column> |
| | | </el-table> |
| | | <el-col style="height: 50px;display: flex;align-items: center;justify-content: right;"> |
| | | <el-pagination |
| | | :current-page="currentPage" |
| | | :page-sizes="[10, 20, 30, 50]" |
| | | :page-size="pageSize" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="countSize"> |
| | | </el-pagination> |
| | | <div class="unqualifiedBox"> |
| | | <el-row> |
| | | <el-col :span="12" style="line-height: 32px;">原材料不合格</el-col> |
| | | <el-col :span="12" style="text-align: right;"> |
| | | <el-button icon="el-icon-download" size="mini" @click="() => {}" |
| | | >导出</el-button |
| | | > |
| | | </el-col> |
| | | </el-row> |
| | | <div style="margin-top: 10px;"> |
| | | <el-card shadow="hover" class="margin-30" style="height: 80px;"> |
| | | <div class="choose"> |
| | | <span>产品名称:</span> |
| | | <el-input |
| | | size="small" |
| | | v-model="search.productName" |
| | | style="width: 224px;margin-right: 30px;" |
| | | placeholder="请输入" |
| | | clearable |
| | | ></el-input> |
| | | <span>来料日期:</span> |
| | | <el-date-picker |
| | | v-model="search.formTime" |
| | | size="small" |
| | | placeholder="请输入" |
| | | style="width: 224px;margin-right: 30px;" |
| | | clearable |
| | | value-format="yyyy-MM-dd" |
| | | ></el-date-picker> |
| | | <span>处理状态:</span> |
| | | <el-select |
| | | v-model="search.processingStatus" |
| | | size="small" |
| | | placeholder="请选择" |
| | | style="width: 224px;margin-right: 30px;" |
| | | > |
| | | <el-option label="已处理" :value="1"></el-option> |
| | | <el-option label="待处理" :value="0"></el-option> |
| | | </el-select> |
| | | <span>供应商:</span> |
| | | <el-input |
| | | size="small" |
| | | v-model="search.supplier" |
| | | style="width: 224px;margin-right: 20px;" |
| | | placeholder="请输入" |
| | | ></el-input> |
| | | <el-button size="mini" @click="clean()"><span>重 置</span></el-button> |
| | | <el-button |
| | | size="mini" |
| | | type="primary" |
| | | style="background: #004EA2;" |
| | | @click=" |
| | | unqualifiedTable = []; |
| | | getDetailInfo(); |
| | | " |
| | | ><span>查 询</span></el-button |
| | | > |
| | | </div> |
| | | </el-card> |
| | | </div> |
| | | </div> |
| | | <div class="tableno" style="height:300px"> |
| | | <el-card shadow="hover" class="margin-30"> |
| | | <el-table |
| | | :data="unqualifiedTable" |
| | | border |
| | | ref="multipleTable" |
| | | tooltip-effect="dark" |
| | | height="calc(100vh - 340px)" |
| | | style="width: 100%" |
| | | > |
| | | <el-table-column type="selection" width="50"> </el-table-column> |
| | | <el-table-column type="index" label="序号" width="60"> |
| | | <template scope="scope"> |
| | | {{ (search.pageSize - 1) * search.countSize + scope.$index + 1 }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="dateArrival" label="来料日期"> |
| | | </el-table-column> |
| | | <el-table-column prop="supplier" label="供应商"> </el-table-column> |
| | | <el-table-column |
| | | prop="reason" |
| | | label="缺陷名称" |
| | | min-width="120" |
| | | show-overflow-tooltip |
| | | > |
| | | </el-table-column> |
| | | <el-table-column prop="code" label="材料编码"> </el-table-column> |
| | | <el-table-column prop="id" label="材料名称"> </el-table-column> |
| | | <el-table-column prop="specifications" label="规格型号"> |
| | | </el-table-column> |
| | | <el-table-column prop="unit" label="单位"> </el-table-column> |
| | | <el-table-column prop="number" label="数量"> </el-table-column> |
| | | <el-table-column prop="inspectionDate" label="报检日期"> |
| | | </el-table-column> |
| | | <el-table-column prop="name" label="报检人"> </el-table-column> |
| | | <el-table-column prop="processingDate" label="检验日期"> |
| | | </el-table-column> |
| | | <el-table-column prop="deal_state" label="处理状态" width="100"> |
| | | <template slot-scope="scope"> |
| | | <span style="color:#34BD66;" v-if="scope.row.deal_state == 1" |
| | | >已处理</span |
| | | > |
| | | <span style="color:#E84738;" v-else-if="scope.row.deal_state == 0" |
| | | >待处理</span |
| | | > |
| | | </template> |
| | | </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 |
| | | > |
| | | <span |
| | | style="color:#E84738;" |
| | | v-else-if="scope.row.deal_reasult == 0" |
| | | >通过</span |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="操作" width="100"> |
| | | <template> |
| | | <div style="display: flex;"> |
| | | <el-button type="text" siae="small" size="mini">评审</el-button> |
| | | <el-button |
| | | type="text" |
| | | siae="small" |
| | | size="mini" |
| | | style=" color:87, 138, 193 ;" |
| | | >查看</el-button |
| | | > |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <el-col |
| | | style="height: 50px;display: flex;align-items: center;justify-content: right;" |
| | | > |
| | | <el-pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | | :current-page="search.pageSize" |
| | | :page-sizes="[10, 15, 20, 30, 50]" |
| | | :page-size="search.countSize" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="total" |
| | | > |
| | | </el-pagination> |
| | | </el-col> |
| | | </el-card> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | // 搜索条件 |
| | | search:{}, |
| | | unqualifiedData:[ |
| | | { |
| | | date: '2016-05-02', |
| | | name: '王小虎', |
| | | address: '上海市' |
| | | }, { |
| | | date: '2016-05-04', |
| | | name: '王小虎', |
| | | address: '上海市' |
| | | }, { |
| | | date: '2016-05-01', |
| | | name: '王小虎', |
| | | address: '上海市' |
| | | }, { |
| | | date: '2016-05-03', |
| | | name: '王小虎', |
| | | address: '上海市' |
| | | }, { |
| | | date: '2016-05-04', |
| | | name: '王小虎', |
| | | address: '上海市' |
| | | }, { |
| | | date: '2016-05-01', |
| | | name: '王小虎', |
| | | address: '上海市' |
| | | }, { |
| | | date: '2016-05-03', |
| | | name: '王小虎', |
| | | address: '上海市' |
| | | }, { |
| | | date: '2016-05-04', |
| | | name: '王小虎', |
| | | address: '上海市' |
| | | }, { |
| | | date: '2016-05-01', |
| | | name: '王小虎', |
| | | address: '上海市' |
| | | }, { |
| | | date: '2016-05-03', |
| | | name: '王小虎', |
| | | address: '上海市' |
| | | }, { |
| | | date: '2016-05-04', |
| | | name: '王小虎', |
| | | address: '上海市' |
| | | }, { |
| | | date: '2016-05-01', |
| | | name: '王小虎', |
| | | address: '上海市' |
| | | }, { |
| | | date: '2016-05-03', |
| | | name: '王小虎', |
| | | address: '上海市' |
| | | } |
| | | ], |
| | | countSize:1, |
| | | pageSize:10, |
| | | currentPage:1 |
| | | } |
| | | data() { |
| | | return { |
| | | search: { |
| | | countSize: 10, // 条数/页 |
| | | pageSize: 1, // 起始页 |
| | | formTime: "", // 来料日期 |
| | | processingStatus: "", // 处理状态 |
| | | productName: "", // 产品名称 |
| | | supplier: "" // 供应商 |
| | | }, |
| | | unqualifiedTable: [], // 页面表格数据 |
| | | total: 0 |
| | | }; |
| | | }, |
| | | mounted() { |
| | | this.getDetailInfo(); |
| | | }, |
| | | methods: { |
| | | handleSizeChange(val) { |
| | | this.search.countSize = val; |
| | | this.getDetailInfo(); |
| | | }, |
| | | handleCurrentChange(val) { |
| | | this.search.pageSize = val; |
| | | this.getDetailInfo(); |
| | | }, |
| | | getDetailInfo() { |
| | | this.axios |
| | | .get(this.$api.url.selectUnRawInspectsList, { |
| | | params: this.search |
| | | }) |
| | | .then(res => { |
| | | this.unqualifiedTable = res.data.row; |
| | | this.total = res.data.total; |
| | | }); |
| | | }, |
| | | clean() { |
| | | this.search = { |
| | | countSize: 10, // 条数/页 |
| | | pageSize: 1, // 起始页 |
| | | formTime: "", // 来料日期 |
| | | processingStatus: "", // 处理状态 |
| | | productName: "", // 产品名称 |
| | | supplier: "" // 供应商 |
| | | }; |
| | | this.getDetailInfo(); |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .unqualifiedBox { |
| | | width: 100%; |
| | | max-height: 100%; |
| | | display: flex; |
| | | flex-direction: column; |
| | | /* overflow-y: scroll; */ |
| | | } |
| | | </script> |
| | | .unqualifiedBox .title .el-button { |
| | | height: 32px; |
| | | border: 1px solid rgba(190, 190, 190, 0.44); |
| | | box-shadow: 0px 2px 4px rgba(220, 220, 220, 0.41); |
| | | padding: 0 12px; |
| | | } |
| | | .unqualifiedBox .title { |
| | | margin-bottom: 10px; |
| | | padding: 0 20px; |
| | | } |
| | | <!-- /* 条件查询头部样式 */ --> |
| | | .choose { |
| | | padding: 21px 24px; |
| | | display: flex; |
| | | align-items: center; |
| | | background-color: #fff; |
| | | border-bottom: 3px solid rgb(245, 247, 251); |
| | | } |
| | | |
| | | .choose { |
| | | font-size: 14px; |
| | | } |
| | | |
| | | .choose .el-button { |
| | | height: 32px; |
| | | border: 1px solid rgba(190, 190, 190, 0.44); |
| | | box-shadow: 0px 2px 4px rgba(220, 220, 220, 0.41); |
| | | padding: 0 12px; |
| | | } |
| | | <!-- /* 不合格表格样式 */ |
| | | .unqualifiedTable { |
| | | flex: 1; |
| | | background: #fff; |
| | | margin-top: 11px; |
| | | padding: 23px 21px; |
| | | } |
| | | .tableno { |
| | | margin-top: 10px; |
| | | } |
| | | </style> |