|
@@ -16,9 +16,9 @@
|
|
|
</el-row>
|
|
</el-row>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
|
|
|
|
|
- <el-form :model="formData" ref="tableForm" >
|
|
|
|
|
|
|
+ <el-form :model="formData" ref="tableForm">
|
|
|
|
|
|
|
|
- <ele-pro-table ref="table" :needPage="false" :columns="columns" row-key="id">
|
|
|
|
|
|
|
+ <ele-pro-table ref="table" :needPage="false" :columns="columns" row-key="id">
|
|
|
|
|
|
|
|
|
|
|
|
|
<template v-slot:toolbar>
|
|
<template v-slot:toolbar>
|
|
@@ -30,10 +30,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- <template v-slot:code="{ row }">
|
|
|
|
|
- <el-input placeholder="请输入" readonly v-model="row.code"></el-input>
|
|
|
|
|
- </template>
|
|
|
|
|
|
|
+ <template v-slot:code="{ row }">
|
|
|
|
|
+ <el-input placeholder="请输入" readonly v-model="row.code"></el-input>
|
|
|
|
|
+ </template>
|
|
|
|
|
|
|
|
|
|
+ <template v-slot:remark="{ row }">
|
|
|
|
|
+ <el-input placeholder="备注" v-model="row.remark"></el-input>
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
|
|
+ <template v-slot:action="{ row, $index }">
|
|
|
|
|
+ <template v-if="row.orderSource != 1">
|
|
|
|
|
+ <el-link
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ :underline="false"
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ >
|
|
|
|
|
+ 设置物料
|
|
|
|
|
+ </el-link>
|
|
|
|
|
+ <el-popconfirm
|
|
|
|
|
+ class="ele-action"
|
|
|
|
|
+ title="确定要删除此销售订单吗?"
|
|
|
|
|
+ @confirm="remove(row, $index)"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template v-slot:reference>
|
|
|
|
|
+ <el-link type="danger" :underline="false" icon="el-icon-delete">
|
|
|
|
|
+ 删除
|
|
|
|
|
+ </el-link>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-popconfirm>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </template>
|
|
|
|
|
|
|
|
|
|
|
|
|
</ele-pro-table>
|
|
</ele-pro-table>
|
|
@@ -46,7 +73,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
- <saleOrderPop ref="saleOrderRef"></saleOrderPop>
|
|
|
|
|
|
|
+ <saleOrderPop ref="saleOrderRef" @chooseOrder="chooseOrder"></saleOrderPop>
|
|
|
|
|
|
|
|
<!-- 选择物料 -->
|
|
<!-- 选择物料 -->
|
|
|
<ChooseMaterial ref="chooseRef" @success="handleChooseMaterial"></ChooseMaterial>
|
|
<ChooseMaterial ref="chooseRef" @success="handleChooseMaterial"></ChooseMaterial>
|
|
@@ -90,9 +117,55 @@ export default {
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
minWidth: 110
|
|
minWidth: 110
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'customerName',
|
|
|
|
|
+ label: '客户名称',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'deliveryNum',
|
|
|
|
|
+ label: '客户代号',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'productName',
|
|
|
|
|
+ label: '产品名称',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ minWidth: 120
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'model',
|
|
|
|
|
+ label: '型号',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ minWidth: 120
|
|
|
|
|
+ },
|
|
|
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'brandNo',
|
|
|
|
|
+ label: '牌号',
|
|
|
|
|
+ align: 'center'
|
|
|
|
|
+ },
|
|
|
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'deliveryTime',
|
|
|
|
|
+ label: '交付日期',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ },
|
|
|
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'remark',
|
|
|
|
|
+ label: '备注',
|
|
|
|
|
+ slot: 'remark',
|
|
|
|
|
+ showOverflowTooltip: true,
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ minWidth: 110
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
columnKey: 'action',
|
|
columnKey: 'action',
|
|
@@ -117,10 +190,10 @@ export default {
|
|
|
},
|
|
},
|
|
|
formData: {
|
|
formData: {
|
|
|
materialName: '',
|
|
materialName: '',
|
|
|
- positionList: []
|
|
|
|
|
|
|
+ salesOrderPOList: []
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
@@ -150,7 +223,7 @@ export default {
|
|
|
this.$refs.formRef.resetFields();
|
|
this.$refs.formRef.resetFields();
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- datasource({ }) {
|
|
|
|
|
|
|
+ datasource({ }) {
|
|
|
return []
|
|
return []
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -163,6 +236,16 @@ export default {
|
|
|
this.$refs.saleOrderRef.open(this.tableData)
|
|
this.$refs.saleOrderRef.open(this.tableData)
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
+ chooseOrder(list) {
|
|
|
|
|
+ this.$refs.table.setData([...list]);
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ remove (row, index) {
|
|
|
|
|
+ let _arr = this.$refs.table.getData() || [];
|
|
|
|
|
+ _arr.splice(index, 1);
|
|
|
|
|
+ this.$refs.table.setData([..._arr]);
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
handleChooseMaterial() { },
|
|
handleChooseMaterial() { },
|
|
|
|
|
|
|
|
|
|
|