From ce166a90614211a6c8ea4ac092ed8970979594a4 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期五, 10 一月 2025 10:52:51 +0800
Subject: [PATCH] Merge branch '2.0.1' of http://139.186.142.91:10010/r/productDev/funingyunwei into 2.0.1

---
 admin/src/views/stock/components/OutEdit.vue |  138 ++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 138 insertions(+), 0 deletions(-)

diff --git a/admin/src/views/stock/components/OutEdit.vue b/admin/src/views/stock/components/OutEdit.vue
new file mode 100644
index 0000000..3bc1a30
--- /dev/null
+++ b/admin/src/views/stock/components/OutEdit.vue
@@ -0,0 +1,138 @@
+<template>
+  <GlobalWindow title="鏂板缓鍑哄簱鍗�" :visible.sync="isShowModal" :confirm-working="isLoading" width="900px" @close="close"
+    @confirm="confirm">
+    <el-form :model="param" ref="form" :rules="rules">
+      <div class="df_ac">
+        <el-form-item class="w3" label="鍑哄簱浠撳簱" prop="parentId">
+          <el-select :disabled="param.id" v-model="param.parentId" placeholder="涓嶅~涓哄垯涓�绾у垎绫�">
+            <el-option v-for="op in dataList" :key="op.id" :label="op.name" :value="op.id"></el-option>
+          </el-select>
+        </el-form-item>
+        <el-form-item class="w3" label="鍑哄簱鏃ユ湡">
+          <el-date-picker type="date" v-model="param.getDate" format="yyyy-MM-dd" value-format="yyyy-MM-dd"
+            placeholder="璇烽�夋嫨鍑哄簱鏃ユ湡"></el-date-picker>
+        </el-form-item>
+        <el-form-item class="w3" label="鍑哄簱绫诲瀷" prop="parentId">
+          <el-select :disabled="param.id" v-model="param.parentId" placeholder="涓嶅~涓哄垯涓�绾у垎绫�">
+            <el-option v-for="op in dataList" :key="op.id" :label="op.name" :value="op.id"></el-option>
+          </el-select>
+        </el-form-item>
+        <el-form-item class="w3" label="澶勭悊浜�" prop="name">
+          <el-input v-model="param.name" v-trim />
+        </el-form-item>
+        <el-form-item class="w6" label="澶囨敞" prop="name">
+          <el-input v-model="param.name" placeholder="璇疯緭鍏�" v-trim />
+        </el-form-item>
+      </div>
+    </el-form>
+    <!--  -->
+    <el-tabs v-model="activeName">
+      <el-tab-pane label="鐗╂枡淇℃伅" name="first"></el-tab-pane>
+    </el-tabs>
+    <el-button type="primary" @click="handleOpenMaterial">閫夋嫨鐗╂枡</el-button>
+    <el-table :data="list" stripe>
+      <el-table-column align="center" label="搴忓彿" type="index" width="50" />
+      <el-table-column prop="creatorName" label="鐗╂枡鍚嶇О" show-overflow-tooltip min-width="80px"></el-table-column>
+      <el-table-column prop="categoryName" label="鐗╂枡缂栫爜" show-overflow-tooltip min-width="90px"></el-table-column>
+      <el-table-column prop="createDate" label="鏉″舰鐮�" show-overflow-tooltip min-width="70px"></el-table-column>
+      <el-table-column prop="dealUserName" label="鍝佺墝" show-overflow-tooltip min-width="70px"></el-table-column>
+      <el-table-column prop="dealUserName" label="鍗曚綅" show-overflow-tooltip min-width="70px"></el-table-column>
+      <el-table-column prop="dealUserName" label="鍑哄簱鏁伴噺" min-width="90px">
+        <template v-slot="{row}">
+          <el-input oninput="value=value.replace(/^(0+)|[^\d]+/g, '').slice(0, 11)" v-model="row.aa" class="w100"></el-input>
+        </template>
+      </el-table-column>
+      <el-table-column prop="dealUserName" label="搴撳瓨鏁伴噺" show-overflow-tooltip min-width="80px"></el-table-column>
+      <el-table-column prop="dealUserName" label="鎿嶄綔" min-width="60px">
+        <template v-slot="scope">
+          <span @click="handleDel(scope)" class="red pointer">鍒犻櫎</span>
+        </template>
+      </el-table-column>
+    </el-table>
+    <!--  -->
+    <AssetSel v-if="isShowSel" ref="AssetSelRef" @change="changeSel" @close="isShowSel = false" />
+  </GlobalWindow>
+</template>
+
+<script>
+import GlobalWindow from '@/components/common/GlobalWindow'
+import AssetSel from './AssetSel'
+import { create, fetchCateList, getInfoById } from '@/api/business/category.js'
+export default {
+  name: 'OperaCategoryWindow',
+  components: { GlobalWindow, AssetSel },
+  data() {
+    return {
+      // 琛ㄥ崟鏁版嵁
+      param: {},
+      activeName: 'first',
+      isShowModal: false,
+      isShowSel: false,
+      isLoading: false,
+      // 楠岃瘉瑙勫垯
+      rules: {
+        name: [{ required: true, message: '璇疯緭鍏ヤ簩绾у垎绫诲悕绉�', trigger: 'blur' }],
+      },
+      list: [{}],
+
+      dataList: [],
+    }
+  },
+  created() {
+
+  },
+  methods: {
+    confirm() {
+
+    },
+    getList() {
+      fetchCateList({ type: 5 }).then(res => {
+        this.dataList = res || []
+
+      })
+    },
+    changeSel() {
+
+    },
+    handleDel(val) {
+      const index = val.$index
+      this.list.splice(index, 1)
+      
+    },
+    handleOpenMaterial() {
+      this.isShowSel = true
+      this.$nextTick(() => {
+        this.$refs.AssetSelRef.isShowModal = true
+      })
+    },
+    close() {
+      this.isShowModal = false
+      this.$emit('close')
+    },
+    getDetail(id) {
+      getInfoById(id).then(res => {
+        this.param = res
+      })
+    },
+  }
+}
+</script>
+<style lang="scss" scoped>
+.df_ac {
+  display: flex;
+  align-items: center;
+  flex-wrap: wrap;
+
+  .w3 {
+    width: 33.3%;
+    padding: 0 10px;
+    box-sizing: border-box;
+  }
+
+  .w6 {
+    width: 66.6%;
+    padding: 0 10px;
+    box-sizing: border-box;
+  }
+}
+</style>
\ No newline at end of file

--
Gitblit v1.9.3