|
@@ -4,13 +4,21 @@
|
|
|
</div>
|
|
|
<div class="showCodeBody" v-if="opCompentDataList.length < 1">
|
|
|
<div class="codeBox">
|
|
|
- <img src="@/assets/icons/shaoma.svg" style="width: 134px; height: 134px" />
|
|
|
+ <img
|
|
|
+ src="@/assets/icons/shaoma.svg"
|
|
|
+ style="width: 134px; height: 134px"
|
|
|
+ />
|
|
|
<div class="codeText">扫码物料码添加物料</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="materialInfoBody" v-else>
|
|
|
- <div :class="item.needNum - item.realNum == 0 ? 'infoMsg infoMsgImg' : 'infoMsg'
|
|
|
- " v-for="item in opCompentDataList" @click="toXQPop(item)">
|
|
|
+ <div
|
|
|
+ :class="
|
|
|
+ item.needNum - item.realNum == 0 ? 'infoMsg infoMsgImg' : 'infoMsg'
|
|
|
+ "
|
|
|
+ v-for="item in opCompentDataList"
|
|
|
+ @click="toXQPop(item)"
|
|
|
+ >
|
|
|
<div class="leftMsg">
|
|
|
<div class="nameMsg">{{ item.itemName }}</div>
|
|
|
<div class="describe">{{ item.itemModel }}</div>
|
|
@@ -23,8 +31,17 @@
|
|
|
<svg-icon icon-class="jiaobiao" size="25" class="svgStyle" />
|
|
|
</div>
|
|
|
</div>
|
|
|
- <xiangqingPopUp v-model="showXQ" :showInfoData="showInfoData" :showInfo="showInfo" />
|
|
|
- <caijiRightPopUp v-model="showCJ" @submit="submit" ref="caijiRef" :seqNo="scanCode" />
|
|
|
+ <xiangqingPopUp
|
|
|
+ v-model="showXQ"
|
|
|
+ :showInfoData="showInfoData"
|
|
|
+ :showInfo="showInfo"
|
|
|
+ />
|
|
|
+ <caijiRightPopUp
|
|
|
+ v-model="showCJ"
|
|
|
+ @submit="submit"
|
|
|
+ ref="caijiRef"
|
|
|
+ :seqNo="scanCode"
|
|
|
+ />
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
@@ -58,7 +75,7 @@ const enterfnc = async () => {
|
|
|
operationId: store.odersData.operationId,
|
|
|
processId: store.scanInfo.id,
|
|
|
seqNo: store.scanInfo.seqNo,
|
|
|
- scanCode: scanCode.value,
|
|
|
+ scanCode: scanCode.value,
|
|
|
workOrderCode: store.odersData.workOrderCode,
|
|
|
});
|
|
|
if (code == "200") {
|
|
@@ -101,7 +118,7 @@ const submitRecordAdd = async (index) => {
|
|
|
operationId: store.odersData.operationId,
|
|
|
processId: store.scanInfo.id,
|
|
|
num: chooseData.num,
|
|
|
- seqNo: store.scanInfo.seqNo,
|
|
|
+ seqNo: store.scanInfo.seqNo,
|
|
|
trackBy: "S",
|
|
|
workOrderCode: store.odersData.workOrderCode,
|
|
|
});
|
|
@@ -118,11 +135,11 @@ const submit = () => {
|
|
|
|
|
|
//获取tag列表数据
|
|
|
const getOpCompentData = async () => {
|
|
|
- console.log('store.scanInfo',store.scanInfo.seqNo)
|
|
|
+ console.log("store.scanInfo", store.scanInfo.seqNo);
|
|
|
const { data } = await recordList({
|
|
|
operationId: store.odersData.operationId,
|
|
|
workOrderCode: store.odersData.workOrderCode,
|
|
|
- seqNo: store.scanInfo.seqNo,
|
|
|
+ seqNo: store.scanInfo.seqNo,
|
|
|
pageNo: 1,
|
|
|
pageSize: 9999,
|
|
|
});
|