Commit 40eb52de authored by 黄卓's avatar 黄卓

入仓 备案 收费模式

parent 4a06ee08
......@@ -61,3 +61,12 @@ export function setUnauthCustomerFeeType(data) {
data: data
})
}
//
export function getFeeTypeByCustomerProduct(data){
return request({
url: '/ecw/product-brank/getFeeTypeByCustomerProduct',
method: 'post',
data
})
}
......@@ -15,6 +15,7 @@
v-else v-model="form.brand"
placeholder="可修改"
filterable
@change="handleBrandChange"
allow-create>
<el-option
v-for="item in brandList"
......@@ -129,7 +130,7 @@
import dictSelector from "@/components/DictSelector"
import {DICT_TYPE, getDictDataLabel} from "@/utils/dict"
import { orderWarehouseIn, orderWarehouseInUpdateApply } from '@/api/ecw/order'
import {getProductBrankPage} from "@/api/ecw/productBrank"
import { getFeeTypeByCustomerProduct, getProductBrankPage } from '@/api/ecw/productBrank'
import WorkFlow from "@/components/WorkFlow"
import elSelect from '@/components/render/slots/el-select'
......@@ -142,6 +143,10 @@ export default {
},
props: {
customerId: {
type: Number,
default: undefined
},
visible: {
type: Boolean,
default: false
......@@ -208,7 +213,8 @@ export default {
"prodTitleZh": "",
"prodType": 0,
"type": 0,
feeType: 0
feeType: 0,
recordMode: undefined
},
// orderItem: {},
......@@ -231,6 +237,7 @@ export default {
if (val) {
this.form.material = this.warehousing.material
this.form.brand = this.warehousing.brand
this.handleBrandChange(this.form.brand)
} else {
this.$emit('update:visible', false)
}
......@@ -238,6 +245,18 @@ export default {
},
methods: {
handleBrandChange(v){
getFeeTypeByCustomerProduct({
brandId: parseInt(v),
productId: this.warehousing.prodId,
customerId: this.customerId
}).then(r => {
if(r.code === 0){
this.form.feeType = parseInt(r.data.feeType)
this.form.recordMode = parseInt(r.data.recordMode)
}
})
},
handleVolume(index){
const {boxGauge1, boxGauge2, boxGauge3} = this.tableData[index]
if (boxGauge1 && boxGauge2 && boxGauge3) {
......@@ -320,6 +339,9 @@ export default {
return [...this.warehousing.orderWarehouseInBackItemDoList, ...this.form.orderWarehouseInItemDoList]
},
isBeian(){
if (this.form.recordMode !== undefined){
return ['无备案', '有备案', '中性'][this.form.recordMode]
}
if (this.brandObject.filing){
return ['无备案', '有备案', '中性'][this.brandObject.filing]
} else {
......
......@@ -110,7 +110,7 @@
<warehouse-area-dialog ref="area" :visible.sync="areaVisible" v-model="form.orderLocationCreateReqVOList"
:order-id="orderId" :city-id="cityId"></warehouse-area-dialog>
<edit-dialog :visible.sync="warehousingVisible" :warehousing="warehousing" :edit="order.status === 5"></edit-dialog>
<edit-dialog :customer-id="order.customerId" :visible.sync="warehousingVisible" :warehousing="warehousing" :edit="order.status === 5"></edit-dialog>
<!-- 完成入仓 -->
<el-dialog
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment