From b4e14e627c761a3798bec08c6bf1260f013ad3b2 Mon Sep 17 00:00:00 2001
From: 王震 <10952869+daywangzhen@user.noreply.gitee.com>
Date: 星期一, 06 十一月 2023 09:23:57 +0800
Subject: [PATCH] new file: src/views/quality/rawMaterial/ExportMaterial.vue new file: src/views/warehouse/FinishedDelivery/index.vue new file: src/views/warehouse/FinishedGoods/index.vue new file: src/views/warehouse/FinishedWarehousing/index.vue
---
src/views/quality/rawMaterial/ExportMaterial.vue | 93 ++++++++++
src/views/warehouse/FinishedWarehousing/index.vue | 144 ++++++++++++++++
src/views/warehouse/FinishedDelivery/index.vue | 124 +++++++++++++
src/views/warehouse/FinishedGoods/index.vue | 147 ++++++++++++++++
4 files changed, 508 insertions(+), 0 deletions(-)
diff --git a/src/views/quality/rawMaterial/ExportMaterial.vue b/src/views/quality/rawMaterial/ExportMaterial.vue
new file mode 100644
index 0000000..131802e
--- /dev/null
+++ b/src/views/quality/rawMaterial/ExportMaterial.vue
@@ -0,0 +1,93 @@
+<template>
+ <div style="width:400px">
+ <el-button type="primary" @click="handleExcel">涓嬭浇 excel</el-button>
+ <el-button type="success" @click="handleExcel1">涓嬭浇 澶氱骇琛ㄥごexcel</el-button>
+ </div>
+
+ </template>
+
+ <script>
+ export default {
+ name: 'HelloWorld',
+ data(){
+ return {}
+ },
+ methods: {
+ handleExcel() {
+ let opt = {
+ title: '鏂囨。鏍囬',
+ column: [{
+ label: '鏍囬',
+ prop: 'title'
+ }],
+ data: [{
+ title: "娴嬭瘯鏁版嵁1"
+ }, {
+ title: "娴嬭瘯鏁版嵁2"
+ }]
+ }
+ console.log(this.$Export);
+ this.$Export.excel({
+ title: opt.title ,
+ columns: opt.column,
+ data: opt.data
+ });
+ },
+ handleExcel1() {
+ let opt = {
+ title: '鏂囨。鏍囬',
+ column: [{
+ label:'澶氱骇琛ㄥご',
+ prop:'header',
+ children:[
+ {
+ label: '鏍囬1',
+ prop: 'title1'
+ },{
+ label: '鏍囬2',
+ prop: 'title2'
+ }
+ ]
+ }],
+ data: [{
+ title1: "娴嬭瘯鏁版嵁1",
+ title2: "娴嬭瘯鏁版嵁2"
+ }, {
+ title1: "娴嬭瘯鏁版嵁2",
+ title2: "娴嬭瘯鏁版嵁2"
+ }]
+ }
+ this.$Export.excel({
+ title: opt.title,
+ columns: opt.column,
+ data: opt.data
+ });
+ }
+ },
+
+ props: {
+ msg: String
+
+
+ }
+ }
+ </script>
+
+ <!-- Add "scoped" attribute to limit CSS to this component only -->
+ <style scoped>
+ h3 {
+ margin: 40px 0 0;
+ }
+ ul {
+ list-style-type: none;
+ padding: 0;
+ }
+ li {
+ display: inline-block;
+ margin: 0 10px;
+ }
+ a {
+ color: #42b983;
+ }
+ </style>
+
\ No newline at end of file
diff --git a/src/views/warehouse/FinishedDelivery/index.vue b/src/views/warehouse/FinishedDelivery/index.vue
new file mode 100644
index 0000000..18d3879
--- /dev/null
+++ b/src/views/warehouse/FinishedDelivery/index.vue
@@ -0,0 +1,124 @@
+<template>
+ <div class="mod-config">
+ <basic-container>
+ <ttable
+ :table="table"
+ :isShowHide="true"
+ :prelang="prelang"
+ :options="options"
+ ref="processconfiguration"
+ >
+ <template #toolbar></template>
+ </ttable>
+ </basic-container>
+ </div>
+</template>
+
+<script>
+import ttable from '@/views/common/ztt-table.vue'
+export default {
+ data(){
+ return {
+ prelang: 'operation',
+ dataListLoading: false,
+ options: {
+ height: 300, // 榛樿楂樺害-涓轰簡琛ㄥご鍥哄畾
+ stripe: true, // 鏄惁涓烘枒椹汗 table
+ highlightCurrentRow: false, // 鏄惁瑕侀珮浜綋鍓嶈
+ border: true, // 鏄惁鏈夌旱鍚戣竟妗�
+ lazy: false, // 鏄惁闇�瑕佹噿鍔犺浇
+ fit: true, // 鍒楃殑瀹藉害鏄惁鑷拺寮�
+ multiSelect: true, //
+ seqNo: true,
+ isShowHide: true, // 鏄惁鏄剧ず鏄惧奖鎸夐挳
+ isRefresh: true, // 鏄惁鏄剧ず鍒锋柊鎸夐挳
+ isSearch: true, // 楂樼骇鏌ヨ鎸夐挳
+ defaultOrderBy: { column: 'createTime', direction: 'desc' }
+ },
+ table: {
+ total: 0,
+ currentPage: 1,
+ pageSize: 20,
+ data: [],
+ // 鏍囬
+ column: [
+ {
+ minWidth: '140',
+ prop: 'oo',
+ label: '璁㈠崟缂栧彿',
+ isTrue: true,
+ isSearch: true,
+ searchInfoType: 'text',
+ },{
+ minWidth: '140',
+ prop: 'materhhooial',
+ label: '璐ㄩ噺杩芥函鍙�',
+ isTrue: true,
+ isSearch: true,
+ searchInfoType: 'text',
+ },
+ {
+ minWidth: '140',
+ prop: 'mateuurial',
+ label: '浜у搧鍚嶇О',
+ isTrue: true,
+ isSearch: true,
+ searchInfoType: 'text',
+ },
+ {
+ minWidth: '140',
+ prop: 'materoiial',
+ label: '瑙勬牸鍨嬪彿',
+ isTrue: true,
+ isSearch: true,
+ searchInfoType: 'text',
+ },
+ {
+ minWidth: '140',
+ prop: 'matperoial',
+ label: '鍗曚綅',
+ isTrue: true,
+ isSearch: true,
+ searchInfoType: 'text',
+ },
+ {
+ minWidth: '140',
+ prop: 'materpial',
+ label: '鏁伴噺',
+ isTrue: true,
+ isSearch: true,
+ searchInfoType: 'text',
+ },
+ {
+ minWidth: '130',
+ width: '150',
+ prop: 'dealTime',
+ label: '鍏ュ簱鏃堕棿',
+ sort: true,
+ isTrue: true,
+ isSearch: true,
+ searchInfoType: 'datetimerange',
+ // formatter: this.formatDateTime,
+ },
+ ],
+ toolbar: [
+ {
+ text: 'xxx',
+ type: 'primary',
+ // fun: this.addOrUpdateHandle
+ },
+ ],
+ // operator: [],
+ // operatorConfig: {}
+ },
+ }
+ },
+ medthods: {},
+// computed: {
+// ...mapGetters(['permissions'])
+// },
+ components: {
+ ttable
+ },
+}
+</script>
\ No newline at end of file
diff --git a/src/views/warehouse/FinishedGoods/index.vue b/src/views/warehouse/FinishedGoods/index.vue
new file mode 100644
index 0000000..2207225
--- /dev/null
+++ b/src/views/warehouse/FinishedGoods/index.vue
@@ -0,0 +1,147 @@
+<template>
+ <div class="mod-config">
+ <basic-container>
+ <ttable
+ :table="table"
+ :isShowHide="true"
+ :prelang="prelang"
+ :options="options"
+ ref="processconfiguration"
+ >
+ <template #toolbar></template>
+ </ttable>
+ </basic-container>
+ </div>
+</template>
+
+<script>
+import ttable from '@/views/common/ztt-table.vue'
+export default {
+ data(){
+ return {
+ prelang: 'operation',
+ dataListLoading: false,
+ options: {
+ height: 300, // 榛樿楂樺害-涓轰簡琛ㄥご鍥哄畾
+ stripe: true, // 鏄惁涓烘枒椹汗 table
+ highlightCurrentRow: false, // 鏄惁瑕侀珮浜綋鍓嶈
+ border: true, // 鏄惁鏈夌旱鍚戣竟妗�
+ lazy: false, // 鏄惁闇�瑕佹噿鍔犺浇
+ fit: true, // 鍒楃殑瀹藉害鏄惁鑷拺寮�
+ multiSelect: true, //
+ seqNo: true,
+ isShowHide: true, // 鏄惁鏄剧ず鏄惧奖鎸夐挳
+ isRefresh: true, // 鏄惁鏄剧ず鍒锋柊鎸夐挳
+ isSearch: true, // 楂樼骇鏌ヨ鎸夐挳
+ defaultOrderBy: { column: 'createTime', direction: 'desc' }
+ },
+ table: {
+ total: 0,
+ currentPage: 1,
+ pageSize: 20,
+ data: [],
+ // 鏍囬
+ column: [
+ {
+ minWidth: '140',
+ prop: 'material',
+ label: '璁㈠崟缂栫爜',
+ isTrue: true,
+ isSearch: true,
+ searchInfoType: 'text',
+ },
+ {
+ minWidth: '140',
+ prop: 'type',
+ label: '浜у搧鍚嶇О',
+ isTrue: true,
+ isSearch: true,
+ searchInfoType: 'text',
+ },{
+ minWidth: '140',
+ prop: 'oo',
+ label: '浜у搧鍨嬪彿',
+ isTrue: true,
+ isSearch: true,
+ searchInfoType: 'text',
+ },{
+ minWidth: '140',
+ prop: 'materhhooial',
+ label: '璐ㄩ噺杩芥函鍙�',
+ isTrue: true,
+ isSearch: true,
+ searchInfoType: 'text',
+ },
+ {
+ minWidth: '140',
+ prop: 'mateuurial',
+ label: '瀹㈡埛鍚嶇О',
+ isTrue: true,
+ isSearch: true,
+ searchInfoType: 'text',
+ },
+ {
+ minWidth: '140',
+ prop: 'materoiial',
+ label: '宸ヨ壓鏂囦欢缂栧彿',
+ isTrue: true,
+ isSearch: true,
+ searchInfoType: 'text',
+ },
+ {
+ minWidth: '140',
+ prop: 'matperoial',
+ label: '搴撲綅鍙�',
+ isTrue: true,
+ isSearch: true,
+ searchInfoType: 'text',
+ },
+ {
+ minWidth: '140',
+ prop: 'materpial',
+ label: '浜у搧鍚嶇О',
+ isTrue: true,
+ isSearch: true,
+ searchInfoType: 'text',
+ },
+ {
+ minWidth: '130',
+ width: '150',
+ prop: 'dealTime',
+ label: '瀹℃牳鏃堕棿',
+ sort: true,
+ isTrue: true,
+ isSearch: true,
+ searchInfoType: 'datetimerange',
+ // formatter: this.formatDateTime,
+ },
+ {
+ minWidth: '140',
+ prop: 'maial',
+ label: '鏁伴噺',
+ isTrue: true,
+ isSearch: true,
+ searchInfoType: 'text',
+ },
+ ],
+ toolbar: [
+ {
+ text: '鑾峰彇IFS鎴愬搧搴�',
+ type: 'primary',
+ // fun: this.addOrUpdateHandle
+ },
+ ],
+ // operator: [],
+ // operatorConfig: {}
+ },
+ }
+ },
+ medthods: {},
+// computed: {
+// ...mapGetters(['permissions'])
+// },
+ components: {
+ ttable
+ },
+}
+</script>
\ No newline at end of file
diff --git a/src/views/warehouse/FinishedWarehousing/index.vue b/src/views/warehouse/FinishedWarehousing/index.vue
new file mode 100644
index 0000000..86a06a6
--- /dev/null
+++ b/src/views/warehouse/FinishedWarehousing/index.vue
@@ -0,0 +1,144 @@
+<template>
+ <div class="mod-config">
+ <basic-container>
+ <ttable
+ :table="table"
+ :isShowHide="true"
+ :prelang="prelang"
+ :options="options"
+ ref="processconfiguration"
+ >
+ <template #toolbar></template>
+ </ttable>
+ </basic-container>
+ </div>
+</template>
+
+<script>
+import ttable from '@/views/common/ztt-table.vue'
+export default {
+ data(){
+ return {
+ prelang: 'operation',
+ dataListLoading: false,
+ options: {
+ height: 300, // 榛樿楂樺害-涓轰簡琛ㄥご鍥哄畾
+ stripe: true, // 鏄惁涓烘枒椹汗 table
+ highlightCurrentRow: false, // 鏄惁瑕侀珮浜綋鍓嶈
+ border: true, // 鏄惁鏈夌旱鍚戣竟妗�
+ lazy: false, // 鏄惁闇�瑕佹噿鍔犺浇
+ fit: true, // 鍒楃殑瀹藉害鏄惁鑷拺寮�
+ multiSelect: true, //
+ seqNo: true,
+ isShowHide: true, // 鏄惁鏄剧ず鏄惧奖鎸夐挳
+ isRefresh: true, // 鏄惁鏄剧ず鍒锋柊鎸夐挳
+ isSearch: true, // 楂樼骇鏌ヨ鎸夐挳
+ defaultOrderBy: { column: 'createTime', direction: 'desc' }
+ },
+ table: {
+ total: 0,
+ currentPage: 1,
+ pageSize: 20,
+ data: [],
+ // 鏍囬
+ column: [
+ {
+ minWidth: '140',
+ prop: 'material',
+ label: '浜у搧鍚嶇О',
+ isTrue: true,
+ isSearch: true,
+ searchInfoType: 'text',
+ },
+ {
+ minWidth: '140',
+ prop: 'type',
+ label: '浜у搧鍨嬪彿',
+ isTrue: true,
+ isSearch: true,
+ searchInfoType: 'text',
+ },{
+ minWidth: '140',
+ prop: 'oo',
+ label: '璐ㄩ噺杩芥函鍙�',
+ isTrue: true,
+ isSearch: true,
+ searchInfoType: 'text',
+ },{
+ minWidth: '140',
+ prop: 'materhhooial',
+ label: '鍚堝悓缂栫爜',
+ isTrue: true,
+ isSearch: true,
+ searchInfoType: 'text',
+ },
+ {
+ minWidth: '140',
+ prop: 'mateuurial',
+ label: '鍗曚綅',
+ isTrue: true,
+ isSearch: true,
+ searchInfoType: 'text',
+ },
+ {
+ minWidth: '140',
+ prop: 'materoiial',
+ label: '鏁伴噺',
+ isTrue: true,
+ isSearch: true,
+ searchInfoType: 'text',
+ },
+ {
+ minWidth: '140',
+ prop: 'matperoial',
+ label: '妫�鏌ョ姸鎬�',
+ isTrue: true,
+ isSearch: true,
+ searchInfoType: 'text',
+ },
+ {
+ minWidth: '140',
+ prop: 'materpial',
+ label: '妫�鏌ヤ汉鍛�',
+ isTrue: true,
+ isSearch: true,
+ searchInfoType: 'text',
+ },
+ {
+ minWidth: '130',
+ prop: 'dealTime',
+ label: '瑁呴厤浜哄憳',
+ isTrue: true,
+ isSearch: true,
+ searchInfoType: 'text',
+ },
+ {
+ minWidth: '130',
+ prop: 'dealTissme',
+ label: '缂栧埗浜�',
+ isTrue: true,
+ isSearch: true,
+ searchInfoType: 'text',
+ },
+ ],
+ toolbar: [
+ {
+ text: 'xx',
+ type: 'primary',
+ // fun: this.addOrUpdateHandle
+ },
+ ],
+ // operator: [],
+ // operatorConfig: {}
+ },
+ }
+ },
+ medthods: {},
+// computed: {
+// ...mapGetters(['permissions'])
+// },
+ components: {
+ ttable
+ },
+}
+</script>
\ No newline at end of file
--
Gitblit v1.9.3