linwenxin 7 месяцев назад
Родитель
Сommit
683672dd87

+ 62 - 0
src/api/material-system/common.js

@@ -0,0 +1,62 @@
+import request from '@/utils/request'
+
+export function commonDict(params) {
+  return request({
+    url: '/common/dict',
+    method: 'get',
+    params
+  })
+}
+
+export function getSystemList(params) {
+  return request({
+    url: '/sys/dict/list/page',
+    method: 'get',
+    params
+  })
+}
+
+// 获取工程师信息
+export function getSearchWorkerList(params) {
+  return request({
+    url: '/worker/info',
+    method: 'get',
+    params
+  })
+}
+
+// 生成支付二维码
+export function generateCode(params) {
+  return request({
+    url: '/shop/sale/generate/code',
+    method: 'post',
+    params
+  })
+}
+
+// 关闭支付二维码
+export function closeCode(params) {
+  return request({
+    url: '/shop/sale/close/code',
+    method: 'post',
+    params
+  })
+}
+
+// 查询支付情况
+export function queryPayStatus(params) {
+  return request({
+    url: '/shop/sale/query/pay/status',
+    method: 'get',
+    params
+  })
+}
+
+// 后台计算值
+export function computeVal(params) {
+  return request({
+    url: '/common/computeVal',
+    method: 'get',
+    params
+  })
+}

+ 28 - 0
src/api/material-system/shop/goods-price.js

@@ -0,0 +1,28 @@
+import request,{postBlob} from '@/utils/request'
+
+// 获取网点辅材列表
+export function getShopGoodsList(params) {
+  return request({
+    url: '/shop/goods/list',
+    method: 'get',
+    params
+  })
+}
+
+export function getNewShopGoodsList(data) {
+  console.log(data,999);
+  return request({
+    url: `/shop/goods/zfire/list?moduleId=${data.moduleId}`,
+    method: "post",
+    data
+  });
+}
+
+// 导出
+export function exportNewShopGoodsList(data, name) {
+  return postBlob({
+    url: '/shop/goods/zfire/list/export',
+    data,
+    name
+  })
+}

+ 118 - 0
src/api/material-system/shop/inventory-sheet.js

@@ -0,0 +1,118 @@
+import request ,{postBlob}from '@/utils/request'
+
+// 新增网点采购单
+export function addOrder(params) {
+  return request({
+    url: '/shop/stock/inventory/add',
+    method: 'post',
+    data: params
+  })
+}
+
+// 审核网点采购单
+export function examineOrder(params) {
+  return request({
+    url: '/shop/stock/inventory/confirm',
+    method: 'post',
+    params
+  })
+}
+
+// 反审网点采购单
+export function unAuditOrder(params) {
+  return request({
+    url: '/shop/stock/inventory/unAudit',
+    method: 'post',
+    params
+  })
+}
+
+// 删除网点采购单
+export function delOrder(params) {
+  return request({
+    url: '/shop/stock/inventory/del',
+    method: 'post',
+    params
+  })
+}
+
+// 编辑网点采购单
+export function editOrder(params) {
+  return request({
+    url: '/shop/stock/inventory/update',
+    method: 'post',
+    data: params
+  })
+}
+
+// 获取网点采购单信息
+export function getOrderDetail(params) {
+  return request({
+    url: '/shop/stock/inventory/detail',
+    method: 'get',
+    params
+  })
+}
+
+// 复制网点采购单
+export function copyOrder(params) {
+  return request({
+    url: '/shop/stock/inventory/copy',
+    method: 'get',
+    params
+  })
+}
+
+// 获取网点采购单列表
+export function getMainList(params) {
+  return request({
+    url: '/shop/stock/inventory/list',
+    method: 'get',
+    params
+  })
+}
+
+// 获取网点资料列表
+export function getShopList(params) {
+  return request({
+    url: '/shop/master/list',
+    method: 'get',
+    params
+  })
+}
+
+// 仓库列表
+export function getStockList(params) {
+  return request({
+    url: '/shop/master/shop-stock',
+    method: 'get',
+    params
+  })
+}
+
+// 仓库列表
+export function getGoodsList(params) {
+  return request({
+    url: '/shop/stock/list',
+    method: 'get',
+    params
+  })
+}
+
+export function getNewMainList(data) {
+  console.log(data,999);
+  return request({
+    url: `/shop/stock/inventory/zfire/list?moduleId=${data.moduleId}`,
+    method: "post",
+    data
+  });
+}
+
+// 导出
+export function exportNewMainList(data, name) {
+  return postBlob({
+    url: '/shop/stock/inventory/zfire/list/export',
+    data,
+    name
+  })
+}

+ 74 - 0
src/api/material-system/shop/lost-sheet.js

@@ -0,0 +1,74 @@
+import request,{postBlob} from '@/utils/request'
+
+// 获取网点损溢单列表
+export function getLostSheetList(params) {
+  return request({
+    url: '/shop/lost/list',
+    method: 'get',
+    params
+  })
+}
+
+// 获取网点损溢单信息
+export function getLostSheet(params) {
+  return request({
+    url: '/shop/lost/detail',
+    method: 'get',
+    params
+  })
+}
+
+// 新增网点损溢单
+export function addLostSheet(params) {
+  return request({
+    url: '/shop/lost/add',
+    method: 'post',
+    data: params
+  })
+}
+
+// 编辑网点损溢单
+export function editLostSheet(params) {
+  return request({
+    url: '/shop/lost/update',
+    method: 'post',
+    data: params
+  })
+}
+
+// 删除网点损溢单
+export function delLostSheet(params) {
+  return request({
+    url: '/shop/lost/del',
+    method: 'post',
+    params
+  })
+}
+
+// 审核网点损溢单
+export function confirmLostSheet(params) {
+  return request({
+    url: '/shop/lost/confirm',
+    method: 'post',
+    params
+  })
+}
+
+
+export function getNewLostSheetList(data) {
+  console.log(data,999);
+  return request({
+    url: `/shop/lost/zfire/list?moduleId=${data.moduleId}`,
+    method: "post",
+    data
+  });
+}
+
+// 导出
+export function exportNewGetLostSheetList(data, name) {
+  return postBlob({
+    url: '/shop/lost/zfire/list/export',
+    data,
+    name
+  })
+}

+ 128 - 0
src/api/material-system/shop/other-in-sheet.js

@@ -0,0 +1,128 @@
+import request,{postBlob} from '@/utils/request'
+
+// 新增网点采购单
+export function addOrder(params) {
+  return request({
+    url: '/shop/stock/other-in/add',
+    method: 'post',
+    data: params
+  })
+}
+
+// 审核网点采购单
+export function examineOrder(params) {
+  return request({
+    url: '/shop/stock/other-in/confirm',
+    method: 'post',
+    params
+  })
+}
+
+// 反审网点采购单
+export function unAuditOrder(params) {
+  return request({
+    url: '/shop/stock/other-in/unAudit',
+    method: 'post',
+    params
+  })
+}
+
+// 删除网点采购单
+export function delOrder(params) {
+  return request({
+    url: '/shop/stock/other-in/del',
+    method: 'post',
+    params
+  })
+}
+
+// 编辑网点采购单
+export function editOrder(params) {
+  return request({
+    url: '/shop/stock/other-in/update',
+    method: 'post',
+    data: params
+  })
+}
+
+// 获取网点采购单信息
+export function getOrderDetail(params) {
+  return request({
+    url: '/shop/stock/other-in/detail',
+    method: 'get',
+    params
+  })
+}
+
+// 复制网点采购单
+export function copyOrder(params) {
+  return request({
+    url: '/shop/stock/other-in/copy',
+    method: 'get',
+    params
+  })
+}
+
+// 获取网点采购单列表
+export function getMainList(params) {
+  return request({
+    url: '/shop/stock/other-in/list',
+    method: 'get',
+    params
+  })
+}
+
+// 获取网点资料列表
+export function getShopList(params) {
+  return request({
+    url: '/shop/master/list',
+    method: 'get',
+    params
+  })
+}
+
+// 仓库列表
+export function getStockList(params) {
+  return request({
+    url: '/shop/master/shop-stock',
+    method: 'get',
+    params
+  })
+}
+
+// 商品列表
+export function getGoodsList(params) {
+  return request({
+    url: '/shop/stock/list',
+    method: 'get',
+    params
+  })
+}
+
+// 部门列表
+export function getDeptList(params) {
+  return request({
+    url: '/k3/dept/list',
+    method: 'get',
+    params
+  })
+}
+
+
+export function getNewMainList(data) {
+  console.log(data,999);
+  return request({
+    url: `/shop/stock/other-in/zfire/list?moduleId=${data.moduleId}`,
+    method: "post",
+    data
+  });
+}
+
+// 导出
+export function exportNewMainList(data, name) {
+  return postBlob({
+    url: '/shop/stock/other-in/zfire/list/export',
+    data,
+    name
+  })
+}

+ 136 - 0
src/api/material-system/shop/other-out-sheet.js

