|
@@ -35,6 +35,8 @@ import byTable from "/src/components/byTable/index";
|
|
|
import PrintSKU from "/src/views/group/finance/summary/printSKU.vue";
|
|
|
import PrintBOM from "/src/views/group/finance/summary/printBOM.vue";
|
|
|
import PrintOrder from "/src/views/group/finance/summary/printOrder.vue";
|
|
|
+import { copyText } from "vue3-clipboard";
|
|
|
+import { ElMessage } from "element-plus";
|
|
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
const departmentList = ref([{ dictKey: "0", dictValue: "胜德体育" }]);
|
|
@@ -124,7 +126,7 @@ const config = computed(() => {
|
|
|
{
|
|
|
attrs: {
|
|
|
label: "操作",
|
|
|
- width: 80,
|
|
|
+ width: 140,
|
|
|
align: "center",
|
|
|
fixed: "right",
|
|
|
},
|
|
@@ -132,6 +134,17 @@ const config = computed(() => {
|
|
|
return [
|
|
|
{
|
|
|
attrs: {
|
|
|
+ label: "复制单号",
|
|
|
+ type: "primary",
|
|
|
+ text: true,
|
|
|
+ },
|
|
|
+ el: "button",
|
|
|
+ click() {
|
|
|
+ clickCopyWLNCode(row);
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ attrs: {
|
|
|
label: "打印",
|
|
|
type: "primary",
|
|
|
text: true,
|
|
@@ -204,6 +217,20 @@ const clickPrint = (row) => {
|
|
|
rowData.value = row;
|
|
|
openPrint.value = true;
|
|
|
};
|
|
|
+const clickCopyWLNCode = (row) => {
|
|
|
+ if (row.idGroupConcat) {
|
|
|
+ ElMessage("复制数据中,请稍后");
|
|
|
+ proxy.post("/statementOfAccount/getOrderWlnCodeStr", row.idGroupConcat.split(",")).then((res) => {
|
|
|
+ copyText(res, undefined, (error) => {
|
|
|
+ if (error) {
|
|
|
+ ElMessage.error(`复制失败: ${error} !`);
|
|
|
+ } else {
|
|
|
+ ElMessage.success(`复制成功!`);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|