|
@@ -11,7 +11,9 @@
|
|
|
</el-button>
|
|
|
</div>
|
|
|
<div class="add-customer-btn" v-if="showBut">
|
|
|
- <el-button type="info" @click="saveSell" size="small">生成采购单</el-button>
|
|
|
+ <el-button type="info" @click="saveSell" size="small"
|
|
|
+ >生成采购单</el-button
|
|
|
+ >
|
|
|
<el-button type="success" disabled size="small">
|
|
|
复制新单
|
|
|
</el-button>
|
|
@@ -29,7 +31,12 @@
|
|
|
<div class="customer-main">
|
|
|
<containerTitle title="基础信息"></containerTitle>
|
|
|
<basic-container>
|
|
|
- <avue-form ref="form" v-model="form" :option="option">
|
|
|
+ <avue-form
|
|
|
+ ref="form"
|
|
|
+ class="trading-form"
|
|
|
+ v-model="form"
|
|
|
+ :option="option"
|
|
|
+ >
|
|
|
<template slot="portOfLoad">
|
|
|
<port-info
|
|
|
v-model="form.portOfLoad"
|
|
@@ -121,6 +128,7 @@
|
|
|
@selection-change="goodsSelectionChange"
|
|
|
@saveColumn="saveColumn"
|
|
|
:summary-method="summaryMethod"
|
|
|
+ :cell-style="cellStyle"
|
|
|
>
|
|
|
<template slot="cname" slot-scope="{ row, index }">
|
|
|
<span v-if="row.$cellEdit" style="display:flex">
|
|
@@ -164,6 +172,7 @@
|
|
|
allow-create
|
|
|
default-first-option
|
|
|
placeholder="请输入"
|
|
|
+ size="small"
|
|
|
@focus="itemTypeFocus(row)"
|
|
|
>
|
|
|
<el-option
|
|
@@ -329,19 +338,34 @@
|
|
|
<div>
|
|
|
<containerTitle title="银行信息"></containerTitle>
|
|
|
<basic-container>
|
|
|
- <avue-form ref="form" v-model="form" :option="bankOption" />
|
|
|
+ <avue-form
|
|
|
+ class="trading-form"
|
|
|
+ ref="form"
|
|
|
+ v-model="form"
|
|
|
+ :option="bankOption"
|
|
|
+ />
|
|
|
</basic-container>
|
|
|
</div>
|
|
|
<div>
|
|
|
<containerTitle title="保险信息"></containerTitle>
|
|
|
<basic-container>
|
|
|
- <avue-form ref="form" v-model="form" :option="insuranceOption" />
|
|
|
+ <avue-form
|
|
|
+ class="trading-form"
|
|
|
+ ref="form"
|
|
|
+ v-model="form"
|
|
|
+ :option="insuranceOption"
|
|
|
+ />
|
|
|
</basic-container>
|
|
|
</div>
|
|
|
<div>
|
|
|
<containerTitle title="唛头"></containerTitle>
|
|
|
<basic-container>
|
|
|
- <avue-form ref="form" v-model="form" :option="markOption" />
|
|
|
+ <avue-form
|
|
|
+ class="trading-form"
|
|
|
+ ref="form"
|
|
|
+ v-model="form"
|
|
|
+ :option="markOption"
|
|
|
+ />
|
|
|
</basic-container>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -380,6 +404,7 @@
|
|
|
:page.sync="page"
|
|
|
@on-load="onLoad"
|
|
|
@saveColumn="saveGoodsColumn"
|
|
|
+ :cell-style="cellStyle"
|
|
|
></avue-crud>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -799,6 +824,9 @@ export default {
|
|
|
partDialog
|
|
|
},
|
|
|
async created() {
|
|
|
+ if (this.detailData.id) {
|
|
|
+ this.getDetail(this.detailData.id);
|
|
|
+ }
|
|
|
this.tableOption = await this.getColumnData(
|
|
|
this.getColumnName(5),
|
|
|
tableOption
|
|
@@ -807,9 +835,6 @@ export default {
|
|
|
this.getColumnName(28),
|
|
|
goodsOption
|
|
|
);
|
|
|
- if (this.detailData.id) {
|
|
|
- this.getDetail(this.detailData.id);
|
|
|
- }
|
|
|
if (this.detailData.status == 1) {
|
|
|
this.option.disabled = true;
|
|
|
this.bankOption.disabled = true;
|
|
@@ -852,6 +877,9 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
methods: {
|
|
|
+ cellStyle() {
|
|
|
+ return "padding:0;height:40px;";
|
|
|
+ },
|
|
|
cnameChange(row) {
|
|
|
this.goodsoptions.forEach(e => {
|
|
|
if (e.cname == row.cname) {
|
|
@@ -1383,7 +1411,7 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
-::v-deep .el-form-item {
|
|
|
+.trading-form ::v-deep .el-form-item {
|
|
|
margin-bottom: 8px !important;
|
|
|
}
|
|
|
::v-deep .el-form-item__error {
|