@@ -0,0 +1,136 @@
+import request ,{postBlob}from '@/utils/request'
+
+// 新增网点采购单
+export function addOrder(params) {
+  return request({
+    url: '/shop/stock/other-out/add',
+    method: 'post',
+    data: params
+  })
+}
+
+// 审核网点采购单
+export function examineOrder(params) {
+  return request({
+    url: '/shop/stock/other-out/confirm',
+    method: 'post',
+    params
+  })
+}
+
+// 反审其他出库单
+export function unAuditOrder(params) {
+  return request({
+    url: '/shop/stock/other-out/unAudit',
+    method: 'post',
+    params
+  })
+}
+
+// 查询其他出库单
+export function queryOrder(params) {
+  return request({
+    url: '/shop/stock/other-out/query',
+    method: 'post',
+    params
+  })
+}
+
+// 删除网点采购单
+export function delOrder(params) {
+  return request({
+    url: '/shop/stock/other-out/del',
+    method: 'post',
+    params
+  })
+}
+
+// 编辑网点采购单
+export function editOrder(params) {
+  return request({
+    url: '/shop/stock/other-out/update',
+    method: 'post',
+    data: params
+  })
+}
+
+// 获取网点采购单信息
+export function getOrderDetail(params) {
+  return request({
+    url: '/shop/stock/other-out/detail',
+    method: 'get',
+    params
+  })
+}
+
+// 复制网点采购单
+export function copyOrder(params) {
+  return request({
+    url: '/shop/stock/other-out/copy',
+    method: 'get',
+    params
+  })
+}
+
+// 获取网点采购单列表
+export function getMainList(params) {
+  return request({
+    url: '/shop/stock/other-out/list',
+    method: 'get',
+    params
+  })
+}
+
+// 获取网点资料列表
+export function getShopList(params) {
+  return request({
+    url: '/shop/master/list',
+    method: 'get',
+    params
+  })
+}
+
+// 仓库列表
+export function getStockList(params) {
+  return request({
+    url: '/shop/master/shop-stock',
+    method: 'get',
+    params
+  })
+}
+
+// 商品列表
+export function getGoodsList(params) {
+  return request({
+    url: '/shop/stock/list',
+    method: 'get',
+    params
+  })
+}
+
+// 部门列表
+export function getDeptList(params) {
+  return request({
+    url: '/k3/dept/list',
+    method: 'get',
+    params
+  })
+}
+
+export function getNewMainList(data) {
+  console.log(data,999);
+  return request({
+    url: `/shop/stock/other-out/zfire/list?moduleId=${data.moduleId}`,
+    method: "post",
+    data
+  });
+}
+
+// 导出
+export function exportNewMainList(data, name) {
+  return postBlob({
+    url: '/shop/stock/other-out/zfire/list/export',
+    data,
+    name
+  })
+}

+ 45 - 0
src/api/material-system/shop/pay-manage.js

@@ -0,0 +1,45 @@
+import request, { postBlob } from "@/utils/request";
+
+// 获取支付记录列表
+export function getPayRecordList(params) {
+  return request({
+    url: "/pay/manage/list",
+    method: "get",
+    params
+  });
+}
+
+// 退款
+export function refund(params) {
+  return request({
+    url: "/pay/manage/refund",
+    method: "post",
+    data: params
+  });
+}
+
+export function getNewPayRecordList(data) {
+  return request({
+    url: `/pay/manage/zfire/list?moduleId=${data.moduleId}`,
+    method: "post",
+    data
+  });
+}
+
+// 导出
+export function exportNewPayRecordList(data, name) {
+  return postBlob({
+    url: "/pay/manage/zfire/list/export",
+    data,
+    name
+  });
+}
+
+// 刷新重查一次支付记录
+export function refreshQueryPayRecord(params) {
+  return request({
+    url: "/pay/manage/refresh-query",
+    method: "get",
+    params
+  });
+}

+ 118 - 0
src/api/material-system/shop/price-in-stock-sheet.js

@@ -0,0 +1,118 @@
+import request,{postBlob} from '@/utils/request'
+
+// 新增网点采购单
+export function addOrder(params) {
+  return request({
+    url: '/shop/purchase-in-stock/add',
+    method: 'post',
+    data: params
+  })
+}
+
+// 审核网点采购单
+export function examineOrder(params) {
+  return request({
+    url: '/shop/purchase-in-stock/confirm',
+    method: 'post',
+    params
+  })
+}
+
+// 反审网点采购单
+export function unAuditOrder(params) {
+  return request({
+    url: '/shop/purchase-in-stock/unAudit',
+    method: 'post',
+    params
+  })
+}
+
+// 查询网点采购单
+export function queryOrder(params) {
+  return request({
+    url: '/shop/purchase-in-stock/query',
+    method: 'post',
+    params
+  })
+}
+
+// 删除网点采购单
+export function delOrder(params) {
+  return request({
+    url: '/shop/purchase-in-stock/del',
+    method: 'post',
+    params
+  })
+}
+
+// 编辑网点采购单
+export function editOrder(params) {
+  return request({
+    url: '/shop/purchase-in-stock/update',
+    method: 'post',
+    data: params
+  })
+}
+
+// 获取网点采购单信息
+export function getOrderDetail(params) {
+  return request({
+    url: '/shop/purchase-in-stock/detail',
+    method: 'get',
+    params
+  })
+}
+
+// 复制网点采购单
+export function copyOrder(params) {
+  return request({
+    url: '/shop/purchase-in-stock/copy',
+    method: 'get',
+    params
+  })
+}
+
+// 获取网点采购单列表
+export function getMainList(params) {
+  return request({
+    url: '/shop/purchase-in-stock/list',
+    method: 'get',
+    params
+  })
+}
+
+// 获取网点资料列表
+export function getShopList(params) {
+  return request({
+    url: '/shop/master/list',
+    method: 'get',
+    params
+  })
+}
+
+// 仓库列表
+export function getStockList(params) {
+  return request({
+    url: '/shop/master/shop-stock',
+    method: 'get',
+    params
+  })
+}
+
+export function getNewMainList(data) {
+  console.log(data,999);
+  return request({
+    url: `/shop/purchase-in-stock/zfire/list?moduleId=${data.moduleId}`,
+    method: "post",
+    data
+  });
+}
+
+// 导出
+export function exportNewMainList(data, name) {
+  return postBlob({
+    url: '/shop/purchase-in-stock/zfire/list/export',
+    data,
+    name
+  })
+}

+ 117 - 0
src/api/material-system/shop/price-ret-sheet.js

@@ -0,0 +1,117 @@
+import request ,{postBlob} from '@/utils/request'
+
+// 新增网点采购单
+export function addOrder(params) {
+  return request({
+    url: '/shop/purchase/ret/add',
+    method: 'post',
+    data: params
+  })
+}
+
+// 审核网点采购单
+export function examineOrder(params) {
+  return request({
+    url: '/shop/purchase/ret/confirm',
+    method: 'post',
+    params
+  })
+}
+
+// 反审网点采购单
+export function unAuditOrder(params) {
+  return request({
+    url: '/shop/purchase/ret/unAudit',
+    method: 'post',
+    params
+  })
+}
+// 撤消采购退货单
+export function cancelOrder(params) {
+  return request({
+    url: '/shop/purchase/ret/cancel',
+    method: 'post',
+    params
+  })
+}
+
+// 查询采购退货单
+export function queryOrder(params) {
+  return request({
+    url: '/shop/purchase/ret/query',
+    method: 'post',
+    params
+  })
+}
+
+// 删除网点采购单
+export function delOrder(params) {
+  return request({
+    url: '/shop/purchase/ret/del',
+    method: 'post',
+    params
+  })
+}
+
+// 编辑网点采购单
+export function editOrder(params) {
+  return request({
+    url: '/shop/purchase/ret/update',
+    method: 'post',
+    data: params
+  })
+}
+
+// 获取网点采购单信息
+export function getOrderDetail(params) {
+  return request({
+    url: '/shop/purchase/ret/detail',
+    method: 'get',
+    params
+  })
+}
+
+// 获取网点采购单列表
+export function getMainList(params) {
+  return request({
+    url: '/shop/purchase/ret/list',
+    method: 'get',
+    params
+  })
+}
+
+// 获取网点资料列表
+export function getShopList(params) {
+  return request({
+    url: '/shop/master/list',
+    method: 'get',
+    params
+  })
+}
+
+// 仓库列表
+export function getStockList(params) {
+  return request({
+    url: '/shop/master/shop-stock',
+    method: 'get',
+    params
+  })
+}
+
+export function getNewMainList(data) {
+  console.log(data,999);
+  return request({
+    url: `/shop/purchase/ret/zfire/list?moduleId=${data.moduleId}`,
+    method: "post",
+    data
+  });
+}
+
+// 导出
+export function exportNewMainList(data, name) {
+  return postBlob({
+    url: '/shop/purchase/ret/zfire/list/export',
+    data,
+    name
+  })
+}

+ 91 - 0
src/api/material-system/shop/price-upd-sheet.js

@@ -0,0 +1,91 @@
+import request,{postBlob}  from '@/utils/request'
+
+// 获取网点资料列表
+export function getList(params) {
+  return request({
+    url: '/shop/master/list',
+    method: 'get',
+    params
+  })
+}
+
+// 获取网点调售单列表
+export function getPriceUpdSheetList(params) {
+  return request({
+    url: '/shop/price-upd/list',
+    method: 'get',
+    params
+  })
+}
+
+// 新增网点调售单
+export function addPriceUpdSheet(params) {
+  return request({
+    url: '/shop/price-upd/add',
+    method: 'post',
+    data: params
+  })
+}
+
+// 编辑网点调售单
+export function editPriceUpdSheet(params) {
+  return request({
+    url: '/shop/price-upd/update',
+    method: 'post',
+    data: params
+  })
+}
+
+// 删除网点调售单
+export function delPriceUpdSheet(params) {
+  return request({
+    url: '/shop/price-upd/del',
+    method: 'post',
+    params
+  })
+}
+
+// 审核网点调售单
+export function confirmPriceUpdSheet(params) {
+  return request({
+    url: '/shop/price-upd/confirm',
+    method: 'post',
+    params
+  })
+}
+
+// 获取网点调售单信息
+export function getPriceUpdSheet(params) {
+  return request({
+    url: '/shop/price-upd/detail',
+    method: 'get',
+    params
+  })
+}
+
+// 获取分类列表
+export function getCategoryList(params) {
+  return request({
+    url: '/sys/category/list',
+    method: 'get',
+    params
+  })
+}
+
+export function getNewPriceUpdSheetList(data) {
+  console.log(data,999);
+  return request({
+    url: `/shop/price-upd/zfire/list?moduleId=${data.moduleId}`,
+    method: "post",
+    data
+  });
+}
+
+// 导出
+export function exportNewPriceUpdSheetList(data, name) {
+  return postBlob({
+    url: '/shop/price-upd/zfire/list/export',
+    data,
+    name
+  })
+}

