优化
This commit is contained in:
@@ -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
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user