chenrui 4 years ago
parent
commit
d1dc06e9b6

+ 59 - 1
src/config/router.config.js

@@ -431,7 +431,65 @@ export const asyncRouterMap = [{
             }
             }
           }
           }
         ]
         ]
-      }
+      },
+      {
+        path: '/chainAllocation/chainTransferOut',
+        redirect: '/chainAllocation/chainTransferOut/list',
+        name: 'chainTransferOut',
+        component: RouteView,
+        meta: {
+          title: '连锁调出',
+          icon: 'shopping'
+          // permission: 'M_goodsManage_list'
+        },
+        hideChildrenInMenu: true,
+        children: [
+          {
+            path: '/chainAllocation/chainTransferOut/list',
+            name: 'chainTransferOutList',
+            component: () => import(/* webpackChunkName: "shop" */ '@/views/chainAllocation/chainTransferOut/list.vue'),
+            meta: {
+              title: '连锁调出列表',
+              icon: 'shopping',
+              hidden: true
+              // permission: 'M_goodsManage_list'
+            }
+          },
+          {
+            path: '/chainAllocation/chainTransferOut/add',
+            name: 'chainTransferOutAdd',
+            component: () => import(/* webpackChunkName: "shop" */ '@/views/chainAllocation/chainTransferOut/edit.vue'),
+            meta: {
+              title: '新增连锁调出',
+              icon: 'shopping',
+              hidden: true
+              // permission: 'B_goodsManage_edit'
+            }
+          },
+          {
+            path: '/chainAllocation/chainTransferOut/edit/:id',
+            name: 'chainTransferOutEdit',
+            component: () => import(/* webpackChunkName: "shop" */ '@/views/chainAllocation/chainTransferOut/edit.vue'),
+            meta: {
+              title: '编辑连锁调出',
+              icon: 'shopping',
+              hidden: true
+              // permission: 'B_goodsManage_edit'
+            }
+          },
+          {
+            path: '/chainAllocation/chainTransferOut/detail/:id',
+            name: 'chainTransferOutEdit',
+            component: () => import(/* webpackChunkName: "shop" */ '@/views/chainAllocation/chainTransferOut/detail.vue'),
+            meta: {
+              title: '连锁调出详情',
+              icon: 'shopping',
+              hidden: true
+              // permission: 'B_goodsManage_edit'
+            }
+          }
+        ]
+      },
     ]
     ]
   },
   },
   // 采购管理
   // 采购管理

+ 112 - 1
src/views/chainAllocation/chainTransferIn/detail.vue

@@ -1,8 +1,119 @@
 <template>
 <template>
+  <div class="chainTransferInDetail-wrap">
+    <a-page-header :ghost="false" @back="handleBack" class="chainTransferInDetail-back">
+      <!-- 自定义的二级文字标题 -->
+      <template slot="subTitle">
+        <a id="chainTransferInDetail-back-btn" href="javascript:;" @click="handleBack">返回列表</a>
+      </template>
+      <!-- 操作区,位于 title 行的行尾 -->
+      <template slot="extra">
+        <a-button key="2" id="chainTransferInDetail-preview-btn">打印预览</a-button>
+        <a-button key="1" type="primary" id="chainTransferInDetail-print-btn">快速打印</a-button>
+      </template>
+    </a-page-header>
+    <!-- 总计 -->
+    <a-alert type="info" showIcon style="margin-bottom:15px">
+      <div slot="message">审核状态: <strong>支持市级</strong>,完结状态: <strong>支持市级</strong>,调出对象: <strong>支持市级</strong>,调入单号: <strong>2121212</strong>,总成本:¥<strong>6.33</strong>,总数量: <strong>6</strong> </div>
+    </a-alert>
+    <a-card :bordered="false" class="chainTransferInDetail-cont">
+      <!-- 列表 -->
+      <s-table
+        class="sTable"
+        ref="table"
+        size="default"
+        :rowKey="(record) => record.id"
+        :columns="columns"
+        :data="loadData"
+        bordered></s-table>
+    </a-card>
+  </div>
 </template>
 </template>
 
 
 <script>
 <script>
+  import { STable, VSelect } from '@/components'
+  export default{
+    components: { STable, VSelect },
+    data(){
+      return{
+        queryParam: {
+          
+        },
+        disabled: false, //  查询、重置按钮是否可操作
+        brandData: [],  //  产品品牌  下拉数据
+        typeData: [],  //  产品类别  下拉数据
+        // 表头
+        columns: [
+          { title: '序号', dataIndex: 'no', width: 70, align: 'center' },
+          { title: '产品编码', dataIndex: 'creatDate', align: 'center' },
+          { title: '产品名称', dataIndex: 'custNahme', align: 'center', ellipsis: true },
+          { title: '原厂编码', dataIndex: 'totalP', align: 'center' },
+          { title: '成本价', dataIndex: 'custsN2agme', align: 'center' },
+          { title: '调入数量', scopedSlots: { customRender: 'transferOutQuantity' }, align: 'center' },
+          { title: '单位', dataIndex: 'custsNsagme', align: 'center' },
+          { title: '成本小计', dataIndex: 'custsNagme', align: 'center' },
+          { title: '仓库', dataIndex: 'warehouse', align: 'center' },
+          { title: '仓位', dataIndex: 'warehouseLoc', align: 'center' }
+        ],
+        // 加载数据方法 必须为 Promise 对象
+        loadData: parameter => {
+          this.disabled = true
+          // return customerBundleDelayList( Object.assign(parameter, this.queryParam) ).then(res => {
+          //   const data = res.data
+          //   const no = (data.pageNo - 1) * data.pageSize
+          //   for (var i = 0; i < data.list.length; i++) {
+          //     data.list[i].no = no + i + 1
+          //   }
+          //   this.disabled = false
+          //   return data
+          // })
+          const _this = this
+          return new Promise(function(resolve, reject){
+            const data = {
+              pageNo: 1,
+              pageSize: 10,
+              list: [
+                { id: '1', purchaseNo: 'jgqp11111111111', creatDate: '产品1', custName: 'jgqp111123545', totalP: '箭冠品牌', totalNums: '产品分类1', totalPrice: '5', payType: '122' }
+              ],
+              count: 10
+            }
+            const no = (data.pageNo - 1) * data.pageSize
+            for (var i = 0; i < data.list.length; i++) {
+              data.list[i].no = no + i + 1
+            }
+            _this.disabled = false
+            resolve(data)
+          })
+        },
+      }
+    },
+    methods: {
+      //  重置
+      resetSearchForm () {
+        this.queryParam.orderBundleNo = ''
+        this.queryParam.orderBundle.custMobile = ''
+        this.queryParam.bundleName = ''
+        this.queryParam.itemName = ''
+        this.oldTime = undefined
+        this.newTime = undefined
+        this.$refs.table.refresh(true)
+      },
+      //  提交
+      handleSubmit(){},
+      //  返回列表
+      handleBack(){
+        this.$router.push({ path: '/inventoryManagement/chainTransferIn/list'})
+      },
+    }
+  }
 </script>
 </script>
 
 
