diff --git a/src/views/goodsManage/postageManage/postList.vue b/src/views/goodsManage/postageManage/postList.vue index b5a61ca..0879c40 100644 --- a/src/views/goodsManage/postageManage/postList.vue +++ b/src/views/goodsManage/postageManage/postList.vue @@ -9,87 +9,99 @@
- {{'添加'}} + {{ '添加' }}
【特殊邮费】开启后,不参与专区包邮金额计算
- - - + + + + - - - + - + + - - - - - @@ -97,36 +109,46 @@
- - - + + + - + - {{item.label}} + {{ item.label }} @@ -134,19 +156,23 @@ - {{item.label}} + {{ item.label }} - + - {{item.label}} + {{ item.label }} @@ -156,48 +182,64 @@
配送区域
-
全选
-
{{ '取消' }}全选
-
{{'已选择'}}{{selLength}}个区域
+
全选
+
{{ '取消' }}全选
+
{{ '已选择' }}{{ selLength }}个区域
- {{ item.name }} + {{ item.name }}
- {{ '返回' }} - {{ '确认' }} + {{ '返回' }} + {{ '确认' }}
- +
- @@ -211,59 +253,79 @@ -
- + + {{ ctem.name }}
- + - + - + + - + - + - + -
+
- +
- {{'添加'}}区域 - {{ '删除' }}区域 + {{ '添加' }}区域 + {{ '删除' }}区域
@@ -271,13 +333,17 @@
专区免邮配置
- + - + @@ -287,62 +353,88 @@
- - - - {{ ctm.name }} + + + + {{ ctm.name }} -
{{item.name}} -
({{item.changeTsCldList.length}})
+
{{ item.name }} +
({{ item.changeTsCldList.length }})
-
{{item.name}} -
({{item.changeTsCldList.length}})
+
{{ item.name }} +
({{ item.changeTsCldList.length }})
- {{ '返回' }} - {{ '确认' }} + {{ '返回' }} + {{ '确认' }}
- +
- @@ -356,61 +448,85 @@ - -
- + + {{ ctem.name }}
- + - + - + + - + - + - + - + - +
+ - + - + @@ -418,13 +534,17 @@
- {{'添加'}}区域 - {{ '删除' }}区域 + {{ '添加' }}区域 + {{ '删除' }}区域
@@ -434,84 +554,116 @@
- - - - {{ ctm.name }} + + + + {{ ctm.name }} -
{{item.name}} -
({{item.changeNoCldList.length}})
+
{{ item.name }} +
({{ item.changeNoCldList.length }})
- {{ '返回' }} - {{ '确认' }} + {{ '返回' }} + {{ '确认' }}
- +
-
- + + {{ ctem.name }}
- +
- {{'添加'}}区域 - {{ '删除' }}区域 + {{ '添加' }}区域 + {{ '删除' }}区域
- - {{'取消'}} - {{'确认'}} + + {{ '取消' }} + {{ '确认' }}
@@ -524,7 +676,7 @@ import { classifyUpdate, classifySave } from '@/api/product' export default { name: 'Bzpz', components: { - topBar, + topBar }, filters: { isAgree(val) { @@ -533,7 +685,7 @@ export default { } else { return '禁止' } - }, + } }, data() { return { @@ -546,11 +698,11 @@ export default { postageDetailInfoList: [ { continuedWeight: '', - continuedPostage: '', - }, + continuedPostage: '' + } ], - volumeRatio: '', - }, + volumeRatio: '' + } ], tsAreaList: [ { @@ -560,29 +712,29 @@ export default { postageDetailInfoList: [ { continuedWeight: '', - continuedPostage: '', - }, + continuedPostage: '' + } ], - volumeRatio: '', - }, + volumeRatio: '' + } ], noAreaList: [ { areaIds: [], - warnNotice: '', - }, + warnNotice: '' + } ], creationTime: [], select: {}, // 查询参数 queryParams: { pageNum: 1, - pageSize: 50, + pageSize: 50 }, addOrEdit: '', total: 0, dialogVisible: false, - loading:false, + loading: false, tableData: [], form: { tempName: '', @@ -591,26 +743,26 @@ export default { quantityMode: 1, changeAreaList: [], changeTsAreaList: [], - changeNoAreaList: [], + changeNoAreaList: [] }, rules: { name: [ - { required: true, message: '请输入规格类型', trigger: 'blur' }, - ], + { required: true, message: '请输入规格类型', trigger: 'blur' } + ] }, transportTypeList: [], chargeList: [], quantityModeList: [], - isArea: 0, //正常区域选折下标 - allAreaList: [], //正常区域 - allTsAreaList: [], //特殊区域 - allNoAreaList: [], //不能发货区域 - isAllCheck: true, //全选 - orderList: [], //专区 - orgArr: [], //干净专区 - isAreaTs: 0, //特殊区域选折下标 - isAreaNo: 0, //不能区域选折下标 - selLength: 0, + isArea: 0, // 正常区域选折下标 + allAreaList: [], // 正常区域 + allTsAreaList: [], // 特殊区域 + allNoAreaList: [], // 不能发货区域 + isAllCheck: true, // 全选 + orderList: [], // 专区 + orgArr: [], // 干净专区 + isAreaTs: 0, // 特殊区域选折下标 + isAreaNo: 0, // 不能区域选折下标 + selLength: 0 } }, mounted() { @@ -632,13 +784,13 @@ export default { api .specialPostage({ pkPostage: row.pkId, - isSpecialPostage: e ? 0 : 1, + isSpecialPostage: e ? 0 : 1 }) .then((res) => { if (res.code == 200) { this.$message({ message: res.msg, - type: 'success', + type: 'success' }) } }) @@ -854,7 +1006,7 @@ export default { }, // 确认选中配送区域 getBoxTrue() { - let checkArr = [] + const checkArr = [] let selLength = 0 this.allAreaList.forEach((item) => { this.form.changeAreaList.forEach((ctm) => { @@ -872,7 +1024,7 @@ export default { }, // 确认选中特殊区域 getBoxTrueTs() { - let checkArr = [] + const checkArr = [] this.allTsAreaList.forEach((item) => { this.form.changeTsAreaList.forEach((ctm) => { if (item.id == ctm) { @@ -919,7 +1071,7 @@ export default { } } }) - let arr = this.tsAreaList[this.isAreaTs].areaIds + const arr = this.tsAreaList[this.isAreaTs].areaIds for (var i = 0; i < arr.length; i++) { // 首次遍历数组 for (var j = i + 1; j < arr.length; j++) { @@ -959,7 +1111,7 @@ export default { }, // 确认选中不能区域 getBoxTrueNo() { - let checkArr = [] + const checkArr = [] this.allNoAreaList.forEach((item) => { this.form.changeNoAreaList.forEach((ctm) => { if (item.id == ctm) { @@ -1006,7 +1158,7 @@ export default { } } }) - let arr = this.noAreaList[this.isAreaNo].areaIds + const arr = this.noAreaList[this.isAreaNo].areaIds for (var i = 0; i < arr.length; i++) { // 首次遍历数组 for (var j = i + 1; j < arr.length; j++) { @@ -1128,7 +1280,7 @@ export default { addTwoData(index, arrList) { arrList[index].postageDetailInfoList.push({ continuedWeight: '', - continuedPostage: '', + continuedPostage: '' }) }, // 添加配送区域 @@ -1140,10 +1292,10 @@ export default { postageDetailInfoList: [ { continuedWeight: '', - continuedPostage: '', - }, + continuedPostage: '' + } ], - volumeRatio: '', + volumeRatio: '' }) this.isArea = this.psAreaList.length - 1 }, @@ -1156,11 +1308,11 @@ export default { postageDetailInfoList: [ { continuedWeight: '', - continuedPostage: '', - }, + continuedPostage: '' + } ], volumeRatio: '', - specialAreaList: JSON.parse(JSON.stringify(this.orgArr)), + specialAreaList: JSON.parse(JSON.stringify(this.orgArr)) }) this.isAreaTs = this.tsAreaList.length - 1 }, @@ -1168,7 +1320,7 @@ export default { addAreaNo() { this.noAreaList.push({ areaIds: [], - question: '', + question: '' }) this.isAreaNo = this.noAreaList.length - 1 }, @@ -1304,7 +1456,7 @@ export default { this.$confirm('确认删除?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', - type: 'warning', + type: 'warning' }).then(() => { api.postageDel(id).then((res) => { this.getDataList() @@ -1331,7 +1483,7 @@ export default { if (res.code == 200) { this.$message({ message: res.msg, - type: 'success', + type: 'success' }) this.dialogVisible = false // // 充值数据 @@ -1367,7 +1519,7 @@ export default { quantityMode: 1, changeAreaList: [], changeTsAreaList: [], - changeNoAreaList: [], + changeNoAreaList: [] } this.$forceUpdate() // this.$refs['form'].clearValidate() @@ -1391,7 +1543,7 @@ export default { } }) -this.loading = false + this.loading = false this.tableData = res.rows this.total = res.total }) @@ -1403,9 +1555,9 @@ this.loading = false this.$confirm('是否确认导出所有数据项?', '警告', { confirmButtonText: '确定', cancelButtonText: '取消', - type: 'warning', + type: 'warning' }) - .then(function () { + .then(function() { return api.exportClassIfy(queryParams) }) .then((response) => { @@ -1419,8 +1571,8 @@ this.loading = false return 'success-row' } return '' - }, - }, + } + } }