|
@@ -13,19 +13,23 @@
|
|
|
</div>
|
|
|
<div v-else class="materialInfoBody">
|
|
|
<div
|
|
|
- v-for="item in opCompentDataList"
|
|
|
- :class="[item.needNum - item.realNum === 0 ? 'infoMsg infoMsgImg blueBgClass' : 'infoMsg whiteBgClass']"
|
|
|
-
|
|
|
+ v-for="(item, index) in opCompentDataList"
|
|
|
+ :class="[
|
|
|
+ item.needNum - item.realNum === 0
|
|
|
+ ? 'infoMsg infoMsgImg blueBgClass'
|
|
|
+ : 'infoMsg whiteBgClass',
|
|
|
+ ]"
|
|
|
+ :key="index"
|
|
|
@click="toXQPop(item)"
|
|
|
>
|
|
|
<div class="leftMsg">
|
|
|
<div class="nameMsg">{{ item.itemName }}</div>
|
|
|
<div class="describe">{{ item.itemCode }}</div>
|
|
|
<div class="describe">{{ item.itemModel }}</div>
|
|
|
- <div class="describe">需求:{{ item.needNum }}</div>
|
|
|
+ <div class="describe">需求:{{ Number(item.needNum) }}</div>
|
|
|
</div>
|
|
|
<div v-if="item.needNum - item.realNum != 0" class="rightMsg">
|
|
|
- <div class="sum">{{ item.needNum - item.realNum }}</div>
|
|
|
+ <div class="sum">{{ Number(item.needNum) - Number(item.realNum) }}</div>
|
|
|
<div class="describe">还需采集</div>
|
|
|
</div>
|
|
|
<svg-icon class="svgStyle" icon-class="jiaobiao" size="25" />
|
|
@@ -44,7 +48,7 @@
|
|
|
/>
|
|
|
</template>
|
|
|
|
|
|
-<script lang="ts" setup>
|
|
|
+<script setup>
|
|
|
import ScanCodeInput from "@/components/ScanCodeInput/index.vue";
|
|
|
import caijiRightPopUp from "../popUpView/caijiRightPopUp.vue";
|
|
|
import xiangqingPopUp from "../popUpView/xiangqingPopUp.vue";
|
|
@@ -89,7 +93,7 @@ const enterfnc = async () => {
|
|
|
};
|
|
|
const opCompentDataList = ref([]);
|
|
|
//通过id获取详情
|
|
|
-const getInfoById = async (item: any) => {
|
|
|
+const getInfoById = async (item) => {
|
|
|
const { data } = await getInfo({
|
|
|
itemCode: item.itemCode,
|
|
|
opId: store.odersData.operationId,
|
|
@@ -98,7 +102,7 @@ const getInfoById = async (item: any) => {
|
|
|
showInfoData.value = data;
|
|
|
showInfo.value = item;
|
|
|
};
|
|
|
-const toXQPop = async (item: any) => {
|
|
|
+const toXQPop = async (itemName) => {
|
|
|
await getInfoById(item);
|
|
|
showXQ.value = true;
|
|
|
};
|
|
@@ -172,7 +176,6 @@ onMounted(() => {
|
|
|
background-position: right top;
|
|
|
background-repeat: no-repeat;
|
|
|
background-size: 100px 100px;
|
|
|
-
|
|
|
}
|
|
|
|
|
|
.blueBgClass {
|