Browse Source

竞价节点修改

xiaodai2022 2 years ago
parent
commit
2438be2018

+ 0 - 1
src/apis/service/purchaseIn/wsmInOrder/index.js

@@ -16,5 +16,4 @@ export default {
   status: (data, params) => http(api + "orderincheck", data, "post", params),
   // 入库退货
   returnsend: (data, params) => http(api + "returnsend", data, "post", params),
-
 };

+ 5 - 3
src/views/purchaseIn/wsmInOrder/detail.vue

@@ -84,9 +84,11 @@
               />
             </el-collapse-item>
 
-            <!-- v-if="status == '0' && ppowers.some((i) => i == '0') && !isSupertube" -->
-
-            <el-collapse-item title="入库验收" name="3">
+            <el-collapse-item
+              title="入库验收"
+              name="3"
+              v-if="status == '0' && ppowers.some((i) => i == '0') && !isSupertube"
+            >
               <wsm-in
                 v-if="newTime !== ''"
                 :id="queryId"

+ 325 - 314
src/views/sellOut/zixunOrder/columns.js

@@ -1,215 +1,217 @@
-import { isSpecialSymbol, hasSpace } from '@/utils/validate'
+import { isSpecialSymbol, hasSpace } from "@/utils/validate";
 const validate_budget_price = (rule, value, callback) => {
-  if (value === '') {
-    callback(new Error('预算单价不能为空!'))
+  if (value === "") {
+    callback(new Error("预算单价不能为空!"));
   } else if (
-    value === '0' ||
-    value === '0.' ||
-    value === '0.0' ||
-    value === '0.00'
+    value === "0" ||
+    value === "0." ||
+    value === "0.0" ||
+    value === "0.00"
   ) {
-    callback(new Error('预算单价不能为零!'))
+    callback(new Error("预算单价不能为零!"));
   } else {
-    callback()
+    callback();
   }
-}
+};
 const validate_num = (rule, value, callback) => {
-  if (value === '') {
-    callback(new Error('购买数量不能为空!'))
-  } else if (value === '0') {
-    callback(new Error('购买数量不能为零!'))
+  if (value === "") {
+    callback(new Error("购买数量不能为空!"));
+  } else if (value === "0") {
+    callback(new Error("购买数量不能为零!"));
   } else {
-    callback()
+    callback();
   }
-}
+};
 const validate_total_weight = (rule, value, callback) => {
-  const { required } = rule
-  if (required && value === '') {
-    callback(new Error('商品重量不能为空!'))
+  const { required } = rule;
+  if (required && value === "") {
+    callback(new Error("商品重量不能为空!"));
   } else if (
     required &&
-    (value === '0' ||
-      value === '0.' ||
-      value === '0.0' ||
-      value === '0.00' ||
-      value === '0.000')
+    (value === "0" ||
+      value === "0." ||
+      value === "0.0" ||
+      value === "0.00" ||
+      value === "0.000")
   ) {
-    callback(new Error('商品重量不能为零!'))
+    callback(new Error("商品重量不能为零!"));
   } else {
-    callback()
+    callback();
   }
-}
+};
 const validate_specs_weight = (rule, value, callback) => {
-  const { required } = rule
-  if (required && value === '') {
-    callback(new Error('金属克重不能为空!'))
+  const { required } = rule;
+  if (required && value === "") {
+    callback(new Error("金属克重不能为空!"));
   } else if (
     required &&
-    (value === '0' ||
-      value === '0.' ||
-      value === '0.0' ||
-      value === '0.00' ||
-      value === '0.000')
+    (value === "0" ||
+      value === "0." ||
+      value === "0.0" ||
+      value === "0.00" ||
+      value === "0.000")
   ) {
-    callback(new Error('金属克重不能为零!'))
+    callback(new Error("金属克重不能为零!"));
   } else {
-    callback()
+    callback();
   }
-}
+};
 const validate_desc = (rule, value, callback) => {
-  const { required } = rule
-  if (required && value === '') {
-    callback(new Error('不能为空!'))
+  const { required } = rule;
+  if (required && value === "") {
+    callback(new Error("不能为空!"));
   } else if (value.length > 0 && isSpecialSymbol(value)) {
-    callback(new Error('不能使用英文特殊字符!'))
+    callback(new Error("不能使用英文特殊字符!"));
   } else {
-    callback()
+    callback();
   }
-}
+};
 const validate_good_name = (rule, value, callback) => {
-  const { required } = rule
+  const { required } = rule;
   if (required && value.length == 0) {
-    callback(new Error('不能为空!'))
+    callback(new Error("不能为空!"));
   } else if (hasSpace(value)) {
-    callback(new Error('不能出现/回车/换行符!'))
+    callback(new Error("不能出现/回车/换行符!"));
   } else if (isSpecialSymbol(value)) {
-    callback(new Error('不能使用英文特殊字符!'))
+    callback(new Error("不能使用英文特殊字符!"));
   } else {
-    callback()
+    callback();
   }
-}
+};
 const rules = {
   arrival_time: [
     {
       required: true,
-      message: '到货时间不能为空',
-      trigger: 'change'
-    }
+      message: "到货时间不能为空",
+      trigger: "change",
+    },
   ],
   budget_price: [
     {
       required: true,
       validator: validate_budget_price,
-      trigger: 'change'
-    }
+      trigger: "change",
+    },
   ],
   num: [
     {
       required: true,
       validator: validate_num,
-      trigger: 'change'
-    }
+      trigger: "change",
+    },
   ],
   brand_id: [
     {
-      type: 'array',
+      type: "array",
       required: true,
-      message: '请选择品牌',
-      trigger: 'change'
-    }
+      message: "请选择品牌",
+      trigger: "change",
+    },
   ],
   unit: [
     {
-      type: 'array',
+      type: "array",
       required: true,
-      message: '请选择单位',
-      trigger: 'change'
-    }
+      message: "请选择单位",
+      trigger: "change",
+    },
   ],
   cat_id: [
     {
-      type: 'array',
+      type: "array",
       required: true,
-      message: '请选择商品分类',
-      trigger: 'change'
-    }
+      message: "请选择商品分类",
+      trigger: "change",
+    },
   ],
   good_img: [
     {
       required: true,
-      message: '商品图片不能为空',
-      trigger: 'change'
-    }
+      message: "商品图片不能为空",
+      trigger: "change",
+    },
+  ],
+  good_name: [
+    { required: true, validator: validate_good_name, trigger: "blur" },
   ],
