|
@@ -5,6 +5,7 @@
|
|
|
import { ElTag } from "element-plus";
|
|
|
import { h } from "vue";
|
|
|
import { send_status_list } from "../status";
|
|
|
+import { createTooltip } from "../tootip";
|
|
|
import { DescriptionColumns } from "/@/components/BasicDescriptions";
|
|
|
|
|
|
export const PURCHASE_STATUS = [
|
|
@@ -116,13 +117,11 @@ export const PURCHAS_COLUMNS: DescriptionColumns = [
|
|
|
{
|
|
|
label: "采购单名称",
|
|
|
field: "name",
|
|
|
- labelWidth: "100px",
|
|
|
- span: 2
|
|
|
+ span: 6
|
|
|
},
|
|
|
{
|
|
|
label: "采购编号",
|
|
|
field: "sequenceNo",
|
|
|
- labelWidth: "80",
|
|
|
span: 2
|
|
|
},
|
|
|
{
|
|
@@ -186,12 +185,103 @@ export const PURCHAS_COLUMNS: DescriptionColumns = [
|
|
|
field: "qrdCode"
|
|
|
},
|
|
|
{
|
|
|
- label: "商品编号",
|
|
|
- field: "goodNo"
|
|
|
+ label: "供应商编号",
|
|
|
+ field: "supplierNo"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "供应商名称",
|
|
|
+ field: "supplierName"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "已付金额",
|
|
|
+ field: "apay_fee"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "待付金额",
|
|
|
+ field: "wpay_fee"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "已回票",
|
|
|
+ field: "ainv_fee"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "未回票",
|
|
|
+ field: "winv_fee"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "发货方式",
|
|
|
+ field: "sendType",
|
|
|
+ render(type) {
|
|
|
+ return h(ElTag, null, {
|
|
|
+ default: () => SEND_TYPE.find(c => c.value === type)?.label
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "备库人员",
|
|
|
+ field: "bkCreater"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "发货状态",
|
|
|
+ field: "sendStatus",
|
|
|
+ render(type) {
|
|
|
+ return h(ElTag, null, {
|
|
|
+ default: () => send_status_list.find(c => c.value === type)?.label
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "未发货数量",
|
|
|
+ field: "wsendNum"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "发货数量",
|
|
|
+ field: "sendNum"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "备注",
|
|
|
+ field: "remark"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "付款状态",
|
|
|
+ field: "pay_status",
|
|
|
+ render(type) {
|
|
|
+ return h(ElTag, null, {
|
|
|
+ default: () => PAY_STATUS.find(c => c.value === type)?.label
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
+ {
|
|
|
+ label: "发票状态",
|
|
|
+ field: "inv_status",
|
|
|
+ render(type) {
|
|
|
+ return h(ElTag, null, {
|
|
|
+ default: () => INV_STATUS.find(c => c.value === type)?.label
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "工差重量",
|
|
|
+ field: "diff_weight"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "工差金额",
|
|
|
+ field: "diff_fee"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "退货数量",
|
|
|
+ field: "thNum"
|
|
|
+ }
|
|
|
+];
|
|
|
+
|
|
|
+
|
|
|
+//商品详情
|
|
|
+export const PURCHAS_PRODUCT_COLUMNS = [
|
|
|
{
|
|
|
label: "商品名称",
|
|
|
- field: "ownerid"
|
|
|
+ field: "goodName",
|
|
|
+ span: 6,
|
|
|
+ render: (goodName, { goodNo }) => createTooltip(goodName, '商品编号 : ' + goodNo, 260),
|
|
|
},
|
|
|
{
|
|
|
label: "商品类类型",
|
|
@@ -206,6 +296,10 @@ export const PURCHAS_COLUMNS: DescriptionColumns = [
|
|
|
label: "品牌",
|
|
|
field: "goodBrand"
|
|
|
},
|
|
|
+ {
|
|
|
+ label: "单位",
|
|
|
+ field: "goodUnit"
|
|
|
+ },
|
|
|
{
|
|
|
label: "一级分类",
|
|
|
field: "firstCat"
|
|
@@ -222,10 +316,6 @@ export const PURCHAS_COLUMNS: DescriptionColumns = [
|
|
|
label: "核算码",
|
|
|
field: "fundCode"
|
|
|
},
|
|
|
- {
|
|
|
- label: "单位",
|
|
|
- field: "goodUnit"
|
|
|
- },
|
|
|
{
|
|
|
label: "工艺描述",
|
|
|
field: "goodDesc"
|
|
@@ -299,92 +389,4 @@ export const PURCHAS_COLUMNS: DescriptionColumns = [
|
|
|
label: "总价",
|
|
|
field: "totalPrice"
|
|
|
},
|
|
|
- {
|
|
|
- label: "供应商编号",
|
|
|
- field: "supplierNo"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "供应商名称",
|
|
|
- field: "supplierName"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "已付金额",
|
|
|
- field: "apay_fee"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "待付金额",
|
|
|
- field: "wpay_fee"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "已回票",
|
|
|
- field: "ainv_fee"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "未回票",
|
|
|
- field: "winv_fee"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "发货方式",
|
|
|
- field: "sendType",
|
|
|
- render(type) {
|
|
|
- return h(ElTag, null, {
|
|
|
- default: () => SEND_TYPE.find(c => c.value === type)?.label
|
|
|
- });
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- label: "备库人员",
|
|
|
- field: "bkCreater"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "发货状态",
|
|
|
- field: "sendStatus",
|
|
|
- render(type) {
|
|
|
- return h(ElTag, null, {
|
|
|
- default: () => send_status_list.find(c => c.value === type)?.label
|
|
|
- });
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- label: "未发货数量",
|
|
|
- field: "wsendNum"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "发货数量",
|
|
|
- field: "sendNum"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "备注",
|
|
|
- field: "remark"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "付款状态",
|
|
|
- field: "pay_status",
|
|
|
- render(type) {
|
|
|
- return h(ElTag, null, {
|
|
|
- default: () => PAY_STATUS.find(c => c.value === type)?.label
|
|
|
- });
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- label: "发票状态",
|
|
|
- field: "inv_status",
|
|
|
- render(type) {
|
|
|
- return h(ElTag, null, {
|
|
|
- default: () => INV_STATUS.find(c => c.value === type)?.label
|
|
|
- });
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- label: "工差重量",
|
|
|
- field: "diff_weight"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "工差金额",
|
|
|
- field: "diff_fee"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "退货数量",
|
|
|
- field: "thNum"
|
|
|
- }
|
|
|
-];
|
|
|
+]
|