|
@@ -72,6 +72,28 @@
|
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row :gutter="24">
|
|
<el-row :gutter="24">
|
|
|
|
|
+ <!-- <el-col :span="6">
|
|
|
|
|
+ <el-form-item label="销售订单号:" prop="saleOrder">
|
|
|
|
|
+ <div class="sale-order-select">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="form.saleOrder"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ style="width: calc(100% - 54px)"
|
|
|
|
|
+ placeholder="请选择销售订单号"
|
|
|
|
|
+ readonly
|
|
|
|
|
+ ></el-input>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ @click="openSaleOrderDialog"
|
|
|
|
|
+ >
|
|
|
|
|
+ 选择
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col> -->
|
|
|
|
|
+
|
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
label="生产编号:"
|
|
label="生产编号:"
|
|
@@ -143,6 +165,26 @@
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
+ <!-- <el-row :gutter="24">
|
|
|
|
|
+ <el-col :span="6">
|
|
|
|
|
+ <el-form-item
|
|
|
|
|
+ label="要求完成日期:"
|
|
|
|
|
+ label-width="110px"
|
|
|
|
|
+ prop="reqMoldTime"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-date-picker
|
|
|
|
|
+ style="width: 100%"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ v-model="form.reqMoldTime"
|
|
|
|
|
+ type="datetime"
|
|
|
|
|
+ placeholder="选择日期"
|
|
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-date-picker>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-row> -->
|
|
|
|
|
+
|
|
|
<headerTitle title="产品信息"> </headerTitle>
|
|
<headerTitle title="产品信息"> </headerTitle>
|
|
|
|
|
|
|
|
<el-row :gutter="24">
|
|
<el-row :gutter="24">
|
|
@@ -344,7 +386,7 @@
|
|
|
v-model="row.factoriesId"
|
|
v-model="row.factoriesId"
|
|
|
:key="row.factoriesId"
|
|
:key="row.factoriesId"
|
|
|
@change="(e) => selectFactory(e, row)"
|
|
@change="(e) => selectFactory(e, row)"
|
|
|
- :disabled="factoriesId"
|
|
|
|
|
|
|
+ :disabled="!!factoriesId"
|
|
|
>
|
|
>
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="item of factoryList"
|
|
v-for="item of factoryList"
|
|
@@ -441,6 +483,11 @@
|
|
|
ref="equipmentRefs"
|
|
ref="equipmentRefs"
|
|
|
>
|
|
>
|
|
|
</EquipmentDialog>
|
|
</EquipmentDialog>
|
|
|
|
|
+ <saleOrderPop
|
|
|
|
|
+ ref="saleOrderRef"
|
|
|
|
|
+ :isMultiple="false"
|
|
|
|
|
+ @chooseOrder="chooseSaleOrder"
|
|
|
|
|
+ />
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<template v-slot:footer>
|
|
<template v-slot:footer>
|
|
@@ -464,6 +511,7 @@
|
|
|
<script>
|
|
<script>
|
|
|
import { findBomCategoryByCategoryId } from '@/api/productionPlan/index';
|
|
import { findBomCategoryByCategoryId } from '@/api/productionPlan/index';
|
|
|
import EquipmentDialog from '@/views/saleOrder/components/EquipmentDialog';
|
|
import EquipmentDialog from '@/views/saleOrder/components/EquipmentDialog';
|
|
|
|
|
+ import saleOrderPop from '@/views/materialPlan/components/saleOrderPop.vue';
|
|
|
import { getCode } from '@/api/codeManagement';
|
|
import { getCode } from '@/api/codeManagement';
|
|
|
import ProcessRoute from '@/components/selectionDialog/processRoute.vue';
|
|
import ProcessRoute from '@/components/selectionDialog/processRoute.vue';
|
|
|
import { parameterGetByCode } from '@/api/mainData/index';
|
|
import { parameterGetByCode } from '@/api/mainData/index';
|
|
@@ -483,6 +531,7 @@
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
EquipmentDialog,
|
|
EquipmentDialog,
|
|
|
|
|
+ saleOrderPop,
|
|
|
ProcessRoute,
|
|
ProcessRoute,
|
|
|
contactDialog
|
|
contactDialog
|
|
|
},
|
|
},
|
|
@@ -788,6 +837,7 @@
|
|
|
categoryId: '',
|
|
categoryId: '',
|
|
|
productName: '',
|
|
productName: '',
|
|
|
planType: '',
|
|
planType: '',
|
|
|
|
|
+ saleOrder: '',
|
|
|
|
|
|
|
|
moCount: '', // 模具数量
|
|
moCount: '', // 模具数量
|
|
|
blockCount: 0, // 块数
|
|
blockCount: 0, // 块数
|
|
@@ -1255,6 +1305,7 @@
|
|
|
categoryId: '',
|
|
categoryId: '',
|
|
|
productName: '',
|
|
productName: '',
|
|
|
planType: '',
|
|
planType: '',
|
|
|
|
|
+ saleOrder: '',
|
|
|
moCount: '', // 模具数量
|
|
moCount: '', // 模具数量
|
|
|
blockCount: 0, // 块数
|
|
blockCount: 0, // 块数
|
|
|
noWordCount: '', // 无字数量
|
|
noWordCount: '', // 无字数量
|
|
@@ -1324,6 +1375,13 @@
|
|
|
this.form.serialNo = data.serialNo;
|
|
this.form.serialNo = data.serialNo;
|
|
|
this.$set(this.form, 'customerName', data.name);
|
|
this.$set(this.form, 'customerName', data.name);
|
|
|
},
|
|
},
|
|
|
|
|
+ openSaleOrderDialog() {
|
|
|
|
|
+ this.$refs.saleOrderRef.open([]);
|
|
|
|
|
+ },
|
|
|
|
|
+ chooseSaleOrder(list) {
|
|
|
|
|
+ const currentRow = list[0] || {};
|
|
|
|
|
+ this.$set(this.form, 'saleOrder', currentRow.code || '');
|
|
|
|
|
+ },
|
|
|
// 清空BOM 跟工艺路线
|
|
// 清空BOM 跟工艺路线
|
|
|
wipeData(index) {
|
|
wipeData(index) {
|
|
|
this.$set(this.form.productInfoList[index], 'bomCategoryId', '');
|
|
this.$set(this.form.productInfoList[index], 'bomCategoryId', '');
|
|
@@ -1796,6 +1854,12 @@
|
|
|
margin-bottom: 14px !important;
|
|
margin-bottom: 14px !important;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ .sale-order-select {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ gap: 4px;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
.add-product {
|
|
.add-product {
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
display: flex;
|
|
display: flex;
|