|
|
@@ -54,7 +54,7 @@
|
|
|
type="primary"
|
|
|
icon="el-icon-plus"
|
|
|
class="ele-btn-icon"
|
|
|
- @click="openEdit('add', {})"
|
|
|
+ @click="openEditNew('add', {})"
|
|
|
v-if="$hasPermission('eom:saleorder:save')"
|
|
|
>
|
|
|
新建
|
|
|
@@ -326,6 +326,13 @@
|
|
|
:contactData="contactData"
|
|
|
></add-dialog>
|
|
|
|
|
|
+ <add-dialog-new
|
|
|
+ :isRequired="isRequired"
|
|
|
+ ref="addDialogNewRef"
|
|
|
+ @done="reload"
|
|
|
+ :contactData="contactData"
|
|
|
+ ></add-dialog-new>
|
|
|
+
|
|
|
<add-invoice-dialog
|
|
|
ref="invoiceDialogRef"
|
|
|
@done="reload"
|
|
|
@@ -398,6 +405,7 @@
|
|
|
<script>
|
|
|
import searchTable from './components/searchTable.vue';
|
|
|
import addDialog from './components/addDialog.vue';
|
|
|
+import addDialogNew from './components/addDialogNew.vue';
|
|
|
import invoice from './invoice/index.vue';
|
|
|
import invoiceConfirm from './invoiceConfirm/index.vue';
|
|
|
import detailDialog from './components/detailDialog.vue';
|
|
|
@@ -475,7 +483,8 @@ export default {
|
|
|
printTemplateSaleOrder,
|
|
|
adjustmentNote,
|
|
|
addAdjustDialog,
|
|
|
- suspend
|
|
|
+ suspend,
|
|
|
+ addDialogNew
|
|
|
},
|
|
|
//客户管理数据
|
|
|
props: {
|
|
|
@@ -1088,6 +1097,13 @@ export default {
|
|
|
this.$refs.addDialogRef.$refs.form.clearValidate();
|
|
|
},
|
|
|
|
|
|
+ //新增编辑新
|
|
|
+ openEditNew(type, row) {
|
|
|
+ this.$refs.addDialogNewRef.open(type, row, row.id);
|
|
|
+ this.$refs.addDialogNewRef.$refs.form &&
|
|
|
+ this.$refs.addDialogNewRef.$refs.form.clearValidate();
|
|
|
+ },
|
|
|
+
|
|
|
//批量删除
|
|
|
allDelBtn() {
|
|
|
if (this.selection.length === 0) return;
|