|
@@ -50,7 +50,7 @@
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
<a-form-item label="仓库">
|
|
<a-form-item label="仓库">
|
|
<a-select id="chainTransferOutEdit-warehouseSn" allowClear placeholder="请选择仓库" v-model="queryParam.warehouseSn" >
|
|
<a-select id="chainTransferOutEdit-warehouseSn" allowClear placeholder="请选择仓库" v-model="queryParam.warehouseSn" >
|
|
- <a-select-option v-for="item in warehouseList" :key="item.warehouseSn" :value="item.warehouseSn">{{ item.name }}</a-select-option>
|
|
|
|
|
|
+ <a-select-option v-for="item in warehouseList" :id="'warehouseSn-'+item.warehouseSn" :key="item.warehouseSn" :value="item.warehouseSn">{{ item.name }}</a-select-option>
|
|
</a-select>
|
|
</a-select>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
@@ -58,7 +58,7 @@
|
|
<a-col :md="6" :sm="24" style="margin-bottom: 10px;">
|
|
<a-col :md="6" :sm="24" style="margin-bottom: 10px;">
|
|
<a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="chainTransferOutEdit-refresh">查询</a-button>
|
|
<a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="chainTransferOutEdit-refresh">查询</a-button>
|
|
<a-button style="margin-left: 8px" @click="resetSearchForm" :disabled="disabled" id="chainTransferOutEdit-reset">重置</a-button>
|
|
<a-button style="margin-left: 8px" @click="resetSearchForm" :disabled="disabled" id="chainTransferOutEdit-reset">重置</a-button>
|
|
- <a @click="advanced=!advanced" style="margin-left: 8px">
|
|
|
|
|
|
+ <a @click="advanced=!advanced" style="margin-left: 8px" id="chainTransferOutEdit-advanced">
|
|
{{ advanced ? '收起' : '展开' }}
|
|
{{ advanced ? '收起' : '展开' }}
|
|
<a-icon :type="advanced ? 'up' : 'down'"/>
|
|
<a-icon :type="advanced ? 'up' : 'down'"/>
|
|
</a>
|
|
</a>
|
|
@@ -84,7 +84,7 @@
|
|
<div @dblclick.stop>
|
|
<div @dblclick.stop>
|
|
<a-input-number
|
|
<a-input-number
|
|
size="small"
|
|
size="small"
|
|
- id="chainTransferOutEdit-outQty"
|
|
|
|
|
|
+ :id="'chainTransferOutEdit-outQty-'+record.stockDetailSn"
|
|
v-model="record.outQty"
|
|
v-model="record.outQty"
|
|
:precision="0"
|
|
:precision="0"
|
|
:min="1"
|
|
:min="1"
|
|
@@ -95,7 +95,7 @@
|
|
</template>
|
|
</template>
|
|
<!-- 操作 -->
|
|
<!-- 操作 -->
|
|
<template slot="action" slot-scope="text, record">
|
|
<template slot="action" slot-scope="text, record">
|
|
- <a-button size="small" type="link" class="button-primary" @click="handleAdd(record)" id="chainTransferOutEdit-add-btn">添加</a-button>
|
|
|
|
|
|
+ <a-button :id="'chainTransferOutEdit-add-'+record.stockDetailSn" size="small" type="link" class="button-primary" @click="handleAdd(record)">添加</a-button>
|
|
</template>
|
|
</template>
|
|
</s-table>
|
|
</s-table>
|
|
</a-collapse-panel>
|
|
</a-collapse-panel>
|
|
@@ -123,17 +123,17 @@
|
|
<a-row :gutter="15">
|
|
<a-row :gutter="15">
|
|
<a-col :md="9" :sm="24">
|
|
<a-col :md="9" :sm="24">
|
|
<a-form-item label="产品编码" prop="productCode">
|
|
<a-form-item label="产品编码" prop="productCode">
|
|
- <a-input id="chainTransferOutEdit-productCode" v-model.trim="chooseQueryParam.productCode" placeholder="请输入产品编码" allowClear />
|
|
|
|
|
|
+ <a-input id="coe-choosed-productCode" v-model.trim="chooseQueryParam.productCode" placeholder="请输入产品编码" allowClear />
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="9" :sm="24">
|
|
<a-col :md="9" :sm="24">
|
|
<a-form-item label="产品名称" prop="productName">
|
|
<a-form-item label="产品名称" prop="productName">
|
|
- <a-input id="chainTransferOutEdit-productName" v-model.trim="chooseQueryParam.productName" placeholder="请输入产品名称" allowClear />
|
|
|
|
|
|
+ <a-input id="coe-choosed-productName" v-model.trim="chooseQueryParam.productName" placeholder="请输入产品名称" allowClear />
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="6" :sm="24" style="margin-bottom: 10px;">
|
|
<a-col :md="6" :sm="24" style="margin-bottom: 10px;">
|
|
- <a-button type="primary" @click="$refs.chooseTable.refresh(true)" :disabled="chooseDisabled" id="chainTransferOutList-refresh">查询</a-button>
|
|
|
|
- <a-button style="margin-left: 8px" @click="chooseResetSearchForm" :disabled="chooseDisabled" id="chainTransferOutList-reset">重置</a-button>
|
|
|
|
|
|
+ <a-button type="primary" @click="$refs.chooseTable.refresh(true)" :disabled="chooseDisabled" id="coe-choosed-refresh">查询</a-button>
|
|
|
|
+ <a-button style="margin-left: 8px" @click="chooseResetSearchForm" :disabled="chooseDisabled" id="coe-choosed-reset">重置</a-button>
|
|
</a-col>
|
|
</a-col>
|
|
</a-row>
|
|
</a-row>
|
|
</a-form>
|
|
</a-form>
|
|
@@ -146,7 +146,7 @@
|
|
size="small"
|
|
size="small"
|
|
@click="openGuideModal=true"
|
|
@click="openGuideModal=true"
|
|
style="margin-right: 5px"
|
|
style="margin-right: 5px"
|
|
- id="chainTransferOutEdit-import-btn">导入产品</a-button>
|
|
|
|
|
|
+ id="coe-choosed-import-btn">导入产品</a-button>
|
|
<a-button
|
|
<a-button
|
|
size="small"
|
|
size="small"
|
|
type="primary"
|
|
type="primary"
|
|
@@ -154,7 +154,7 @@
|
|
style="margin-left: 8px"
|
|
style="margin-left: 8px"
|
|
:disabled="localDataSource.length==0"
|
|
:disabled="localDataSource.length==0"
|
|
@click.stop="handleDel('', 'all')"
|
|
@click.stop="handleDel('', 'all')"
|
|
- id="chainTransferOutEdit-del-all-btn">清空列表</a-button>
|
|
|
|
|
|
+ id="coe-choosed-del-all-btn">清空列表</a-button>
|
|
</a-col>
|
|
</a-col>
|
|
</a-row>
|
|
</a-row>
|
|
<!-- 列表 -->
|
|
<!-- 列表 -->
|
|
@@ -170,7 +170,7 @@
|
|
bordered>
|
|
bordered>
|
|
<!-- 操作 -->
|
|
<!-- 操作 -->
|
|
<template slot="action" slot-scope="text, record">
|
|
<template slot="action" slot-scope="text, record">
|
|
- <a-button size="small" type="link" class="button-error" @click="handleDel(record)" id="chainTransferOutEdit-del-btn">删除</a-button>
|
|
|
|
|
|
+ <a-button size="small" type="link" class="button-error" @click="handleDel(record)" :id="'coe-choosed-del-btn-'+record.id">删除</a-button>
|
|
</template>
|
|
</template>
|
|
</s-table>
|
|
</s-table>
|
|
</a-collapse-panel>
|
|
</a-collapse-panel>
|
|
@@ -196,14 +196,17 @@
|
|
import { commonMixin } from '@/utils/mixin'
|
|
import { commonMixin } from '@/utils/mixin'
|
|
import { STable, VSelect } from '@/components'
|
|
import { STable, VSelect } from '@/components'
|
|
import { getOperationalPrecision } from '@/libs/tools.js'
|
|
import { getOperationalPrecision } from '@/libs/tools.js'
|
|
-import { allocLinkageOutDetailSn, allocLinkageOutDetailList, allocLinkageOutDetailSave, allocLinkageOutDetailDel, allocLinkageOutDetailCount, allocLinkageOutSubmit, allocLinkageOutDetailDelAll, allocLinkageOutDetailPrint, importProductInsertBatch } from '@/api/allocLinkageOut'
|
|
|
|
-import { productQuery } from '@/api/allocWarehouse'
|
|
|
|
|
|
+import { hdPrint } from '@/libs/JGPrint'
|
|
|
|
+// 组件
|
|
|
|
+import Print from '@/views/common/print.vue'
|
|
|
|
+import importGuideModal from './importGuideModal.vue'
|
|
import ProductType from '../../common/productType.js'
|
|
import ProductType from '../../common/productType.js'
|
|
import ProductBrand from '../../common/productBrand.js'
|
|
import ProductBrand from '../../common/productBrand.js'
|
|
|
|
+// 接口
|
|
import { warehouseAllList } from '@/api/warehouse'
|
|
import { warehouseAllList } from '@/api/warehouse'
|
|
-import Print from '@/views/common/print.vue'
|
|
|
|
-import { hdPrint } from '@/libs/JGPrint'
|
|
|
|
-import importGuideModal from './importGuideModal.vue'
|
|
|
|
|
|
+import { productQuery } from '@/api/allocWarehouse'
|
|
|
|
+import { allocLinkageOutDetailSn, allocLinkageOutDetailList, allocLinkageOutDetailSave, allocLinkageOutDetailDel, allocLinkageOutDetailCount, allocLinkageOutSubmit, allocLinkageOutDetailDelAll, allocLinkageOutDetailPrint, importProductInsertBatch } from '@/api/allocLinkageOut'
|
|
|
|
+
|
|
export default {
|
|
export default {
|
|
name: 'AllocLinkageOutEdit',
|
|
name: 'AllocLinkageOutEdit',
|
|
components: { STable, VSelect, Print, ProductType, ProductBrand, importGuideModal },
|
|
components: { STable, VSelect, Print, ProductType, ProductBrand, importGuideModal },
|
|
@@ -212,20 +215,20 @@ export default {
|
|
return {
|
|
return {
|
|
spinning: false,
|
|
spinning: false,
|
|
queryParam: {
|
|
queryParam: {
|
|
- productCode: '',
|
|
|
|
- productName: '',
|
|
|
|
- productOrigCode: '',
|
|
|
|
- warehouseSn: undefined,
|
|
|
|
- brandSn: undefined,
|
|
|
|
- productTypeSn1: undefined,
|
|
|
|
- productTypeSn2: undefined,
|
|
|
|
- productTypeSn3: undefined
|
|
|
|
|
|
+ productCode: '', // 产品编码
|
|
|
|
+ productName: '', // 产品名称
|
|
|
|
+ productOrigCode: '', // 原厂编码
|
|
|
|
+ warehouseSn: undefined, // 仓库sn
|
|
|
|
+ brandSn: undefined, // 品牌sn
|
|
|
|
+ productTypeSn1: undefined, // 产品类型1
|
|
|
|
+ productTypeSn2: undefined, // 产品类型2
|
|
|
|
+ productTypeSn3: undefined// 产品类型3
|
|
},
|
|
},
|
|
- productType: [],
|
|
|
|
|
|
+ productType: [], // 产品分类默认值
|
|
warehouseList: [], // 仓库 下拉数据
|
|
warehouseList: [], // 仓库 下拉数据
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
- chooseDisabled: false,
|
|
|
|
- openGuideModal: false,
|
|
|
|
|
|
+ chooseDisabled: false, // 按钮禁用
|
|
|
|
+ openGuideModal: false, // 打开导入产品弹框
|
|
advanced: false, // 高级搜索 展开/关闭
|
|
advanced: false, // 高级搜索 展开/关闭
|
|
// 加载数据方法 必须为 Promise 对象
|
|
// 加载数据方法 必须为 Promise 对象
|
|
loadData: parameter => {
|
|
loadData: parameter => {
|
|
@@ -244,8 +247,8 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
chooseQueryParam: {
|
|
chooseQueryParam: {
|
|
- productCode: '',
|
|
|
|
- productName: ''
|
|
|
|
|
|
+ productCode: '', // 产品编码
|
|
|
|
+ productName: ''// 产品名称
|
|
},
|
|
},
|
|
// 加载数据方法 必须为 Promise 对象
|
|
// 加载数据方法 必须为 Promise 对象
|
|
chooseLoadData: parameter => {
|
|
chooseLoadData: parameter => {
|
|
@@ -267,7 +270,7 @@ export default {
|
|
},
|
|
},
|
|
basicInfoData: null, // 基本信息
|
|
basicInfoData: null, // 基本信息
|
|
productTotal: null, // 合计
|
|
productTotal: null, // 合计
|
|
- localDataSource: []
|
|
|
|
|
|
+ localDataSource: [] // 原始数据
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -292,6 +295,7 @@ export default {
|
|
}
|
|
}
|
|
return arr
|
|
return arr
|
|
},
|
|
},
|
|
|
|
+ // 已选列
|
|
chooseColumns () {
|
|
chooseColumns () {
|
|
const _this = this
|
|
const _this = this
|
|
const arr = [
|
|
const arr = [
|
|
@@ -308,6 +312,7 @@ export default {
|
|
// { title: '成本小计', dataIndex: 'costSubtotal', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
// { title: '成本小计', dataIndex: 'costSubtotal', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: '8%', align: 'center' }
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: '8%', align: 'center' }
|
|
]
|
|
]
|
|
|
|
+ // 成本价权限
|
|
if (this.$hasPermissions('M_ShowAllCost')) {
|
|
if (this.$hasPermissions('M_ShowAllCost')) {
|
|
arr.splice(8, 0, { title: '成本价', dataIndex: 'outCost', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text, 2) : '--') } })
|
|
arr.splice(8, 0, { title: '成本价', dataIndex: 'outCost', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text, 2) : '--') } })
|
|
arr.splice(10, 0, { title: '成本小计', dataIndex: 'costSubtotal', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text, 2) : '--') } })
|
|
arr.splice(10, 0, { title: '成本小计', dataIndex: 'costSubtotal', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text, 2) : '--') } })
|
|
@@ -321,6 +326,7 @@ export default {
|
|
this.resetData()
|
|
this.resetData()
|
|
this.$refs.table.refresh(true)
|
|
this.$refs.table.refresh(true)
|
|
},
|
|
},
|
|
|
|
+ // 重置数据
|
|
resetData () {
|
|
resetData () {
|
|
this.queryParam.productCode = ''
|
|
this.queryParam.productCode = ''
|
|
this.queryParam.productName = ''
|
|
this.queryParam.productName = ''
|
|
@@ -439,12 +445,7 @@ export default {
|
|
},
|
|
},
|
|
// 返回列表
|
|
// 返回列表
|
|
handleBack () {
|
|
handleBack () {
|
|
- this.$router.push({ path: '/allocationManagement/chainTransferOut/list' })
|
|
|
|
- },
|
|
|
|
- filterOption (input, option) {
|
|
|
|
- return (
|
|
|
|
- option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
- )
|
|
|
|
|
|
+ this.$router.push({ name: 'chainTransferOutList' })
|
|
},
|
|
},
|
|
// 合计
|
|
// 合计
|
|
getDetailCount (params) {
|
|
getDetailCount (params) {
|
|
@@ -483,6 +484,7 @@ export default {
|
|
_this.spinning = false
|
|
_this.spinning = false
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ // 页面初始化
|
|
pageInit () {
|
|
pageInit () {
|
|
this.resetData()
|
|
this.resetData()
|
|
this.chooseResetSearchForm()
|
|
this.chooseResetSearchForm()
|