|
@@ -71,6 +71,13 @@
|
|
|
<el-button type="primary" @click="submitChangeTaxRate()" size="large" v-preReClick>确 定</el-button>
|
|
|
</template>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+ <el-dialog title="售后类型" v-if="openAfterSale" v-model="openAfterSale" width="50%">
|
|
|
+ <template #footer>
|
|
|
+ <el-button type="primary" @click="applyForAfterSale(1)" size="large">退 货</el-button>
|
|
|
+ <el-button @click="applyForAfterSale(2)" size="large">换 货</el-button>
|
|
|
+ </template>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -78,6 +85,7 @@
|
|
|
import byTable from "/src/components/byTable/index";
|
|
|
import { ElMessage, ElMessageBox } from "element-plus";
|
|
|
import { copyText } from "vue3-clipboard";
|
|
|
+import { flowStatus } from "/src/utils/flowStatus";
|
|
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
const props = defineProps({
|
|
@@ -85,28 +93,6 @@ const props = defineProps({
|
|
|
departmentId: String,
|
|
|
});
|
|
|
const departmentList = ref([{ dictKey: "0", dictValue: "胜德体育" }]);
|
|
|
-const flowStatus = ref([
|
|
|
- {
|
|
|
- dictKey: 0,
|
|
|
- dictValue: "未发起",
|
|
|
- },
|
|
|
- {
|
|
|
- dictKey: 1,
|
|
|
- dictValue: "进行中",
|
|
|
- },
|
|
|
- {
|
|
|
- dictKey: 2,
|
|
|
- dictValue: "已通过",
|
|
|
- },
|
|
|
- {
|
|
|
- dictKey: 3,
|
|
|
- dictValue: "已驳回",
|
|
|
- },
|
|
|
- {
|
|
|
- dictKey: 4,
|
|
|
- dictValue: "已作废",
|
|
|
- },
|
|
|
-]);
|
|
|
const sourceList = ref({
|
|
|
data: [],
|
|
|
pagination: {
|
|
@@ -195,7 +181,7 @@ const config = computed(() => {
|
|
|
width: 120,
|
|
|
},
|
|
|
render(val) {
|
|
|
- return proxy.dictKeyValue(val, flowStatus.value);
|
|
|
+ return proxy.dictKeyValue(val, flowStatus());
|
|
|
},
|
|
|
},
|
|
|
{
|
|
@@ -367,7 +353,7 @@ const config = computed(() => {
|
|
|
{
|
|
|
attrs: {
|
|
|
label: "操作",
|
|
|
- width: 120,
|
|
|
+ width: 150,
|
|
|
align: "center",
|
|
|
fixed: "right",
|
|
|
},
|
|
@@ -385,7 +371,18 @@ const config = computed(() => {
|
|
|
clickSelect(row);
|
|
|
},
|
|
|
}
|
|
|
- : row.status && row.status != 0
|
|
|
+ : {
|
|
|
+ attrs: {
|
|
|
+ label: "售后",
|
|
|
+ type: "primary",
|
|
|
+ text: true,
|
|
|
+ },
|
|
|
+ el: "button",
|
|
|
+ click() {
|
|
|
+ clickAfterSale(row);
|
|
|
+ },
|
|
|
+ },
|
|
|
+ !props.selectStatus && row.status && row.status != 0
|
|
|
? {
|
|
|
attrs: {
|
|
|
label: "税率",
|
|
@@ -398,7 +395,7 @@ const config = computed(() => {
|
|
|
},
|
|
|
}
|
|
|
: {},
|
|
|
- (row.status == 0 || row.status == 10 || row.status == 20) && !props.selectStatus
|
|
|
+ !props.selectStatus && (row.status == 0 || row.status == 10 || row.status == 20)
|
|
|
? {
|
|
|
attrs: {
|
|
|
label: "删除",
|
|
@@ -411,7 +408,7 @@ const config = computed(() => {
|
|
|
},
|
|
|
}
|
|
|
: {},
|
|
|
- row.status == 30 && !props.selectStatus
|
|
|
+ !props.selectStatus && row.status == 30
|
|
|
? {
|
|
|
attrs: {
|
|
|
label: "删除",
|
|
@@ -630,6 +627,10 @@ const clickCopyWLNCode = () => {
|
|
|
});
|
|
|
});
|
|
|
};
|
|
|
+
|
|
|
+const clickAfterSale = (row) => {
|
|
|
+ console.log(row);
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|