Browse Source

价格表

master
常熟吴彦祖 3 weeks ago
parent
commit
3c7a10f31c
  1. 26
      src/views/modules/srmSupplier/supplierList.vue
  2. 1
      src/views/modules/supplier/priceSheetReport.vue

26
src/views/modules/srmSupplier/supplierList.vue

@ -67,7 +67,7 @@
<span v-else-if="item.columnProp === 'status'" :class="getStatusClass(scope.row.status)"> <span v-else-if="item.columnProp === 'status'" :class="getStatusClass(scope.row.status)">
{{ scope.row.status }} {{ scope.row.status }}
</span> </span>
<span v-else-if="item.columnProp === 'minShipAccount' || item.columnProp === 'handlingCharge'">
<span v-else-if="item.columnProp === 'handlingCharge'">
{{ formatSupplierNumberDisplay(scope.row[item.columnProp]) }} {{ formatSupplierNumberDisplay(scope.row[item.columnProp]) }}
</span> </span>
<span v-else>{{ scope.row[item.columnProp] }}</span> <span v-else>{{ scope.row[item.columnProp] }}</span>
@ -275,9 +275,14 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<!-- 最低出货金额排在小单费前一格;新增/编辑均可填写,默认 0,不强制固定小数位 - rqrq -->
<!-- 最低出货金额改为字典选择,保存 sys_dict_data.dict_value;空表示未配置 - rqrq -->
<el-form-item label="最低出货金额"> <el-form-item label="最低出货金额">
<el-input v-model="currentSupplier.minShipAccount" type="number"></el-input>
<sys-dict-select
v-model="currentSupplier.minShipAccount"
dict-type="min_ship_account"
placeholder="请选择"
width="100%"
/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
@ -1280,7 +1285,7 @@ export default {
taxCode:'', taxCode:'',
paymentTerm:'', paymentTerm:'',
deliveryTerm:'', deliveryTerm:'',
minShipAccount: 0,
minShipAccount: '',
handlingCharge: 0, handlingCharge: 0,
contract:'', contract:'',
phoneNo: '', phoneNo: '',
@ -1353,8 +1358,9 @@ export default {
} }
}, },
/** /**
* 查询列表数值去尾零。
* 业务意图:最低出货金额/小单费按“去尾零”展示,整数显示为 1 而不是 1.000。
* 查询列表小单费去尾零。
* 业务意图:handling_charge 按“去尾零”展示,整数显示为 1 而不是 1.000。
* 最低出货金额已改为字典字符串,列表直接显示字段值,不走本方法。
* 边界:空值显示空;非数字原样返回。 * 边界:空值显示空;非数字原样返回。
*/ */
formatSupplierNumberDisplay (value) { formatSupplierNumberDisplay (value) {
@ -1702,7 +1708,7 @@ export default {
taxCode:'', taxCode:'',
paymentTerm:'', paymentTerm:'',
deliveryTerm:'', deliveryTerm:'',
minShipAccount: 0,
minShipAccount: '',
handlingCharge: 0, handlingCharge: 0,
contract:'', contract:'',
phoneNo: '', phoneNo: '',
@ -1741,9 +1747,9 @@ export default {
buyer: this.currentRow.buyerAccount || this.currentRow.buyer || '', buyer: this.currentRow.buyerAccount || this.currentRow.buyer || '',
sourcingStaff: this.currentRow.sourcingStaffAccount || this.currentRow.sourcingStaff || '', sourcingStaff: this.currentRow.sourcingStaffAccount || this.currentRow.sourcingStaff || '',
planner: this.currentRow.plannerAccount || this.currentRow.planner || '', planner: this.currentRow.plannerAccount || this.currentRow.planner || '',
// 价格字段空值按 0 回填,避免编辑框出现 null - rqrq
minShipAccount: this.currentRow.minShipAccount === null || this.currentRow.minShipAccount === undefined || this.currentRow.minShipAccount === ''
? 0
// 最低出货金额为字典值,空串表示未选;小单费空值按 0 回填 - rqrq
minShipAccount: this.currentRow.minShipAccount === null || this.currentRow.minShipAccount === undefined
? ''
: this.currentRow.minShipAccount, : this.currentRow.minShipAccount,
handlingCharge: this.currentRow.handlingCharge === null || this.currentRow.handlingCharge === undefined || this.currentRow.handlingCharge === '' handlingCharge: this.currentRow.handlingCharge === null || this.currentRow.handlingCharge === undefined || this.currentRow.handlingCharge === ''
? 0 ? 0

1
src/views/modules/supplier/priceSheetReport.vue

@ -94,7 +94,6 @@
<el-table-column prop="priceTier8" label="Price_Tier_8" min-width="125" header-align="center" align="right" :formatter="formatDollarCell" /> <el-table-column prop="priceTier8" label="Price_Tier_8" min-width="125" header-align="center" align="right" :formatter="formatDollarCell" />
<el-table-column prop="fsc" label="FSC" min-width="120" header-align="center" align="left" show-overflow-tooltip /> <el-table-column prop="fsc" label="FSC" min-width="120" header-align="center" align="left" show-overflow-tooltip />
<el-table-column prop="fscClaim" label="FSC claim" min-width="150" header-align="center" align="left" show-overflow-tooltip /> <el-table-column prop="fscClaim" label="FSC claim" min-width="150" header-align="center" align="left" show-overflow-tooltip />
<el-table-column prop="leadFreePellet" label="Lead free Pellet" min-width="160" header-align="center" align="left" show-overflow-tooltip />
<el-table-column prop="awareDpp" label="AWARE DPP" min-width="140" header-align="center" align="left" show-overflow-tooltip /> <el-table-column prop="awareDpp" label="AWARE DPP" min-width="140" header-align="center" align="left" show-overflow-tooltip />
<el-table-column prop="coo" label="COO" min-width="120" header-align="center" align="left" show-overflow-tooltip /> <el-table-column prop="coo" label="COO" min-width="120" header-align="center" align="left" show-overflow-tooltip />
</el-table> </el-table>

Loading…
Cancel
Save