-<style>
+<style lang="less">
+  .chainTransferInDetail-wrap{
+    .chainTransferInDetail-back{
+      margin-bottom: 15px;
+    }
+    .chainTransferInDetail-cont{
+      margin-bottom: 15px;
+    }
+  }
 </style>
 </style>

+ 161 - 1
src/views/chainAllocation/chainTransferIn/edit.vue

@@ -1,8 +1,168 @@
 <template>
 <template>
+  <div class="chainTransferInEdit-wrap">
+    <a-page-header :ghost="false" @back="handleBack" class="chainTransferInEdit-back">
+      <!-- 自定义的二级文字标题 -->
+      <template slot="subTitle">
+        <a id="chainTransferInEdit-back-btn" href="javascript:;" @click="handleBack">返回列表</a>
+      </template>
+      <!-- 操作区,位于 title 行的行尾 -->
+      <template slot="extra">
+        <a-button key="2" id="chainTransferInEdit-preview-btn">打印预览</a-button>
+        <a-button key="1" type="primary" id="chainTransferInEdit-print-btn">快速打印</a-button>
+      </template>
+    </a-page-header>
+    <!-- 总计 -->
+    <a-alert type="info" showIcon style="margin-bottom:15px">
+      <div slot="message">调出对象: <strong>支持市级</strong>,调入单号: <strong>2121212</strong>,总成本:¥<strong>6.33</strong>,总数量: <strong>6</strong> </div>
+    </a-alert>
+    <a-card :bordered="false" class="chainTransferInEdit-cont">
+      <!-- 筛选条件 -->
+      <div class="table-page-search-wrapper">
+        <a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
+          <a-row :gutter="15">
+            <a-col :md="6" :sm="24">
+              <a-form-item label="产品编码" prop="name">
+                <a-input id="chainTransferInEdit-name" v-model="queryParam.name" placeholder="请输入产品编码" allowClear />
+              </a-form-item>
+            </a-col>
+            <a-col :md="6" :sm="24">
+              <a-form-item label="产品名称" prop="name">
+                <a-input id="chainTransferInEdit-name" v-model="queryParam.name" placeholder="请输入产品名称" allowClear />
+              </a-form-item>
+            </a-col>
+            <a-col :md="6" :sm="24">
+              <a-form-item label="产品类别">
+                <a-cascader :options="typeData" id="chainTransferInEdit-state" placeholder="请选择产品类别" allowClear v-model="queryParam.brand" />
+              </a-form-item>
+            </a-col>
+            <a-col :md="6" :sm="24" style="margin-bottom: 24px;">
+              <a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="chainTransferInList-refresh">查询</a-button>
+              <a-button style="margin-left: 8px" @click="resetSearchForm" :disabled="disabled" id="chainTransferInList-reset">重置</a-button>
+            </a-col>
+          </a-row>
+        </a-form>
+      </div>
+      <!-- 列表 -->
+      <s-table
+        class="sTable"
+        ref="table"
+        size="default"
+        :rowKey="(record) => record.id"
+        :columns="columns"
+        :data="loadData"
+        bordered>
+        <!-- 调入仓库 -->
+        <template slot="warehouse" slot-scope="text, record">
+          <a-select id="chainTransferInEdit-warehouse" placeholder="请选择" allowClear v-model="record.warehouse">
+            <a-select-option v-for="item in typeData" :key="item.id" :value="item.id">{{ item.name }}</a-select-option>
+          </a-select>
+        </template>
+        <!-- 调入仓位 -->
+        <template slot="warehouseLoc" slot-scope="text, record">
+          <a-select id="chainTransferInEdit-warehouseLoc" placeholder="请选择" allowClear v-model="record.warehouseLoc">
+            <a-select-option v-for="item in typeData" :key="item.id" :value="item.id">{{ item.name }}</a-select-option>
+          </a-select>
+        </template>
+        <!-- 操作 -->
+        <!-- <template slot="action" slot-scope="text, record">
+          <a-button type="primary" @click="handleAdd(record)" id="chainTransferInEdit-add-btn">添加</a-button>
+        </template> -->
+      </s-table>
+    </a-card>
+    <a-affix :offset-bottom="0">
+      <div style="text-align: center;width: 100%;background-color: #fff;padding: 30px 0;box-shadow: 0 0 20px #dcdee2;">
+        <a-button type="primary" id="chainTransferInEdit-submit" size="large" @click="handleSubmit" style="padding: 0 60px;">提交</a-button>
+      </div>
+    </a-affix>
+  </div>
 </template>
 </template>
 
 
 <script>
 <script>
+  import { STable, VSelect } from '@/components'
+  export default{
+    components: { STable, VSelect },
+    data(){
+      return{
+        queryParam: {
+          
+        },
+        disabled: false, //  查询、重置按钮是否可操作
+        brandData: [],  //  产品品牌  下拉数据
+        typeData: [],  //  产品类别  下拉数据
+        // 表头
+        columns: [
+          { title: '序号', dataIndex: 'no', width: 70, align: 'center' },
+          { title: '产品编码', dataIndex: 'creatDate', align: 'center' },
+          { title: '产品名称', dataIndex: 'custNahme', align: 'center', ellipsis: true },
+          { title: '原厂编码', dataIndex: 'totalP', align: 'center' },
+          { title: '成本价', dataIndex: 'custsN2agme', align: 'center' },
+          { title: '调入数量', scopedSlots: { customRender: 'transferOutQuantity' }, align: 'center' },
+          { title: '单位', dataIndex: 'custsNsagme', align: 'center' },
+          { title: '成本小计', dataIndex: 'custsNagme', align: 'center' },
+          { title: '仓库', scopedSlots: { customRender: 'warehouse' }, align: 'center' },
+          { title: '仓位', scopedSlots: { customRender: 'warehouseLoc' }, align: 'center' },
+          // { title: '操作', scopedSlots: { customRender: 'action' }, width: 150, align: 'center' }
+        ],
+        // 加载数据方法 必须为 Promise 对象
+        loadData: parameter => {
+          this.disabled = true
+          // return customerBundleDelayList( Object.assign(parameter, this.queryParam) ).then(res => {
+          //   const data = res.data
+          //   const no = (data.pageNo - 1) * data.pageSize
+          //   for (var i = 0; i < data.list.length; i++) {
+          //     data.list[i].no = no + i + 1
+          //   }
+          //   this.disabled = false
+          //   return data
+          // })
+          const _this = this
+          return new Promise(function(resolve, reject){
+            const data = {
+              pageNo: 1,
+              pageSize: 10,
+              list: [
+                { id: '1', purchaseNo: 'jgqp11111111111', creatDate: '产品1', custName: 'jgqp111123545', totalP: '箭冠品牌', totalNums: '产品分类1', totalPrice: '5', payType: '122' }
+              ],
+              count: 10
+            }
+            const no = (data.pageNo - 1) * data.pageSize
+            for (var i = 0; i < data.list.length; i++) {
+              data.list[i].no = no + i + 1
+            }
+            _this.disabled = false
+            resolve(data)
+          })
+        },
+      }
+    },
+    methods: {
+      //  重置
+      resetSearchForm () {
+        this.queryParam.orderBundleNo = ''
+        this.queryParam.orderBundle.custMobile = ''
+        this.queryParam.bundleName = ''
+        this.queryParam.itemName = ''
+        this.oldTime = undefined
+        this.newTime = undefined
+        this.$refs.table.refresh(true)
+      },
+      //  提交
+      handleSubmit(){},
+      //  返回列表
+      handleBack(){
+        this.$router.push({ path: '/inventoryManagement/chainTransferIn/list'})
+      },
+    }
+  }
 </script>
 </script>
 
 
-<style>
+<style lang="less">
+  .chainTransferInEdit-wrap{
+    .chainTransferInEdit-back{
+      margin-bottom: 15px;
+    }
+    .chainTransferInEdit-cont{
+      margin-bottom: 15px;
+    }
+  }
 </style>
 </style>

+ 5 - 5
src/views/chainAllocation/chainTransferIn/list.vue

@@ -63,9 +63,9 @@
       </a-form>
       </a-form>
     </div>
     </div>
     <!-- 操作按钮 -->
     <!-- 操作按钮 -->
-    <div class="table-operator">
+    <!-- <div class="table-operator">
       <a-button id="chainTransferInList-add" type="primary" @click="handleEdit()">新增调入单</a-button>
       <a-button id="chainTransferInList-add" type="primary" @click="handleEdit()">新增调入单</a-button>
-    </div>
+    </div> -->
     <!-- 列表 -->
     <!-- 列表 -->
     <s-table
     <s-table
       class="sTable"
       class="sTable"
@@ -194,14 +194,14 @@ export default {
     },
     },
     //  详情
     //  详情
     handleDetail(row){
     handleDetail(row){
-      this.$router.push({ path: `/inventoryManagement/warehouseAllocation/detail/${row.id}` })
+      this.$router.push({ path: `/chainAllocation/chainTransferIn/detail/${row.id}` })
     },
     },
     //  新增/编辑
     //  新增/编辑
     handleEdit(row){
     handleEdit(row){
       if(row){  //  编辑
       if(row){  //  编辑
-        this.$router.push({ path: `/inventoryManagement/warehouseAllocation/edit/${row.id}` })
+        this.$router.push({ path: `/chainAllocation/chainTransferIn/edit/${row.id}` })
       }else{  //  新增
       }else{  //  新增
-        this.$router.push({ path: '/inventoryManagement/warehouseAllocation/add' })
+        this.$router.push({ path: '/chainAllocation/chainTransferIn/add' })
       }
       }
     },
     },
   }
   }

+ 101 - 0
src/views/chainAllocation/chainTransferOut/basicInfoModal.vue

@@ -0,0 +1,101 @@
+<template>
+	<a-modal centered class="warehouseAllocation-basicInfo-modal" :footer="null" :maskClosable="false" title="新增连锁调出单" v-model="isShow" @cancle="isShow = false" width="80%">
+		<a-form-model
+			id="warehouseAllocation-basicInfo-form"
+			ref="ruleForm"
+			:model="form"
+			:rules="rules"
+			:label-col="formItemLayout.labelCol"
+			:wrapper-col="formItemLayout.wrapperCol"
+		>
+			<a-form-model-item label="调出产品类型" prop="sort">
+				<v-select
+					v-model="form.billStatus"
+					ref="billStatus"
+					id="warehouseAllocation-basicInfo-billStatus"
+					code="PAYMENT_TYPE"
+					placeholder="请选择调出产品类型"
+					allowClear
+				></v-select>
+			</a-form-model-item>
+			<a-form-model-item label="调往对象" prop="state">
+			  <a-select placeholder="请选择调往对象" allowClear v-model="form.dataSourceNo" :showSearch="true" option-filter-prop="children" :filter-option="filterOption">
+			  	<a-select-option v-for="item in brandData" :key="item.salesChannelNo" :value="item.salesChannelNo">{{ item.salesChannelName }}</a-select-option>
+			  </a-select>
+			</a-form-model-item>
+			<a-form-model-item label="备注" prop="remarks">
+				<a-textarea id="warehouseAllocation-basicInfo-remarks" :maxLength="500" v-model="form.remarks" placeholder="请输入备注(最多500个字符)" allowClear />
+			</a-form-model-item>
+		</a-form-model>
+		<div class="btn-cont">
+			<a-button type="primary" id="warehouseAllocation-basicInfo-modal-save" @click="handleSave">保存</a-button>
+			<a-button id="warehouseAllocation-basicInfo-modal-back" @click="isShow = false" style="margin-left: 15px;">取消</a-button>
+		</div>
+	</a-modal>
+</template>
+
+<script>
+import { VSelect } from '@/components';
+export default {
+	name: 'WarehouseAllocationBasicInfoModal',
+	components: { VSelect },
+	props: {
+		openModal: {
+			//  弹框显示状态
+			type: Boolean,
+			default: false
+		}
+	},
+	data() {
+		return {
+			isShow: this.openModal, //  是否打开弹框
+			formItemLayout: {
+				labelCol: { span: 6 },
+				wrapperCol: { span: 16 }
+			},
+			form: {
+				name: '', // 仓库名称
+				sort: '' //  排序
+			},
+			rules: {
+				name: [{ required: true, message: '请选择调出产品类型', trigger: 'change' }]
+			},
+			brandData: [] //  供应商  下拉数据
+		};
+	},
+	methods: {
+		//  保存
+		handleSave() {
+			this.isShow = false
+			this.$emit('ok')
+		},
+		filterOption(input, option) {
+			return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
+		}
+	},
+	watch: {
+		//  父页面传过来的弹框状态
+		openModal(newValue, oldValue) {
+			this.isShow = newValue
+		},
+		//  重定义的弹框状态
+		isShow(newValue, oldValue) {
+			if (!newValue) {
+				this.$emit('close')
+			}
+		}
+	}
+};
+</script>
+
+<style lang="less">
+.warehouseAllocation-basicInfo-modal {
+	.ant-modal-body {
+		padding: 40px 40px 24px;
+	}
+	.btn-cont {
+		text-align: center;
+		margin: 35px 0 10px;
+	}
+}
+</style>

