From 2ad00b6623beac3b504105beba9cb56143f7db13 Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期一, 22 一月 2024 08:29:45 +0800
Subject: [PATCH] 实体类相关文件提交

---
 north-glass-erp/northglass-erp/src/views/pp/processCard/ProductionScheduling.vue |  284 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 284 insertions(+), 0 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/views/pp/processCard/ProductionScheduling.vue b/north-glass-erp/northglass-erp/src/views/pp/processCard/ProductionScheduling.vue
new file mode 100644
index 0000000..266412f
--- /dev/null
+++ b/north-glass-erp/northglass-erp/src/views/pp/processCard/ProductionScheduling.vue
@@ -0,0 +1,284 @@
+<script setup>
+
+import {reactive, ref} from "vue";
+import {useRouter} from  'vue-router'
+let router=useRouter()
+const getTableRow = (row,type) =>{
+  switch (type) {
+    case 'edit' :{
+      //alert('鎴戞帴鏀跺埌瀛愮粍浠朵紶閫佺殑缂栬緫淇℃伅')
+      router.push({path: '/main/processCard/PrintFlowCard', query: { id: row.id }})
+      break
+    }
+    case 'delete':{
+      alert('鎴戞帴鏀跺埌瀛愮粍浠朵紶閫佺殑鍒犻櫎淇℃伅')
+      break
+    }
+    case  'setType':{
+      alert('鎴戞帴鏀跺埌瀛愮粍浠朵紶閫佺殑鎺掔増鐘舵��')
+      break
+    }
+  }
+}
+
+
+
+//琛ㄥ熬姹傚拰
+const sumNum = (list, field) => {
+  let count = 0
+  list.forEach(item => {
+    count += Number(item[field])
+  })
+  return count.toFixed(2)
+}
+
+//瀛愮粍浠舵帴鏀跺弬鏁�
+
+const gridOptions = reactive({
+  border:  "full",//琛ㄦ牸鍔犺竟妗�
+  keepSource: true,//淇濇寔婧愭暟鎹�
+  align: 'center',//鏂囧瓧灞呬腑
+  stripe:true,//鏂戦┈绾�
+  rowConfig: {isCurrent: true, isHover: true,height: 50},//榧犳爣绉诲姩鎴栭�夋嫨楂樹寒
+  id: 'CustomerList',
+  showFooter: true,//鏄剧ず鑴�
+  printConfig: {},
+  importConfig: {},
+  exportConfig: {},
+  scrollY:{ enabled: true },//寮�鍚櫄鎷熸粴鍔�
+  showOverflow:true,
+  columnConfig: {
+    resizable: true,
+    useKey: true
+  },
+  filterConfig: {   //绛涢�夐厤缃」
+    remote: true
+  },
+  customConfig: {
+    storage: true
+  },
+  editConfig: {
+    trigger: 'click',
+    mode: 'row',
+    showStatus: true
+  },//琛ㄥご鍙傛暟
+  columns:[
+    {type:'expand',fixed:"left",slots: { content:'content' },width: 50},
+    { type: 'checkbox',fixed:"left", title: '閫夋嫨', width: 80 },
+    { type: 'seq',fixed:"left", title: '鑷簭', width: 50 },
+    {field: '鎺掍骇缂栧彿', title: '鎺掍骇缂栧彿', sortable: true, width: 120 },
+    {field: '閿�鍞崟鍙�', title: '閿�鍞崟鍙�',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true, width: 100 },
+    {field: '瀹㈡埛鍚嶇О', title: '瀹㈡埛鍚嶇О', filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true, width: 110},
+    {field: '椤圭洰鍚嶇О', title: '椤圭洰鍚嶇О', filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true, width: 120},
+    {field: '搴忓彿', title: '搴忓彿', sortable: true,filters:[{ data: '' }],slots: { filter: 'num1_filter' }, width: 90},
+    {field: '浜у搧鍚嶇О', title: '浜у搧鍚嶇О', filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true, width: 140},
+    {field: '瀹�', title: '瀹�', filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true, width: 90},
+    {field: '楂�', title: '楂�',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true , width: 90},
+    {field: '鏁伴噺', title: '鏁伴噺', sortable: true , width: 70},
+    {field: '闈㈢Н', title: '闈㈢Н', sortable: true , width: 90},
+    {field: '鎺掍骇鏁伴噺' , width: 120,editRender: { name: 'input', attrs: { placeholder: '' } }, title: '鎺掍骇鏁伴噺', sortable: true},
+    {field: '宸叉帓浜ф暟閲�', title: '宸叉帓浜ф暟閲�', sortable: true , width: 120},
+    {field: '宸叉帓浜ч潰绉�', title: '宸叉帓浜ч潰绉�', sortable: true , width: 120},
+    {field: '鏈帓浜ф暟閲�', title: '鏈帓浜ф暟閲�', sortable: true , width: 120},
+    {field: '鏈帓浜ч潰绉�', title: '鏈帓浜ч潰绉�', sortable: true , width: 120},
+    {field: '褰㈢姸', title: '褰㈢姸', sortable: true , width: 80},
+    {field: '澶囨敞', title: '澶囨敞', sortable: true , width: 120},
+  ],//琛ㄥご鎸夐挳
+
+  toolbarConfig: {
+    buttons: [
+      {code: 'print_lck', name: '鍒犻櫎',status:'primary' },
+      {code: 'print_lck', name: '鎺掍骇',status:'primary' ,icon:'vxe-icon-save'},
+    ],
+    import: false,
+    export: true,
+    print: true,
+    zoom: true,
+    custom: true
+  },
+  data:  [
+    {
+      鎺掍骇缂栧彿:"PC20230100001",
+      閿�鍞崟鍙�: 'NG231207',
+      瀹㈡埛鍚嶇О:'XXX鍏徃',
+      椤圭洰鍚嶇О:"XXXX鍏洯",
+      搴忓彿: '1',
+      浜у搧鍚嶇О: '6mm瓒呯櫧Low-E(澶�)+A12+6mm瓒呯櫧骞抽挗(鍐�)',
+      瀹�: '2000',
+      楂�: '1000',
+      鏁伴噺: '10',
+      闈㈢Н: '20000',
+      鎺掍骇鏁伴噺: '',
+      宸叉帓浜ф暟閲�: '10000',
+      宸叉帓浜ч潰绉�: '10000',
+      鏈帓浜ф暟閲�: '',
+      鏈帓浜ч潰绉�: '',
+      褰㈢姸: '鐭╁舰',
+      澶囨敞: '澶囨敞'
+    },
+    {
+      鎺掍骇缂栧彿:"PC20230100001",
+      閿�鍞崟鍙�: 'NG231207',
+      瀹㈡埛鍚嶇О:'XXX鍏徃',
+      椤圭洰鍚嶇О:"XXXX鍏洯",
+      搴忓彿: '1',
+      浜у搧鍚嶇О: '6mm瓒呯櫧Low-E(澶�)+A12+6mm瓒呯櫧骞抽挗(鍐�)',
+      瀹�: '2000',
+      楂�: '1000',
+      鏁伴噺: '10',
+      闈㈢Н: '20000',
+      鎺掍骇鏁伴噺: '',
+      宸叉帓浜ф暟閲�: '10000',
+      宸叉帓浜ч潰绉�: '10000',
+      鏈帓浜ф暟閲�: '',
+      鏈帓浜ч潰绉�: '',
+      褰㈢姸: '鐭╁舰',
+      澶囨敞: '澶囨敞'
+    },
+    {
+      鎺掍骇缂栧彿:"PC20230100001",
+      閿�鍞崟鍙�: 'NG231207',
+      瀹㈡埛鍚嶇О:'XXX鍏徃',
+      椤圭洰鍚嶇О:"XXXX鍏洯",
+      搴忓彿: '1',
+      浜у搧鍚嶇О: '6mm瓒呯櫧Low-E(澶�)+A12+6mm瓒呯櫧骞抽挗(鍐�)',
+      瀹�: '2000',
+      楂�: '1000',
+      鏁伴噺: '10',
+      闈㈢Н: '20000',
+      鎺掍骇鏁伴噺: '',
+      宸叉帓浜ф暟閲�: '10000',
+      宸叉帓浜ч潰绉�: '10000',
+      鏈帓浜ф暟閲�: '',
+      鏈帓浜ч潰绉�: '',
+      褰㈢姸: '鐭╁舰',
+      澶囨敞: '澶囨敞'
+    },
+  ],//table body瀹為檯鏁版嵁
+  //鑴氶儴姹傚拰
+  footerMethod ({ columns, data }) {//椤佃剼鍑芥暟
+    let footList=['鏁伴噺','闈㈢Н','鎺掍骇鏁伴噺','宸叉帓浜ф暟閲�','宸叉帓浜ч潰绉�','鏈帓浜ф暟閲�','鏈帓浜ч潰绉�']
+    return[
+      columns.map((column, columnIndex) => {
+        if (columnIndex === 0) {
+          return '鍚堣:'
+        }
+        if (footList.includes(column.field)) {
+          return sumNum(data, column.field)
+        }
+        return ''
+      })
+    ]
+  }
+
+})
+
+const form = reactive({
+  name: '',
+  region: '',
+  date1: '',
+  date2: '',
+  delivery: false,
+  type: [],
+  resource: '',
+  desc: '',
+})
+const value = ref('')
+const options = [
+  {
+    value: 'Option1',
+    label: 'Option1',
+  },
+  {
+    value: 'Option2',
+    label: 'Option2',
+  },
+  {
+    value: 'Option3',
+    label: 'Option3',
+  },
+]
+</script>
+
+<template>
+  <div class="main-div-customer">
+    <div id="selectForm">
+      <el-row :gutter="0">
+        <el-date-picker
+            v-model="form.date1"
+            type="daterange"
+            start-placeholder="寮�濮嬫椂闂�"
+            end-placeholder="缁撴潫鏃堕棿"
+            :default-time="defaultTime"
+        />
+        &nbsp;&nbsp;
+        <el-select v-model="value" class="m-2" placeholder="宸ュ簭">
+          <el-option
+              v-for="item in options"
+              :key="item.value"
+              :label="item.label"
+              :value="item.value"
+          />
+        </el-select>
+        <el-select v-model="value" class="m-2" placeholder="鏄惁鎺掍骇">
+          <el-option
+              v-for="item in options"
+              :key="item.value"
+              :label="item.label"
+              :value="item.value"
+          />
+        </el-select>
+        &nbsp;&nbsp;
+        <el-button type="primary">鏌ヨ</el-button>
+      </el-row>
+
+    </div>
+    <vxe-grid
+        max-height="100%"
+        @filter-change="filterChanged"
+        class="mytable-scrollbar"
+        ref="xGrid"
+        v-bind="gridOptions"
+
+    >
+      <!--      @toolbar-button-click="toolbarButtonClickEvent"-->
+      <!--      涓嬫媺鏄剧ず鎵�鏈変俊鎭彃妲�-->
+      <template #content="{ row}">
+        <ul class="expand-wrapper">
+          <li  v-for="(item,key,index) in row">
+            <span style="font-weight: bold">{{key+':  '}}</span>
+            <span>{{ item }}</span>
+          </li>
+        </ul>
+      </template>
+
+      <!--宸﹁竟鍥哄畾鏄剧ず鐨勬彃妲�-->
+      <template #button_slot="{ row }">
+        <el-button @click="getTableRow(row,'edit')" link type="primary" size="small">鎵撳嵃</el-button>
+        <el-button @click="getTableRow(row,'setType')" link type="primary" size="small">鎺掔増</el-button>
+        <el-button @click="getTableRow(row,'delete')" link type="primary" size="small">鍒犻櫎</el-button>
+      </template>
+
+      <template #num1_filter="{ column, $panel }">
+        <div>
+          <div v-for="(option, index) in column.filters" :key="index">
+            <input type="type" v-model="option.data" @input="changeFilterEvent($event, option, $panel)"/>
+          </div>
+        </div>
+      </template>
+
+
+    </vxe-grid>
+  </div>
+</template>
+
+<style scoped>
+.main-div-customer{
+  width: 99%;
+  height: 100%;
+}
+#selectForm {
+  width: 70%;
+  text-align: center;
+}
+</style>
\ No newline at end of file

--
Gitblit v1.8.0