|
|
@@ -9,6 +9,15 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="备注" prop="remark">
|
|
|
+ <el-input placeholder="备注" v-model="formData.remark"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
@@ -23,7 +32,7 @@
|
|
|
|
|
|
<template v-slot:toolbar>
|
|
|
<el-button size="small" type="primary" icon="el-icon-plus" class="ele-btn-icon" @click="showAdd">
|
|
|
- 添加销售订单
|
|
|
+ 添加生产订单
|
|
|
</el-button>
|
|
|
</template>
|
|
|
|
|
|
@@ -34,9 +43,7 @@
|
|
|
<el-input placeholder="请输入" readonly :value="row.code || row.salesOrderCode"></el-input>
|
|
|
</template>
|
|
|
|
|
|
- <template v-slot:remark="{ row }">
|
|
|
- <el-input placeholder="备注" v-model="row.remark"></el-input>
|
|
|
- </template>
|
|
|
+
|
|
|
|
|
|
<template v-slot:productionPlanId="{ row }">
|
|
|
<el-link type="primary" v-if="!row.productionPlanId" :underline="false"
|
|
|
@@ -50,7 +57,7 @@
|
|
|
<el-link type="primary" :underline="false" @click="categorySelect(row)">
|
|
|
添加物料
|
|
|
</el-link>
|
|
|
- <el-popconfirm class="ele-action" title="确定要删除此销售订单吗?" @confirm="remove(row, $index)">
|
|
|
+ <el-popconfirm class="ele-action" title="确定要删除此生产订单吗?" @confirm="remove(row, $index)">
|
|
|
<template v-slot:reference>
|
|
|
<el-link type="danger" :underline="false" icon="el-icon-delete">
|
|
|
删除
|
|
|
@@ -115,7 +122,7 @@
|
|
|
</div>
|
|
|
|
|
|
|
|
|
- <saleOrderPop ref="saleOrderRef" @chooseOrder="chooseOrder"></saleOrderPop>
|
|
|
+ <workOrderPop ref="workOrderRef" @chooseOrder="chooseOrder"></workOrderPop>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -128,13 +135,13 @@
|
|
|
|
|
|
<script>
|
|
|
|
|
|
-import saleOrderPop from './saleOrderPop.vue'
|
|
|
+import workOrderPop from './workOrderPop.vue'
|
|
|
import ProductModal from './ProductModal.vue'
|
|
|
import { listBomBySalesOrderIds, listBomBySalesOrderId, save, getById } from '@/api/materialPlan/index';
|
|
|
import ProductionVersion from '@/components/CreatePlan/ProductionVersion2.vue';
|
|
|
export default {
|
|
|
components: {
|
|
|
- saleOrderPop,
|
|
|
+ workOrderPop,
|
|
|
ProductModal,
|
|
|
ProductionVersion
|
|
|
|
|
|
@@ -163,12 +170,18 @@ export default {
|
|
|
|
|
|
{
|
|
|
prop: 'code',
|
|
|
- label: '销售订单号',
|
|
|
+ label: '生产订单号',
|
|
|
slot: 'code',
|
|
|
showOverflowTooltip: true,
|
|
|
align: 'center',
|
|
|
minWidth: 170
|
|
|
},
|
|
|
+ {
|
|
|
+ prop: 'salesOrderId',
|
|
|
+ label: '销售订单号',
|
|
|
+ align: 'center',
|
|
|
+ minWidth: 110
|
|
|
+ },
|
|
|
{
|
|
|
prop: 'customerName',
|
|
|
label: '客户名称',
|
|
|
@@ -225,14 +238,7 @@ export default {
|
|
|
label: '欠交数量',
|
|
|
align: 'center'
|
|
|
},
|
|
|
- {
|
|
|
- prop: 'remark',
|
|
|
- label: '备注',
|
|
|
- slot: 'remark',
|
|
|
- showOverflowTooltip: true,
|
|
|
- align: 'center',
|
|
|
- minWidth: 110
|
|
|
- },
|
|
|
+
|
|
|
|
|
|
{
|
|
|
prop: 'productionPlanId',
|
|
|
@@ -324,7 +330,7 @@ export default {
|
|
|
name: [
|
|
|
{
|
|
|
required: true,
|
|
|
- message: '请选择物料',
|
|
|
+ message: '请输入配料计划名称',
|
|
|
trigger: ['blur', 'change']
|
|
|
}
|
|
|
],
|
|
|
@@ -333,6 +339,7 @@ export default {
|
|
|
},
|
|
|
formData: {
|
|
|
name: '',
|
|
|
+ remark: '',
|
|
|
detailRemoveIds: [],
|
|
|
materialRemoveIds: []
|
|
|
|
|
|
@@ -354,6 +361,7 @@ export default {
|
|
|
getDetail(id) {
|
|
|
getById(id).then(res => {
|
|
|
this.$set(this.formData, 'name', res.name)
|
|
|
+ this.$set(this.formData, 'remark', res.remark)
|
|
|
this.formData['id'] = res.id
|
|
|
this.$refs.table.setData([...res.salesOrderList]);
|
|
|
|
|
|
@@ -367,7 +375,7 @@ export default {
|
|
|
let _arr = this.$refs.table.getData() ?? []
|
|
|
|
|
|
if (_arr.length == 0) {
|
|
|
- this.$message.info('请添加销售订单');
|
|
|
+ this.$message.info('请添加生产订单');
|
|
|
return false
|
|
|
}
|
|
|
let _arr2 = []
|
|
|
@@ -415,7 +423,7 @@ export default {
|
|
|
showAdd() {
|
|
|
this.tableData = this.$refs.table.getData();
|
|
|
|
|
|
- this.$refs.saleOrderRef.open(this.tableData)
|
|
|
+ this.$refs.workOrderRef.open(this.tableData)
|
|
|
},
|
|
|
|
|
|
chooseOrder(list) {
|
|
|
@@ -542,7 +550,8 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
-:deep(.el-table__expanded-cell){
|
|
|
- border-bottom: 4px solid #1890ff !important;
|
|
|
+:deep(.el-table__expanded-cell) {
|
|
|
+
|
|
|
+ padding-bottom: 120px !important;
|
|
|
}
|
|
|
</style>
|