+ 119 - 0
src/views/chainAllocation/chainTransferOut/detail.vue

@@ -0,0 +1,119 @@
+<template>
+  <div class="chainTransferOutDetail-wrap">
+    <a-page-header :ghost="false" @back="handleBack" class="chainTransferOutDetail-back">
+      <!-- 自定义的二级文字标题 -->
+      <template slot="subTitle">
+        <a id="chainTransferOutDetail-back-btn" href="javascript:;" @click="handleBack">返回列表</a>
+      </template>
+      <!-- 操作区,位于 title 行的行尾 -->
+      <template slot="extra">
+        <a-button key="2" id="chainTransferOutDetail-preview-btn">打印预览</a-button>
+        <a-button key="1" type="primary" id="chainTransferOutDetail-print-btn">快速打印</a-button>
+      </template>
+    </a-page-header>
+    <!-- 总计 -->
+    <a-alert type="info" showIcon style="margin-bottom:15px">
+      <div slot="message">审核状态: <strong>支持市级</strong>,完结状态: <strong>支持市级</strong>,调出对象: <strong>支持市级</strong>,调入单号: <strong>2121212</strong>,总成本:¥<strong>6.33</strong>,总数量: <strong>6</strong> </div>
+    </a-alert>
+    <a-card :bordered="false" class="chainTransferOutDetail-cont">
+      <!-- 列表 -->
+      <s-table
+        class="sTable"
+        ref="table"
+        size="default"
+        :rowKey="(record) => record.id"
+        :columns="columns"
+        :data="loadData"
+        bordered></s-table>
+    </a-card>
+  </div>
+</template>
+
+<script>
+  import { STable, VSelect } from '@/components'
+  export default{
+    components: { STable, VSelect },
+    data(){
+      return{
+        queryParam: {
+          
+        },
+        disabled: false, //  查询、重置按钮是否可操作
+        brandData: [],  //  产品品牌  下拉数据
+        typeData: [],  //  产品类别  下拉数据
+        // 表头
+        columns: [
+          { title: '序号', dataIndex: 'no', width: 70, align: 'center' },
+          { title: '产品编码', dataIndex: 'creatDate', align: 'center' },
+          { title: '产品名称', dataIndex: 'custNahme', align: 'center', ellipsis: true },
+          { title: '原厂编码', dataIndex: 'totalP', align: 'center' },
+          { title: '成本价', dataIndex: 'custsN2agme', align: 'center' },
+          { title: '调入数量', scopedSlots: { customRender: 'transferOutQuantity' }, align: 'center' },
+          { title: '单位', dataIndex: 'custsNsagme', align: 'center' },
+          { title: '成本小计', dataIndex: 'custsNagme', align: 'center' },
+          { title: '仓库', dataIndex: 'warehouse', align: 'center' },
+          { title: '仓位', dataIndex: 'warehouseLoc', align: 'center' }
+        ],
+        // 加载数据方法 必须为 Promise 对象
+        loadData: parameter => {
+          this.disabled = true
+          // return customerBundleDelayList( Object.assign(parameter, this.queryParam) ).then(res => {
+          //   const data = res.data
+          //   const no = (data.pageNo - 1) * data.pageSize
+          //   for (var i = 0; i < data.list.length; i++) {
+          //     data.list[i].no = no + i + 1
+          //   }
+          //   this.disabled = false
+          //   return data
+          // })
+          const _this = this
+          return new Promise(function(resolve, reject){
+            const data = {
+              pageNo: 1,
+              pageSize: 10,
+              list: [
+                { id: '1', purchaseNo: 'jgqp11111111111', creatDate: '产品1', custName: 'jgqp111123545', totalP: '箭冠品牌', totalNums: '产品分类1', totalPrice: '5', payType: '122' }
+              ],
+              count: 10
+            }
+            const no = (data.pageNo - 1) * data.pageSize
+            for (var i = 0; i < data.list.length; i++) {
+              data.list[i].no = no + i + 1
+            }
+            _this.disabled = false
+            resolve(data)
+          })
+        },
+      }
+    },
+    methods: {
+      //  重置
+      resetSearchForm () {
+        this.queryParam.orderBundleNo = ''
+        this.queryParam.orderBundle.custMobile = ''
+        this.queryParam.bundleName = ''
+        this.queryParam.itemName = ''
+        this.oldTime = undefined
+        this.newTime = undefined
+        this.$refs.table.refresh(true)
+      },
+      //  提交
+      handleSubmit(){},
+      //  返回列表
+      handleBack(){
+        this.$router.push({ path: '/inventoryManagement/chainTransferOut/list'})
+      },
+    }
+  }
+</script>
+
+<style lang="less">
+  .chainTransferOutDetail-wrap{
+    .chainTransferOutDetail-back{
+      margin-bottom: 15px;
+    }
+    .chainTransferOutDetail-cont{
+      margin-bottom: 15px;
+    }
+  }
+</style>

+ 368 - 0
src/views/chainAllocation/chainTransferOut/edit.vue

