| | |
| | | class="image-list"> |
| | | <el-image v-for="(image, index) in imagesFile" |
| | | :key="index" |
| | | :src="image.url" |
| | | :src="baseUrl + image.url" |
| | | fit="cover" |
| | | class="image-item" /> |
| | | class="image-item">{{image.url}}</el-image> |
| | | </div> |
| | | <span v-else>-</span> |
| | | </el-form-item> |
| | |
| | | </template> |
| | | |
| | | <script setup> |
| | | import { ref, watch, computed } from "vue"; |
| | | import { ref, watch, computed, getCurrentInstance } from "vue"; |
| | | import dayjs from "dayjs"; |
| | | const { proxy } = getCurrentInstance(); |
| | | |
| | | const props = defineProps({ |
| | | visible: { |
| | |
| | | default: () => ({}), |
| | | }, |
| | | }); |
| | | const baseUrl = proxy.javaApi; |
| | | |
| | | const emit = defineEmits(["update:visible", "close"]); |
| | | |
| | |
| | | show-overflow-tooltip |
| | | /> |
| | | <el-table-column |
| | | label="净重(吨)" |
| | | prop="netWeight" |
| | | show-overflow-tooltip |
| | | /> |
| | | <el-table-column |
| | | label="出库人" |
| | | prop="createBy" |
| | | show-overflow-tooltip |
| | |
| | | <el-table-column label="入库数量" |
| | | prop="stockInNum" |
| | | show-overflow-tooltip/> |
| | | <el-table-column label="净重(吨)" |
| | | prop="netWeight" |
| | | v-if="type === '0'" |
| | | show-overflow-tooltip/> |
| | | <el-table-column label="入库人" |
| | | prop="createBy" |
| | | show-overflow-tooltip/> |
| | |
| | | </el-table-column> |
| | | <el-table-column label="过磅日期" |
| | | prop="weighingDate" |
| | | v-if="type === '0'" |
| | | show-overflow-tooltip/> |
| | | <el-table-column label="净重(吨)" |
| | | prop="netWeight" |
| | | v-if="type === '0'" |
| | | show-overflow-tooltip/> |
| | | </el-table> |
| | |
| | | <el-input-number v-model="formState.qualitity" :step="1" :min="1" :max="maxQuality" style="width: 100%" /> |
| | | </el-form-item> |
| | | |
| | | <el-form-item |
| | | v-if="isRawMaterial" |
| | | label="净重" |
| | | prop="netWeight" |
| | | > |
| | | <el-input-number v-model="formState.netWeight" :precision="2" :step="0.01" :min="0" style="width: 100%" /> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="备注" prop="remark"> |
| | | <el-input v-model="formState.remark" type="textarea" /> |
| | | </el-form-item> |
| | |
| | | return props.record.unLockedQuantity ? props.record.unLockedQuantity : 0; |
| | | }) |
| | | |
| | | const isRawMaterial = computed(() => { |
| | | return props.record.parentName === '原材料'; |
| | | }) |
| | | |
| | | const initFormData = () => { |
| | | if (props.record) { |
| | | formState.value = { |
| | |
| | | model: "", |
| | | unit: "", |
| | | qualitity: 0, |
| | | netWeight: undefined, |
| | | remark: '', |
| | | }); |
| | | |
| | |
| | | productId: undefined, |
| | | productModelId: undefined, |
| | | productName: "", |
| | | productModelName: "", |
| | | description: '', |
| | | model: "", |
| | | unit: "", |
| | | qualitity: 0, |
| | | netWeight: undefined, |
| | | remark: '', |
| | | }; |
| | | isShow.value = false; |
| | | }; |
| | |
| | | prop="currentStock" |
| | | align="center" |
| | | /> |
| | | <el-table-column |
| | | label="现净重(吨)" |
| | | prop="currentWeight" |
| | | align="center" |
| | | /> |
| | | <el-table-column label="来源" |
| | | prop="recordType" |
| | | v-if="searchForm.reportType !== 'inout'" |
| | |
| | | {{ row.inputQuantity === 0 ? '-' : row.inputQuantity }} |
| | | </template> |
| | | <template #outputQuantitySlot="{ row }"> |
| | | {{ row.outputQuantity === 0 ? '-' : row.inputQuantity }} |
| | | {{ row.outputQuantity === 0 ? '-' : row.outputQuantity }} |
| | | </template> |
| | | </PIMTable> |
| | | </div> |