|
@@ -59,26 +59,6 @@
|
|
</template>
|
|
</template>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
- <el-dialog title="修改税率" v-if="openChangeTaxRate" v-model="openChangeTaxRate" width="500" style="margin-top: 20vh !important">
|
|
|
|
- <el-form :model="details.data" label-width="120px" ref="taxRate">
|
|
|
|
- <el-form-item label="税率" prop="taxRate" :rules="[{ required: true, message: '请输入税率', trigger: 'blur' }]">
|
|
|
|
- <el-input-number
|
|
|
|
- onmousewheel="return false;"
|
|
|
|
- v-model="details.data.taxRate"
|
|
|
|
- placeholder="请输入税率"
|
|
|
|
- style="width: 100%"
|
|
|
|
- :controls="false"
|
|
|
|
- :min="0"
|
|
|
|
- :precision="2"
|
|
|
|
- :max="100" />
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-form>
|
|
|
|
- <template #footer>
|
|
|
|
- <el-button @click="openChangeTaxRate = false" size="large">取 消</el-button>
|
|
|
|
- <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="300px" style="margin-top: 20vh !important">
|
|
<el-dialog title="售后类型" v-if="openAfterSale" v-model="openAfterSale" width="300px" style="margin-top: 20vh !important">
|
|
<template #footer>
|
|
<template #footer>
|
|
<el-button type="primary" @click="applyForAfterSale(1)" size="large" v-preReClick>退 货</el-button>
|
|
<el-button type="primary" @click="applyForAfterSale(1)" size="large" v-preReClick>退 货</el-button>
|
|
@@ -442,6 +422,17 @@ const config = computed(() => {
|
|
},
|
|
},
|
|
renderHTML(row) {
|
|
renderHTML(row) {
|
|
return [
|
|
return [
|
|
|
|
+ {
|
|
|
|
+ attrs: {
|
|
|
|
+ label: "修改包装配置",
|
|
|
|
+ type: "primary",
|
|
|
|
+ text: true,
|
|
|
|
+ },
|
|
|
|
+ el: "button",
|
|
|
|
+ click() {
|
|
|
|
+ clickChangePackaging(row);
|
|
|
|
+ },
|
|
|
|
+ },
|
|
props.selectStatus
|
|
props.selectStatus
|
|
? {
|
|
? {
|
|
attrs: {
|
|
attrs: {
|
|
@@ -506,19 +497,6 @@ const config = computed(() => {
|
|
},
|
|
},
|
|
}
|
|
}
|
|
: {},
|
|
: {},
|
|
- !props.selectStatus && row.status && row.status != 0
|
|
|
|
- ? {
|
|
|
|
- attrs: {
|
|
|
|
- label: "税率",
|
|
|
|
- type: "primary",
|
|
|
|
- text: true,
|
|
|
|
- },
|
|
|
|
- el: "button",
|
|
|
|
- click() {
|
|
|
|
- clickChangeTaxRate(row);
|
|
|
|
- },
|
|
|
|
- }
|
|
|
|
- : {},
|
|
|
|
!props.selectStatus && [0, 10, 20].includes(row.status) && proxy.useUserStore().user.userId === "1"
|
|
!props.selectStatus && [0, 10, 20].includes(row.status) && proxy.useUserStore().user.userId === "1"
|
|
? {
|
|
? {
|
|
attrs: {
|
|
attrs: {
|
|
@@ -545,17 +523,6 @@ const config = computed(() => {
|
|
},
|
|
},
|
|
}
|
|
}
|
|
: {},
|
|
: {},
|
|
- {
|
|
|
|
- attrs: {
|
|
|
|
- label: "修改包装配置",
|
|
|
|
- type: "primary",
|
|
|
|
- text: true,
|
|
|
|
- },
|
|
|
|
- el: "button",
|
|
|
|
- click() {
|
|
|
|
- clickChangePackaging(row);
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
];
|
|
];
|
|
},
|
|
},
|
|
},
|
|
},
|
|
@@ -741,28 +708,6 @@ const getLogsList = async (req) => {
|
|
}, 200);
|
|
}, 200);
|
|
});
|
|
});
|
|
};
|
|
};
|
|
-const details = reactive({
|
|
|
|
- data: {},
|
|
|
|
-});
|
|
|
|
-const openChangeTaxRate = ref(false);
|
|
|
|
-const clickChangeTaxRate = (item) => {
|
|
|
|
- proxy.post("/orderInfo/detail", { id: item.id }).then((res) => {
|
|
|
|
- details.data = res;
|
|
|
|
- openChangeTaxRate.value = true;
|
|
|
|
- });
|
|
|
|
-};
|
|
|
|
-const submitChangeTaxRate = () => {
|
|
|
|
- proxy.$refs.taxRate.validate((valid) => {
|
|
|
|
- if (valid) {
|
|
|
|
- details.data.updateType = "21";
|
|
|
|
- proxy.post("/orderInfo/edit", details.data).then(() => {
|
|
|
|
- ElMessage({ message: "修改完成", type: "success" });
|
|
|
|
- openChangeTaxRate.value = false;
|
|
|
|
- getList();
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
-};
|
|
|
|
const emit = defineEmits(["selectOrder"]);
|
|
const emit = defineEmits(["selectOrder"]);
|
|
const clickSelect = (item) => {
|
|
const clickSelect = (item) => {
|
|
emit("selectOrder", item);
|
|
emit("selectOrder", item);
|