This commit is contained in:
zc
2026-03-20 16:33:39 +08:00
parent 69f97a740d
commit 0dee240c6e
5 changed files with 38 additions and 26 deletions

View File

@@ -147,7 +147,7 @@
<div class="form-row">
<div class="form-item">
<label>该物料重量范围:</label>
<a-input v-model="formData.materialName" placeholder="该物料重量范围" disabled />
<a-input v-model="formData.weightRange" placeholder="该物料重量范围" disabled />
</div>
</div>
@@ -275,7 +275,7 @@
</template>
<script setup lang="ts">
import { nextTick, onBeforeUnmount, onMounted, onUnmounted, reactive, ref } from 'vue'
import { nextTick, onBeforeUnmount, onMounted, onUnmounted, reactive, ref, watch, computed } from 'vue'
import { Message, Modal, Notification } from '@arco-design/web-vue'
import { getMaterialDetail, validateWeighing, vmSend } from '@/apis/weightManage/weightManage'
import {type WorkOrderResp, addWorkOrder} from '@/apis/workOrder/workOrder'
@@ -299,6 +299,7 @@ const formData = reactive({
materialSpec: '', // 物料规格
unitWeight: 0, // 重量
photoUrl: '', // 样图URL
weightRange: '', // 物料重量范围
})
const imgData = reactive({
@@ -688,6 +689,7 @@ const originalHandleMaterialCodeChange = async () => {
formData.materialSpec = ''
formData.unitWeight = 0
formData.photoUrl = ''
formData.weightRange = ''
compareMatchResult.value = '';
// 如果有物料编码输入,获取物料数据
@@ -747,6 +749,7 @@ const fetchMaterialData = async (code: string) => {
formData.materialSpec = res.data?.materialSpec || ''
formData.unitWeight = res.data?.unitWeight || 0
formData.photoUrl = res.data?.photoUrl || ''
formData.weightRange = (res.data?.downFloatRatio || '-') + '% ~ ' + (res.data?.upFloatRatio || '-') + '%'
return true
}
})