-  good_name: [{ required: true, validator: validate_good_name, trigger: 'blur' }],
 
   model: [
     {
       required: true,
-      message: '型号不能为空',
-      trigger: 'blur'
-    }
+      message: "型号不能为空",
+      trigger: "blur",
+    },
   ],
   color: [
     {
       required: true,
-      message: '颜色不能为空',
-      trigger: 'blur'
-    }
+      message: "颜色不能为空",
+      trigger: "blur",
+    },
   ],
   material: [
     {
       required: true,
-      message: '材质不能为空',
-      trigger: 'blur'
-    }
+      message: "材质不能为空",
+      trigger: "blur",
+    },
   ],
   total_weight: [
     {
       required: false,
       validator: validate_total_weight,
-      trigger: 'blur'
-    }
+      trigger: "blur",
+    },
   ],
   is_addrs: [
     {
       required: true,
-      message: '请选择是否多地',
-      trigger: 'change'
-    }
+      message: "请选择是否多地",
+      trigger: "change",
+    },
   ],
   is_custom: [
     {
       required: true,
-      message: '请选择是否定制',
-      trigger: 'change'
-    }
+      message: "请选择是否定制",
+      trigger: "change",
+    },
   ],
   is_gold_price: [
     {
       required: true,
-      message: '请选择是否启用实时金价',
-      trigger: 'change'
-    }
+      message: "请选择是否启用实时金价",
+      trigger: "change",
+    },
   ],
   config: [
     {
       required: true,
-      type: 'array',
-      message: '至少选择一个配置',
-      trigger: 'change'
-    }
+      type: "array",
+      message: "至少选择一个配置",
+      trigger: "change",
+    },
   ],
   specs_weight: [
     {
       required: true,
       validator: validate_specs_weight,
-      trigger: 'blur'
-    }
+      trigger: "blur",
+    },
   ],
   other_config: [
     {
       required: true,
-      message: '其他要求不能为空',
-      trigger: 'blur'
-    }
+      message: "其他要求不能为空",
+      trigger: "blur",
+    },
   ],
   cost_desc: [
     {
       required: false,
       validator: validate_desc,
-      trigger: 'blur'
-    }
+      trigger: "blur",
+    },
   ],
   // use_desc: [
   //   {
