From 58c4b6003ad6f9a96d53c944bedc09f6ec3f0910 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期日, 24 九月 2023 18:35:56 +0800
Subject: [PATCH] modified: src/assets/api/controller.js modified: src/components/view/sale.vue modified: src/components/view/standard.vue modified: src/main.js modified: src/view/index.vue
---
src/components/view/rawUnqualified/raw.vue | 75 +++++++++++++++++++++++++++++++------
1 files changed, 62 insertions(+), 13 deletions(-)
diff --git a/src/components/view/rawUnqualified/raw.vue b/src/components/view/rawUnqualified/raw.vue
index a92a38f..874e48f 100644
--- a/src/components/view/rawUnqualified/raw.vue
+++ b/src/components/view/rawUnqualified/raw.vue
@@ -15,7 +15,7 @@
<el-input
size="small"
v-model="search.productName"
- style="width: 224px;margin-right: 30px;"
+ style="width: 14vw;margin-right: 5px;"
placeholder="璇疯緭鍏�"
clearable
></el-input>
@@ -24,7 +24,7 @@
v-model="search.formTime"
size="small"
placeholder="璇疯緭鍏�"
- style="width: 224px;margin-right: 30px;"
+ style="width: 12vw"
clearable
value-format="yyyy-MM-dd"
></el-date-picker>
@@ -33,7 +33,7 @@
v-model="search.processingStatus"
size="small"
placeholder="璇烽�夋嫨"
- style="width: 224px;margin-right: 30px;"
+ style="width: 12vw"
>
<el-option label="宸插鐞�" :value="1"></el-option>
<el-option label="寰呭鐞�" :value="0"></el-option>
@@ -42,7 +42,7 @@
<el-input
size="small"
v-model="search.supplier"
- style="width: 224px;margin-right: 20px;"
+ style="width: 12vw"
placeholder="璇疯緭鍏�"
></el-input>
<el-button size="mini" @click="clean()"><span>閲� 缃�</span></el-button>
@@ -86,7 +86,7 @@
>
</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="name" label="鏉愭枡鍚嶇О"> </el-table-column>
<el-table-column prop="specifications" label="瑙勬牸鍨嬪彿">
</el-table-column>
<el-table-column prop="unit" label="鍗曚綅"> </el-table-column>
@@ -106,27 +106,63 @@
>
</template>
</el-table-column>
- <el-table-column prop="deal_reasult" label="澶勭悊缁撴灉" width="100">
+ <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,18 @@
supplier: "" // 渚涘簲鍟�
};
this.getDetailInfo();
+ },
+ rawEvaluate(row, passOrNo) {
+ this.$axios
+ .post(this.$api.url.evaluatePassOrNo, {
+ rawId: row.id,
+ passOrNo: passOrNo
+ })
+ .then(res => {
+ this.unqualifiedTable = [];
+ this.getDetailInfo();
+ this.$parent.removeAllTab()
+ });
}
}
};
--
Gitblit v1.9.3