| | |
| | | <span>状态:</span> |
| | | <el-select v-model="search.type" size="small" placeholder="请选择" style="width: 224px;margin-right: 30px;"> |
| | | <el-option label="全部" :value="null"></el-option> |
| | | <el-option label="通过" :value="0"></el-option> |
| | | <el-option label="不通过" :value="1"></el-option> |
| | | <el-option label="未审核" :value="2"></el-option> |
| | | <el-option label="通过" :value="1"></el-option> |
| | | <el-option label="不通过" :value="0"></el-option> |
| | | </el-select> |
| | | <span>交货日期:</span> |
| | | <el-date-picker v-model="search.delTime" size="small" placeholder="请输入" style="width: 224px;margin-right: 30px;" |
| | |
| | | <span class="table_do" @click="changeShowDetail(scope.row)"> 查看详情 </span> |
| | | <span class="table_do" v-if="scope.row.type==null" @click="saleCheck(scope)"> 审核 </span> |
| | | <span class="table_do" v-else> </span> |
| | | <span class="table_do" @click="openUpDia(scope.row.id)"> 编辑 </span> |
| | | <span class="table_do" v-if="scope.row.type==null" @click="openUpDia(scope.row.id)"> 编辑 </span> |
| | | <span class="table_do" v-else> </span> |
| | | <span class="table_do" @click="delSale(scope.$index)"> 删除 </span> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | delTime: null |
| | | }, |
| | | tableData: [], |
| | | selects: [], |
| | | selects: '', |
| | | currentPage: 1, |
| | | countSize: 0, |
| | | pageSize: 10, |
| | |
| | | }, |
| | | methods: { |
| | | handleSelectionChange(val) { |
| | | this.selects = val.id; |
| | | this.selects = '' |
| | | val.forEach((a, ai)=>{ |
| | | this.selects += a.id |
| | | if(ai!=val.length-1){ |
| | | this.selects += ',' |
| | | } |
| | | }) |
| | | }, |
| | | handleSizeChange(val) { |
| | | this.pageSize = val |
| | |
| | | }) |
| | | }, |
| | | clean() { |
| | | this.selects = [] |
| | | this.selects = '' |
| | | this.currentPage = 1 |
| | | this.countSize = 0 |
| | | this.pageSize = 10 |
| | |
| | | formTime: null, |
| | | createTime: null, |
| | | insState: 2, |
| | | judgeState: 2 |
| | | judgeState: 2, |
| | | type: null |
| | | } |
| | | this.selectRawInspectsList() |
| | | }, |
| | |
| | | }) |
| | | }, |
| | | upSale() { |
| | | console.log(this.addData); |
| | | for (var b = 0; b < this.addData.saleMaterialList.length; b++) { |
| | | if (Object.keys(this.addData.saleMaterialList[b]).length == 0) { |
| | | this.addData.saleMaterialList.splice(b, 1) |
| | |
| | | } |
| | | } |
| | | for (var a in this.addData) { |
| | | if ((this.addData[a] == null || this.addData[a] == '') && a != 'type') { |
| | | console.log(a); |
| | | if ((this.addData[a] == null || this.addData[a] == '') && a!='checkname' && a!='checkTime' && a != 'type') { |
| | | if (a == 'saleMaterialList') { |
| | | this.$message.error('产品信息不能为空') |
| | | } else { |
| | |
| | | }) |
| | | }, |
| | | delSales(){ |
| | | console.log(this.selects); |
| | | if(this.selects=='') { |
| | | this.$message.warning('请选择一条数据删除') |
| | | return |
| | | } |
| | | this.axios.post(this.$api.url.delAllSale,{ |
| | | ids: this.selects |
| | | }, { |
| | | headers: { |
| | | 'Content-Type': 'application/json' |
| | | } |
| | | }).then(res=>{ |
| | | this.$message.success('删除成功') |
| | | this.selectRawInspectsList() |