@@ -222,209 +224,209 @@ const rules = {
     {
       required: true,
       validator: validate_desc,
-      trigger: 'blur'
-    }
+      trigger: "blur",
+    },
   ],
   metal_id: [
     {
       required: true,
-      message: '贵金属种类不能为空',
-      trigger: 'blur'
-    }
+      message: "贵金属种类不能为空",
+      trigger: "blur",
+    },
   ],
   gold_price: [
     {
       required: true,
-      message: '当前金价不能为空',
-      trigger: 'blur'
-    }
+      message: "当前金价不能为空",
+      trigger: "blur",
+    },
   ],
   enclosure_file: [
     {
       required: false,
-      message: '请上传附件',
-      trigger: 'change'
-    }
-  ]
-}
+      message: "请上传附件",
+      trigger: "change",
+    },
+  ],
+};
 const edutRules = {
   companyNo: [
     {
       required: true,
-      message: '请选择销售方公司',
-      trigger: 'change'
-    }
+      message: "请选择销售方公司",
+      trigger: "change",
+    },
   ],
   khNo: [
     {
-      type: 'array',
+      type: "array",
       required: true,
-      message: '请选择购买方公司',
-      trigger: 'change'
-    }
+      message: "请选择购买方公司",
+      trigger: "change",
+    },
   ],
   platform_code: [
     {
       // type: "array",
       required: true,
-      message: '请选择所属平台',
-      trigger: 'change'
-    }
+      message: "请选择所属平台",
+      trigger: "change",
+    },
   ],
   endtime: [
     {
       required: true,
-      message: '竞价截止时间不能为空',
-      trigger: 'change'
-    }
+      message: "竞价截止时间不能为空",
+      trigger: "change",
+    },
   ],
 
   is_project: [
     {
       required: true,
-      message: '请选择竞价类型!',
-      trigger: 'change'
-    }
+      message: "请选择竞价类型!",
+      trigger: "change",
+    },
   ],
   projectNo: [
     {
-      type: 'array',
+      type: "array",
       required: true,
-      message: '请选择项目',
-      trigger: 'change'
-    }
+      message: "请选择项目",
+      trigger: "change",
+    },
   ],
   arrival_time: [
     {
       required: true,
-      message: '到货时间不能为空',
-      trigger: 'change'
-    }
+      message: "到货时间不能为空",
+      trigger: "change",
+    },
   ],
   budget_price: [
     {
       required: true,
       validator: validate_budget_price,
-      trigger: 'change'
-    }
+      trigger: "change",
+    },
   ],
   num: [
     {
       required: true,
       validator: validate_num,
-      trigger: 'change'
-    }
+      trigger: "change",
+    },
   ],
   brand_id: [
     {
-      type: 'array',
+      type: "array",
       required: true,
-      message: '请选择品牌',
-      trigger: 'change'
-    }
+      message: "请选择品牌",
+      trigger: "change",
+    },
   ],
   unit: [
     {
-      type: 'array',
+      type: "array",
       required: true,
-      message: '请选择单位',
-      trigger: 'change'
-    }
+      message: "请选择单位",
+      trigger: "change",
+    },
   ],
   cat_id: [
     {
-      type: 'array',
+      type: "array",
       required: true,
-      message: '请选择商品分类',
-      trigger: 'change'
-    }
+      message: "请选择商品分类",
+      trigger: "change",
+    },
   ],
   good_img: [
     {
       required: true,
-      message: '商品图片不能为空',
-      trigger: 'change'
-    }
+      message: "商品图片不能为空",
+      trigger: "change",
+    },
   ],
