|
|
|
@ -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> |