|
@@ -62,6 +62,7 @@
|
|
|
import byTable from "/src/components/byTable/index";
|
|
|
import { ElMessage, ElMessageBox } from "element-plus";
|
|
|
import refreshStore from "/src/store/modules/refresh";
|
|
|
+import { flowStatus } from "/src/utils/flowStatus";
|
|
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
const sourceList = ref({
|
|
@@ -93,6 +94,12 @@ const searchConfig = computed(() => {
|
|
|
},
|
|
|
{
|
|
|
type: "select",
|
|
|
+ prop: "flowStatus",
|
|
|
+ label: "流程状态",
|
|
|
+ data: flowStatus(),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "select",
|
|
|
prop: "status",
|
|
|
dictKey: "order_status",
|
|
|
label: "订单状态",
|
|
@@ -137,11 +144,24 @@ const config = computed(() => {
|
|
|
},
|
|
|
{
|
|
|
attrs: {
|
|
|
+ label: "流程状态",
|
|
|
+ prop: "flowStatus",
|
|
|
+ width: 120,
|
|
|
+ },
|
|
|
+ render(val) {
|
|
|
+ return proxy.dictKeyValue(val, flowStatus());
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ attrs: {
|
|
|
label: "订单状态",
|
|
|
prop: "status",
|
|
|
width: 120,
|
|
|
},
|
|
|
- render(val) {
|
|
|
+ render(val, row) {
|
|
|
+ if (val == 0 && row.flowStatus !== 2) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
return proxy.dictKeyValue(val, proxy.useUserStore().allDict["order_status"]);
|
|
|
},
|
|
|
},
|
|
@@ -320,7 +340,7 @@ const config = computed(() => {
|
|
|
},
|
|
|
}
|
|
|
: {},
|
|
|
- row.status == 0
|
|
|
+ row.status == 0 && row.flowStatus !== 1 && row.flowStatus !== 2
|
|
|
? {
|
|
|
attrs: {
|
|
|
label: "编辑",
|