-  good_name: [{ required: true, message: '商品名称不能为空', trigger: 'blur' }],
+  good_name: [{ required: true, message: "商品名称不能为空", trigger: "blur" }],
 
   model: [
     {
       required: true,
-      message: '型号不能为空',
-      trigger: 'blur'
-    }
+      message: "型号不能为空",
+      trigger: "blur",
+    },
   ],
   color: [
     {
       required: true,
-      message: '颜色不能为空',
-      trigger: 'blur'
-    }
+      message: "颜色不能为空",
+      trigger: "blur",
+    },
   ],
   material: [
     {
       required: true,
-      message: '材质不能为空',
-      trigger: 'blur'
-    }
+      message: "材质不能为空",
+      trigger: "blur",
+    },
   ],
   total_weight: [
     {
       required: true,
       validator: validate_total_weight,
-      trigger: 'blur'
-    }
+      trigger: "blur",
+    },
   ],
   is_addrs: [
     {
       required: true,
-      message: '请选择是否多地',
-      trigger: 'change'
-    }
+      message: "请选择是否多地",
+      trigger: "change",
+    },
   ],
   is_custom: [
     {
       required: true,
-      message: '请选择是否定制',
-      trigger: 'change'
-    }
+      message: "请选择是否定制",
+      trigger: "change",
+    },
   ],
   is_gold_price: [
     {
       required: true,
-      message: '请选择是否启用实时金价',
-      trigger: 'change'
-    }
+      message: "请选择是否启用实时金价",
+      trigger: "change",
+    },
   ],
   config: [
     {
       required: true,
-      type: 'array',
-      message: '至少选择一个配置',
-      trigger: 'change'
-    }
+      type: "array",
+      message: "至少选择一个配置",
+      trigger: "change",
+    },
   ],
   specs_weight: [
     {
       required: true,
       validator: validate_specs_weight,
-      trigger: 'blur'
-    }
+      trigger: "blur",
+    },
   ],
   other_config: [
     {
       required: true,
-      message: '其他要求不能为空',
-      trigger: 'blur'
-    }
+      message: "其他要求不能为空",
+      trigger: "blur",
+    },
   ],
   cost_desc: [
     {
       required: false,
-      message: '工艺说明不能为空',
-      trigger: 'blur'
-    }
+      message: "工艺说明不能为空",
+      trigger: "blur",
+    },
   ],
   // use_desc: [
   //   {
