|
@@ -121,6 +121,14 @@
|
|
>新增明细</el-button
|
|
>新增明细</el-button
|
|
>
|
|
>
|
|
<el-button
|
|
<el-button
|
|
|
|
+ type="primary"
|
|
|
|
+ icon="el-icon-plus"
|
|
|
|
+ size="small"
|
|
|
|
+ @click.stop="addLibrary"
|
|
|
|
+ :disabled="detailData.status == 1"
|
|
|
|
+ >出口价格库</el-button
|
|
|
|
+ >
|
|
|
|
+ <el-button
|
|
type="info"
|
|
type="info"
|
|
icon="el-icon-printer"
|
|
icon="el-icon-printer"
|
|
size="small"
|
|
size="small"
|
|
@@ -389,6 +397,7 @@
|
|
@partClosed="partClosed"
|
|
@partClosed="partClosed"
|
|
@partReData="partReData"
|
|
@partReData="partReData"
|
|
/>
|
|
/>
|
|
|
|
+ <price-library ref="library" @importLibray="importLibray" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -411,6 +420,7 @@ import {
|
|
saveSell
|
|
saveSell
|
|
} from "@/api/basicData/customerInquiry";
|
|
} from "@/api/basicData/customerInquiry";
|
|
import reportDialog from "@/components/report-dialog/main";
|
|
import reportDialog from "@/components/report-dialog/main";
|
|
|
|
+import priceLibrary from "./priceLibrary.vue";
|
|
import { isDiscount, isPercentage, micrometerFormat } from "@/util/validate";
|
|
import { isDiscount, isPercentage, micrometerFormat } from "@/util/validate";
|
|
import { contrastObj, contrastList } from "@/util/contrastData";
|
|
import { contrastObj, contrastList } from "@/util/contrastData";
|
|
import _ from "lodash";
|
|
import _ from "lodash";
|
|
@@ -728,7 +738,8 @@ export default {
|
|
reportDialog,
|
|
reportDialog,
|
|
feeInfo,
|
|
feeInfo,
|
|
customerDialog,
|
|
customerDialog,
|
|
- partDialog
|
|
|
|
|
|
+ partDialog,
|
|
|
|
+ priceLibrary
|
|
},
|
|
},
|
|
async created() {
|
|
async created() {
|
|
this.tableOption = await this.getColumnData(
|
|
this.tableOption = await this.getColumnData(
|
|
@@ -773,6 +784,9 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ addLibrary() {
|
|
|
|
+ this.$refs.library.init();
|
|
|
|
+ },
|
|
cnameChange(row) {
|
|
cnameChange(row) {
|
|
this.goodsoptions.forEach(e => {
|
|
this.goodsoptions.forEach(e => {
|
|
if (e.cname == row.cname) {
|
|
if (e.cname == row.cname) {
|
|
@@ -1111,6 +1125,35 @@ export default {
|
|
this.loading = false;
|
|
this.loading = false;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ importLibray(rows) {
|
|
|
|
+ rows.forEach(e => {
|
|
|
|
+ this.data.push({
|
|
|
|
+ itemId: e.id,
|
|
|
|
+ code: e.code,
|
|
|
|
+ cname: e.cname,
|
|
|
|
+ priceCategory: e.goodsTypeName,
|
|
|
|
+ purchaseAmount:e.price,
|
|
|
|
+ itemProp:e.goodNature,
|
|
|
|
+ corpId:e.corpId,
|
|
|
|
+ corpName:e.corpName,
|
|
|
|
+ itemDescription:null,
|
|
|
|
+ partsList: [],
|
|
|
|
+ partsPrice: 0,
|
|
|
|
+ itemType: null,
|
|
|
|
+ tradeTerms: null,
|
|
|
|
+ price: 0,
|
|
|
|
+ orderQuantity: 0,
|
|
|
|
+ insurance: 0,
|
|
|
|
+ freight: 0,
|
|
|
|
+ discount: null,
|
|
|
|
+ amount: 0,
|
|
|
|
+ taxRate: 0,
|
|
|
|
+ unit: e.unit,
|
|
|
|
+ remarks: null,
|
|
|
|
+ $cellEdit: true
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ },
|
|
//商品明细导入
|
|
//商品明细导入
|
|
newDetails() {
|
|
newDetails() {
|
|
this.dialogVisible = !this.dialogVisible;
|
|
this.dialogVisible = !this.dialogVisible;
|