|
@@ -285,6 +285,7 @@ import M from "minimatch";
|
|
import da from "element-ui/src/locale/lang/da";
|
|
import da from "element-ui/src/locale/lang/da";
|
|
import { number } from "echarts";
|
|
import { number } from "echarts";
|
|
import {getCorpTypes} from "@/api/tirePartsMall/basicData/commodityInformation";
|
|
import {getCorpTypes} from "@/api/tirePartsMall/basicData/commodityInformation";
|
|
|
|
+import {getWorkDicts} from "../../../../api/system/dictbiz";
|
|
export default {
|
|
export default {
|
|
name: "detailsPage",
|
|
name: "detailsPage",
|
|
|
|
|
|
@@ -338,6 +339,7 @@ export default {
|
|
activeNameTabs:'searchList',
|
|
activeNameTabs:'searchList',
|
|
data:[],
|
|
data:[],
|
|
|
|
|
|
|
|
+ courierCompaniesList: [],
|
|
|
|
|
|
inventory: 0,
|
|
inventory: 0,
|
|
isStatus: 1,
|
|
isStatus: 1,
|
|
@@ -535,13 +537,28 @@ export default {
|
|
label: "dictValue",
|
|
label: "dictValue",
|
|
value: "dictValue"
|
|
value: "dictValue"
|
|
},
|
|
},
|
|
- value: '物流'
|
|
|
|
|
|
+ value: '物流',
|
|
|
|
+ change:(res)=>{
|
|
|
|
+ }
|
|
}, {
|
|
}, {
|
|
- label: '物流公司',
|
|
|
|
|
|
+ label: '货运公司',
|
|
|
|
+ type: 'select',
|
|
|
|
+ prop: "logisticsCorpName",
|
|
|
|
+ allowCreate: true,
|
|
|
|
+ filterable: true,
|
|
disabled: false,
|
|
disabled: false,
|
|
-
|
|
|
|
- prop: "logisticsCorpName"
|
|
|
|
- }, {
|
|
|
|
|
|
+ dicUrl: "/api/blade-system/dict-biz/dictionary?code=tyre_express_company",
|
|
|
|
+ props: {
|
|
|
|
+ label: "dictValue",
|
|
|
|
+ value: "dictValue"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '货运单号',
|
|
|
|
+ disabled: false,
|
|
|
|
+ prop: "expressNo"
|
|
|
|
+ },
|
|
|
|
+ {
|
|
label: '成本',
|
|
label: '成本',
|
|
prop: "cost",
|
|
prop: "cost",
|
|
display: true,
|
|
display: true,
|
|
@@ -908,6 +925,10 @@ export default {
|
|
// this.isExamineBtn = false
|
|
// this.isExamineBtn = false
|
|
// }
|
|
// }
|
|
|
|
|
|
|
|
+ getWorkDicts("tyre_express_company").then(res => {
|
|
|
|
+ this.courierCompaniesList = res.data.data;
|
|
|
|
+ })
|
|
|
|
+
|
|
this.findObject(this.optionContactsBack.column, "goodsId").change = ({ value, column }) => {
|
|
this.findObject(this.optionContactsBack.column, "goodsId").change = ({ value, column }) => {
|
|
if (this.formContacts.goodsId !== value) {
|
|
if (this.formContacts.goodsId !== value) {
|
|
goodsDetail({ id: value, customId: this.dicUrlWithCustomId, stock: this.form.storageId ? this.form.storageId : '' }).then(res => {
|
|
goodsDetail({ id: value, customId: this.dicUrlWithCustomId, stock: this.form.storageId ? this.form.storageId : '' }).then(res => {
|
|
@@ -1741,6 +1762,12 @@ export default {
|
|
// its.goodsName = goodsName
|
|
// its.goodsName = goodsName
|
|
|
|
|
|
// })
|
|
// })
|
|
|
|
+ for (let courierCompanies of this.courierCompaniesList) {
|
|
|
|
+ if (courierCompanies.dictValue === this.form.logisticsCorpName) {
|
|
|
|
+ this.form.logisticsCorpId = courierCompanies.dictKey
|
|
|
|
+ break
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
submit({
|
|
submit({
|
|
bsType: "XS",
|
|
bsType: "XS",
|