|
@@ -25,7 +25,7 @@
|
|
type="primary"
|
|
type="primary"
|
|
icon="el-icon-search"
|
|
icon="el-icon-search"
|
|
@click="handleFilter"
|
|
@click="handleFilter"
|
|
- >{{ $t("view.search") }}</el-button
|
|
|
|
|
|
+ >{{ $t("view.search") }}</el-button
|
|
>
|
|
>
|
|
<el-button
|
|
<el-button
|
|
class="filter-item"
|
|
class="filter-item"
|
|
@@ -33,7 +33,7 @@
|
|
type="primary"
|
|
type="primary"
|
|
icon="el-icon-circle-plus"
|
|
icon="el-icon-circle-plus"
|
|
@click="handleCreate"
|
|
@click="handleCreate"
|
|
- >{{ $t("view.create") }}</el-button
|
|
|
|
|
|
+ >{{ $t("view.create") }}</el-button
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -58,24 +58,24 @@
|
|
>
|
|
>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
-<!-- <el-table-column-->
|
|
|
|
-<!-- :label="$t('label.code')"-->
|
|
|
|
-<!-- width="200"-->
|
|
|
|
-<!-- align="center"-->
|
|
|
|
-<!-- prop="giftSkuCode"-->
|
|
|
|
-<!-- >-->
|
|
|
|
-<!-- </el-table-column>-->
|
|
|
|
-
|
|
|
|
-<!-- <el-table-column-->
|
|
|
|
-<!-- :label="$t('label.applicableShops')"-->
|
|
|
|
-<!-- width="150"-->
|
|
|
|
-<!-- align="center"-->
|
|
|
|
-<!-- prop="storeId"-->
|
|
|
|
-<!-- >-->
|
|
|
|
-<!-- <template slot-scope="scope">-->
|
|
|
|
-<!-- {{ scope.row.storeId | storeIdFilter }}-->
|
|
|
|
-<!-- </template>-->
|
|
|
|
-<!-- </el-table-column>-->
|
|
|
|
|
|
+ <!-- <el-table-column-->
|
|
|
|
+ <!-- :label="$t('label.code')"-->
|
|
|
|
+ <!-- width="200"-->
|
|
|
|
+ <!-- align="center"-->
|
|
|
|
+ <!-- prop="giftSkuCode"-->
|
|
|
|
+ <!-- >-->
|
|
|
|
+ <!-- </el-table-column>-->
|
|
|
|
+
|
|
|
|
+ <!-- <el-table-column-->
|
|
|
|
+ <!-- :label="$t('label.applicableShops')"-->
|
|
|
|
+ <!-- width="150"-->
|
|
|
|
+ <!-- align="center"-->
|
|
|
|
+ <!-- prop="storeId"-->
|
|
|
|
+ <!-- >-->
|
|
|
|
+ <!-- <template slot-scope="scope">-->
|
|
|
|
+ <!-- {{ scope.row.storeId | storeIdFilter }}-->
|
|
|
|
+ <!-- </template>-->
|
|
|
|
+ <!-- </el-table-column>-->
|
|
|
|
|
|
<el-table-column
|
|
<el-table-column
|
|
:label="$t('label.effectivePeriodStart')"
|
|
:label="$t('label.effectivePeriodStart')"
|
|
@@ -119,7 +119,7 @@
|
|
size="mini"
|
|
size="mini"
|
|
v-waves
|
|
v-waves
|
|
@click="refresh(scope.row)"
|
|
@click="refresh(scope.row)"
|
|
- >{{ "明细" }}</el-button
|
|
|
|
|
|
+ >{{ "明细" }}</el-button
|
|
>
|
|
>
|
|
<el-button
|
|
<el-button
|
|
v-if="scope.row.isEnable === '1'"
|
|
v-if="scope.row.isEnable === '1'"
|
|
@@ -128,7 +128,7 @@
|
|
size="mini"
|
|
size="mini"
|
|
v-waves
|
|
v-waves
|
|
@click="enableInfo(scope.row)"
|
|
@click="enableInfo(scope.row)"
|
|
- >{{ "禁用" }}</el-button
|
|
|
|
|
|
+ >{{ "禁用" }}</el-button
|
|
>
|
|
>
|
|
|
|
|
|
<el-button
|
|
<el-button
|
|
@@ -138,7 +138,7 @@
|
|
size="mini"
|
|
size="mini"
|
|
v-waves
|
|
v-waves
|
|
@click="enableInfo(scope.row)"
|
|
@click="enableInfo(scope.row)"
|
|
- >{{ "启用" }}</el-button
|
|
|
|
|
|
+ >{{ "启用" }}</el-button
|
|
>
|
|
>
|
|
|
|
|
|
<el-button
|
|
<el-button
|
|
@@ -147,7 +147,7 @@
|
|
size="mini"
|
|
size="mini"
|
|
v-waves
|
|
v-waves
|
|
@click="modifyConfig(scope.row)"
|
|
@click="modifyConfig(scope.row)"
|
|
- >{{ "修改" }}</el-button
|
|
|
|
|
|
+ >{{ "修改" }}</el-button
|
|
>
|
|
>
|
|
|
|
|
|
<el-button
|
|
<el-button
|
|
@@ -183,7 +183,11 @@
|
|
>
|
|
>
|
|
<el-form label-width="auto" :rules="rules">
|
|
<el-form label-width="auto" :rules="rules">
|
|
<el-form-item label="自动退款配置名称">
|
|
<el-form-item label="自动退款配置名称">
|
|
- <el-input v-model="autoConfig.name" placeholder="请输入" style="width: 400px;" />
|
|
|
|
|
|
+ <el-input
|
|
|
|
+ v-model="autoConfig.name"
|
|
|
|
+ placeholder="请输入"
|
|
|
|
+ style="width: 400px;"
|
|
|
|
+ />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item :label="$t('label.validTime')" prop="dateTime">
|
|
<el-form-item :label="$t('label.validTime')" prop="dateTime">
|
|
<el-date-picker
|
|
<el-date-picker
|
|
@@ -215,11 +219,11 @@
|
|
</el-form>
|
|
</el-form>
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
<el-button @click="addConfig = false">{{
|
|
<el-button @click="addConfig = false">{{
|
|
- $t("view.cancel")
|
|
|
|
- }}</el-button>
|
|
|
|
|
|
+ $t("view.cancel")
|
|
|
|
+ }}</el-button>
|
|
<el-button type="primary" @click="handleSave">{{
|
|
<el-button type="primary" @click="handleSave">{{
|
|
- $t("view.confirm")
|
|
|
|
- }}</el-button>
|
|
|
|
|
|
+ $t("view.confirm")
|
|
|
|
+ }}</el-button>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
@@ -297,7 +301,6 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
-
|
|
|
|
<el-table-column
|
|
<el-table-column
|
|
fixed="right"
|
|
fixed="right"
|
|
:label="$t('label.operation')"
|
|
:label="$t('label.operation')"
|
|
@@ -368,7 +371,10 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
- <el-form-item label="配置内容" v-if="autoRefundConfigDetail.configType === 'store'">
|
|
|
|
|
|
+ <el-form-item
|
|
|
|
+ label="配置内容"
|
|
|
|
+ v-if="autoRefundConfigDetail.configType === 'store'"
|
|
|
|
+ >
|
|
<el-select
|
|
<el-select
|
|
filterable
|
|
filterable
|
|
v-model="autoRefundConfigDetail.configContent"
|
|
v-model="autoRefundConfigDetail.configContent"
|
|
@@ -386,7 +392,10 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
- <el-form-item label="配置内容" v-if="autoRefundConfigDetail.configType === 'warehouse'">
|
|
|
|
|
|
+ <el-form-item
|
|
|
|
+ label="配置内容"
|
|
|
|
+ v-if="autoRefundConfigDetail.configType === 'warehouse'"
|
|
|
|
+ >
|
|
<el-select
|
|
<el-select
|
|
filterable
|
|
filterable
|
|
v-model="autoRefundConfigDetail.configContent"
|
|
v-model="autoRefundConfigDetail.configContent"
|
|
@@ -404,7 +413,7 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
- <el-form-item label="是否支持次品" >
|
|
|
|
|
|
+ <el-form-item label="是否支持次品">
|
|
<el-select
|
|
<el-select
|
|
clearable
|
|
clearable
|
|
v-model="autoRefundConfigDetail.supportDefective"
|
|
v-model="autoRefundConfigDetail.supportDefective"
|
|
@@ -420,7 +429,7 @@
|
|
></el-option>
|
|
></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="是否支持赠品" >
|
|
|
|
|
|
+ <el-form-item label="是否支持赠品">
|
|
<el-select
|
|
<el-select
|
|
clearable
|
|
clearable
|
|
v-model="autoRefundConfigDetail.supportGift"
|
|
v-model="autoRefundConfigDetail.supportGift"
|
|
@@ -436,15 +445,14 @@
|
|
></el-option>
|
|
></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
-
|
|
|
|
</el-form>
|
|
</el-form>
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
<el-button @click="addDetailDialog = false">{{
|
|
<el-button @click="addDetailDialog = false">{{
|
|
- $t("view.cancel")
|
|
|
|
- }}</el-button>
|
|
|
|
|
|
+ $t("view.cancel")
|
|
|
|
+ }}</el-button>
|
|
<el-button type="primary" @click="addDetailSave">{{
|
|
<el-button type="primary" @click="addDetailSave">{{
|
|
- $t("view.confirm")
|
|
|
|
- }}</el-button>
|
|
|
|
|
|
+ $t("view.confirm")
|
|
|
|
+ }}</el-button>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
@@ -481,11 +489,11 @@
|
|
</el-form>
|
|
</el-form>
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
<el-button @click="modifyEditVisible = false">{{
|
|
<el-button @click="modifyEditVisible = false">{{
|
|
- $t("view.cancel")
|
|
|
|
- }}</el-button>
|
|
|
|
|
|
+ $t("view.cancel")
|
|
|
|
+ }}</el-button>
|
|
<el-button type="primary" @click="handleModify()">{{
|
|
<el-button type="primary" @click="handleModify()">{{
|
|
- $t("view.confirm")
|
|
|
|
- }}</el-button>
|
|
|
|
|
|
+ $t("view.confirm")
|
|
|
|
+ }}</el-button>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</div>
|
|
</div>
|
|
@@ -493,20 +501,22 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import swPage from "@/views/common/swPage.vue";
|
|
import swPage from "@/views/common/swPage.vue";
|
|
|
|
+import { queryChannelStore } from "@/api/oms/inventory/inventory";
|
|
import {
|
|
import {
|
|
- queryChannelStore,
|
|
|
|
-} from "@/api/oms/inventory/inventory";
|
|
|
|
-import {fetchList as warehouseList, returnWarehouseList} from "@/api/oms/inventory/warehouse";
|
|
|
|
-import {
|
|
|
|
- deleteDetail,
|
|
|
|
-} from "@/api/oms/order/virtualGoods";
|
|
|
|
|
|
+ fetchList as warehouseList,
|
|
|
|
+ returnWarehouseList
|
|
|
|
+} from "@/api/oms/inventory/warehouse";
|
|
|
|
+import { deleteDetail } from "@/api/oms/order/virtualGoods";
|
|
import orderInfoDialog from "@/views/oms/order/components/orderInfoDialog.vue";
|
|
import orderInfoDialog from "@/views/oms/order/components/orderInfoDialog.vue";
|
|
import {
|
|
import {
|
|
- deleteConfig, deleteConfigDetail,
|
|
|
|
|
|
+ deleteConfig,
|
|
|
|
+ deleteConfigDetail,
|
|
getConfigDetailList,
|
|
getConfigDetailList,
|
|
getConfigList,
|
|
getConfigList,
|
|
- saveConfig, saveConfigDetail,
|
|
|
|
- updateConfig, updateConfigDetail,
|
|
|
|
|
|
+ saveConfig,
|
|
|
|
+ saveConfigDetail,
|
|
|
|
+ updateConfig,
|
|
|
|
+ updateConfigDetail,
|
|
updateConfigList
|
|
updateConfigList
|
|
} from "@/api/oms/refund/autoRefund";
|
|
} from "@/api/oms/refund/autoRefund";
|
|
|
|
|
|
@@ -537,7 +547,7 @@ export default {
|
|
} else if (key === "warehouse") {
|
|
} else if (key === "warehouse") {
|
|
return "仓库";
|
|
return "仓库";
|
|
}
|
|
}
|
|
- },
|
|
|
|
|
|
+ }
|
|
},
|
|
},
|
|
|
|
|
|
data() {
|
|
data() {
|
|
@@ -558,16 +568,14 @@ export default {
|
|
relationshipList: [],
|
|
relationshipList: [],
|
|
params: {},
|
|
params: {},
|
|
rules: {
|
|
rules: {
|
|
- name: [
|
|
|
|
- { required: true, message: "请填写配置名称", trigger: "blur" }
|
|
|
|
- ]
|
|
|
|
|
|
+ name: [{ required: true, message: "请填写配置名称", trigger: "blur" }]
|
|
},
|
|
},
|
|
listQuery: {
|
|
listQuery: {
|
|
page: 1,
|
|
page: 1,
|
|
limit: 10,
|
|
limit: 10,
|
|
name: "",
|
|
name: "",
|
|
effectiveStartTime: "",
|
|
effectiveStartTime: "",
|
|
- effectiveEndTime: "",
|
|
|
|
|
|
+ effectiveEndTime: ""
|
|
},
|
|
},
|
|
store: [],
|
|
store: [],
|
|
activitySkuList: [],
|
|
activitySkuList: [],
|
|
@@ -587,18 +595,18 @@ export default {
|
|
autoRefundConfig: {
|
|
autoRefundConfig: {
|
|
id: "",
|
|
id: "",
|
|
name: "",
|
|
name: "",
|
|
- isEnable:"",
|
|
|
|
|
|
+ isEnable: "",
|
|
beginTime: "",
|
|
beginTime: "",
|
|
endTime: "",
|
|
endTime: "",
|
|
dateTime: []
|
|
dateTime: []
|
|
},
|
|
},
|
|
autoRefundConfigDetail: {
|
|
autoRefundConfigDetail: {
|
|
- id:"",
|
|
|
|
- configId:"",
|
|
|
|
- configType:"",
|
|
|
|
- configContent:"",
|
|
|
|
- supportDefective:"0",
|
|
|
|
- supportGift:"0"
|
|
|
|
|
|
+ id: "",
|
|
|
|
+ configId: "",
|
|
|
|
+ configType: "",
|
|
|
|
+ configContent: "",
|
|
|
|
+ supportDefective: "0",
|
|
|
|
+ supportGift: "0"
|
|
},
|
|
},
|
|
warehouses: []
|
|
warehouses: []
|
|
};
|
|
};
|
|
@@ -615,8 +623,8 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
getList() {
|
|
getList() {
|
|
this.listLoading = true;
|
|
this.listLoading = true;
|
|
- this.listQuery.effectiveStartTime=this.createTimePicker[0];
|
|
|
|
- this.listQuery.effectiveEndTime=this.createTimePicker[1];
|
|
|
|
|
|
+ this.listQuery.effectiveStartTime = this.createTimePicker[0];
|
|
|
|
+ this.listQuery.effectiveEndTime = this.createTimePicker[1];
|
|
getConfigList(this.listQuery).then(res => {
|
|
getConfigList(this.listQuery).then(res => {
|
|
if (200 === res.code) {
|
|
if (200 === res.code) {
|
|
this.total = res.data.total;
|
|
this.total = res.data.total;
|
|
@@ -767,7 +775,7 @@ export default {
|
|
getWarehouse() {
|
|
getWarehouse() {
|
|
returnWarehouseList({
|
|
returnWarehouseList({
|
|
page: 1,
|
|
page: 1,
|
|
- limit: 1000,
|
|
|
|
|
|
+ limit: 1000
|
|
}).then(res => {
|
|
}).then(res => {
|
|
if (200 === res.code) {
|
|
if (200 === res.code) {
|
|
this.warehouses = res.data.list;
|
|
this.warehouses = res.data.list;
|
|
@@ -775,8 +783,10 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
async addDetailSave() {
|
|
async addDetailSave() {
|
|
-
|
|
|
|
- if(this.autoRefundConfigDetail.id!=null&&this.autoRefundConfigDetail.id!==""){
|
|
|
|
|
|
+ if (
|
|
|
|
+ this.autoRefundConfigDetail.id != null &&
|
|
|
|
+ this.autoRefundConfigDetail.id !== ""
|
|
|
|
+ ) {
|
|
await updateConfigDetail(this.autoRefundConfigDetail).then(res => {
|
|
await updateConfigDetail(this.autoRefundConfigDetail).then(res => {
|
|
if (200 === res.code) {
|
|
if (200 === res.code) {
|
|
this.$message({
|
|
this.$message({
|
|
@@ -785,7 +795,7 @@ export default {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- }else {
|
|
|
|
|
|
+ } else {
|
|
for (let item in this.relationshipList) {
|
|
for (let item in this.relationshipList) {
|
|
if (
|
|
if (
|
|
this.autoRefundConfigDetail.configContent ===
|
|
this.autoRefundConfigDetail.configContent ===
|
|
@@ -828,16 +838,16 @@ export default {
|
|
this.autoRefundConfigDetail.supportDefective = "0";
|
|
this.autoRefundConfigDetail.supportDefective = "0";
|
|
this.autoRefundConfigDetail.supportGift = "0";
|
|
this.autoRefundConfigDetail.supportGift = "0";
|
|
},
|
|
},
|
|
- changeType(){
|
|
|
|
- this.autoRefundConfigDetail.configContent=null;
|
|
|
|
|
|
+ changeType() {
|
|
|
|
+ this.autoRefundConfigDetail.configContent = null;
|
|
},
|
|
},
|
|
exchangeGoods(row) {
|
|
exchangeGoods(row) {
|
|
this.addDetailDialog = true;
|
|
this.addDetailDialog = true;
|
|
this.autoRefundConfigDetail.id = row.id;
|
|
this.autoRefundConfigDetail.id = row.id;
|
|
this.autoRefundConfigDetail.configType = row.configType;
|
|
this.autoRefundConfigDetail.configType = row.configType;
|
|
- if(row.configType === "store"){
|
|
|
|
|
|
+ if (row.configType === "store") {
|
|
this.autoRefundConfigDetail.configContent = parseInt(row.configContent);
|
|
this.autoRefundConfigDetail.configContent = parseInt(row.configContent);
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
this.autoRefundConfigDetail.configContent = row.configContent;
|
|
this.autoRefundConfigDetail.configContent = row.configContent;
|
|
}
|
|
}
|
|
this.autoRefundConfigDetail.configId = row.configId;
|
|
this.autoRefundConfigDetail.configId = row.configId;
|