|
@@ -8,7 +8,8 @@ export default {
|
|
|
orderSmallTypeData: [],
|
|
|
orderChannels: [],
|
|
|
WORKER_ORDER_SOURCE: [],
|
|
|
- createWebsitList: []
|
|
|
+ createWebsitList: [],
|
|
|
+ SALES_TYPE_LIST: []
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -249,12 +250,7 @@ export default {
|
|
|
isShow: this.formOptions.saleType.isShow,
|
|
|
name: 'el-select',
|
|
|
md: 6,
|
|
|
- options: [
|
|
|
- { value: 1, label: '零售' },
|
|
|
- { value: 2, label: '工程' },
|
|
|
- { value: 3, label: '延保' },
|
|
|
- { value: 4, label: '工程维保' }
|
|
|
- ],
|
|
|
+ options: this.SALES_TYPE_LIST,
|
|
|
attributes: {
|
|
|
disabled: !this.formOptions.saleType.isEdit,
|
|
|
placeholder: '请选择',
|
|
@@ -265,6 +261,11 @@ export default {
|
|
|
label: '销售类型',
|
|
|
prop: 'saleType',
|
|
|
rules: this.formOptions.saleType.isRules
|
|
|
+ },
|
|
|
+ events: {
|
|
|
+ change: val => {
|
|
|
+ this.orderInfo.salesTypeName = this.SALES_TYPE_LIST.find(item => item.value == val)?.label
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
{
|
|
@@ -494,6 +495,20 @@ export default {
|
|
|
)
|
|
|
}
|
|
|
|
|
|
+ getDataDictionary({
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: -1,
|
|
|
+ params: [
|
|
|
+ { param: 'a.status', compare: '=', value: 'ON' },
|
|
|
+ { param: 'a.dict_type', compare: '=', value: 'SALES_TYPE' }
|
|
|
+ ]
|
|
|
+ }).then(res => {
|
|
|
+ this.SALES_TYPE_LIST = res.data.records.map(item => ({
|
|
|
+ value: item.dictCode,
|
|
|
+ label: item.dictValue
|
|
|
+ }))
|
|
|
+ })
|
|
|
+
|
|
|
// 获取工单渠道
|
|
|
getDataDictionary({
|
|
|
pageNum: 1,
|