@@ -436,50 +438,50 @@ const edutRules = {
   remark: [
     {
       required: true,
-      message: '商品备注不能为空',
-      trigger: 'blur'
-    }
+      message: "商品备注不能为空",
+      trigger: "blur",
+    },
   ],
   metal_id: [
     {
       required: true,
-      message: '贵金属种类不能为空',
-      trigger: 'blur'
-    }
+      message: "贵金属种类不能为空",
+      trigger: "blur",
+    },
   ],
   gold_price: [
     {
       required: true,
-      message: '当前金价不能为空',
-      trigger: 'blur'
-    }
-  ]
-}
+      message: "当前金价不能为空",
+      trigger: "blur",
+    },
+  ],
+};
 const feedbackListCol = [
   {
-    prop: 'bidNo',
-    label: '反馈商品编号',
-    width: '160'
+    prop: "bidNo",
+    label: "反馈商品编号",
+    width: "160",
   },
   {
-    prop: ' origin_price',
-    label: '议价前销售单价',
-    width: '110'
+    prop: " origin_price",
+    label: "议价前销售单价",
+    width: "110",
   },
   {
-    prop: 'sale_price',
-    label: '议价后销售单价',
-    width: '110'
+    prop: "sale_price",
+    label: "议价后销售单价",
+    width: "110",
   },
   {
-    prop: 'cost_fee',
-    label: '议价前工艺费',
-    width: '110'
+    prop: "cost_fee",
+    label: "议价前工艺费",
+    width: "110",
   },
   {
-    prop: 'sale_cost_fee',
-    label: '议价后工艺费',
-    width: '110'
+    prop: "sale_cost_fee",
+    label: "议价后工艺费",
+    width: "110",
   },
 
   // {
@@ -489,27 +491,27 @@ const feedbackListCol = [
   //   "width": "50"
   // },
   {
-    prop: 'good_name',
-    label: '商品名称',
-    'min-width': '100'
+    prop: "good_name",
+    label: "商品名称",
+    "min-width": "100",
   },
   {
-    prop: 'specinfo',
-    label: '型号',
-    _slot_: 'specinfo',
-    'min-width': '100'
+    prop: "specinfo",
+    label: "型号",
+    _slot_: "specinfo",
+    "min-width": "100",
   },
 
   {
-    prop: 'status',
-    label: '状态',
-    _slot_: 'status',
-    width: '120px'
+    prop: "status",
+    label: "状态",
+    _slot_: "status",
+    width: "120px",
   },
   {
-    prop: 'expire_day',
-    label: '信息有效期',
-    width: '85'
+    prop: "expire_day",
+    label: "信息有效期",
+    width: "85",
   },
   // {
   //   prop: "origin_addr",
@@ -518,138 +520,147 @@ const feedbackListCol = [
   // },
 
   {
-    prop: 'delivery_place_cn',
-    label: '发货地',
-    width: '135'
+    prop: "delivery_place_cn",
+    label: "发货地",
+    width: "135",
   },
   {
-    prop: 'delivery_day',
-    label: '物流时间',
-    width: '85'
+    prop: "delivery_day",
+    label: "物流时间",
+    width: "85",
   },
   {
-    prop: 'work_day',
-    label: '生产工期',
-    width: '85'
+    prop: "work_day",
+    label: "生产工期",
+    width: "85",
   },
   {
-    prop: 'cgder',
-    label: '供应商负责人',
-    width: '95'
+    prop: "cgder",
+    label: "供应商负责人",
+    width: "95",
   },
   {
-    prop: 'good_creater',
-    label: '商品创建人',
-    width: '95'
+    prop: "good_creater",
+    label: "商品创建人",
+    width: "95",
   },
 
   {
-    prop: 'addtime',
-    label: '添加时间',
-    width: 142
+    prop: "addtime",
+    label: "添加时间",
+    width: 142,
   },
   {
-    prop: '',
-    label: '操作',
-    fixed: 'right',
+    prop: "",
+    label: "操作",
+    fixed: "right",
     _noset_: true,
-    _slot_: 'operation',
-    width: 155
-  }
-]
+    _slot_: "operation",
+    width: 155,
+  },
+];
 
 const listCol = [
   {
-    prop: 'infoNo',
-    label: '竞价编号',
-    width: '160'
+    prop: "infoNo",
+    label: "竞价编号",
+    width: "160",
   },
   {
-    prop: 'bargain_num',
-    label: '竞价次数',
-    width: '70'
+    prop: "bargain_num",
+    label: "竞价次数",
+    width: "70",
   },
 
   {
-    prop: 'good_img',
-    label: '图片',
-    _slot_: 'good_img',
-    width: '50'
+    prop: "good_img",
+    label: "图片",
+    _slot_: "good_img",
+    width: "50",
   },
   {
-    prop: 'good_name',
-    label: '商品名称',
-    'min-width': '120'
+    prop: "good_name",
+    label: "商品名称",
+    "min-width": "120",
   },
 
   {
-    prop: 'status',
-    label: '状态',
-    _slot_: 'status',
-    width: '120px'
+    prop: "status",
+    label: "状态",
+    _slot_: "status",
+    width: "120px",
   },
   {
-    prop: 'is_project',
-    label: '竞价单类型',
-    _slot_: 'is_project',
-    width: '110px'
+    prop: "is_project",
+    label: "竞价单类型",
+    _slot_: "is_project",
+    width: "110px",
   },
 
   {
-    prop: 'khNo',
-    label: '客户编号',
-    width: '160'
+    prop: "khNo",
+    label: "客户编号",
+    width: "160",
   },
   {
-    prop: 'khname',
-    label: '客户名称',
-    'min-width': '135'
+    prop: "khname",
+    label: "客户名称",
+    "min-width": "135",
   },
   {
-    prop: 'companyNo',
-    label: '业务公司编号',
-    width: '160'
+    prop: "companyNo",
+    label: "业务公司编号",
+    width: "160",
   },
   {
-    prop: 'companyName',
-    label: '业务公司名称',
-    'min-width': '135'
+    prop: "companyName",
+    label: "业务公司名称",
+    "min-width": "135",
   },
 
   {
-    prop: 'budget_price',
-    label: '预算单价',
-    width: 110
+    prop: "budget_price",
+    label: "预算单价",
+    width: 110,
   },
   {
-    prop: 'num',
-    label: '竞价数量',
-    width: 110
+    prop: "num",
+    label: "竞价数量",
+    width: 110,
   },
   {
-    prop: 'company_name',
-    label: '申请人部门',
-    minWidth: '150px'
+    prop: "company_name",
+    label: "申请人部门",
+    minWidth: "150px",
   },
   {
-    prop: 'creater',
-    label: '申请人',
-    width: '60'
+    prop: "creater",
+    label: "申请人",
+    width: "60",
   },
 
   {
-    prop: 'addtime',
-    label: '添加时间',
-    width: 142
+    prop: "addtime",
+    label: "添加时间",
+    width: 142,
   },
   {
-    prop: '',
-    label: '操作',
-    fixed: 'right',
+    prop: "",
+    label: "操作",
+    fixed: "right",
     _noset_: true,
-    _slot_: 'operation',
-    width: 50
-  }
-]
-
-export { listCol, rules, edutRules, feedbackListCol }
+    _slot_: "operation",
+    width: 50,
+  },
+];
+const options = [
+  { id: "0", label: "待发布竞标" },
+  { id: "1", label: "招标进行中" },
+  { id: "2", label: "招标已结束" },
+  { id: "3", label: "待选择商品" },
+  // { id: "4", label: "已选商品待下单" },
+  { id: "5", label: "已成功转单" },
+  { id: "6", label: "已取消转单" },
+  { id: "7", label: "招标已暂停" },
+];
+export { listCol, rules, edutRules, feedbackListCol, options };

