Browse Source

导出价格表

master
常熟吴彦祖 2 weeks ago
parent
commit
2615009da6
  1. 84
      src/views/modules/supplier/supplierPartMoqPrice.vue
  2. 4
      src/views/modules/sys/initialImport.vue

84
src/views/modules/supplier/supplierPartMoqPrice.vue

@ -89,6 +89,8 @@
<el-table-column prop="moqColor" label="MOQ/COLOR" min-width="120" header-align="center" align="right" :formatter="formatNumberCell" />
<el-table-column prop="moq" label="QTY/PO" min-width="110" header-align="center" align="right" :formatter="formatNumberCell" />
<el-table-column prop="qtyCarton" label="QTY/CARTON" min-width="120" header-align="center" align="right" :formatter="formatNumberCell" />
<el-table-column prop="remark" label="Remark" min-width="160" header-align="center" align="left" show-overflow-tooltip />
<el-table-column prop="latestChanges" label="latest changes" min-width="160" header-align="center" align="left" show-overflow-tooltip />
<el-table-column prop="active" label="在用" min-width="80" header-align="center" align="center">
<template slot-scope="scope">
<span>{{ scope.row.active === 'Y' ? '是' : '否' }}</span>
@ -197,6 +199,34 @@
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="Remark" class="optional-text" :style="calcTextareaFollowGapStyle(2)">
<el-input
v-model="addForm.remark"
type="textarea"
resize="none"
maxlength="200"
show-word-limit
:autosize="{ minRows: 2, maxRows: 2 }"
/>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="latest changes" class="optional-text" :style="calcTextareaFollowGapStyle(2)">
<el-input
v-model="addForm.latestChanges"
type="textarea"
resize="none"
maxlength="200"
show-word-limit
:autosize="{ minRows: 2, maxRows: 2 }"
/>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" :disabled="addSaveLoading" @click="saveAddSupplierPart">
@ -342,10 +372,33 @@
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="Remark" class="optional-text" :style="calcTextareaFollowGapStyle(2)">
<el-input
v-model="tierForm.remark"
type="textarea"
resize="none"
maxlength="200"
show-word-limit
:autosize="{ minRows: 2, maxRows: 2 }"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="latest changes" class="optional-text" :style="calcTextareaFollowGapStyle(2)">
<el-input
v-model="tierForm.latestChanges"
type="textarea"
resize="none"
maxlength="200"
show-word-limit
:autosize="{ minRows: 2, maxRows: 2 }"
/>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div class="attachment-header">
<span>阶梯价格</span>
</div>
<div class="rq ">
<el-table :height="300" :data="tierForm.tierPriceList" border stripe style="width: 100%; margin-top: 5px;">
<el-table-column type="index" label="#" width="50" header-align="center" align="center" />
@ -510,7 +563,9 @@ export default {
moq: 0,
moqColor: 0,
qtyCarton: 0,
active: 'Y'
active: 'Y',
remark: '',
latestChanges: ''
},
copyDialogVisible: false,
copyDialogLoading: false,
@ -539,6 +594,8 @@ export default {
moqColor: 0,
qtyCarton: 0,
active: 'Y',
remark: '',
latestChanges: '',
tierPriceList: []
},
attachmentLoading: false,
@ -745,7 +802,9 @@ export default {
moq: 0,
moqColor: 0,
qtyCarton: 0,
active: 'Y'
active: 'Y',
remark: '',
latestChanges: ''
}
this.addDialogVisible = true
},
@ -769,7 +828,9 @@ export default {
moq: this.addForm.moq,
moqColor: this.addForm.moqColor,
qtyCarton: this.addForm.qtyCarton,
active: this.addForm.active || 'Y'
active: this.addForm.active || 'Y',
remark: this.addForm.remark || '',
latestChanges: this.addForm.latestChanges || ''
}
addSupplierPartMoq(inData).then(({ data }) => {
if (data && data.code === 0) {
@ -913,6 +974,8 @@ export default {
moqColor: this.normalizeNumberValue(this.selectedSupplierPart.moqColor, 0),
qtyCarton: this.normalizeNumberValue(this.selectedSupplierPart.qtyCarton, 0),
active: this.selectedSupplierPart.active || 'Y',
remark: this.selectedSupplierPart.remark || '',
latestChanges: this.selectedSupplierPart.latestChanges || '',
tierPriceList: (this.currentTierPriceList || []).map(item => ({
qtyStart: this.normalizeNumberValue(item.qtyStart, 0),
qtyEnd: this.normalizeNumberValue(item.qtyEnd, 0),
@ -1052,7 +1115,9 @@ export default {
moq: this.tierForm.moq,
moqColor: this.tierForm.moqColor,
qtyCarton: this.tierForm.qtyCarton,
active: this.tierForm.active
active: this.tierForm.active,
remark: this.tierForm.remark || '',
latestChanges: this.tierForm.latestChanges || ''
}
Promise.all([saveTierPrice(priceInData), saveSupplierPartMoq(moqInData)]).then(([priceRes, moqRes]) => {
const priceData = priceRes && priceRes.data
@ -1354,4 +1419,9 @@ export default {
line-height: 1.5;
}
.supplier-part-moq-price /deep/ .optional-text .el-form-item__content {
height: auto;
line-height: 1.5;
}
</style>

4
src/views/modules/sys/initialImport.vue

@ -213,7 +213,9 @@ export default {
{ prop: 'priceTier5', label: 'Price_Tier_5', width: 90, align: 'center' },
{ prop: 'priceTier6', label: 'Price_Tier_6', width: 90, align: 'center' },
{ prop: 'priceTier7', label: 'Price_Tier_7', width: 90, align: 'center' },
{ prop: 'priceTier8', label: 'Price_Tier_8', width: 90, align: 'center' }
{ prop: 'priceTier8', label: 'Price_Tier_8', width: 90, align: 'center' },
{ prop: 'remark', label: 'Remark', width: 160, align: 'left' },
{ prop: 'latestChanges', label: 'latest changes', width: 160, align: 'left' }
],
partSkuColumns: [
{ prop: 'item', label: 'ITEM', width: 220, align: 'left' },

Loading…
Cancel
Save