|
@@ -1,8 +1,21 @@
|
|
|
import { ref } from "vue";
|
|
|
-import {
|
|
|
- cg_order_type_options,
|
|
|
- cg_order_source_options
|
|
|
-} from "/@/utils/status";
|
|
|
+import { cg_order_source_options } from "/@/utils/status";
|
|
|
+
|
|
|
+const good_type = [
|
|
|
+ {
|
|
|
+ value: "1",
|
|
|
+ label: "正常商品"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: "2",
|
|
|
+ label: "赠品"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: "3",
|
|
|
+ label: "样品"
|
|
|
+ }
|
|
|
+];
|
|
|
+
|
|
|
export function useColumns() {
|
|
|
const columns = ref([
|
|
|
{
|
|
@@ -19,32 +32,58 @@ export function useColumns() {
|
|
|
|
|
|
{
|
|
|
label: "采购单编号",
|
|
|
- prop: "sequenceNo"
|
|
|
+ prop: "sequenceNo",
|
|
|
+ width: "120px"
|
|
|
},
|
|
|
{
|
|
|
- label: "商品编号",
|
|
|
- prop: "goodNo"
|
|
|
+ label: "商品单号",
|
|
|
+ prop: "goodNo",
|
|
|
+ width: "120px"
|
|
|
},
|
|
|
{
|
|
|
label: "商品名称",
|
|
|
- prop: "goodName"
|
|
|
+ prop: "goodName",
|
|
|
+ width: "120px"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "业务公司编号",
|
|
|
+ prop: "companyNo",
|
|
|
+ width: "120px"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "业务公司名称",
|
|
|
+ prop: "companyNo",
|
|
|
+ width: "120px"
|
|
|
},
|
|
|
-
|
|
|
- // {
|
|
|
- // label: "业务公司编号",
|
|
|
- // prop: "companyNo"
|
|
|
- // },
|
|
|
- // {
|
|
|
- // label: "业务公司名称",
|
|
|
- // prop: "companyName"
|
|
|
- // },
|
|
|
{
|
|
|
label: "供应商编号",
|
|
|
- prop: "supplierNo"
|
|
|
+ prop: "supplierNo",
|
|
|
+ width: "120px"
|
|
|
},
|
|
|
{
|
|
|
label: "供应商名称",
|
|
|
- prop: "supplierName"
|
|
|
+ prop: "supplierName",
|
|
|
+ width: "120px"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "备库编号",
|
|
|
+ prop: "bkCode",
|
|
|
+ width: "120px"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "确认单编号",
|
|
|
+ width: "120px",
|
|
|
+ prop: "goodNo"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "状态",
|
|
|
+ prop: "cgdType",
|
|
|
+ width: 95,
|
|
|
+ cellRenderer: ({ row, props }) => (
|
|
|
+ <el-tag size={props.size} type="" effect="plain">
|
|
|
+ {row.status === "0" ? "未对账" : "对账"}
|
|
|
+ </el-tag>
|
|
|
+ )
|
|
|
},
|
|
|
{
|
|
|
label: "订单来源",
|
|
@@ -66,15 +105,11 @@ export function useColumns() {
|
|
|
width: 95,
|
|
|
cellRenderer: ({ row, props }) => (
|
|
|
<el-tag size={props.size} type="" effect="plain">
|
|
|
- {(
|
|
|
- cg_order_type_options.find(
|
|
|
- item => item.value == row.cgdType + ""
|
|
|
- ) || {}
|
|
|
- ).label || "--"}
|
|
|
+ {(good_type.find(item => item.value == row.cgdType + "") || {})
|
|
|
+ .label || "--"}
|
|
|
</el-tag>
|
|
|
)
|
|
|
},
|
|
|
-
|
|
|
{
|
|
|
label: "采购员",
|
|
|
prop: "ownerName",
|