+ 91 - 0
src/api/material-system/shop/purchase-adjustment-sheet.js

@@ -0,0 +1,91 @@
+import request,{postBlob}  from '@/utils/request'
+
+// 新增采购调整单
+export function purchaseAdjustmentSheetAdd(params) {
+  return request({
+    url: '/shop/purchase-adjustment/add',
+    method: 'post',
+    data: params
+  })
+}
+
+// 采购调整单审核
+export function purchaseAdjustmentSheetConfirm(params) {
+  return request({
+    url: '/shop/purchase-adjustment/confirm',
+    method: 'get',
+    params
+  })
+}
+
+// 采购调整单提交
+export function purchaseAdjustmentSheetSubmit(params) {
+  return request({
+    url: '/shop/purchase-adjustment/submit',
+    method: 'get',
+    params
+  })
+}
+
+// 采购调整单撤消
+export function purchaseAdjustmentSheetRevoke(params) {
+  return request({
+    url: '/shop/purchase-adjustment/revoke',
+    method: 'get',
+    params
+  })
+}
+
+// 删除采购调整单
+export function purchaseAdjustmentSheetDel(params) {
+  return request({
+    url: '/shop/purchase-adjustment/del',
+    method: 'get',
+    params
+  })
+}
+
+// 编辑采购调整单
+export function purchaseAdjustmentSheetEdit(params) {
+  return request({
+    url: '/shop/purchase-adjustment/update',
+    method: 'post',
+    data: params
+  })
+}
+
+// 获取采购调整单信息
+export function purchaseAdjustmentSheetDetail(params) {
+  return request({
+    url: '/shop/purchase-adjustment/detail',
+    method: 'get',
+    params
+  })
+}
+
+// 获取采购调整单列表
+export function purchaseAdjustmentSheetList(params) {
+  return request({
+    url: '/shop/purchase-adjustment/list',
+    method: 'get',
+    params
+  })
+}
+
+export function getNewPurchaseAdjustmentSheetList(data) {
+  console.log(data,999);
+  return request({
+    url: `/shop/purchase-adjustment/zfire/list?moduleId=${data.moduleId}`,
+    method: "post",
+    data
+  });
+}
+
+// 导出
+export function exportNewPurchaseAdjustmentSheetList(data, name) {
+  return postBlob({
+    url: '/shop/purchase-adjustment/zfire/list/export',
+    data,
+    name
+  })
+}

+ 84 - 0
src/api/material-system/shop/purchase-apply-sheet.js

@@ -0,0 +1,84 @@
+import request,{postBlob} from '@/utils/request'
+
+// 获取采购申请单列表
+export function getPurchaseApplySheetList(params) {
+  return request({
+    url: '/shop/purchase-apply/list',
+    method: 'get',
+    params
+  })
+}
+export function getNewPurchaseApplySheetList(data) {
+  console.log(data,999);
+  return request({
+    url: `/shop/purchase-apply/zfire/list?moduleId=${data.moduleId}`,
+    method: "post",
+    data
+  });
+}
+
+// 导出
+export function exportNewPurchaseApplySheetList(data, name) {
+  return postBlob({
+    url: '/shop/purchase-apply/zfire/list/export',
+    data,
+    name
+  })
+}
+
+
+
+
+// 获取采购申请单信息
+export function getPurchaseApplySheet(params) {
+  return request({
+    url: '/shop/purchase-apply/detail',
+    method: 'get',
+    params
+  })
+}
+
+// 新增采购申请单
+export function addPurchaseApplySheet(params) {
+  return request({
+    url: '/shop/purchase-apply/add',
+    method: 'post',
+    data: params
+  })
+}
+
+// 编辑采购申请单
+export function editPurchaseApplySheet(params) {
+  return request({
+    url: '/shop/purchase-apply/update',
+    method: 'post',
+    data: params
+  })
+}
+
+// 提交采购申请单
+export function submitPurchaseApplySheet(params) {
+  return request({
+    url: '/shop/purchase-apply/submit',
+    method: 'get',
+    params
+  })
+}
+
+// 撤消采购申请单
+export function revokePurchaseApplySheet(params) {
+  return request({
+    url: '/shop/purchase-apply/revoke',
+    method: 'get',
+    params
+  })
+}
+
+// 删除采购申请单
+export function delPurchaseApplySheet(params) {
+  return request({
+    url: '/shop/purchase-apply/del',
+    method: 'get',
+    params
+  })
+}

+ 113 - 0
src/api/material-system/shop/purchase-sheet.js

@@ -0,0 +1,113 @@
+import request,{postBlob} from '@/utils/request'
+
+// 新增网点采购单
+export function addPurchaseSheet(params) {
+  return request({
+    url: '/shop/purchase/add',
+    method: 'post',
+    data: params
+  })
+}
+
+
+
+
+// 审核网点采购单
+export function confirmPurchaseSheet(params) {
+  return request({
+    url: '/shop/purchase/confirm',
+    method: 'post',
+    params
+  })
+}
+
+// 反审网点采购单
+export function unAuditPurchaseSheet(params) {
+  return request({
+    url: '/shop/purchase/unAudit',
+    method: 'post',
+    params
+  })
+}
+
+// 下推网点采购单
+export function pushPurchaseSheet(params) {
+  return request({
+    url: '/shop/purchase/push',
+    method: 'post',
+    params
+  })
+}
+
+// 作废网点采购单
+export function revokePurchaseSheet(params) {
+  return request({
+    url: '/shop/purchase/revoke',
+    method: 'get',
+    params
+  })
+}
+
+// 删除网点采购单
+export function delPurchaseSheet(params) {
+  return request({
+    url: '/shop/purchase/del',
+    method: 'get',
+    params
+  })
+}
+
+// 编辑网点采购单
+export function editPurchaseSheet(params) {
+  return request({
+    url: '/shop/purchase/update',
+    method: 'post',
+    data: params
+  })
+}
+
+// 获取网点采购单信息
+export function getPurchaseSheet(params) {
+  return request({
+    url: '/shop/purchase/detail',
+    method: 'get',
+    params
+  })
+}
+
+// 复制网点采购单
+export function copyPurchaseSheet(params) {
+  return request({
+    url: '/shop/purchase/copy',
+    method: 'get',
+    params
+  })
+}
+
+// 获取网点采购单列表
+export function getPurchaseSheetList(params) {
+  return request({
+    url: '/shop/purchase/list',
+    method: 'get',
+    params
+  })
+}
+
+
+export function getNewPurchaseSheetList(data) {
+  console.log(data,999);
+  return request({
+    url: `/shop/purchase/zfire/list?moduleId=${data.moduleId}`,
+    method: "post",
+    data
+  });
+}
+
+// 导出
+export function exportNewPurchaseSheetList(data, name) {
+  return postBlob({
+    url: '/shop/purchase/zfire/list/export',
+    data,
+    name
+  })
+}

+ 146 - 0
src/api/material-system/shop/sale-out-stock-sheet.js

@@ -0,0 +1,146 @@
+import request ,{postBlob}from '@/utils/request'
+
+// 新增网点采购单
+export function addOrder(params) {
+  return request({
+    url: '/shop/sale-out-stock/add',
+    method: 'post',
+    data: params
+  })
+}
+
+// 审核网点采购单
+export function examineOrder(params) {
+  return request({
+    url: '/shop/sale-out-stock/confirm',
+    method: 'post',
+    params
+  })
+}
+
+// 反审网点采购单
+export function unAuditOrder(params) {
+  return request({
+    url: '/shop/sale-out-stock/unAudit',
+    method: 'post',
+    params
+  })
+}
+
+// 下推销售退货单
+export function pushShopSaleRetSheet(params) {
+  return request({
+    url: '/shop/sale-out-stock/push',
+    method: 'post',
+    params
+  })
+}
+
+// 查询销售退货单
+export function queryOrder(params) {
+  return request({
+    url: '/shop/sale-out-stock/query',
+    method: 'post',
+    params
+  })
+}
+
+// 查询销售退货单
+export function queryRetOrder(params) {
+  return request({
+    url: '/shop/sale-out-stock/query-ret',
+    method: 'post',
+    params
+  })
+}
+
+// 删除网点采购单
+export function delOrder(params) {
+  return request({
+    url: '/shop/sale-out-stock/del',
+    method: 'post',
+    params
+  })
+}
+
+// 编辑网点采购单
+export function editOrder(params) {
+  return request({
+    url: '/shop/sale-out-stock/update',
+    method: 'post',
+    data: params
+  })
+}
+
+// 获取网点采购单信息
+export function getOrderDetail(params) {
+  return request({
+    url: '/shop/sale-out-stock/detail',
+    method: 'get',
+    params
+  })
+}
+
+// 复制网点采购单
+export function copyOrder(params) {
+  return request({
+    url: '/shop/sale-out-stock/copy',
+    method: 'get',
+    params
+  })
+}
+
+// 获取网点采购单列表
+export function getMainList(params) {
+  return request({
+    url: '/shop/sale-out-stock/list',
+    method: 'get',
+    params
+  })
+}
+
+// 获取网点资料列表
+export function getShopList(params) {
+  return request({
+    url: '/shop/master/list',
+    method: 'get',
+    params
+  })
+}
+
+// 仓库列表
+export function getStockList(params) {
+  return request({
+    url: '/shop/master/shop-stock',
+    method: 'get',
+    params
+  })
+}
+
+// 商品列表
+export function getGoodsList(params) {
+  return request({
+    url: '/shop/stock/list',
+    method: 'get',
+    params
+  })
+}
+
+
+export function getNewMainList(data) {
+  console.log(data,999);
+  return request({
+    url: `/shop/sale-out-stock/zfire/list?moduleId=${data.moduleId}`,
+    method: "post",
+    data
+  });
+}
+
+// 导出
+export function exportNewMainList(data, name) {
+  return postBlob({
+    url: '/shop/sale-out-stock/zfire/list/export',
+    data,
+    name
+  })
+}

