|
@@ -234,7 +234,7 @@
|
|
|
<ws-form-item v-if='serviceManagementType==1' label="入库日期" span="1" prop="inOutDate"
|
|
|
class="deliverydate">
|
|
|
<el-date-picker :disabled='recheck' v-model="deptBudgetList.inOutDate" placeholder="请选择入库日期"
|
|
|
- type="date" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
|
|
|
+ type="date" value-format="yyyy-MM-dd"></el-date-picker>
|
|
|
</ws-form-item>
|
|
|
<ws-form-item v-if='serviceManagementType==1' label="运输方式" span="1" prop="outType">
|
|
|
<el-select :disabled='disablednotarize||recheck' v-model="deptBudgetList.outType"
|
|
@@ -550,7 +550,7 @@
|
|
|
grossWeight: 0,
|
|
|
tare: 0,
|
|
|
grade: '',
|
|
|
- inOutDate: new Date(),
|
|
|
+ inOutDate: '',
|
|
|
netWeight: 0,
|
|
|
pureWeight: 0,
|
|
|
waterContent: '',
|
|
@@ -639,6 +639,7 @@
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
+ this.getNowTime()
|
|
|
this.selectWarehouse()
|
|
|
var _saomaData = JSON.parse(localStorage.getItem('saoma_data'))
|
|
|
if (_saomaData) { //缓存中有值,证明扫码进来的
|
|
@@ -672,8 +673,18 @@
|
|
|
clearInterval(this.timer); //关闭
|
|
|
}
|
|
|
},
|
|
|
- // mounted() {},
|
|
|
methods: {
|
|
|
+ getNowTime(){
|
|
|
+ var now = new Date();
|
|
|
+ var year = now.getFullYear(); //得到年份
|
|
|
+ var month = now.getMonth(); //得到月份
|
|
|
+ var date = now.getDate(); //得到日期
|
|
|
+ month = month + 1;
|
|
|
+ month = month.toString().padStart(2, "0");
|
|
|
+ date = date.toString().padStart(2, "0");
|
|
|
+ var defaultDate = `${year}-${month}-${date}`
|
|
|
+ this.deptBudgetList.inOutDate=defaultDate
|
|
|
+ },
|
|
|
refreshClick(type) {
|
|
|
let that = this
|
|
|
if (type == 1) {
|
|
@@ -995,7 +1006,7 @@
|
|
|
grossWeight: 0,
|
|
|
tare: 0,
|
|
|
grade: '',
|
|
|
- inOutDate: new Date(),
|
|
|
+ inOutDate: '',
|
|
|
netWeight: 0,
|
|
|
pureWeight: 0,
|
|
|
waterContent: '',
|
|
@@ -1018,6 +1029,7 @@
|
|
|
titleNo: '',
|
|
|
titleNoOther: '',
|
|
|
}
|
|
|
+ this.getNowTime()
|
|
|
var count = ''
|
|
|
if (this.serviceManagementType == 3) {
|
|
|
if (this.warehouseCount < 10) {
|
|
@@ -1080,7 +1092,7 @@
|
|
|
grossWeight: 0,
|
|
|
tare: 0,
|
|
|
grade: '',
|
|
|
- inOutDate: new Date(),
|
|
|
+ inOutDate: '',
|
|
|
netWeight: 0,
|
|
|
pureWeight: 0,
|
|
|
waterContent: '',
|
|
@@ -1103,6 +1115,7 @@
|
|
|
titleNo: '',
|
|
|
titleNoOther: '',
|
|
|
}
|
|
|
+ this.getNowTime()
|
|
|
if (this.serviceManagementType == 3) {
|
|
|
var count = ''
|
|
|
if (this.warehouseCount < 10) {
|
|
@@ -1250,7 +1263,7 @@
|
|
|
grossWeight: 0,
|
|
|
tare: 0,
|
|
|
grade: '',
|
|
|
- inOutDate: new Date(),
|
|
|
+ inOutDate: '',
|
|
|
netWeight: 0,
|
|
|
pureWeight: 0,
|
|
|
waterContent: '',
|
|
@@ -1275,6 +1288,7 @@
|
|
|
inOutType: '',
|
|
|
inOutTypeKey: 1
|
|
|
}
|
|
|
+ this.getNowTime()
|
|
|
if (this.serviceManagementType == 3) {
|
|
|
var count = ''
|
|
|
if (this.warehouseCount < 10) {
|
|
@@ -1356,7 +1370,7 @@
|
|
|
grossWeight: 0,
|
|
|
tare: 0,
|
|
|
grade: '',
|
|
|
- inOutDate: new Date(),
|
|
|
+ inOutDate:'',
|
|
|
netWeight: 0,
|
|
|
pureWeight: 0,
|
|
|
waterContent: '',
|
|
@@ -1381,6 +1395,7 @@
|
|
|
inOutType: '',
|
|
|
inOutTypeKey: 1
|
|
|
}
|
|
|
+ this.getNowTime()
|
|
|
if (this.serviceManagementType == 3) {
|
|
|
var count = ''
|
|
|
if (this.warehouseCount < 10) {
|
|
@@ -2174,7 +2189,7 @@
|
|
|
grossWeight: 0,
|
|
|
tare: 0,
|
|
|
grade: '',
|
|
|
- inOutDate: new Date(),
|
|
|
+ inOutDate:'',
|
|
|
netWeight: 0,
|
|
|
pureWeight: 0,
|
|
|
waterContent: '',
|
|
@@ -2197,6 +2212,7 @@
|
|
|
titleNo: '',
|
|
|
titleNoOther: '',
|
|
|
}
|
|
|
+ this.getNowTime()
|
|
|
this.getList()
|
|
|
})
|
|
|
.catch((response) => {})
|
|
@@ -2244,7 +2260,7 @@
|
|
|
grossWeight: 0,
|
|
|
tare: 0,
|
|
|
grade: '',
|
|
|
- inOutDate: new Date(),
|
|
|
+ inOutDate:'',
|
|
|
netWeight: 0,
|
|
|
pureWeight: 0,
|
|
|
waterContent: '',
|
|
@@ -2267,6 +2283,7 @@
|
|
|
titleNo: '',
|
|
|
titleNoOther: '',
|
|
|
}
|
|
|
+ this.getNowTime()
|
|
|
this.getList()
|
|
|
})
|
|
|
.catch((response) => {})
|
|
@@ -2575,7 +2592,7 @@
|
|
|
grossWeight: 0,
|
|
|
tare: 0,
|
|
|
grade: '',
|
|
|
- inOutDate: new Date(),
|
|
|
+ inOutDate:'',
|
|
|
netWeight: 0,
|
|
|
pureWeight: 0,
|
|
|
waterContent: '',
|
|
@@ -2598,6 +2615,7 @@
|
|
|
titleNo: '',
|
|
|
titleNoOther: '',
|
|
|
}
|
|
|
+ this.getNowTime()
|
|
|
if (this.serviceManagementType == 3) {
|
|
|
var count = ''
|
|
|
if (this.warehouseCount < 10) {
|