|
@@ -80,7 +80,7 @@
|
|
|
<el-input readonly v-model="orderInfo.contractNum"></el-input>
|
|
<el-input readonly v-model="orderInfo.contractNum"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
- <el-col :span="6" v-if="produceType == 1">
|
|
|
|
|
|
|
+ <el-col :span="6" v-if="produceType != 2">
|
|
|
<el-form-item label="未发总数:">
|
|
<el-form-item label="未发总数:">
|
|
|
<el-input
|
|
<el-input
|
|
|
readonly
|
|
readonly
|
|
@@ -97,7 +97,7 @@
|
|
|
></el-input>
|
|
></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
- <el-col :span="6" v-if="produceType == 1">
|
|
|
|
|
|
|
+ <el-col :span="6" v-if="produceType != 2">
|
|
|
<el-form-item label="在制总数:">
|
|
<el-form-item label="在制总数:">
|
|
|
<el-input
|
|
<el-input
|
|
|
readonly
|
|
readonly
|
|
@@ -105,7 +105,7 @@
|
|
|
></el-input>
|
|
></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
- <el-col :span="6" v-if="produceType == 1">
|
|
|
|
|
|
|
+ <el-col :span="6" v-if="produceType != 2">
|
|
|
<el-form-item label="最终缺料数量:">
|
|
<el-form-item label="最终缺料数量:">
|
|
|
<el-input
|
|
<el-input
|
|
|
readonly
|
|
readonly
|
|
@@ -245,7 +245,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<!-- 默认按订单 -->
|
|
<!-- 默认按订单 -->
|
|
|
- <template v-slot:toolbar v-if="produceType == 1">
|
|
|
|
|
|
|
+ <template v-slot:toolbar v-if="produceType != 2">
|
|
|
<el-form :inline="true">
|
|
<el-form :inline="true">
|
|
|
<el-form-item label="定额计算方法:">
|
|
<el-form-item label="定额计算方法:">
|
|
|
<el-radio-group
|
|
<el-radio-group
|
|
@@ -388,7 +388,7 @@
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
|
fieldShow() {
|
|
fieldShow() {
|
|
|
- return this.produceType == 1 && this.quota_calculation === 2;
|
|
|
|
|
|
|
+ return this.produceType != 2 && this.quota_calculation === 2;
|
|
|
},
|
|
},
|
|
|
columns() {
|
|
columns() {
|
|
|
return [
|
|
return [
|
|
@@ -929,7 +929,13 @@
|
|
|
let api = null;
|
|
let api = null;
|
|
|
if (this.source == 'list') {
|
|
if (this.source == 'list') {
|
|
|
let produceType =
|
|
let produceType =
|
|
|
- this.produceType == 1 ? 1 : attributeType == 2 ? 2 : 3;
|
|
|
|
|
|
|
+ this.produceType == 1
|
|
|
|
|
+ ? 1
|
|
|
|
|
+ : this.produceType == 4
|
|
|
|
|
+ ? 4
|
|
|
|
|
+ : attributeType == 2
|
|
|
|
|
+ ? 2
|
|
|
|
|
+ : 3;
|
|
|
let kitting = this.quota_calculation == 1 ? false : true;
|
|
let kitting = this.quota_calculation == 1 ? false : true;
|
|
|
let { startTime, endTime } = this.getTimeData();
|
|
let { startTime, endTime } = this.getTimeData();
|
|
|
params = {
|
|
params = {
|