+ 127 - 0
src/api/material-system/shop/sale-ret-sheet.js

@@ -0,0 +1,127 @@
+import request,{postBlob} from '@/utils/request'
+
+// 新增网点采购单
+export function addOrder(params) {
+  return request({
+    url: '/shop/sale-ret/add',
+    method: 'post',
+    data: params
+  })
+}
+
+// 审核网点采购单
+export function examineOrder(params) {
+  return request({
+    url: '/shop/sale-ret/confirm',
+    method: 'post',
+    params
+  })
+}
+
+// 反审网点采购单
+export function unAuditOrder(params) {
+  return request({
+    url: '/shop/sale-ret/unAudit',
+    method: 'post',
+    params
+  })
+}
+
+// 删除网点采购单
+export function delOrder(params) {
+  return request({
+    url: '/shop/sale-ret/del',
+    method: 'post',
+    params
+  })
+}
+
+// 编辑网点采购单
+export function editOrder(params) {
+  return request({
+    url: '/shop/sale-ret/update',
+    method: 'post',
+    data: params
+  })
+}
+
+// 获取网点采购单信息
+export function getOrderDetail(params) {
+  return request({
+    url: '/shop/sale-ret/detail',
+    method: 'get',
+    params
+  })
+}
+
+// 复制网点采购单
+export function copyOrder(params) {
+  return request({
+    url: '/shop/sale-ret/copy',
+    method: 'get',
+    params
+  })
+}
+
+// 获取网点采购单列表
+export function getMainList(params) {
+  return request({
+    url: '/shop/sale-ret/list',
+    method: 'get',
+    params
+  })
+}
+
+// 获取网点资料列表
+export function getShopList(params) {
+  return request({
+    url: '/shop/master/list',
+    method: 'get',
+    params
+  })
+}
+
+// 仓库列表
+export function getStockList(params) {
+  return request({
+    url: '/shop/master/shop-stock',
+    method: 'get',
+    params
+  })
+}
+
+// 商品列表
+export function getGoodsList(params) {
+  return request({
+    url: '/shop/stock/list',
+    method: 'get',
+    params
+  })
+}
+
+// 获取网点采购单信息
+export function getShopOrderDetail(params) {
+  return request({
+    url: '/shop/sale/detail',
+    method: 'get',
+    params
+  })
+}
+
+export function getNewMainList(data) {
+  console.log(data,999);
+  return request({
+    url: `/shop/sale-ret/zfire/list?moduleId=${data.moduleId}`,
+    method: "post",
+    data
+  });
+}
+
+// 导出
+export function exportNewMainList(data, name) {
+  return postBlob({
+    url: '/shop/sale-ret/zfire/list/export',
+    data,
+    name
+  })
+}

+ 165 - 0
src/api/material-system/shop/sale-sheet.js

@@ -0,0 +1,165 @@
+import request,{postBlob} from '@/utils/request'
+
+// 新增网点销售单
+export function addSaleSheet(params) {
+  return request({
+    url: '/shop/sale/add',
+    method: 'post',
+    data: params
+  })
+}
+
+// 编辑网点销售单
+export function editSaleSheet(params) {
+  return request({
+    url: '/shop/sale/update',
+    method: 'post',
+    data: params
+  })
+}
+
+// 获取网点销售单信息
+export function getSaleSheet(params) {
+  return request({
+    url: '/shop/sale/detail',
+    method: 'get',
+    params
+  })
+}
+
+// 获取网点销售单列表
+export function getSaleSheetList(params) {
+  return request({
+    url: '/shop/sale/list',
+    method: 'get',
+    params
+  })
+}
+
+// 获取网点辅材列表
+export function getGoodsList(params) {
+  return request({
+    url: '/shop/goods/list',
+    method: 'get',
+    params
+  })
+}
+
+// 审核网点销售单
+export function confirmSaleSheet(params) {
+  return request({
+    url: '/shop/sale/confirm',
+    method: 'post',
+    params
+  })
+}
+
+// 反审网点销售单
+export function unAuditSaleSheet(params) {
+  return request({
+    url: '/shop/sale/unAudit',
+    method: 'post',
+    params
+  })
+}
+
+// 下推网点销售单
+export function pushSaleSheet(params) {
+  return request({
+    url: '/shop/sale/push',
+    method: 'post',
+    params
+  })
+}
+
+// 删除网点销售单
+export function delSaleSheet(params) {
+  return request({
+    url: '/shop/sale/del',
+    method: 'post',
+    params
+  })
+}
+
+// 获取分类列表
+export function getCategoryList(params) {
+  return request({
+    url: '/sys/category/list',
+    method: 'get',
+    params
+  })
+}
+
+// 获取客户列表
+export function getCustomerList(params) {
+  return request({
+    url: '/k3/customer/search',
+    method: 'get',
+    params
+  })
+}
+
+// 改变支付方式
+export function changePay(params) {
+  return request({
+    url: '/shop/sale/change/payType',
+    method: 'post',
+    params
+  })
+}
+
+// 查询二维码支付状态
+export function checkPay(params) {
+  return request({
+    url: '/shop/sale/query/pay/status',
+    method: 'get',
+    params
+  })
+}
+
+// 网点支付配置列表
+export function payConfigList(params) {
+  return request({
+    url: '/shop/sale/pay-config-list',
+    method: 'get',
+    params
+  })
+}
+
+// 销售单类型统计
+export function salesOrderType(params) {
+  return request({
+    url: '/shop/sale/type/count',
+    method: 'get',
+    params
+  })
+}
+
+// 确认提货
+export function confirmDelivery(params) {
+  return request({
+    url: '/worker/sales/confirmDelivery',
+    method: 'post',
+    params
+  })
+}
+
+
+
+export function getNewSaleSheetList(data) {
+  console.log(data,999);
+  return request({
+    url: `/shop/sale/zfire/list?moduleId=${data.moduleId}`,
+    method: "post",
+    data
+  });
+}
+
+// 导出
+export function exportNewSaleSheetList(data, name) {
+  return postBlob({
+    url: '/shop/sale/zfire/list/export',
+    data,
+    name
+  })
+}

+ 182 - 0
src/api/material-system/shop/transfer-sheet.js

@@ -0,0 +1,182 @@
+import request,{postBlob} from '@/utils/request'
+
+// 新增调拨单
+export function addOrder(params) {
+  return request({
+    url: '/shop/stock/transfer/add',
+    method: 'post',
+    data: params
+  })
+}
+
+// 审核直接调拨单
+export function examineOrder(params) {
+  return request({
+    url: '/shop/stock/transfer/confirm',
+    method: 'post',
+    params
+  })
+}
+
+// 反审直接调拨单
+export function unAuditOrder(params) {
+  return request({
+    url: '/shop/stock/transfer/unAudit',
+    method: 'post',
+    params
+  })
+}
+
+// 查询直接调拨单
+export function queryOrder(params) {
+  return request({
+    url: '/shop/stock/transfer/query',
+    method: 'post',
+    params
+  })
+}
+
+// 删除调拨单
+export function delOrder(params) {
+  return request({
+    url: '/shop/stock/transfer/del',
+    method: 'post',
+    params
+  })
+}
+
+// 编辑调拨单
+export function editOrder(params) {
+  return request({
+    url: '/shop/stock/transfer/update',
+    method: 'post',
+    data: params
+  })
+}
+
+// 获取调拨单详情
+export function getOrderDetail(params) {
+  return request({
+    url: '/shop/stock/transfer/detail',
+    method: 'get',
+    params
+  })
+}
+
+// 获取直接调拨单列表
+export function getMainList(params) {
+  return request({
+    url: '/shop/stock/transfer/list',
+    method: 'get',
+    params
+  })
+}
+
+// 获取网点资料列表
+export function getShopList(params) {
+  return request({
+    url: '/shop/master/list',
+    method: 'get',
+    params
+  })
+}
+
+// 获取网点资料列表
+export function getTransferShopList(params) {
+  return request({
+    url: '/shop/master/transfer-list',
+    method: 'get',
+    params
+  })
+}
+
+// 仓库列表
+export function getStockList(params) {
+  return request({
+    url: '/shop/master/shop-stock',
+    method: 'get',
+    params
+  })
+}
+
+// 商品列表
+export function getGoodsList(params) {
+  return request({
+    url: '/shop/stock/list',
+    method: 'get',
+    params
+  })
+}
+
+// 获取调拨单列表
+export function getOrderList(params) {
+  return request({
+    url: '/shop/stock/transfer/c-list',
+    method: 'get',
+    params
+  })
+}
+
+// 提交调拨单
+export function submitOrder(params) {
+  return request({
+    url: '/shop/stock/transfer/submit',
+    method: 'get',
+    params
+  })
+}
+
+// 撤消调拨单
+export function revokeOrder(params) {
+  return request({
+    url: '/shop/stock/transfer/revoke',
+    method: 'get',
+    params
+  })
+}
+
+// 审核调拨单
+export function confirmOrder(params) {
+  return request({
+    url: '/shop/stock/transfer/cooperate/confirm',
+    method: 'get',
+    params
+  })
+}
+
+export function getNewMainList(data) {
+  console.log(data,999);
+  return request({
+    url: `/shop/stock/transfer/zfire/list?moduleId=${data.moduleId}`,
+    method: "post",
+    data
+  });
+}
+
+// 导出
+export function exportNewMainList(data, name) {
+  return postBlob({
+    url: '/shop/stock/transfer/zfire/list/export',
+    data,
+    name
+  })
+}
+
+export function getNewOrderList(data) {
+  console.log(data,999);
+  return request({
+    url: `/shop/stock/transfer/c/zfire/list?moduleId=${data.moduleId}`,
+    method: "post",
+    data
+  });
+}
+
+// 导出
+export function exportNewOrderList(data, name) {
+  return postBlob({
+    url: '/shop/stock/transfer/zfire/list/export',
+    data,
+    name
+  })
+}
+

