You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
276 lines
9.2 KiB
276 lines
9.2 KiB
<template>
|
|
<view class="">
|
|
<!-- <view class="uni-flex uni-row item" style="align-items: center; ">
|
|
<view class="" style="font-size: 35rpx;">
|
|
ERP料号代码 :
|
|
</view>
|
|
<uni-easyinput type="text" v-model="dataContent.itemCode" placeholder="请输入ERP料号代码" />
|
|
</view>
|
|
<view class="uni-flex uni-row item" style="align-items: center; ">
|
|
<view class="" style="font-size: 35rpx;">
|
|
ERP料号名称 :
|
|
</view>
|
|
<uni-easyinput type="text" v-model="dataContent.itemName" placeholder="请输入ERP料号名称" />
|
|
</view>
|
|
<view class="uni-flex uni-row item" style="align-items: center; ">
|
|
<view class="" style="font-size: 35rpx;">
|
|
ERP料号描述1 :
|
|
</view>
|
|
<uni-easyinput type="text" v-model="dataContent.itemDesc1" placeholder="请输入ERP料号描述1" />
|
|
</view>
|
|
|
|
<view class="uni-flex uni-row item" style="align-items: center; ">
|
|
<view class="" style="font-size: 35rpx;">
|
|
ERP料号描述2 :
|
|
</view>
|
|
<uni-easyinput type="text" v-model="dataContent.itemDesc2" placeholder="请输入ERP料号描述2" />
|
|
</view>
|
|
|
|
<view class="uni-flex uni-row item" style="align-items: center; ">
|
|
<view class="" style="font-size: 35rpx;">
|
|
库位代码 :
|
|
</view>
|
|
<uni-easyinput type="text" v-model="dataContent.locationCode" placeholder="请输入库位代码" />
|
|
</view>
|
|
|
|
<view class="uni-flex uni-row item" style="align-items: center; ">
|
|
<view class="" style="font-size: 35rpx;">
|
|
ERP库位代码 :
|
|
</view>
|
|
<uni-easyinput type="text" v-model="dataContent.locationErpCode" placeholder="请输入ERP库位代码" />
|
|
</view>
|
|
|
|
<view class="uni-flex uni-row item" style="align-items: center; ">
|
|
<view class="" style="font-size: 35rpx;">
|
|
批次 :
|
|
</view>
|
|
<uni-easyinput type="text" v-model="dataContent.lot" placeholder="请输入批次" />
|
|
</view> -->
|
|
<view class="uni-flex uni-row item" style="align-items: center; ">
|
|
<view class="" style="font-size: 35rpx;">
|
|
<text style="color: red; font-weight: bold;">*</text>
|
|
数量 :
|
|
</view>
|
|
<uni-easyinput type="number" v-model="dataContent.qty" placeholder="请输入数量" />
|
|
</view>
|
|
|
|
<!-- <view class="uni-flex uni-row item" style="align-items: center; ">
|
|
<view class="" style="font-size: 35rpx;">
|
|
单位 :
|
|
</view>
|
|
<uni-easyinput type="text" v-model="dataContent.uom" placeholder="请输入单位" />
|
|
</view>
|
|
|
|
<view class="uni-flex uni-row item" style="align-items: center; ">
|
|
<view class="" style="font-size: 35rpx;">
|
|
标包 :
|
|
</view>
|
|
<uni-easyinput type="text" v-model="dataContent.stdPackQty" placeholder="请输入标包" />
|
|
</view>
|
|
|
|
<view class="uni-flex uni-row item" style="align-items: center; ">
|
|
<view class="" style="font-size: 35rpx;">
|
|
库存状态 :
|
|
</view>
|
|
<u-select v-model="showStatus" :list="statusList" ></u-select>
|
|
<uni-combox :candidates="statusList" placeholder="请选择库存状态" v-model="dataContent.statusName"></uni-combox>
|
|
<!-- <uni-easyinput type="text" v-model="dataContent.inventoryStatuses" placeholder="请输入库存状态" /> -->
|
|
<!-- </view> -->
|
|
|
|
<!-- <view class="uni-flex uni-row item" style="align-items: center; ">
|
|
<view class="" style="font-size: 35rpx;">
|
|
要货计划单号 :
|
|
</view>
|
|
<uni-easyinput type="text" v-model="dataContent.rpNumber" placeholder="请输入要货计划单号" />
|
|
</view>
|
|
|
|
<view class="uni-flex uni-row item" style="align-items: center; ">
|
|
<view class="" style="font-size: 35rpx;">
|
|
供应商发货单 :
|
|
</view>
|
|
<uni-easyinput type="text" v-model="dataContent.purchaseInfo_AsnNumber" placeholder="请输入供应商发货单" />
|
|
</view> -->
|
|
|
|
<!-- <view class="uni-flex uni-row item" style="align-items: center; ">
|
|
<view class="" style="font-size: 35rpx;">
|
|
到货通知单 :
|
|
</view>
|
|
<uni-easyinput type="text" v-model="dataContent.arrivalNoticNumber" placeholder="请输入到货通知单" />
|
|
</view> -->
|
|
|
|
<!-- <view class="uni-flex uni-row item" style="align-items: center; ">
|
|
<view class="" style="font-size: 35rpx;">
|
|
收货记录单 :
|
|
</view>
|
|
<uni-easyinput type="text" v-model="dataContent.receiptRecNumber" placeholder="请输入收货记录单" />
|
|
</view> -->
|
|
|
|
<!-- <view class="uni-flex uni-row item" style="align-items: center; ">
|
|
<view class="" style="font-size: 35rpx;">
|
|
采购订单 :
|
|
</view>
|
|
<uni-easyinput type="text" v-model="dataContent.purchaseInfo_PoNumber" placeholder="请输入采购订单" />
|
|
</view> -->
|
|
|
|
<!-- <view class="uni-flex uni-row item" style="align-items: center; ">
|
|
<view class="" style="font-size: 35rpx;">
|
|
上架单 :
|
|
</view>
|
|
<uni-easyinput type="text" v-model="dataContent.putOnShelfNumber" placeholder="请输入上架单" />
|
|
</view> -->
|
|
<!-- <view class="uni-flex uni-row item" style="align-items: center; ">
|
|
<view class="" style="font-size: 35rpx;">
|
|
任务单 :
|
|
</view>
|
|
<uni-easyinput type="text" v-model="dataContent.taskOrderNumber" placeholder="请输入任务单" />
|
|
</view> -->
|
|
|
|
|
|
<!-- <view class="uni-flex uni-row item" style="align-items: center; ">
|
|
<view class="" style="font-size: 35rpx;">
|
|
供应商代码 :
|
|
</view>
|
|
<uni-easyinput type="text" v-model="dataContent.supplierCode" placeholder="请输入供应商代码" />
|
|
</view>
|
|
|
|
|
|
<view class="uni-flex uni-row item" style="align-items: center; ">
|
|
<view class="" style="font-size: 35rpx;">
|
|
供应商名称 :
|
|
</view>
|
|
<uni-easyinput type="text" v-model="dataContent.supplierName" placeholder="请输入供应商名称" />
|
|
</view>
|
|
|
|
<view class="uni-flex uni-row item" style="align-items: center; ">
|
|
<view class="" style="font-size: 35rpx;">
|
|
供应商简称 :
|
|
</view>
|
|
<uni-easyinput type="text" v-model="dataContent.supplierSimpleName" placeholder="请输入供应商简称" />
|
|
</view>
|
|
|
|
<view class="uni-flex uni-row item" style="align-items: center; ">
|
|
<view class="" style="font-size: 35rpx;">
|
|
供应商物品代码 :
|
|
</view>
|
|
<uni-easyinput type="text" v-model="dataContent.supplierItemCode" placeholder="请输入供应商物品代码" />
|
|
</view>
|
|
|
|
<view class="uni-flex uni-row item" style="align-items: center; ">
|
|
<view class="" style="font-size: 35rpx;">
|
|
供应商物品名称 :
|
|
</view>
|
|
<uni-easyinput type="text" v-model="dataContent.supplierItemName" placeholder="请输入供应商物品名称" />
|
|
</view>
|
|
|
|
<view class="uni-flex uni-row item" style="align-items: center; ">
|
|
<view class="" style="font-size: 35rpx;">
|
|
备注 :
|
|
</view>
|
|
<uni-easyinput type="text" v-model="dataContent.remark" placeholder="请输入备注" />
|
|
</view>
|
|
|
|
<view class="uni-flex uni-row item" style="align-items: center; ">
|
|
<view class="" style="font-size: 35rpx;">
|
|
生产日期 :
|
|
</view>
|
|
<uni-datetime-picker type="datetime" v-model="dataContent.produceDate" placeholder="请输入备注" />
|
|
</view>
|
|
|
|
<view class="uni-flex uni-row item" style="align-items: center; ">
|
|
<view class="" style="font-size: 35rpx;">
|
|
要求到货日期 :
|
|
</view>
|
|
<uni-datetime-picker type="datetime" return-type="timestamp" v-model="dataContent.planArriveDate"
|
|
placeholder="请输入备注" />
|
|
</view>
|
|
|
|
<view class="uni-flex uni-row item" style="align-items: center; ">
|
|
<view class="" style="font-size: 35rpx;">
|
|
到货日期 :
|
|
</view>
|
|
<uni-datetime-picker type="datetime" v-model="dataContent.arriveDate" placeholder="请输入备注" />
|
|
</view>
|
|
|
|
<view class="uni-flex uni-row item" style="align-items: center; ">
|
|
<view class="" style="font-size: 35rpx;">
|
|
过期时间 :
|
|
</view>
|
|
<uni-datetime-picker type="datetime" v-model="dataContent.expireDate" placeholder="请输入备注" />
|
|
</view>
|
|
|
|
<view class="uni-flex uni-row item" style="align-items: center; ">
|
|
<view class="" style="font-size: 35rpx;">
|
|
生效日期 :
|
|
</view>
|
|
<uni-datetime-picker type="datetime" v-model="dataContent.activeDate" placeholder="请输入备注" />
|
|
</view>
|
|
|
|
<view class="uni-flex uni-row item" style="align-items: center; ">
|
|
<view class="" style="font-size: 35rpx;">
|
|
创建时间 :
|
|
</view>
|
|
<uni-datetime-picker type="datetime" v-model="dataContent.creationTime" placeholder="请输入备注" />
|
|
</view>
|
|
|
|
<view class="uni-flex uni-row item" style="align-items: center; ">
|
|
<view class="" style="font-size: 35rpx;">
|
|
上次修改时间 :
|
|
</view>
|
|
<uni-datetime-picker type="datetime" v-model="dataContent.lastModificationTime" placeholder="请输入备注" />
|
|
</view> -->
|
|
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import {
|
|
getCurrDateTime,
|
|
getInventoryStatusList,
|
|
getInventoryStatusDesc
|
|
} from '@/common/basic.js';
|
|
export default {
|
|
data() {
|
|
return {
|
|
showStatus:false,
|
|
statusList:[],
|
|
};
|
|
},
|
|
// 此处定义传入的数据
|
|
props: {
|
|
dataContent: {
|
|
type: Object,
|
|
value: null
|
|
},
|
|
},
|
|
filters: {},
|
|
mounted() {
|
|
this.dataContent.statusName =this.inventoryStatusDesc(this.dataContent.inventoryStatuses)
|
|
this.statusList=getInventoryStatusList()
|
|
},
|
|
methods: {
|
|
|
|
getDate(value) {
|
|
return getCurrDateTime(value)
|
|
},
|
|
clickShowStatus(){
|
|
this.showStatus=true
|
|
},
|
|
inventoryStatusDesc(value){
|
|
return getInventoryStatusDesc(value)
|
|
},
|
|
selectStatus(item){
|
|
// this.statusName=item[0].label
|
|
this.dataContent.inventoryStatuses=item[0].value
|
|
}
|
|
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
.item {
|
|
margin: 5rpx;
|
|
padding: 5rpx;
|
|
font-size: 35rpx;
|
|
}
|
|
</style>
|