|
@@ -75,15 +75,6 @@
|
|
|
size="small" v-model="row.price" style="width: 100%"></el-input>
|
|
|
<span v-else>{{ row.price }}</span>
|
|
|
</template>
|
|
|
- <template slot="dot" slot-scope="{ row }">
|
|
|
- <el-select v-if="!mingxibaocun" v-model="row.dot" filterable default-first-option
|
|
|
- @focus="picihaolistfun(row.goodsId)" @change="dotchangefun($event, row)"
|
|
|
- size="small">
|
|
|
- <el-option v-for="(item, index) in picihaolist" :key="index" :label="item.dot"
|
|
|
- :value="item.dot"></el-option>
|
|
|
- </el-select>
|
|
|
- <span v-else>{{ row.dot }}</span>
|
|
|
- </template>
|
|
|
<template slot="subTotalMoney" slot-scope="{ row }">{{ row.goodsNum * row.price
|
|
|
}}</template>
|
|
|
|
|
@@ -163,18 +154,6 @@
|
|
|
<el-input-number v-model="row.goodsNum" size="small" :controls="false"
|
|
|
:precision="numberDecimal" @input="amountChange($event, row)" style="width: 100%" />
|
|
|
</template>
|
|
|
- <template slot="dot" slot-scope="{row}">
|
|
|
- <!--使用allow-create属性即可通过在输入框中输入文字来创建新的条目。注意此时filterable必须为真。-->
|
|
|
- <!--本例还使用了default-first-option属性, 在该属性打开的情况下,按下回车就可以选中当前选项列表中的第一个选项,-->
|
|
|
- <!--无需使用鼠标或键盘方向键进行定位。-->
|
|
|
- <!--allow-create filterable default-first-option-->
|
|
|
- <el-select v-model="row.dot" filterable default-first-option size="small"
|
|
|
- @focus="picihaolistfun(row.id)" @change="dotchangefun($event, row)">
|
|
|
- <el-option v-for="(item, index) in picihaolist" :key="index" :label="item.dot"
|
|
|
- :value="item.dot"></el-option>
|
|
|
- </el-select>
|
|
|
- <!--<span v-else>{{ row.dot }}</span>-->
|
|
|
- </template>
|
|
|
<template slot="price" slot-scope="{row}">
|
|
|
<el-input-number v-model="row.price" size="small" :controls="false"
|
|
|
style="width: 100%" />
|
|
@@ -220,19 +199,14 @@ import reportDialog from "@/components/report-dialog/main";
|
|
|
import { dateFormat } from "@/util/date";
|
|
|
import checkSchedule from "@/components/checkL/checkSchedule";
|
|
|
import check from "@/components/checkL/check";
|
|
|
-import { getList, listAll } from "@/api/tirePartsMall/basicData/listingManagement"
|
|
|
-import commodityxsho from '../../configuration/commodityxsho.json'
|
|
|
-import { number } from "echarts";
|
|
|
+import commodityxsho from '../configuration/commodityxsho.json'
|
|
|
import { getCorpTypes } from "@/api/tirePartsMall/basicData/commodityInformation";
|
|
|
-import losbfeestemplate from "@/views/iosBasicData/losbfeestemplate/index.vue";
|
|
|
import SearchQuery from "@/components/iosbasic-data/searchquery.vue";
|
|
|
-import {
|
|
|
- getList as KHgetList
|
|
|
-} from "@/api/tirePartsMall/basicData/customerInformation";
|
|
|
import { getToken } from "@/util/auth";
|
|
|
import { isProcurement } from "@/api/basicData/configuration";
|
|
|
import { getList as inventoryList } from "@/api/tirePartsMall/inventory";
|
|
|
import dicSelect from "@/components/dicSelect/main";
|
|
|
+import { stockGoodsList } from "@/api/storehouse/stock.js";
|
|
|
export default {
|
|
|
name: "detailsPage",
|
|
|
data() {
|
|
@@ -423,12 +397,42 @@ export default {
|
|
|
trigger: "blur"
|
|
|
}]
|
|
|
},
|
|
|
+ {
|
|
|
+ label: '联系人',
|
|
|
+ type: "select",
|
|
|
+ prop: "contacts",
|
|
|
+ disabled: false,
|
|
|
+ allowCreate: true,
|
|
|
+ filterable: true,
|
|
|
+ dicData: [],
|
|
|
+ props: {
|
|
|
+ label: 'address',
|
|
|
+ value: 'id'
|
|
|
+ },
|
|
|
+ dicUrl: '/api/blade-sales-part/corpsAddr/corpIdByAddr?pid={{key}}'
|
|
|
+ }, {
|
|
|
+ label: '电话',
|
|
|
+ disabled: false,
|
|
|
+
|
|
|
+ prop: "phone",
|
|
|
+ }, {
|
|
|
+ label: '收货地址',
|
|
|
+ prop: "recAddress",
|
|
|
+ type: 'select',
|
|
|
+ allowCreate: true,
|
|
|
+ filterable: true,
|
|
|
+ disabled: false,
|
|
|
+ props: {
|
|
|
+ label: 'address',
|
|
|
+ value: 'address'
|
|
|
+ },
|
|
|
+ dicUrl: '/api/blade-sales-part/corpsAddr/corpIdByAddr?pid={{key}}'
|
|
|
+ },
|
|
|
{
|
|
|
label: '仓库',
|
|
|
prop: "storageId",
|
|
|
type: 'select',
|
|
|
disabled: false,
|
|
|
- placeholder: '仓库为空即为异地销售',
|
|
|
props: {
|
|
|
label: 'cname',
|
|
|
value: 'id'
|
|
@@ -441,7 +445,7 @@ export default {
|
|
|
}]
|
|
|
},
|
|
|
{
|
|
|
- label: '计划出库日期',
|
|
|
+ label: '出库日期',
|
|
|
prop: "businesDate",
|
|
|
searchProp: "businesDateList",
|
|
|
disabled: false,
|
|
@@ -463,37 +467,6 @@ export default {
|
|
|
disabled: true,
|
|
|
},
|
|
|
{
|
|
|
- label: '联系人',
|
|
|
- type: "select",
|
|
|
- prop: "contacts",
|
|
|
- disabled: false,
|
|
|
- allowCreate: true,
|
|
|
- filterable: true,
|
|
|
- dicData: [],
|
|
|
- props: {
|
|
|
- label: 'address',
|
|
|
- value: 'id'
|
|
|
- },
|
|
|
- dicUrl: '/api/blade-sales-part/corpsAddr/corpIdByAddr?pid={{key}}'
|
|
|
- }, {
|
|
|
- label: '电话',
|
|
|
- disabled: false,
|
|
|
-
|
|
|
- prop: "phone",
|
|
|
- }, {
|
|
|
- label: '收货地址',
|
|
|
- prop: "recAddress",
|
|
|
- type: 'select',
|
|
|
- allowCreate: true,
|
|
|
- filterable: true,
|
|
|
- disabled: false,
|
|
|
- props: {
|
|
|
- label: 'address',
|
|
|
- value: 'address'
|
|
|
- },
|
|
|
- dicUrl: '/api/blade-sales-part/corpsAddr/corpIdByAddr?pid={{key}}'
|
|
|
- },
|
|
|
- {
|
|
|
label: '单据编号',
|
|
|
prop: "ordNo",
|
|
|
disabled: true,
|
|
@@ -687,13 +660,6 @@ export default {
|
|
|
dicUrl: "/api/blade-sales-part/stockDesc/dotList",
|
|
|
overHidden: true,
|
|
|
},
|
|
|
- // {
|
|
|
- // label: '单号',
|
|
|
- // prop: 'poNo',
|
|
|
- // overHidden: true,
|
|
|
- // disabled: false,
|
|
|
- // width: 100
|
|
|
- // },
|
|
|
{
|
|
|
label: '商品编码',
|
|
|
prop: 'goodsNo',
|
|
@@ -740,7 +706,6 @@ export default {
|
|
|
overHidden: true,
|
|
|
width: 100
|
|
|
},
|
|
|
-
|
|
|
{
|
|
|
label: '发货数量',
|
|
|
prop: 'sendNum',
|
|
@@ -750,12 +715,6 @@ export default {
|
|
|
editDisplay: false,
|
|
|
addDisplay: false
|
|
|
},
|
|
|
- // {
|
|
|
- // label: '利润',
|
|
|
- // prop: 'profit',
|
|
|
- // overHidden: true,
|
|
|
- // width: 100
|
|
|
- // },
|
|
|
{
|
|
|
label: '小计',
|
|
|
prop: 'subTotalMoney',
|
|
@@ -765,78 +724,6 @@ export default {
|
|
|
editDisplay: false,
|
|
|
addDisplay: false
|
|
|
},
|
|
|
- // {
|
|
|
- // label: '返利',
|
|
|
- // prop: 'thisAmount',
|
|
|
- // overHidden: true,
|
|
|
- // width: 100
|
|
|
- // },
|
|
|
- {
|
|
|
- label: '成本',
|
|
|
- prop: 'costprie',
|
|
|
- overHidden: true,
|
|
|
- width: 100,
|
|
|
- disabled: true,
|
|
|
- editDisplay: false,
|
|
|
- addDisplay: false
|
|
|
-
|
|
|
- },
|
|
|
- {
|
|
|
- label: '毛利',
|
|
|
- prop: 'grossProfit',
|
|
|
- overHidden: true,
|
|
|
- width: 100,
|
|
|
- disabled: true,
|
|
|
- editDisplay: false,
|
|
|
- addDisplay: false
|
|
|
- },
|
|
|
- {
|
|
|
- label: '返利后单价',
|
|
|
- prop: 'rebatePrice',
|
|
|
- overHidden: true,
|
|
|
- width: 100,
|
|
|
- disabled: true,
|
|
|
- editDisplay: false,
|
|
|
- addDisplay: false,
|
|
|
- hide: false,
|
|
|
- showColumn: true
|
|
|
- },
|
|
|
- {
|
|
|
- label: '返利后成本价',
|
|
|
- prop: 'rebateCostprie',
|
|
|
- overHidden: true,
|
|
|
- width: 100,
|
|
|
- disabled: true,
|
|
|
- editDisplay: false,
|
|
|
- addDisplay: false,
|
|
|
- hide: false,
|
|
|
- showColumn: true
|
|
|
- },
|
|
|
- {
|
|
|
- label: '返利后利润',
|
|
|
- prop: 'rebateProfit',
|
|
|
- overHidden: true,
|
|
|
- width: 100,
|
|
|
- disabled: true,
|
|
|
- editDisplay: false,
|
|
|
- addDisplay: false,
|
|
|
- hide: false,
|
|
|
- showColumn: true
|
|
|
- },
|
|
|
- {
|
|
|
- label: '退货数量',
|
|
|
- prop: "returnsNumber",
|
|
|
- overHidden: true,
|
|
|
- width: 100,
|
|
|
- disabled: true,
|
|
|
- },
|
|
|
- {
|
|
|
- label: '退货金额',
|
|
|
- prop: "returnsAmount",
|
|
|
- overHidden: true,
|
|
|
- width: 100,
|
|
|
- disabled: true,
|
|
|
- },
|
|
|
{
|
|
|
label: '备注',
|
|
|
prop: "remarks",
|
|
@@ -1162,12 +1049,11 @@ export default {
|
|
|
this.goodsListShow = []
|
|
|
this.loading = true;
|
|
|
if (this.goodsType == 1) {
|
|
|
- goodsPageXs({
|
|
|
+ stockGoodsList({
|
|
|
current: page.currentPage,
|
|
|
size: page.pageSize,
|
|
|
- customId: this.form.customerId,
|
|
|
- stock: this.form.storageId,
|
|
|
- enableOrNot: 1,
|
|
|
+ customerId: this.form.customerId,
|
|
|
+ storageId: this.form.storageId,
|
|
|
goodsTypeId: this.treeDeptId,
|
|
|
...Object.assign(params, this.SelectSearch),
|
|
|
whetherIntegral: '0'
|
|
@@ -1417,21 +1303,16 @@ export default {
|
|
|
}
|
|
|
this.findObject(this.optionContactsBack.column, 'goodsId').dicUrl = `/api/blade-sales-part/goodsDesc/goodsListXs?cname={{key}}&customId=${this.dicUrlWithCustomId}&enableOrNot=1&stock=${this.form.storageId}`
|
|
|
this.goodsType = type
|
|
|
+ let columnList = ['goodsId', 'goodsNum', 'price', 'dot', 'remarks']
|
|
|
this.optionContactsBack.column.forEach(its => {
|
|
|
- if (its.prop == 'goodsId' || its.prop == 'goodsNum' || its.prop == 'price' || its.prop == 'dot' || its.prop == 'remarks') {
|
|
|
- its.disabled = false
|
|
|
- } else {
|
|
|
- its.disabled = true
|
|
|
- }
|
|
|
+ its.disabled = columnList.indexOf(its.prop) === -1
|
|
|
})
|
|
|
this.getAllWorkDicts()
|
|
|
-
|
|
|
this.goodsListSave = []
|
|
|
setTimeout(res => {
|
|
|
this.refreshChange()
|
|
|
this.dialogVisible = true
|
|
|
}, 300)
|
|
|
- // this.$refs.formContacts.rowAdd()
|
|
|
},
|
|
|
//打印
|
|
|
handlePrint() {
|