@@ -0,0 +1,368 @@
+<template>
+  <div class="chainTransferOutEdit-wrap">
+    <a-page-header :ghost="false" @back="handleBack" class="chainTransferOutEdit-back">
+      <!-- 自定义的二级文字标题 -->
+      <template slot="subTitle">
+        <a id="chainTransferOutEdit-back-btn" href="javascript:;" @click="handleBack">返回列表</a>
+      </template>
+      <!-- 操作区,位于 title 行的行尾 -->
+      <template slot="extra">
+        <a-button key="2" id="chainTransferOutEdit-preview-btn">打印预览</a-button>
+        <a-button key="1" type="primary" id="chainTransferOutEdit-print-btn">快速打印</a-button>
+      </template>
+    </a-page-header>
+    <!-- 基础信息 -->
+    <a-card :bordered="false" class="chainTransferOutEdit-cont">
+      <a-collapse :activeKey="['1']">
+        <a-collapse-panel key="1">
+          <template slot="header">
+            基础信息
+            <a-button type="primary" shape="circle" size="small" icon="edit" class="edit-circle-btn" id="chainTransferOutEdit-circle-btn" @click.stop="handleEditInfo" />
+          </template>
+          <a-descriptions :column="3">
+            <a-descriptions-item label="调往对象">箭冠营销中心</a-descriptions-item>
+          </a-descriptions>
+        </a-collapse-panel>
+      </a-collapse>
+    </a-card>
+    <!-- 选择产品 -->
+    <a-card :bordered="false" class="chainTransferOutEdit-cont">
+      <a-collapse :activeKey="['1']">
+        <a-collapse-panel key="1" header="选择产品">
+          <!-- 筛选条件 -->
+          <div class="table-page-search-wrapper">
+            <a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
+              <a-row :gutter="15">
+                <a-col :md="6" :sm="24">
+                  <a-form-item label="产品编码" prop="name">
+                    <a-input id="chainTransferOutEdit-name" v-model="queryParam.name" placeholder="请输入产品编码" allowClear />
+                  </a-form-item>
+                </a-col>
+                <a-col :md="6" :sm="24">
+                  <a-form-item label="产品名称" prop="name">
+                    <a-input id="chainTransferOutEdit-name" v-model="queryParam.name" placeholder="请输入产品名称" allowClear />
+                  </a-form-item>
+                </a-col>
+                <a-col :md="6" :sm="24">
+                  <a-form-item label="原厂编码" prop="name">
+                    <a-input id="chainTransferOutEdit-name" v-model="queryParam.name" placeholder="请输入原厂编码" allowClear />
+                  </a-form-item>
+                </a-col>
+                <template v-if="advanced">
+                  <a-col :md="6" :sm="24">
+                    <a-form-item label="产品品牌">
+                      <a-select placeholder="请选择" id="chainTransferOutEdit-state" allowClear v-model="queryParam.dataSourceNo" :showSearch="true" option-filter-prop="children" :filter-option="filterOption">
+                        <a-select-option v-for="item in brandData" :key="item.salesChannelNo" :value="item.salesChannelNo">{{ item.salesChannelName }}</a-select-option>
+                      </a-select>
+                    </a-form-item>
+                  </a-col>
+                  <a-col :md="6" :sm="24">
+                    <a-form-item label="产品类别">
+                      <a-cascader :options="typeData" id="chainTransferOutEdit-state" placeholder="请选择产品类别" allowClear v-model="queryParam.brand" />
+                    </a-form-item>
+                  </a-col>
+                  <a-col :md="6" :sm="24">
+                    <a-form-item label="仓库">
+                      <v-select
+                        v-model="queryParam.billStatus"
+                        ref="billStatus"
+                        id="chainTransferOutEdit-billStatus"
+                        code="PAYMENT_TYPE"
+                        placeholder="请选择仓库"
+                        allowClear></v-select>
+                    </a-form-item>
+                  </a-col>
+                </template>
+                <a-col :md="6" :sm="24" style="margin-bottom: 24px;">
+                  <a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="chainTransferOutList-refresh">查询</a-button>
+                  <a-button style="margin-left: 8px" @click="resetSearchForm" :disabled="disabled" id="chainTransferOutList-reset">重置</a-button>
+                  <a @click="advanced=!advanced" style="margin-left: 8px">
+                    {{ advanced ? '收起' : '展开' }}
+                    <a-icon :type="advanced ? 'up' : 'down'"/>
+                  </a>
+                </a-col>
+              </a-row>
+            </a-form>
+          </div>
+          <!-- 列表 -->
+          <s-table
+            class="sTable"
+            ref="table"
+            size="default"
+            :rowKey="(record) => record.id"
+            :columns="columns"
+            :data="loadData"
+            bordered>
+            <!-- 调出数量 -->
+            <template slot="transferOutQuantity" slot-scope="text, record">
+              <a-input-number
+                id="chainTransferOutEdit-storageQuantity"
+                :value="record.storageQuantity"
+                :precision="0"
+                :min="0"
+                :max="999999"
+                placeholder="请输入" />
+            </template>
+            <!-- 操作 -->
+            <template slot="action" slot-scope="text, record">
+              <a-button type="primary" @click="handleAdd(record)" id="chainTransferOutEdit-add-btn">添加</a-button>
+            </template>
+          </s-table>
+        </a-collapse-panel>
+      </a-collapse>
+    </a-card>
+    <!-- 已选产品 -->
+    <a-card :bordered="false" class="chainTransferOutEdit-cont">
+      <a-collapse :activeKey="['1']">
+        <a-collapse-panel key="1" header="已选产品">
+          <!-- 总计 -->
+          <a-alert type="info" showIcon style="margin-bottom:15px">
+            <div slot="message">总成本:¥<strong>6.33</strong>,总数量: <strong>6</strong> ,总款数: <strong>6</strong> </div>
+          </a-alert>
+          <!-- 筛选条件 -->
+          <a-row :gutter="15" justify="space-between">
+            <a-col :span="18">
+              <div class="table-page-search-wrapper">
+                <a-form layout="inline" @keyup.enter.native="$refs.chooseTable.refresh(true)">
+                  <a-row :gutter="15">
+                    <a-col :md="6" :sm="24">
+                      <a-form-item label="产品编码" prop="name">
+                        <a-input id="chainTransferOutEdit-name" v-model="queryParam.name" placeholder="请输入产品编码" allowClear />
+                      </a-form-item>
+                    </a-col>
+                    <a-col :md="6" :sm="24">
+                      <a-form-item label="产品名称" prop="name">
+                        <a-input id="chainTransferOutEdit-name" v-model="queryParam.name" placeholder="请输入产品名称" allowClear />
+                      </a-form-item>
+                    </a-col>
+                    <a-col :md="6" :sm="24" style="margin-bottom: 24px;">
+                      <a-button type="primary" @click="$refs.chooseTable.refresh(true)" :disabled="disabled" id="chainTransferOutList-refresh">查询</a-button>
+                      <a-button style="margin-left: 8px" @click="resetSearchForm" :disabled="disabled" id="chainTransferOutList-reset">重置</a-button>
+                    </a-col>
+                  </a-row>
+                </a-form>
+              </div>
+            </a-col>
+            <a-col :span="6">
+              <a-button style="margin-left: 8px" id="chainTransferOutEdit-import-btn">导入明细</a-button>
+              <a-button type="danger" style="margin-left: 8px" id="chainTransferOutEdit-del-all-btn">整单删除</a-button>
+            </a-col>
+          </a-row>
+          <!-- 列表 -->
+          <s-table
+            class="sTable"
+            ref="chooseTable"
+            size="default"
+            :rowKey="(record) => record.id"
+            :columns="chooseColumns"
+            :data="chooseLoadData"
+            bordered>
+            <!-- 调出数量 -->
+            <template slot="transferOutQuantity" slot-scope="text, record">
+              <a-input-number
+                id="chainTransferOutEdit-storageQuantity"
+                :value="record.storageQuantity"
+                :precision="0"
+                :min="0"
+                :max="999999"
+                placeholder="请输入" />
+            </template>
+            <!-- 操作 -->
+            <template slot="action" slot-scope="text, record">
+              <a-button type="danger" @click="handleDel(record)" id="chainTransferOutEdit-del-btn">删除</a-button>
+            </template>
+          </s-table>
+        </a-collapse-panel>
+      </a-collapse>
+    </a-card>
+    <a-affix :offset-bottom="0">
+      <div style="text-align: center;width: 100%;background-color: #fff;padding: 30px 0;box-shadow: 0 0 20px #dcdee2;">
+        <a-button type="primary" id="chainTransferOutEdit-submit" size="large" @click="handleSubmit" style="padding: 0 60px;">提交</a-button>
+      </div>
+    </a-affix>
+    <!-- 选择基本信息弹框 -->
+    <basic-info-modal :openModal="openModal" @ok="handleOk" @close="openModal=false" />
+  </div>
+</template>
+
+<script>
+  import { STable, VSelect } from '@/components'
+  import basicInfoModal from './basicInfoModal.vue'
+  export default{
+    components: { STable, VSelect, basicInfoModal },
+    data(){
+      return{
+        queryParam: {
+          
+        },
+        brandData: [],  //  产品品牌  下拉数据
+        typeData: [],  //  产品类别  下拉数据
+        disabled: false, //  查询、重置按钮是否可操作
+        advanced: false,  // 高级搜索 展开/关闭
+        // 表头
+        columns: [
+          { title: '产品编码', dataIndex: 'creatDate', align: 'center' },
+          { title: '产品名称', dataIndex: 'custNahme', align: 'center', ellipsis: true },
+          { title: '原厂编码', dataIndex: 'totalP', align: 'center' },
+          { title: '品牌', dataIndex: 'custsNsame', align: 'center' },
+          { title: '仓库', dataIndex: 'custsNdame', align: 'center' },
+          { title: '仓位', dataIndex: 'custsNafme', align: 'center' },
+          { title: '成本价', dataIndex: 'storageQuantity', align: 'center' },
+          { title: '库存数量', dataIndex: 'custsNagme', align: 'center' },
+          { title: '单位', dataIndex: 'custsNsagme', align: 'center' },
+          { title: '调出数量', scopedSlots: { customRender: 'transferOutQuantity' }, align: 'center' },
+          { title: '操作', scopedSlots: { customRender: 'action' }, width: 150, align: 'center' }
+        ],
+        // 加载数据方法 必须为 Promise 对象
+        loadData: parameter => {
+          this.disabled = true
+          // return customerBundleDelayList( Object.assign(parameter, this.queryParam) ).then(res => {
+          //   const data = res.data
+          //   const no = (data.pageNo - 1) * data.pageSize
+          //   for (var i = 0; i < data.list.length; i++) {
+          //     data.list[i].no = no + i + 1
+          //   }
+          //   this.disabled = false
+          //   return data
+          // })
+          const _this = this
+          return new Promise(function(resolve, reject){
+            const data = {
+              pageNo: 1,
+              pageSize: 10,
+              list: [
+                { id: '1', purchaseNo: 'jgqp11111111111', creatDate: '产品1', custName: 'jgqp111123545', totalP: '箭冠品牌', totalNums: '产品分类1', totalPrice: '5', payType: '122' }
+              ],
+              count: 10
+            }
+            const no = (data.pageNo - 1) * data.pageSize
+            for (var i = 0; i < data.list.length; i++) {
+              data.list[i].no = no + i + 1
+            }
+            _this.disabled = false
+            resolve(data)
+          })
+        },
+        // 表头
+        chooseColumns: [
+          { title: '序号', dataIndex: 'no', align: 'center' },
+          { title: '产品编码', dataIndex: 'creatDate', align: 'center' },
+          { title: '产品名称', dataIndex: 'custNahme', align: 'center', ellipsis: true },
+          { title: '原厂编码', dataIndex: 'totalP', align: 'center' },
+          { title: '品牌', dataIndex: 'custsNsame', align: 'center' },
+          { title: '仓库', dataIndex: 'custsNdame', align: 'center' },
+          { title: '仓位', dataIndex: 'custsNafme', align: 'center' },
+          { title: '成本价', dataIndex: 'storageQuantity', align: 'center' },
+          { title: '单位', dataIndex: 'custsNsagme', align: 'center' },
+          { title: '调出数量', scopedSlots: { customRender: 'transferOutQuantity' }, align: 'center' },
+          { title: '成本小计', dataIndex: 'custsNagme', align: 'center' },
+          { title: '操作', scopedSlots: { customRender: 'action' }, width: 150, align: 'center' }
+        ],
+        // 加载数据方法 必须为 Promise 对象
+        chooseLoadData: parameter => {
+          this.disabled = true
+          // return customerBundleDelayList( Object.assign(parameter, this.queryParam) ).then(res => {
+          //   const data = res.data
+          //   const no = (data.pageNo - 1) * data.pageSize
+          //   for (var i = 0; i < data.list.length; i++) {
+          //     data.list[i].no = no + i + 1
+          //   }
+          //   this.disabled = false
+          //   return data
+          // })
+          const _this = this
+          return new Promise(function(resolve, reject){
+            const data = {
+              pageNo: 1,
+              pageSize: 10,
+              list: [
+                { id: '1', purchaseNo: 'jgqp11111111111', custssName: 0, creatDate: '产品1', custName: 'jgqp111123545', totalP: '箭冠品牌', totalNums: '产品分类1', totalPrice: '5', payType: '122' }
+              ],
+              count: 10
+            }
+            const no = (data.pageNo - 1) * data.pageSize
+            for (var i = 0; i < data.list.length; i++) {
+              data.list[i].no = no + i + 1
+            }
+            _this.disabled = false
+            resolve(data)
+          })
+        },
+        openModal: false, // 选择基本信息弹框是否显示
+      }
+    },
+    methods: {
+      //  重置
+      resetSearchForm () {
+        this.queryParam.orderBundleNo = ''
+        this.queryParam.orderBundle.custMobile = ''
+        this.queryParam.bundleName = ''
+        this.queryParam.itemName = ''
+        this.oldTime = undefined
+        this.newTime = undefined
+        this.$refs.table.refresh(true)
+      },
+      //  添加
+      handleAdd(row){},
+      //  删除
+      handleDel(row){},
+      //  编辑基本信息
+      handleEditInfo(){
+        this.openModal = true
+      },
+      //  基本信息  保存
+      handleOk(){
+        
+      },
+      //  提交
+      handleSubmit(){},
+      //  导入明细
+      handleImport(){
+        console.log(333)
+      },
+      //  返回列表
+      handleBack(){
+        this.$router.push({ path: '/inventoryManagement/chainTransferOut/list'})
+      },
+      filterOption(input, option) {
+      	return (
+      		option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
+      	)
+      },
+    },
+    beforeRouteEnter (to, from, next) {
+      next(vm => {
+        vm.openModal = false
+      })
+    }
+  }
+</script>
+
+<style lang="less">
+  .chainTransferOutEdit-wrap{
+    .chainTransferOutEdit-back{
+      margin-bottom: 15px;
+    }
+    .chainTransferOutEdit-cont{
+      margin-bottom: 15px;
+      .sub-title{
+        font-size: 12px;
+        color: #808695;
+        margin-left: 10px;
+      }
+      .tag-txt{
+        font-size: 12px;
+        color: #ff0000;
+      }
+      .edit-circle-btn{
+        margin-left: 15px;
+        i{
+          vertical-align: text-bottom;
+        }
+      }
+      .import-btn{
+        margin-left: 15px;
+      }
+    }
+  }
+</style>

