|
@@ -37,32 +37,14 @@
|
|
|
</a-col>
|
|
|
<template v-if="advanced">
|
|
|
<a-col :md="6" :sm="24">
|
|
|
- <a-form-item label="产品品牌">
|
|
|
- <a-select
|
|
|
- placeholder="请选择"
|
|
|
- id="chainTransferOutEdit-brandSn"
|
|
|
- allowClear
|
|
|
- v-model="queryParam.brandSn"
|
|
|
- :showSearch="true"
|
|
|
- option-filter-prop="children"
|
|
|
- :filter-option="filterOption">
|
|
|
- <a-select-option v-for="item in productBrandList" :key="item.brandSn" :value="item.brandSn">{{ item.brandName }}</a-select-option>
|
|
|
- </a-select>
|
|
|
- </a-form-item>
|
|
|
+ <a-form-model-item label="产品品牌">
|
|
|
+ <ProductBrand id="chainTransferOutEdit-brandSn" placeholder="请选择产品品牌" v-model="queryParam.brandSn"></ProductBrand>
|
|
|
+ </a-form-model-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
- <a-form-item label="产品分类">
|
|
|
- <a-cascader
|
|
|
- @change="changeProductType"
|
|
|
- change-on-select
|
|
|
- v-model="productType"
|
|
|
- expand-trigger="hover"
|
|
|
- :options="productTypeList"
|
|
|
- :fieldNames="{ label: 'productTypeName', value: 'productTypeSn', children: 'children' }"
|
|
|
- id="chainTransferOutEdit-productType"
|
|
|
- placeholder="请选择产品分类"
|
|
|
- allowClear />
|
|
|
- </a-form-item>
|
|
|
+ <a-form-model-item label="产品分类">
|
|
|
+ <ProductType id="chainTransferOutEdit-productType" placeholder="请选择产品分类" :isDealer="true" @change="changeProductType" v-model="productType"></ProductType>
|
|
|
+ </a-form-model-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="仓库">
|
|
@@ -197,14 +179,14 @@ import { STable, VSelect } from '@/components'
|
|
|
import { getOperationalPrecision } from '@/libs/tools.js'
|
|
|
import { allocLinkageOutDetailSn, allocLinkageOutDetailList, allocLinkageOutDetailSave, allocLinkageOutDetailDel, allocLinkageOutDetailCount, allocLinkageOutSubmit, allocLinkageOutDetailDelAll, allocLinkageOutDetailPrint } from '@/api/allocLinkageOut'
|
|
|
import { productQuery } from '@/api/allocWarehouse'
|
|
|
-import { dealerProductBrandQuery } from '@/api/dealerProductBrand'
|
|
|
-import { dealerProductTypeList } from '@/api/dealerProductType'
|
|
|
+import ProductType from '../../common/productType.js'
|
|
|
+import ProductBrand from '../../common/productBrand.js'
|
|
|
import { warehouseAllList } from '@/api/warehouse'
|
|
|
import Print from '@/views/common/print.vue'
|
|
|
import { hdPrint } from '@/libs/JGPrint'
|
|
|
export default {
|
|
|
name: 'AllocLinkageOutEdit',
|
|
|
- components: { STable, VSelect, Print },
|
|
|
+ components: { STable, VSelect, Print, ProductType, ProductBrand },
|
|
|
mixins: [commonMixin],
|
|
|
data () {
|
|
|
return {
|
|
@@ -219,8 +201,6 @@ export default {
|
|
|
productTypeSn2: undefined,
|
|
|
productTypeSn3: undefined
|
|
|
},
|
|
|
- productBrandList: [], // 产品品牌 下拉数据
|
|
|
- productTypeList: [], // 产品分类 下拉数据
|
|
|
productType: [],
|
|
|
warehouseList: [], // 仓库 下拉数据
|
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
@@ -339,8 +319,6 @@ export default {
|
|
|
if (res.status == 200) {
|
|
|
this.basicInfoData = res.data
|
|
|
this.$refs.table.refresh(true)
|
|
|
- this.getProductBrand()
|
|
|
- this.getProductType()
|
|
|
} else {
|
|
|
this.basicInfoData = null
|
|
|
}
|
|
@@ -455,27 +433,6 @@ export default {
|
|
|
this.queryParam.productTypeSn2 = val[1] ? val[1] : ''
|
|
|
this.queryParam.productTypeSn3 = val[2] ? val[2] : ''
|
|
|
},
|
|
|
- // 产品品牌 列表
|
|
|
- getProductBrand () {
|
|
|
- // sysFlag为1查询箭冠产品,为0查询非箭冠产品
|
|
|
- dealerProductBrandQuery({ sysFlag: this.basicInfoData.allocationType == 'JIANGUAN' ? '1' : '0' }).then(res => {
|
|
|
- if (res.status == 200) {
|
|
|
- this.productBrandList = res.data
|
|
|
- } else {
|
|
|
- this.productBrandList = []
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
- // 产品分类 列表
|
|
|
- getProductType () {
|
|
|
- dealerProductTypeList({ sysFlag: this.basicInfoData.allocationType == 'JIANGUAN' ? '1' : '0' }).then(res => {
|
|
|
- if (res.status == 200) {
|
|
|
- this.productTypeList = res.data
|
|
|
- } else {
|
|
|
- this.productTypeList = []
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
// 仓库下拉数据
|
|
|
getWarehouseList (type) {
|
|
|
warehouseAllList({}).then(res => {
|