+ 91 - 0
src/api/material-system/shop/work-install-data.js

@@ -0,0 +1,91 @@
+import request,{postBlob} from '@/utils/request'
+
+// 工单安装数据列表
+export function getWorkInstallDataList(params) {
+  return request({
+    url: '/shop/work-install-data/list',
+    method: 'get',
+    params
+  })
+}
+
+// 工单安装数据详情
+export function getWorkInstallDataDetail(params) {
+  return request({
+    url: '/shop/work-install-data/detail',
+    method: 'get',
+    params
+  })
+}
+
+// 新增工单安装数据
+export function addWorkInstallData(params) {
+  return request({
+    url: '/shop/work-install-data/add',
+    method: 'post',
+    data: params
+  })
+}
+
+// 修改工单安装数据
+export function editWorkInstallData(params) {
+  return request({
+    url: '/shop/work-install-data/update',
+    method: 'post',
+    data: params
+  })
+}
+
+// 工单安装数据提交
+export function submitWorkInstallData(params) {
+  return request({
+    url: '/shop/work-install-data/submit',
+    method: 'get',
+    params
+  })
+}
+
+// 工单安装数据撤消
+export function revokeWorkInstallData(params) {
+  return request({
+    url: '/shop/work-install-data/revoke',
+    method: 'get',
+    params
+  })
+}
+
+// 工单安装数据审核
+export function confirmWorkInstallData(params) {
+  return request({
+    url: '/shop/work-install-data/confirm',
+    method: 'get',
+    params
+  })
+}
+
+// 工单安装数据删除
+export function delWorkInstallData(params) {
+  return request({
+    url: '/shop/work-install-data/del',
+    method: 'get',
+    params
+  })
+}
+
+export function getNewWorkInstallDataList(data) {
+  console.log(data,999);
+  return request({
+    url: `/shop/work-install-data/zfire/list?moduleId=${data.moduleId}`,
+    method: "post",
+    data
+  });
+}
+
+// 导出
+export function exportNewWorkInstallDataList(data, name) {
+  return postBlob({
+    url: '/shop/work-install-data/zfire/list/export',
+    data,
+    name
+  })
+}

+ 4 - 1
src/global-text-processor.js