+ 242 - 0
src/views/chainAllocation/chainTransferOut/list.vue

@@ -0,0 +1,242 @@
+<template>
+  <a-card :bordered="false" class="chainTransferOutList-wrap">
+    <!-- 搜索条件 -->
+    <div class="table-page-search-wrapper">
+      <a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
+        <a-row :gutter="15">
+          <a-col :md="6" :sm="24">
+            <a-form-item label="创建时间">
+              <a-range-picker
+                  style="width:100%"
+                  id="chainTransferOutList-bundleNamesss"
+                  :disabledDate="disabledDate"
+                  v-model="queryParam.brand"
+                  :format="dateFormat"
+                  :placeholder="['开始时间', '结束时间']" />
+              </a-form-item>
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="24">
+            <a-form-item label="调往对象">
+              <v-select
+                v-model="queryParam.billStatus"
+                ref="billStatus"
+                id="chainTransferOutList-billStatus"
+                code="PAYMENT_TYPE"
+                placeholder="请选择调往对象"
+                allowClear></v-select>
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="24">
+            <a-form-item label="调出产品类型">
+              <v-select
+                v-model="queryParam.billStatus"
+                ref="billStatus"
+                id="chainTransferOutList-billStatus"
+                code="PAYMENT_TYPE"
+                placeholder="请选择调出产品类型"
+                allowClear></v-select>
+            </a-form-item>
+          </a-col>
+          <template v-if="advanced">
+            <a-col :md="6" :sm="24">
+              <a-form-item label="单据状态">
+                <v-select
+                  v-model="queryParam.billStatus"
+                  ref="billStatus"
+                  id="chainTransferOutList-billStatus"
+                  code="PAYMENT_TYPE"
+                  placeholder="请选择单据状态"
+                  allowClear></v-select>
+              </a-form-item>
+            </a-col>
+          </template>
+          <a-col :md="6" :sm="24" style="margin-bottom: 24px;">
+            <a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="chainTransferOutList-refresh">查询</a-button>
+            <a-button style="margin-left: 8px" @click="resetSearchForm" :disabled="disabled" id="chainTransferOutList-reset">重置</a-button>
+            <a @click="advanced=!advanced" style="margin-left: 8px">
+              {{ advanced ? '收起' : '展开' }}
+              <a-icon :type="advanced ? 'up' : 'down'"/>
+            </a>
+          </a-col>
+        </a-row>
+      </a-form>
+    </div>
+    <!-- 操作按钮 -->
+    <div class="table-operator">
+      <a-button id="chainTransferOutList-add" type="primary" @click="handleEdit()">新增调出单</a-button>
+    </div>
+    <!-- 列表 -->
+    <s-table
+      class="sTable"
+      ref="table"
+      size="default"
+      :rowKey="(record) => record.id"
+      :columns="columns"
+      :data="loadData"
+      bordered>
+      <!-- 状态 -->
+      <template slot="status" slot-scope="text, record">
+        <span :class="record.status==1?'green':'red'"> {{ record.status==1? '待提交': '待审核' }} </span>
+      </template>
+      <!-- 操作 -->
+      <template slot="action" slot-scope="text, record">
+        <a-button type="primary" @click="handleExamine(record)" id="chainTransferOutList-examine-btn">审核</a-button>
+        <a-button @click="handleEdit(record)" id="chainTransferOutList-edit-btn" style="margin: 0 0 8px 8px;">编辑</a-button>
+        <a-button type="primary" @click="handleOut(record)" id="chainTransferOutList-out-btn" style="margin: 0 0 8px 8px;">出库</a-button>
+        <a-button type="primary" @click="handleDetail(record)" id="chainTransferOutList-detail-btn" style="margin: 0 0 8px 8px;">详情</a-button>
+        <a-button type="danger" @click="handleDel(record)" id="chainTransferOutList-del-btn" style="margin: 0 0 0 8px;">删除</a-button>
+      </template>
+    </s-table>
+    <!-- 新增/编辑 -->
+    <basic-info-modal :openModal="openModal" @ok="handleOk" @close="openModal=false" />
+  </a-card>
+</template>
+
+<script>
+import moment from 'moment'
+// import { customerBundleDelayList, customerBundleExportDelay } from '@/api/FinancialManagement'
+import { STable, VSelect } from '@/components'
+import basicInfoModal from './basicInfoModal.vue'
+export default {
+  components: { STable, VSelect, basicInfoModal },
+  data () {
+    return {
+      advanced: false,  // 高级搜索 展开/关闭
+      queryParam: { //  查询条件
+        bundleName: '', //  品牌名称
+        state: undefined,  //  状态
+      },
+      disabled: false, //  查询、重置按钮是否可操作
+      dateFormat: 'YYYY-MM-DD',
+      columns: [
+        { title: '创建时间', dataIndex: 'no', width: 70, align: 'center', width: 180 },
+        { title: '连锁调出单号', dataIndex: 'productName', align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
+        { title: '调往对象', dataIndex: 'inventoryMoney', width: 180, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '总款数', dataIndex: 'inventsoryMoney', width: 180, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '总数量', dataIndex: 'inventoryModney', width: 180, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '总成本', dataIndex: 'inventoryaMoney', width: 180, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '审核时间', dataIndex: 'inventoryMongey', width: 180, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '调拨类型', dataIndex: 'productOldNum', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '状态', scopedSlots: { customRender: 'status' }, width: 180, align: 'center' },
+        { title: '操作', scopedSlots: { customRender: 'action' }, width: 300, align: 'center' }
+      ],
+      // 加载数据方法 必须为 Promise 对象
+      loadData: parameter => {
+        this.disabled = true
+        // return customerBundleDelayList( Object.assign(parameter, this.queryParam) ).then(res => {
+        //   const data = res.data
+        //   const no = (data.pageNo - 1) * data.pageSize
+        //   for (var i = 0; i < data.list.length; i++) {
+        //     data.list[i].no = no + i + 1
+        //   }
+        //   this.disabled = false
+        //   return data
+        // })
+        const _this = this
+        return new Promise(function(resolve, reject){
+          const data = {
+            pageNo: 1,
+            pageSize: 10,
+            list: [
+              { id: '1', productNum: 'jgqp11111111111', productName: '产品1', productOldNum: 'jgqp111123545', productBrand: '箭冠品牌', productType: '产品分类1', inventoryNum: '5', inventoryMoney: '122' }
+            ]
+          }
+          const no = (data.pageNo - 1) * data.pageSize
+          for (var i = 0; i < data.list.length; i++) {
+            data.list[i].no = no + i + 1
+          }
+          _this.disabled = false
+          resolve(data)
+        })
+      },
+      openModal: false,  //  新增编辑  弹框
+      itemId: ''  //  当前品牌id
+    }
+  },
+  methods: {
+    // 不可选日期
+    disabledDate (date, dateStrings) {
+      return date && date.valueOf() > Date.now()
+    },
+    //  重置
+    resetSearchForm () {
+      this.queryParam.orderBundleNo = ''
+      this.queryParam.orderBundle.custMobile = ''
+      this.queryParam.bundleName = ''
+      this.queryParam.itemName = ''
+      this.oldTime = undefined
+      this.newTime = undefined
+      this.$refs.table.refresh(true)
+    },
+    //  基本信息  保存
+    handleOk(){
+      this.$router.push({ path: `/chainAllocation/chainTransferOut/add` })
+    },
+    //  删除
+    handleDel(row){
+      const _this = this
+      this.$confirm({
+        title: '提示',
+        content: '删除后不可恢复,确定要进行删除吗?',
+        okText: '确定',
+        cancelText: '取消',
+        onOk () {
+          // delectRolePower({
+          //   id: row.id
+          // }).then(res => {
+          //   console.log(res, 'res1111')
+          //   if (res.status == 200) {
+          //     _this.$message.success(res.message)
+          //     _this.$refs.table.refresh()
+          //   }
+          // })
+        }
+      })
+    },
+    //  出库
+    handleOut(row){
+      
+    },
+    //  审核
+    handleExamine(){
+      const _this = this
+      this.$confirm({
+        title: '提示',
+        content: '确认要审核通过吗?',
+        okText: '确定',
+        cancelText: '取消',
+        onOk () {
+          // delectRolePower({
+          //   id: row.id
+          // }).then(res => {
+          //   console.log(res, 'res1111')
+          //   if (res.status == 200) {
+          //     _this.$message.success(res.message)
+          //     _this.$refs.table.refresh()
+          //   }
+          // })
+        }
+      })
+    },
+    //  详情
+    handleDetail(row){
+      this.$router.push({ path: `/chainAllocation/chainTransferOut/detail/${row.id}` })
+    },
+    //  新增/编辑
+    handleEdit(row){
+      this.openModal = true
+    },
+  }
+}
+</script>
+
+<style lang="less">
+  .chainTransferOutList-wrap{
+    .sTable{
+      table{
+        width: auto;
+      }
+    }
+  }
+</style>

+ 1 - 1
src/views/inventoryManagement/warehouseAllocation/basicInfoModal.vue

@@ -1,5 +1,5 @@
 <template>
 <template>
-	<a-modal centered class="warehouseAllocation-basicInfo-modal" :footer="null" :maskClosable="false" title="新散件入库单" v-model="isShow" @cancle="isShow = false" width="80%">
+	<a-modal centered class="warehouseAllocation-basicInfo-modal" :footer="null" :maskClosable="false" title="新散件入库单" v-model="isShow" @cancle="isShow = false" width="80%">
 		<a-form-model
 		<a-form-model
 			id="warehouseAllocation-basicInfo-form"
 			id="warehouseAllocation-basicInfo-form"
 			ref="ruleForm"
 			ref="ruleForm"

+ 1 - 1
src/views/inventoryManagement/warehouseAllocation/edit.vue

@@ -191,7 +191,7 @@
     </a-card>
     </a-card>
     <a-affix :offset-bottom="0">
     <a-affix :offset-bottom="0">
       <div style="text-align: center;width: 100%;background-color: #fff;padding: 30px 0;box-shadow: 0 0 20px #dcdee2;">
       <div style="text-align: center;width: 100%;background-color: #fff;padding: 30px 0;box-shadow: 0 0 20px #dcdee2;">
-        <a-button type="primary" size="large" @click="handleSubmit" style="padding: 0 60px;">提交</a-button>
+        <a-button type="primary" id="warehouseAllocationEdit-submit" size="large" @click="handleSubmit" style="padding: 0 60px;">提交</a-button>
       </div>
       </div>
     </a-affix>
     </a-affix>
     <!-- 选择基本信息弹框 -->
     <!-- 选择基本信息弹框 -->

+ 4 - 4
src/views/inventoryManagement/warehouseAllocation/list.vue

@@ -8,7 +8,7 @@
             <a-form-item label="创建时间">
             <a-form-item label="创建时间">
               <a-range-picker
               <a-range-picker
                   style="width:100%"
                   style="width:100%"
-                  id="inventoryQueryWarehouseDetail-bundleNamesss"
+                  id="warehouseAllocationList-bundleNamesss"
                   :disabledDate="disabledDate"
                   :disabledDate="disabledDate"
                   v-model="queryParam.brand"
                   v-model="queryParam.brand"
                   :format="dateFormat"
                   :format="dateFormat"
@@ -21,7 +21,7 @@
               <v-select
               <v-select
                 v-model="queryParam.billStatus"
                 v-model="queryParam.billStatus"
                 ref="billStatus"
                 ref="billStatus"
-                id="bulkWarehousingOrderList-billStatus"
+                id="warehouseAllocationList-billStatus"
                 code="PAYMENT_TYPE"
                 code="PAYMENT_TYPE"
                 placeholder="请选择调出仓库"
                 placeholder="请选择调出仓库"
                 allowClear></v-select>
                 allowClear></v-select>
@@ -32,7 +32,7 @@
               <v-select
               <v-select
                 v-model="queryParam.billStatus"
                 v-model="queryParam.billStatus"
                 ref="billStatus"
                 ref="billStatus"
-                id="bulkWarehousingOrderList-billStatus"
+                id="warehouseAllocationList-billStatus"
                 code="PAYMENT_TYPE"
                 code="PAYMENT_TYPE"
                 placeholder="请选择调入仓库"
                 placeholder="请选择调入仓库"
                 allowClear></v-select>
                 allowClear></v-select>
@@ -44,7 +44,7 @@
                 <v-select
                 <v-select
                   v-model="queryParam.billStatus"
                   v-model="queryParam.billStatus"
                   ref="billStatus"
                   ref="billStatus"
-                  id="bulkWarehousingOrderList-billStatus"
+                  id="warehouseAllocationList-billStatus"
                   code="PAYMENT_TYPE"
                   code="PAYMENT_TYPE"
                   placeholder="请选择单据状态"
                   placeholder="请选择单据状态"
                   allowClear></v-select>
                   allowClear></v-select>