+ 6 - 6
src/views/sellOut/zixunOrder/components/feedbackList.vue

@@ -92,7 +92,7 @@
         >
           <i class="el-icon-s-flag tb-icon" @click="wantBargaining(scope.row)"></i>
         </el-tooltip>
-        <el-tooltip
+        <!-- <el-tooltip
           v-if="
             is_project + '' === '0' &&
             scope.row.status + '' !== '6' &&
@@ -105,13 +105,13 @@
           placement="top"
         >
           <i class="el-icon-s-check tb-icon" @click="change_goods(scope.row.bidNo)"></i>
-        </el-tooltip>
+        </el-tooltip> -->
         <el-tooltip
           v-if="
             is_project === '0' &&
             scope.row.status + '' === '6' &&
-            status + '' === '4' &&
-            ppowers.some((i) => i == '4')
+            status + '' === '3' &&
+            ppowers.some((i) => i == '3')
           "
           effect="dark"
           content="下单"
@@ -389,7 +389,7 @@ export default {
         });
     },
     async statusConfirm(id, status) {
-      let str = status + '' === "1" ? "禁用" : "启用";
+      let str = status + "" === "1" ? "禁用" : "启用";
       await this.$confirm("确定要改为" + str + "?", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
@@ -399,7 +399,7 @@ export default {
           this.loading = true;
           const model = {
             id: id,
-            status: status + '' === "1" ? "0" : "1",
+            status: status + "" === "1" ? "0" : "1",
           };
           const res = await asyncRequest.status(model);
           if (res && res.code === 0) {

+ 25 - 33
src/views/sellOut/zixunOrder/detail.vue

@@ -1,10 +1,7 @@
 <template>
   <div class="zixunOrderDetail">
-    <div
-      class="zixunOrderDetail-main"
-      v-if=" powers.some((i) => i == '007')"
-    >
-    <show-data-table
+    <div class="zixunOrderDetail-main" v-if="powers.some((i) => i == '007')">
+      <show-data-table
         style="padding: 10px 0 5px 0"
         :newTime="newTime"
         border
@@ -15,15 +12,19 @@
         <template slot="status">
           <el-tag
             :size="tablebtnSize"
-            v-text="(options.find((item) => item.id + '' == sitem.status + '') || {}).label || '--'"
+            v-text="
+              (options.find((item) => item.id + '' == sitem.status + '') || {}).label ||
+              '--'
+            "
           ></el-tag>
           <el-tooltip
             effect="dark"
             content="停止招标任务"
             placement="top"
-            v-if="sitem.status + '' === '1' && powers.some((i) => i == '066') && !isSupertube"
+            v-if="
+              sitem.status + '' === '1' && powers.some((i) => i == '066') && !isSupertube
+            "
           >
-
             <i
               class="el-icon-video-pause hover"
               style="margin: 0 0 0 10px"
@@ -36,7 +37,8 @@
             placement="top"
             v-if="
               (sitem.status + '' === '7' || sitem.status + '' === '2') &&
-              powers.some((i) => i == '067') && !isSupertube 
+              powers.some((i) => i == '067') &&
+              !isSupertube
             "
           >
             <i
@@ -104,7 +106,7 @@ import addForm from "./components/addEditForm";
 import editForm from "./components/editForm";
 import feedbackList from "./components/feedbackList";
 import { editColumns } from "./components/ShowDataTableColumns";
-
+import { options } from "./columns";
 export default {
   name: "zixunOrderDetail",
   mixins: [resToken],
@@ -139,16 +141,7 @@ export default {
       queryId: "",
       status: "",
       sitem: null,
-      options: [
-        { id: "0", label: "待发布竞标" },
-        { id: "1", label: "招标进行中" },
-        { id: "2", label: "招标已结束" },
-        { id: "3", label: "待选择商品" },
-        { id: "4", label: "已选商品待下单" },
-        { id: "5", label: "已成功转单" },
-        { id: "6", label: "已取消转单" },
-        { id: "7", label: "招标已暂停" },
-      ],
+      options,
     };
   },
   mounted() {
@@ -215,8 +208,8 @@ export default {
      */
     async changeStatus(status) {
       await this.$confirm(
-        status + '' === "7" ? `确定要停止招标任务么?` : "确定要重启招标任务么?",
-        status + '' === "7" ? "" : "重启需要重新编辑竞价信息",
+        status + "" === "7" ? `确定要停止招标任务么?` : "确定要重启招标任务么?",
+        status + "" === "7" ? "" : "重启需要重新编辑竞价信息",
         {
           confirmButtonText: "确定",
           cancelButtonText: "取消",
@@ -224,7 +217,7 @@ export default {
         }
       )
         .then(async () => {
-          if (status + '' === "7") {
+          if (status + "" === "7") {
             this.loading = true;
             let model = {
               infoNo: this.queryId,
@@ -253,19 +246,18 @@ export default {
             // location.reload();
 
             const chunk = (qs, key, index) => {
-              const next = `${key}=${model[key]}${index === keys.length ? '' : '&'}`
-              return qs + next
-            }
-
+              const next = `${key}=${model[key]}${index === keys.length ? "" : "&"}`;
+              return qs + next;
+            };
 
-            model.redirect = '/sellOut/zixunOrderDetail'
-            const keys = Object.keys(model)
-            const queryString = keys.reduce(chunk, '?')
-            this.$router.push('/reload' + queryString)
+            model.redirect = "/sellOut/zixunOrderDetail";
+            const keys = Object.keys(model);
+            const queryString = keys.reduce(chunk, "?");
+            this.$router.push("/reload" + queryString);
           }
         })
         .catch((e) => {
-          console.log(e)
+          console.log(e);
           console.log("取消");
         });
     },
@@ -276,7 +268,7 @@ export default {
       if (!this.loading) {
         let model = {
           activity_code: this.queryId,
-          status: e.state + '' === "1" ? "1" : "8",
+          status: e.state + "" === "1" ? "1" : "8",
           remark: e.remark,
         };
         await this.setstatus("提交产品部门审核", model);

+ 13 - 21
src/views/sellOut/zixunOrder/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="zixunOrder pagePadding">
-    <div v-if=" powers.some((i) => i == '001')">
+    <div v-if="powers.some((i) => i == '001')">
       <ex-table
         v-loading="loading"
         :table="table"
@@ -158,7 +158,8 @@
                 : 'warning'
             "
             v-text="
-              (options.find((item) => item.id === String(scope.row.status)) || {}).label || '--'
+              (options.find((item) => item.id === String(scope.row.status)) || {})
+                .label || '--'
             "
           ></el-tag>
         </template>
@@ -169,7 +170,7 @@
             >{{
               String(scope.row.is_project) === "0"
                 ? "非项目竞价单"
-                :  String(scope.row.is_project) === "1"
+                : String(scope.row.is_project) === "1"
                 ? "项目竞价单"
                 : "--"
             }}</el-tag
@@ -199,10 +200,10 @@
 <script>
 import mixinPage from "@/mixins/elPaginationHandle";
 import resToken from "@/mixins/resToken";
-import companyHelper from '@/mixins/companyHelper'
+import companyHelper from "@/mixins/companyHelper";
 import { statusList } from "@/assets/js/statusList";
 import asyncRequest from "@/apis/service/sellOut/zixunOrder";
-import { listCol } from "./columns";
+import { listCol, options } from "./columns";
 import { mapGetters } from "vuex";
 
 export default {
@@ -211,7 +212,7 @@ export default {
   computed: {
     ...mapGetters(["tablebtnSize", "searchSize", "size", "isSupertube"]),
     powers() {
-      const { btnList } = this.$store.getters
+      const { btnList } = this.$store.getters;
       const tran = btnList.find((i) => i.menu_route == "zixunOrder") || {};
       const { action } = tran ?? {};
       return action ?? [];
@@ -221,16 +222,7 @@ export default {
     return {
       select: "1",
       s_input: "",
-      options: [
-        { id: "0", label: "待发布竞标" },
-        { id: "1", label: "招标进行中" },
-        { id: "2", label: "招标已结束" },
-        { id: "3", label: "待选择商品" },
-        { id: "4", label: "已选商品待下单" },
-        { id: "5", label: "已成功转单" },
-        { id: "6", label: "已取消转单" },
-        { id: "7", label: "招标已暂停" },
-      ],
+      options,
       post_ownOptions: [
         { id: "1", label: "客户承担" },
         { id: "2", label: "公司承担" },
@@ -309,9 +301,9 @@ export default {
   },
 
   methods: {
-    handleCreate(){
-      if(!this.currentIsBusinessCompany()) return;
-      this.routeGoto('zixunOrderDetail', { id: 'add', type: 'add' })
+    handleCreate() {
+      if (!this.currentIsBusinessCompany()) return;
+      this.routeGoto("zixunOrderDetail", { id: "add", type: "add" });
     },
     getRouter(toRouter, queryId) {
       if (toRouter && queryId) {
@@ -386,9 +378,9 @@ export default {
 
       const res = await asyncRequest.list({
         ...model,
-        needRela: true
+        needRela: true,
       });
-      
+
       if (res && res.code === 0 && res.data) {
         this.tableData = res.data.list;
         this.pageInfo.total = Number(res.data.count);