@@ -228,7 +228,10 @@ export const GlobalTextProcessor = {
 
 export function translaBeforeRegistration(cb) {
   window.Vue_Translation_Of_Text_Type = window.localStorage.getItem('Vue_Translation_Of_Text_Type')
-  if (window?.Vue_Translation_Of_Text_Type && ['en', 'ar', 'ru', 'ja'].includes(window?.Vue_Translation_Of_Text_Type)) {
+  if (
+    window?.Vue_Translation_Of_Text_Type &&
+    ['en', 'ar', 'tr', 'ru', 'ja'].includes(window?.Vue_Translation_Of_Text_Type)
+  ) {
     Vue.use(GlobalTextProcessor) // 注册插件
     axios
       .post(WindowsTranslateApi + '/api/v1/common/readTranslationOfText', {

+ 3 - 0
src/layout/components/Navbar.vue

@@ -75,6 +75,9 @@
             <el-dropdown-item divided @click.native="$setLanguage('ar')">
               <span style="display: block">阿拉伯文</span>
             </el-dropdown-item>
+            <el-dropdown-item divided @click.native="$setLanguage('tr')">
+              <span style="display: block">土耳其</span>
+            </el-dropdown-item>
           </el-dropdown-menu>
         </el-dropdown>
         <el-dropdown class="user-container" trigger="click">

+ 479 - 0
src/views/auxiliaryFittings/shop/components/PurchaseApplyArea.vue

@@ -0,0 +1,479 @@
+<template>
+  <el-form
+    ref="dataForm"
+    v-loading="loading"
+    class="form"
+    :model="dataForm"
+    :rules="dataFormRules"
+    label-position="left"
+    label-width="80px"
+  >
+    <el-form-item v-if="formDisabled" label="单据编号" prop="sheetId">
+      <el-input disabled :value="dataForm.sheetId" />
+    </el-form-item>
+    <el-row :gutter="20">
+      <el-col :span="8">
+        <el-form-item label="网点" prop="shopId">
+          <el-select v-model="dataForm.shopId" :disabled="formDisabled" placeholder="请选择网点" style="width: 100%">
+            <el-option
+              v-for="(item, index) in getAuthShop(null, dataForm)"
+              :key="index"
+              :label="shopLabelStrHandle(item)"
+              :value="item.shopId"
+            />
+          </el-select>
+        </el-form-item>
+      </el-col>
+      <el-col :span="8">
+        <el-form-item label="供应商" prop="venderId">
+          <el-select
+            v-model="dataForm.venderId"
+            filterable
+            :disabled="formDisabled"
+            placeholder="请选择供应商"
+            style="width: 100%"
+            @change="getVenderGoodsList"
+          >
+            <el-option
+              v-for="(item, index) in venderList"
+              :key="index"
+              :label="vendorLabelStrHandle(item)"
+              :value="item.venderId"
+            />
+          </el-select>
+        </el-form-item>
+      </el-col>
+      <el-col :span="8">
+        <el-form-item label="状态" prop="flag">
+          <el-input disabled :value="sheetFlagStr('label', dataForm.flag)" />
+        </el-form-item>
+      </el-col>
+    </el-row>
+    <el-form-item label="备注" prop="notes3">
+      <el-input
+        v-model="dataForm.notes3"
+        autocomplete="off"
+        placeholder="备注"
+        :disabled="inputParam.openType === 'view'"
+      />
+    </el-form-item>
+    <el-row>
+      <el-col>
+        <el-divider>采购明细</el-divider>
+      </el-col>
+      <el-col>
+        <el-button
+          size="small"
+          :disabled="inputParam.openType === 'view' || goodsList.length === 0"
+          @click="innerVisible = true"
+          >添加商品</el-button
+        >
+        <el-table
+          ref="goodsTable"
+          :data="dataForm.items"
+          max-height="500"
+          size="mini"
+          border
+          header-cell-class-name="headerRowColor"
+          class="detail-table"
+          show-summary
+          :summary-method="getSummaries"
+        >
+          <el-table-column prop="goodsId" label="辅材编号" />
+          <el-table-column prop="goodsName" label="辅材名称" width="230" />
+          <el-table-column prop="estimateCost" label="预估进价" header-align="left" align="center">
+            <template slot-scope="{ $index, row }">
+              <label v-if="inputParam.openType === 'view'">{{ row.estimateCost + ' 元/' + row.measureUnit }}</label>
+              <el-form-item
+                v-else
+                style="margin: 18px 0"
+                label-width="0"
+                size="mini"
+                :prop="'items.' + $index + '.estimateCost'"
+                :rules="dataFormRules.estimateCost"
+              >
+                <el-input v-model="row.estimateCost" size="mini" @change="changeCostValue($index, row)">
+                  <template slot="suffix">{{ ' 元/' + row.measureUnit }}</template>
+                </el-input>
+              </el-form-item>
+            </template>
+          </el-table-column>
+          <el-table-column prop="purchaseQty" label="订货数量" header-align="left" align="center" width="120">
+            <template slot-scope="{ $index, row }">
+              <label v-if="inputParam.openType === 'view'">{{ row.purchaseQty + ' /' + row.measureUnit }}</label>
+              <el-form-item
+                v-else
+                style="margin: 18px 0"
+                label-width="0"
+                size="mini"
+                :prop="'items.' + $index + '.purchaseQty'"
+                :rules="dataFormRules.purchaseQty"
+              >
+                <el-input v-model="row.purchaseQty" size="mini" @change="changeCostValue($index, row)">
+                  <template slot="suffix">{{ ' /' + row.measureUnit }}</template>
+                </el-input>
+              </el-form-item>
+            </template>
+          </el-table-column>
+          <el-table-column prop="estimateCostValue" label="预估金额" header-align="left" align="center">
+            <template slot-scope="{ $index, row }">
+              <label>{{ row.estimateCostValue + ' 元' }}</label>
+            </template>
+          </el-table-column>
+          <el-table-column prop="measureUnit" label="采购单位" />
+          <el-table-column prop="unitQty" label="转换系数" />
+          <el-table-column prop="salesUnit" label="售卖单位" />
+          <el-table-column prop="productModel" label="商品型号" min-width="100" />
+          <el-table-column prop="specification" label="规格" min-width="80" />
+          <el-table-column v-if="inputParam.openType !== 'view'" fixed="right" align="center" label="">
+            <template slot-scope="scope">
+              <el-button type="text" @click="delItem(scope.$index)">删除</el-button>
+            </template>
+          </el-table-column>
+        </el-table>
+        <el-row style="margin-top: 15px">
+          <el-col :span="24"
+            ><div>共 {{ goodsTotalCount }} 条记录</div></el-col
+          >
+        </el-row>
+      </el-col>
+    </el-row>
+    <div style="text-align: right">
+      <el-button @click="cancelForm">取 消</el-button>
+      <el-button v-if="checkBtn('add')" type="primary" :disabled="saveBtn" @click="submitForm('add')">保 存</el-button>
+      <el-button v-if="checkBtn('edit')" type="primary" :disabled="saveBtn" @click="submitForm('edit')"
+        >保 存</el-button
+      >
+      <el-button v-if="checkBtn('submit')" type="success" @click="submitSheet(dataForm.sheetId)">提 交</el-button>
+    </div>
+    <el-dialog
+      width="70%"
+      title="商品列表"
+      :visible.sync="innerVisible"
+      :close-on-click-modal="false"
+      @close="$refs.goodsTable.clearSelection()"
+    >
+      <el-input
+        v-model="searchGoods"
+        size="small"
+        placeholder="输入 辅材名称 或 规格 模糊搜索"
+        style="margin-bottom: 5px"
+        :clearable="true"
+      />
+      <el-table
+        ref="goodsTable"
+        :data="
+          goodsList.filter(
+            data =>
+              !searchGoods ||
+              data.goodsName.toLowerCase().includes(searchGoods.toLowerCase()) ||
+              data.specification.toLowerCase().includes(searchGoods.toLowerCase())
+          )
+        "
+        :row-key="getRowKeys"
+        height="400"
+        size="mini"
+        border
+        header-cell-class-name="headerRowColor"
+        style="width: 100%"
+      >
+        <el-table-column type="selection" width="55" :reserve-selection="true" />
+        <el-table-column prop="goodsId" label="辅材编号" />
+        <el-table-column prop="goodsCode" label="辅材代码" />
+        <el-table-column prop="goodsName" label="辅材名称" />
+        <el-table-column prop="categoryName" label="小类名称" />
+        <el-table-column prop="productModel" label="商品型号" />
+        <el-table-column prop="specification" label="规格" />
+        <el-table-column prop="qty" label="库存数量" />
+      </el-table>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="selGoods">确 定</el-button>
+      </div>
+    </el-dialog>
+  </el-form>
+</template>
+
+<script>
+import {
+  addPurchaseApplySheet,
+  submitPurchaseApplySheet,
+  editPurchaseApplySheet,
+  getPurchaseApplySheet
+} from '@/api/material-system/shop/purchase-apply-sheet'
+import { getVenderGoodsList, getVenderList } from '@/api/material-system/vender'
+import { computeVal } from '@/api/material-system/common'
+
+export default {
+  name: 'PurchaseApplyArea',
+  props: {
+    inputParam: {
+      type: Object,
+      default: function () {
+        return {
+          openType: 'add',
+          sheetId: ''
+        }
+      }
+    }
+  },
+  data() {
+    const validatePurchaseQty = (rule, value, callback) => {
+      this.saveBtn = true
+      if (Number.isNaN(parseFloat(value))) {
+        return callback(new Error('请输入数字值'))
+      }
+      if (parseFloat(value) <= 0) {
+        return callback(new Error('必须大于0'))
+      }
+      this.saveBtn = false
+      callback()
+    }
+    return {
+      loading: true,
+      dataForm: {
+        sheetId: '', // 单据ID
+        shopId: '', // 网点ID
+        shopName: '', // 网点名称
+        venderId: '', // 供应商ID
+        venderName: '', // 供应商名称
+        notes3: '', // 备注
+        flag: '',
+        items: [] // 关系辅材列表
+      },
+      dataFormRules: {
+        shopId: [{ required: true, message: '请选择网点', trigger: 'change' }],
+        purchaseQty: [{ validator: validatePurchaseQty, trigger: 'blur' }]
+      },
+      goodsList: [], // 商品列表
+      venderList: [], // 供应商列表
+      innerVisible: false,
+      searchGoods: '',
+      saveBtn: false // 保存按钮状态
+    }
+  },
+  computed: {
+    formDisabled() {
+      return this.inputParam.openType === 'view' || this.dataForm.sheetId !== ''
+    },
+    goodsTotalCount: function () {
+      return this.dataForm && this.dataForm.items ? this.dataForm.items.length : 0
+    }
+  },
+  watch: {
+    // 网点变动重新执行辅材获取资料
+    'shopPurchaseForm.shopId': function () {
+      this.getVenderGoodsList(this.dataForm.venderId)
+    },
+    searchGoods: function () {
+      this.$refs.goodsTable.clearSelection()
+    }
+  },
+  mounted() {
+    this.getVenderList()
+    this.getDetail()
+  },
+  methods: {
+    getDetail(id) {
+      this.loading = true
+      const openType = this.inputParam.openType
+      const sheetId = id || this.inputParam.sheetId
+      if (openType !== 'add') {
+        getPurchaseApplySheet({ sheetId }).then(res => {
+          this.setDataForm(res.data)
+          if (openType !== 'view') {
+            this.getVenderGoodsList(res.data.venderId, false)
+          }
+          this.loading = false
+        })
+      } else {
+        this.loading = false
+      }
+    },
+    cancelForm() {
+      this.$parent.getList()
+      this.$emit('update:isOpen', false)
+    },
+    submitForm(type) {
+      if (this.dataForm.items && this.dataForm.items.length === 0) {
+        this.$errorMsg('请添加商品后再保存!')
+        return
+      }
+      this.$refs.dataForm.validate(valid => {
+        if (valid) {
+          if (type === 'edit') {
+            editPurchaseApplySheet(this.dataForm).then(() => {
+              this.$successMsg('保存成功')
+            })
+          } else {
+            this.dataForm.shopName = this.getArraysName(this.authShop, this.dataForm, 'shopId', 'shopName')
+            this.dataForm.venderName = this.getArraysName(this.venderList, this.dataForm, 'venderId', 'venderName')
+            addPurchaseApplySheet(this.dataForm).then(res => {
+              this.inputParam.openType = 'edit'
+              this.setDataForm(res.data)
+              this.$successMsg('保存成功')
+            })
+          }
+        }
+      })
+    },
+    setDataForm(data) {
+      this.dataForm = {
+        sheetId: data.sheetId, // 单据编号
+        shopId: data.shopId, // 网点ID
+        venderId: data.venderId, // 供应商Id
+        flag: data.flag,
+        notes: data.notes, // 备注
+        items: data.items // 关系商品列表
+      }
+    },
+    checkBtn(type) {
+      const typeMap = {
+        add: this.inputParam.openType === type,
+        edit: this.dataForm.flag === 0 && this.inputParam.openType === type,
+        revoke: this.dataForm.flag === 1,
+        submit: this.dataForm.flag === 0 && this.dataForm.sheetId !== ''
+      }
+      // 检查按钮权限
+      return this.checkBtnRole(type) && typeMap[type]
+    },
+    // 获取供应商列表
+    getVenderList() {
+      getVenderList({ pageNum: 1, pageSize: -1, flag: 1 }).then(res => {
+        this.venderList = res.data.records
+      })
+    },
+    // 获取供应商关系辅材列表
+    getVenderGoodsList(val, clear = true) {
+      if (clear) {
+        this.dataForm.items = []
+      }
+      getVenderGoodsList({
+        pageNum: 1,
+        pageSize: -1,
+        venderId: val,
+        flag: 1,
+        status: 1,
+        shopId: this.dataForm.shopId
+      }).then(res => {
+        this.goodsList = res.data.records
+      })
+    },
+    // 选中辅材添加到表单中
+    selGoods() {
+      this.searchGoods = ''
+      this.$refs.goodsTable.selection.forEach(value => {
+        const index = this.dataForm.items.findIndex(item => {
+          return item.goodsId === value.goodsId
+        })
+        // 添加不在列表的商品
+        if (index < 0) {
+          this.dataForm.items.push({
+            goodsId: value.goodsId,
+            goodsName: value.goodsName,
+            ndays: value.ndays,
+            purchaseQty: 0,
+            estimateCost: 0,
+            estimateCostValue: 0,
+            measureUnit: value.measureUnit,
+            unitQty: value.unitQty,
+            salesUnit: value.salesUnit,
+            productModel: value.productModel,
+            specification: value.specification
+          })
+        }
+      })
+      this.$refs.goodsTable.clearSelection()
+      this.innerVisible = false
+    },
+    // 删除明细
+    delItem(index) {
+      this.dataForm.items.splice(index, 1)
+    },
+    getRowKeys(row) {
+      return row.goodsId
+    },
+    // 提交 采购申请单
+    submitSheet(sheetId) {
+      this.$confirm(
+        `此操作将提交 ${sheetId} 单据,<span style="color: #ff0000;">当前内容如果已修改将忽略保存</span>,是否继续?`,
+        '提示',
+        {
+          confirmButtonText: '确定',
+          cancelButtonText: '取消',
+          type: 'warning',
+          dangerouslyUseHTMLString: true
+        }
+      )
+        .then(() => {
+          this.loading = true
+          submitPurchaseApplySheet({ sheetId: sheetId }).then(
+            () => {
+              setTimeout(() => {
+                this.inputParam.openType = 'view'
+                this.getDetail(sheetId)
+                this.$successMsg('提交成功')
+                this.loading = false
+              }, 2000)
+            },
+            () => {
+              this.loading = false
+            }
+          )
+        })
+        .catch(() => console.log('取消'))
+    },
+    // 预估进价或申请数量变动
+    changeCostValue(index, row) {
+      computeVal({
+        frontVal: row.purchaseQty,
+        afterVal: row.estimateCost,
+        operator: '*',
+        scale: 4
+      }).then(res => {
+        this.dataForm.items[index].estimateCostValue = res.data
+      })
+    },
+    getSummaries(param) {
+      const { columns, data } = param
+      const sums = []
+      columns.forEach((column, index) => {
+        if (index === 0) {
+          sums[index] = '合计'
+          return
+        }
+        const values = data.map(item => Number(item[column.property]))
+        if (column.property === 'estimateCostValue') {
+          let count = 0
+          sums[index] = values.reduce((prev, curr) => {
+            const suffix = (curr + '').split('.')
+            if (suffix.length > 1) {
+              count = suffix[1].length > count ? suffix[1].length : count
+            }
+            const value = Number(curr)
+            if (!isNaN(value)) {
+              return prev + curr
+            } else {
+              return prev
+            }
+          }, 0)
+          sums[index] = parseFloat(sums[index]).toFixed(count)
+        }
+      })
+      return sums
+    }
+  }
+}
+</script>
+
+<style lang="scss" scoped>
+.detail-table {
+  width: 100%;
+  margin: 15px 0;
+  ::v-deep .el-input__suffix-inner {
+    color: red;
+  }
+}
+.form {
+  padding: 0 20px;
+}
+</style>

+ 559 - 0
src/views/auxiliaryFittings/shop/purchase-apply-sheet/index.vue

@@ -0,0 +1,559 @@
+<template>
+  <div style="height: 100%">
+    <template v-if="purchaseApplyArea && purchaseApplyAreaParam.openType === 'add'">
+      <el-page-header class="pdt" content="新增采购申请单" @back="backUpdPage" />
+      <el-divider />
+    </template>
+    <template v-else-if="purchaseApplyArea && purchaseApplyAreaParam.openType !== 'add'">
+      <el-page-header
+        class="pdt"
+        :content="purchaseApplyAreaParam.openType === 'view' ? '查看采购申请单' : '编辑采购申请单'"
+        @back="backUpdPage"
+      />
+      <el-divider />
+    </template>
+    <div v-show="!purchaseApplyArea" style="height: 100%">
+      <template-page
+        ref="pageRef"
+        :loading="listLoading"
+        :getList="getList"
+        :exportList="exportList"
+        :columnParsing="columnParsing"
+        :operation="operation()"
+        :optionsEvensGroup="optionsEvensGroup"
+        :tableAttributes="tableAttributes"
+        :tableEvents="tableEvents"
+      >
+      </template-page>
+      <!-- <div class="screen-container">
+        <div class="top clearfix">
+          <div class="title fl">条件筛选</div>
+        </div>
+        <el-form
+          ref="screenForm"
+          :model="screenForm"
+          label-width="90px"
+          size="small"
+          label-position="left"
+        >
+          <el-row :gutter="20">
+            <el-col v-if="showShopInfo" :xs="24" :sm="12" :lg="6">
+              <el-form-item label="网点" prop="shopId">
+                <el-select
+                  v-model="screenForm.shopId"
+                  filterable
+                  style="width: 100%;"
+                  size="small"
+                >
+                  <el-option label="全部网点" value="" />
+                  <el-option
+                    v-for="(item, index) in authShop"
+                    :key="index"
+                    :label="shopLabelStrHandle(item)"
+                    :value="item.shopId"
+                  />
+                </el-select>
+              </el-form-item>
+            </el-col>
+            <el-col :xs="24" :sm="12" :lg="6">
+              <el-form-item label="单据编号" prop="sheetId">
+                <el-input
+                  v-model="screenForm.sheetId"
+                  placeholder="单据编号"
+                  size="small"
+                />
+              </el-form-item>
+            </el-col>
+            <el-col v-if="userType !== 3" :xs="24" :sm="12" :lg="6">
+              <el-form-item label="供应商名称" prop="keyword">
+                <el-input
+                  v-model="screenForm.keyword"
+                  placeholder="供应商名称"
+                  size="small"
+                />
+              </el-form-item>
+            </el-col>
+            <el-col :xs="24" :sm="12" :lg="6">
+              <el-form-item label="单据状态" prop="flag">
+                <el-select
+                  v-model="screenForm.flag"
+                  placeholder="单据状态"
+                  size="small"
+                >
+                  <el-option label="全部状态" value="" />
+                  <el-option
+                    v-for="(item, index) in sheetFlagStr('select', null, [
+                      0,
+                      1
+                    ])"
+                    :key="index"
+                    :label="item.label"
+                    :value="item.value"
+                  />
+                </el-select>
+              </el-form-item>
+            </el-col>
+            <el-col :xs="24" :sm="12" :lg="12">
+              <el-form-item label="创建日期" prop="createTime">
+                <el-date-picker
+                  v-model="screenForm.createTime"
+                  type="datetimerange"
+                  value-format="yyyy-MM-dd HH:mm:ss"
+                  range-separator="至"
+                  start-placeholder="开始日期"
+                  end-placeholder="结束日期"
+                  size="small"
+                  style="margin-right: 10px;"
+                />
+              </el-form-item>
+            </el-col>
+          </el-row>
+          <el-row>
+            <el-col :xs="12" :sm="12" :lg="12" class="tl">
+              <el-button
+                v-if="checkBtnRole('add')"
+                size="small"
+                type="primary"
+                icon="el-icon-plus"
+                @click="addOrEdit('add')"
+                >新增单据</el-button
+              >
+            </el-col>
+            <el-col :xs="12" :sm="12" :lg="12" class="tr">
+              <el-form-item label="">
+                <el-button size="small" @click="resetScreenForm"
+                  >清空</el-button
+                >
+                <el-button size="small" type="primary" @click="submitScreenForm"
+                  >搜索</el-button
+                >
+              </el-form-item>
+            </el-col>
+          </el-row>
+        </el-form>
+      </div> -->
+
+      <!-- <div class="mymain-container">
+        <div class="table">
+          <el-table
+            v-loading="listLoading"
+            :data="dataList"
+            element-loading-text="Loading"
+            size="mini"
+            border
+            header-cell-class-name="headerRowColor"
+            highlight-current-row
+          >
+            <el-table-column type="expand">
+              <template slot-scope="scope">
+                <el-form label-position="left" inline class="demo-table-expand">
+                  <el-form-item label="备注">
+                    <span>{{ scope.row.notes3 }}</span>
+                  </el-form-item>
+                </el-form>
+              </template>
+            </el-table-column>
+            <el-table-column align="center" label="操作">
+              <template slot-scope="{ row }">
+                <el-dropdown @command="handleCommand">
+                  <el-button type="text">
+                    更多<i class="el-icon-arrow-down el-icon--right" />
+                  </el-button>
+                  <el-dropdown-menu slot="dropdown">
+                    <el-dropdown-item
+                      v-if="checkBtnRole('view')"
+                      icon="el-icon-view"
+                      :command="[row.sheetId, 'view']"
+                      >查看</el-dropdown-item
+                    >
+                    <template v-if="row.flag === 0">
+                      <el-dropdown-item
+                        v-if="checkBtnRole('edit')"
+                        icon="el-icon-edit"
+                        :command="[row.sheetId, 'edit']"
+                        >编辑</el-dropdown-item
+                      >
+                      <el-dropdown-item
+                        v-if="checkBtnRole('submit')"
+                        icon="el-icon-lock"
+                        :command="[row.sheetId, 'submit']"
+                        >提交</el-dropdown-item
+                      >
+                      <el-dropdown-item
+                        v-if="checkBtnRole('del')"
+                        icon="el-icon-delete"
+                        :command="[row.sheetId, 'del']"
+                        >删除</el-dropdown-item
+                      >
+                    </template>
+                    <template v-if="row.flag === 1">
+                      <el-dropdown-item
+                        v-if="checkBtnRole('revoke')"
+                        icon="el-icon-unlock"
+                        :command="[row.sheetId, 'revoke']"
+                        >撤消</el-dropdown-item
+                      >
+                    </template>
+                  </el-dropdown-menu>
+                </el-dropdown>
+              </template>
+            </el-table-column>
+            <el-table-column
+              align="center"
+              label="单号"
+              prop="sheetId"
+              min-width="190"
+            >
+              <template slot-scope="{ row }">
+                <el-link
+                  v-if="checkBtnRole('view')"
+                  type="primary"
+                  :underline="false"
+                  @click="handleCommand([row.sheetId, 'view'])"
+                  >{{ row.sheetId }}</el-link
+                >
+                <span v-else>{{ row.sheetId }}</span>
+              </template>
+            </el-table-column>
+            <template v-if="showShopInfo">
+              <el-table-column
+                align="center"
+                label="网点编号"
+                prop="shopId"
+                width="80"
+              />
+              <el-table-column
+                align="center"
+                label="网点名称"
+                prop="shopName"
+                min-width="140"
+                show-overflow-tooltip
+              />
+            </template>
+            <el-table-column
+              align="center"
+              label="供应商编号"
+              prop="venderId"
+              width="100"
+            />
+            <el-table-column
+              align="center"
+              label="供应商名称"
+              prop="venderName"
+              min-width="140"
+              show-overflow-tooltip
+            />
+            <el-table-column
+              align="center"
+              label="创建人"
+              prop="createBy"
+              show-overflow-tooltip
+            />
+            <el-table-column
+              align="center"
+              label="创建时间"
+              prop="createTime"
+              min-width="160"
+            />
+            <el-table-column
+              align="center"
+              label="状态"
+              class-name="status-col"
+            >
+              <template slot-scope="{ row }">
+                <el-tag :type="row.flag === 0 ? 'success' : 'danger'">{{
+                  sheetFlagStr("label", row.flag)
+                }}</el-tag>
+              </template>
+            </el-table-column>
+          </el-table>
+        </div>
+
+        <div class="pagination clearfix">
+          <div class="fr">
+            <el-pagination
+              :current-page="currentPage"
+              :page-sizes="[10, 20, 30, 50]"
+              :page-size="10"
+              layout="total, sizes, prev, pager, next, jumper"
+              :total="listTotal"
+              @size-change="handleSizeChange"
+              @current-change="handleCurrentChange"
+            />
+          </div>
+        </div>
+      </div> -->
+    </div>
+
+    <!-- 新增编辑单据 -->
+    <purchase-apply-area
+      v-if="purchaseApplyArea"
+      :is-open.sync="purchaseApplyArea"
+      :input-param="purchaseApplyAreaParam"
+      @getList="$refs.pageRef.refreshList()"
+    />
+  </div>
+</template>
+
+<script>
+import {
+  getPurchaseApplySheetList,
+  submitPurchaseApplySheet,
+  revokePurchaseApplySheet,
+  delPurchaseApplySheet,
+  getNewPurchaseApplySheetList,
+  exportNewPurchaseApplySheetList
+} from '@/api/material-system/shop/purchase-apply-sheet'
+import PurchaseApplyArea from '../components/PurchaseApplyArea'
+import TemplatePage from '@/components/template/template-page-1.vue'
+import import_mixin from '@/components/template/import_mixin.js'
+export default {
+  name: 'PurchaseApplySheet',
+  components: { PurchaseApplyArea, TemplatePage },
+  mixins: [import_mixin],
+  data() {
+    return {
+      purchaseApplyArea: false,
+      purchaseApplyAreaParam: {
+        openType: 'add',
+        sheetId: ''
+      },
+      dataList: null, // 列表数据
+      listLoading: false, // 列表加载loading
+      currentPage: 1, // 当前页码
+      pageSize: 10, // 每页数量
+      listTotal: 0, // 列表总数
+      screenForm: {
+        // 筛选表单数据
+        createTime: '', // 创建时间
+        flag: '', // 状态
+        keyword: '', // 关键词
+        sheetId: '', // 单据编号
+        shopId: ''
+      },
+      // 事件组合
+      optionsEvensGroup: [
+        [
+          [
+            {
+              name: '新增单据',
+              click: () => {
+                this.addOrEdit('add')
+              },
+              isRole: this.checkBtnRole('add')
+            }
+          ]
+        ]
+      ],
+      // 表格属性
+      tableAttributes: {
+        // 启用勾选列
+        selectColumn: true,
+        columnExpand: (h, { row, index, columm }) => {
+          return (
+            <div style="padding-left:95px">
+              <el-form label-position="left" inline class="demo-table-expand">
+                <el-form-item label="备注">
+                  <span>{row.notes3}</span>
+                </el-form-item>
+              </el-form>
+            </div>
+          )
+        }
+      },
+      // 表格事件
+      tableEvents: {
+        'selection-change': this.selectionChange
+      },
+      recordSelected: []
+    }
+  },
+  created() {
+    // this.$refs.pageRef.refreshList();
+  },
+  methods: {
+    // 查询列表
+    getList() {
+      this.listLoading = true
+
+      const params = {
+        shopId: this.screenForm.shopId,
+        flag: this.screenForm.flag,
+        venderName: this.screenForm.keyword,
+        sheetId: this.screenForm.sheetId,
+        startTime: this.screenForm.createTime ? this.screenForm.createTime[0] : '',
+        endTime: this.screenForm.createTime ? this.screenForm.createTime[1] : '',
+        pageNum: this.currentPage,
+        pageSize: this.pageSize
+      }
+      getPurchaseApplySheetList(params).then(res => {
+        this.dataList = res.data.records
+        this.listTotal = res.data.total
+        this.listLoading = false
+      })
+    },
+    // 更改每页数量
+    handleSizeChange(val) {
+      this.pageSize = val
+      this.currentPage = 1
+      this.$refs.pageRef.refreshList()
+    },
+    // 更改当前页
+    handleCurrentChange(val) {
+      this.currentPage = val
+      this.$refs.pageRef.refreshList()
+    },
+    // 重置筛选表单
+    resetScreenForm() {
+      this.currentPage = 1
+      this.$refs.pageRef.refreshList()
+    },
+    // 提交筛选表单
+    submitScreenForm() {
+      this.currentPage = 1
+      this.$refs.pageRef.refreshList()
+    },
+    // 新增编辑 采购入库单
+    addOrEdit(type, id) {
+      this.purchaseApplyArea = true
+      this.purchaseApplyAreaParam.openType = type
+      this.purchaseApplyAreaParam.sheetId = id
+    },
+    // 撤消单据
+    revokeSheet(sheetId) {
+      this.$confirm(`此操作将撤消 ${sheetId} 单据, 是否继续?`, '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning'
+      })
+        .then(() => {
+          revokePurchaseApplySheet({ sheetId: sheetId }).then(() => {
+            this.$refs.pageRef.refreshList()
+            this.$successMsg('撤消成功')
+          })
+        })
+        .catch(() => console.log('取消'))
+    },
+    // 删除单据
+    delSheet(sheetId) {
+      this.$confirm(`此操作将删除 ${sheetId} 单据, 是否继续?`, '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning'
+      })
+        .then(() => {
+          delPurchaseApplySheet({ sheetId: sheetId }).then(() => {
+            this.$refs.pageRef.refreshList()
+            this.$successMsg('删除成功')
+          })
+        })
+        .catch(() => console.log('取消'))
+    },
+    // 提交 采购入库单
+    submitSheet(sheetId) {
+      this.$confirm(`此操作将提交 ${sheetId} 单据, 是否继续?`, '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning'
+      })
+        .then(() => {
+          this.listLoading = true
+          submitPurchaseApplySheet({ sheetId: sheetId }).then(
+            () => {
+              setTimeout(() => {
+                this.$refs.pageRef.refreshList()
+                this.$successMsg('提交成功')
+                this.listLoading = false
+              }, 2000)
+            },
+            () => {
+              this.listLoading = false
+            }
+          )
+        })
+        .catch(() => console.log('取消'))
+    },
+    // 操作事件
+    handleCommand(param) {
+      if (param[1] === 'view' || param[1] === 'edit') {
+        this.addOrEdit(param[1], param[0])
+      } else {
+        this[param[1] + 'Sheet'](param[0])
+      }
+    },
+    backUpdPage() {
+      this.$refs.pageRef.refreshList()
+      this.purchaseApplyArea = false
+    },
+    // 列表请求函数
+    getList(...p) {
+      this.recordSelected = []
+      return getNewPurchaseApplySheetList(...p)
+    },
+    // 列表导出函数
+    exportList: exportNewPurchaseApplySheetList,
+    // 表格列解析渲染数据更改
+    columnParsing(item, defaultData) {
+      return defaultData
+    },
+    // 监听勾选变化
+    selectionChange(data) {
+      this.recordSelected = data
+    },
+    operation() {
+      return (h, { row, index, column }) => {
+        return (
+          <div class="operation-btns">
+            <el-dropdown onCommand={p => this.handleCommand(p)}>
+              <el-button type="text">
+                更多
+                <i class="el-icon-arrow-down el-icon--right" />
+              </el-button>
+              <el-dropdown-menu slot="dropdown">
+                {this.checkBtnRole('view') ? (
+                  <el-dropdown-item icon="el-icon-view" command={[row.sheetId, 'view']}>
+                    查看
+                  </el-dropdown-item>
+                ) : null}
+
+                {row.flag === 0 ? (
+                  <div>
+                    {this.checkBtnRole('edit') ? (
+                      <el-dropdown-item icon="el-icon-edit" command={[row.sheetId, 'edit']}>
+                        编辑
+                      </el-dropdown-item>
+                    ) : null}
+
+                    {this.checkBtnRole('submit') ? (
+                      <el-dropdown-item icon="el-icon-lock" command={[row.sheetId, 'submit']}>
+                        提交
+                      </el-dropdown-item>
+                    ) : null}
+
+                    {this.checkBtnRole('del') ? (
+                      <el-dropdown-item icon="el-icon-delete" command={[row.sheetId, 'del']}>
+                        删除
+                      </el-dropdown-item>
+                    ) : null}
+                    {row.flag === 1 && this.checkBtnRole('revoke') ? (
+                      <el-dropdown-item v-if="" icon="el-icon-unlock" command={[row.sheetId, 'revoke']}>
+                        撤消
+                      </el-dropdown-item>
+                    ) : null}
+                  </div>
+                ) : null}
+              </el-dropdown-menu>
+            </el-dropdown>
+          </div>
+        )
+      }
+    }
+  }
+}
+</script>
+
+<style scoped>
+.pdt {
+  padding: 20px 20px 0 20px;
+}
+</style>

+ 1 - 0
src/views/login/index.vue

@@ -94,6 +94,7 @@
                       <el-option label="英文" value="en"></el-option>
                       <el-option label="日文" value="ja"></el-option>
                       <el-option label="阿拉伯文" value="ar"></el-option>
+                      <el-option label="土耳其" value="tr"></el-option>
                     </el-select>
                   </el-form-item>
                 </div>