|
|
@@ -73,6 +73,16 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <el-col :span="6">
|
|
|
+ <el-form-item label="出库时间">
|
|
|
+ <el-date-picker
|
|
|
+ v-model="formData.storageTime"
|
|
|
+ type="datetime"
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ placeholder="选择日期时间"
|
|
|
+ >
|
|
|
+ </el-date-picker></el-form-item
|
|
|
+ ></el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="出库登记人">
|
|
|
<el-input
|
|
|
@@ -594,6 +604,7 @@
|
|
|
treeList: [],
|
|
|
isPrice: 1,
|
|
|
formData: {
|
|
|
+ storageTime: '',
|
|
|
extInfo: {
|
|
|
assetType: [], //物品类型id
|
|
|
assetTypeName: '', //物品类型名称
|
|
|
@@ -652,6 +663,7 @@
|
|
|
this.getListItems();
|
|
|
this.initUserInfo();
|
|
|
this.initDeptData();
|
|
|
+ this.getNowFormatDate();
|
|
|
//仓库出入库是否显示金额(0:不显示 1:显示)
|
|
|
parameterGetByCode({
|
|
|
code: 'wms_price'
|
|
|
@@ -681,6 +693,28 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 获取当前时间函数
|
|
|
+ getNowDate() {
|
|
|
+ let date = new Date(),
|
|
|
+ obj = {
|
|
|
+ year: date.getFullYear(), //获取完整的年份(4位)
|
|
|
+ month: date.getMonth() + 1, //获取当前月份(0-11,0代表1月)
|
|
|
+ strDate: date.getDate(), // 获取当前日(1-31)
|
|
|
+ hour: date.getHours(), //获取当前小时(0 ~ 23)
|
|
|
+ minute: date.getMinutes(), //获取当前分钟(0 ~ 59)
|
|
|
+ second: date.getSeconds() //获取当前秒数(0 ~ 59)
|
|
|
+ };
|
|
|
+ Object.keys(obj).forEach((key) => {
|
|
|
+ if (obj[key] < 10) obj[key] = `0${obj[key]}`;
|
|
|
+ });
|
|
|
+ return obj;
|
|
|
+ },
|
|
|
+ // 赋值出库时间
|
|
|
+ getNowFormatDate() {
|
|
|
+ let obj = this.getNowDate();
|
|
|
+ this.formData.storageTime = `${obj.year}-${obj.month}-${obj.strDate} ${obj.hour}:${obj.minute}:${obj.second}`;
|
|
|
+ },
|
|
|
+
|
|
|
outboundRequisitionSelection(data, dimension, query) {
|
|
|
console.log(data, dimension, query);
|
|
|
this.formData.sourceBizNo = query.sourceBizNo;
|