|
@@ -89,17 +89,17 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<!--容重(克/升)>=-->
|
|
<!--容重(克/升)>=-->
|
|
- <el-form-item label="容重(克/升)>=" span="1">
|
|
|
|
|
|
+ <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="容重(克/升)>=" span="1">
|
|
<el-input disabled @input="bulkDensitychange" v-model="dataList.bulkDensity" placeholder="请输入容重"
|
|
<el-input disabled @input="bulkDensitychange" v-model="dataList.bulkDensity" placeholder="请输入容重"
|
|
maxlength="120" size="small" class="huom" />
|
|
maxlength="120" size="small" class="huom" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<!--水分(%)<=-->
|
|
<!--水分(%)<=-->
|
|
- <el-form-item label="水分(%)<=">
|
|
|
|
|
|
+ <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="水分(%)<=">
|
|
<el-input disabled @input="waterContentchange" v-model="dataList.waterContent"
|
|
<el-input disabled @input="waterContentchange" v-model="dataList.waterContent"
|
|
placeholder="请输入水分占比" maxlength="120" size="small" class="huom" />
|
|
placeholder="请输入水分占比" maxlength="120" size="small" class="huom" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<!--单价(元/吨)-->
|
|
<!--单价(元/吨)-->
|
|
- <el-form-item label="单价(元/吨)">
|
|
|
|
|
|
+ <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="单价(元/吨)">
|
|
<el-input disabled @input="unitPricechange" v-model="dataList.unitPrice" placeholder="请输入单价"
|
|
<el-input disabled @input="unitPricechange" v-model="dataList.unitPrice" placeholder="请输入单价"
|
|
maxlength="120" size="small" class="huom" />
|
|
maxlength="120" size="small" class="huom" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -192,19 +192,19 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<!--容重(克/升)>=-->
|
|
<!--容重(克/升)>=-->
|
|
- <el-form-item label="容重(克/升)>=">
|
|
|
|
|
|
+ <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="容重(克/升)>=">
|
|
<el-input @input="bulkDensitychange" :disabled="dataList.taskTypeKey == 3"
|
|
<el-input @input="bulkDensitychange" :disabled="dataList.taskTypeKey == 3"
|
|
v-model="dataList1.bulkDensity" placeholder="请输入容重" maxlength="120" size="small"
|
|
v-model="dataList1.bulkDensity" placeholder="请输入容重" maxlength="120" size="small"
|
|
class="huom" />
|
|
class="huom" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<!--水分(%)<=-->
|
|
<!--水分(%)<=-->
|
|
- <el-form-item label="水分(%)<=">
|
|
|
|
|
|
+ <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="水分(%)<=">
|
|
<el-input @input="waterContentchange" :disabled="dataList.taskTypeKey == 3"
|
|
<el-input @input="waterContentchange" :disabled="dataList.taskTypeKey == 3"
|
|
v-model="dataList1.waterContent" placeholder="请输入水分占比" maxlength="120" size="small"
|
|
v-model="dataList1.waterContent" placeholder="请输入水分占比" maxlength="120" size="small"
|
|
class="huom" />
|
|
class="huom" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<!--单价(元/吨)-->
|
|
<!--单价(元/吨)-->
|
|
- <el-form-item label="单价(元/吨)">
|
|
|
|
|
|
+ <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="单价(元/吨)">
|
|
<el-input @input="unitPricechange" :disabled="dataList.taskTypeKey == 3"
|
|
<el-input @input="unitPricechange" :disabled="dataList.taskTypeKey == 3"
|
|
v-model="dataList1.unitPrice" placeholder="请输入单价" maxlength="120" size="small"
|
|
v-model="dataList1.unitPrice" placeholder="请输入单价" maxlength="120" size="small"
|
|
class="huom" />
|
|
class="huom" />
|
|
@@ -300,19 +300,19 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<!--容重(克/升)>=-->
|
|
<!--容重(克/升)>=-->
|
|
- <el-form-item label="容重(克/升)>=">
|
|
|
|
|
|
+ <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="容重(克/升)>=">
|
|
<el-input :disabled="dataList.taskTypeKey == 3 || dataList.taskTypeKey == 4"
|
|
<el-input :disabled="dataList.taskTypeKey == 3 || dataList.taskTypeKey == 4"
|
|
v-model="dataList.bulkDensity" placeholder="请输入容重" maxlength="120" size="small"
|
|
v-model="dataList.bulkDensity" placeholder="请输入容重" maxlength="120" size="small"
|
|
class="huom" />
|
|
class="huom" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<!--水分(%)<=-->
|
|
<!--水分(%)<=-->
|
|
- <el-form-item label="水分(%)<=">
|
|
|
|
|
|
+ <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="水分(%)<=">
|
|
<el-input :disabled="dataList.taskTypeKey == 3 || dataList.taskTypeKey == 4"
|
|
<el-input :disabled="dataList.taskTypeKey == 3 || dataList.taskTypeKey == 4"
|
|
v-model="dataList.waterContent" placeholder="请输入水分占比" maxlength="120" size="small"
|
|
v-model="dataList.waterContent" placeholder="请输入水分占比" maxlength="120" size="small"
|
|
class="huom" />
|
|
class="huom" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<!--单价(元/吨)-->
|
|
<!--单价(元/吨)-->
|
|
- <el-form-item label="单价(元/吨)">
|
|
|
|
|
|
+ <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="单价(元/吨)">
|
|
<el-input :disabled="dataList.taskTypeKey == 3 || dataList.taskTypeKey == 4"
|
|
<el-input :disabled="dataList.taskTypeKey == 3 || dataList.taskTypeKey == 4"
|
|
v-model="dataList.unitPrice" placeholder="请输入单价" maxlength="120" size="small"
|
|
v-model="dataList.unitPrice" placeholder="请输入单价" maxlength="120" size="small"
|
|
class="huom" />
|
|
class="huom" />
|
|
@@ -1069,86 +1069,6 @@
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (!this.dataList1.bulkDensity) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '容重不能为空!',
|
|
|
|
- type: 'warning'
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (
|
|
|
|
- this.dataList1.bulkDensity < 500 ||
|
|
|
|
- this.dataList1.bulkDensity > 1000
|
|
|
|
- ) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '容重输入错误',
|
|
|
|
- type: 'warning'
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (
|
|
|
|
- String(this.dataList1.bulkDensity).indexOf('.') != -1 &&
|
|
|
|
- String(this.dataList1.bulkDensity).length -
|
|
|
|
- (String(this.dataList1.bulkDensity).indexOf('.') + 1) >
|
|
|
|
- 0
|
|
|
|
- ) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '容重需输入整数',
|
|
|
|
- type: 'warning'
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (!this.dataList1.waterContent) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '水分不能为空!',
|
|
|
|
- type: 'warning'
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (
|
|
|
|
- this.dataList1.waterContent < 0 ||
|
|
|
|
- this.dataList1.waterContent > 40
|
|
|
|
- ) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '水分输入错误',
|
|
|
|
- type: 'warning'
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (
|
|
|
|
- String(this.dataList1.waterContent).indexOf('.') != -1 &&
|
|
|
|
- String(this.dataList1.waterContent).length -
|
|
|
|
- (String(this.dataList1.waterContent).indexOf('.') + 1) >
|
|
|
|
- 1
|
|
|
|
- ) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '水分输入错误',
|
|
|
|
- type: 'warning'
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (!this.dataList1.unitPrice) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '单价不能为空!',
|
|
|
|
- type: 'warning'
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (
|
|
|
|
- (this.dataList1.unitPrice &&
|
|
|
|
- String(this.dataList1.unitPrice).indexOf('.') != -1 &&
|
|
|
|
- String(this.dataList1.unitPrice).length -
|
|
|
|
- (String(this.dataList1.unitPrice).indexOf('.') + 1) >
|
|
|
|
- 2) ||
|
|
|
|
- this.dataList1.unitPrice > 100000 ||
|
|
|
|
- this.dataList1.unitPrice < 1
|
|
|
|
- ) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '单价输入错误',
|
|
|
|
- type: 'warning'
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
if (!this.dataList.predictDate) {
|
|
if (!this.dataList.predictDate) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '预计出库日期不能为空!',
|
|
message: '预计出库日期不能为空!',
|
|
@@ -1494,6 +1414,7 @@
|
|
this.inOutTaskNo = 'YKC' + random
|
|
this.inOutTaskNo = 'YKC' + random
|
|
this.inOutTaskNo1 = 'YKR' + random
|
|
this.inOutTaskNo1 = 'YKR' + random
|
|
this.dataList.moveTaskNo = 'YKRW' + random
|
|
this.dataList.moveTaskNo = 'YKRW' + random
|
|
|
|
+ this.dataList1.moveTaskNo = 'YKRW' + random
|
|
} else if (this.dataList.taskTypeKey == 4) {
|
|
} else if (this.dataList.taskTypeKey == 4) {
|
|
var random = this.getdate() + this.MathRand()
|
|
var random = this.getdate() + this.MathRand()
|
|
this.inOutTaskNo = 'TCC' + random
|
|
this.inOutTaskNo = 'TCC' + random
|
|
@@ -1598,7 +1519,7 @@
|
|
// this.deliveryType = response
|
|
// this.deliveryType = response
|
|
// })
|
|
// })
|
|
//仓库名
|
|
//仓库名
|
|
- debugger
|
|
|
|
|
|
+ // debugger
|
|
getwarehousename({
|
|
getwarehousename({
|
|
compId: this.compId,
|
|
compId: this.compId,
|
|
warehouseType: 1
|
|
warehouseType: 1
|
|
@@ -1775,7 +1696,6 @@
|
|
position: relative;
|
|
position: relative;
|
|
top: 50px;
|
|
top: 50px;
|
|
width: 40%;
|
|
width: 40%;
|
|
- height: 2000px;
|
|
|
|
margin: 0 auto;
|
|
margin: 0 auto;
|
|
margin-right: 180px;
|
|
margin-right: 180px;
|
|
}
|
|
}
|