Commit a38b0767 authored by hubaoshan's avatar hubaoshan

第三步

parent d94b9b67
......@@ -104,3 +104,19 @@ export function acquireOrderByCode() {
method: 'get'
})
}
const manufacturer = [
{
value: '1',
label: 'baidu'
},
{
value: '2',
label: 'ali'
},
{
value: '3',
label: 'taobao'
}
]
export default manufacturer
......@@ -17,6 +17,7 @@
/>
</el-select>
</el-form-item>
<el-form-item label="ptype" prop="ptype">
<el-select
v-model="queryParams.ptype"
......@@ -118,7 +119,7 @@
</el-table-column>
<el-table-column label="cj" prop="cj" :show-overflow-tooltip="true">
<template slot-scope="scope">
{{ scope.row.cj || '-' }}
{{ getManufacturerLabel(scope.row.cj) || '-' }}
</template>
</el-table-column>
<el-table-column label="ptype" prop="ptype" :show-overflow-tooltip="true">
......@@ -134,7 +135,9 @@
</template>
</el-table-column>
<el-table-column label="pn" prop="pn" :show-overflow-tooltip="true">
<template slot-scope="scope">
<template
slot-scope="scope"
>
{{ scope.row.pn || '-' }}
</template>
</el-table-column>
......@@ -258,8 +261,8 @@
</el-form-item>
<el-form-item label="code" prop="orderCode">
<el-input
disabled
v-model.trim="form.orderCode"
disabled
show-word-limit
:maxlength="100"
placeholder="请输入code"
......@@ -458,7 +461,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="cj:" prop="cj">
<span>{{ singleDetails.cj|| '-' }}</span>
<span>{{ getManufacturerLabel( singleDetails.cj)|| '-' }}</span>
</el-form-item>
</el-col>
</el-row>
......@@ -480,7 +483,7 @@ import {
import commonField from '@/utils/commonField'
import { getDicts } from '@/api/system/dict/data'
import { getToken } from '@/utils/auth'
import manufacturer from '@/api/outcomeWmsJbapplyTemp'
export default {
name: 'OutcomeWmsJbapplyTemp',
data() {
......@@ -500,19 +503,7 @@ export default {
value: '2'
}
],
manufacturer: [{
value: '1',
label: 'baidu'
}, {
value: '2',
label: 'ali'
}, {
value: '3',
label: 'taobao'
}],
manufacturer: {},
// 导入列表
files: [],
// 下载模板loading
......@@ -668,13 +659,17 @@ export default {
},
created() {
console.log('manufacturer', manufacturer)
this.manufacturer = manufacturer
this.getList() // 列表查询
this.getwareHouse() // 查询数据字典
// this.form.cj = this.manufacturer[0].value
},
mounted() {
this.form.cj = this.manufacturer[0].value
},
methods: {
// 输入值发生变化时触发查询操作
handleInputChange() {
this.queryQty()
......@@ -810,7 +805,7 @@ export default {
},
getManufacturerLabel(cj) {
const manufacturer = this.manufacturer.find(item => item.value === cj)
return manufacturer ? manufacturer.dictLabel : null
return manufacturer ? manufacturer.label : null
},
/** 查询数据字典*/
getwareHouse() {
......@@ -884,7 +879,7 @@ export default {
this.reset()
this.warehousedata.qty = ''
acquireOrderByCode().then(res => {
console.log('单号',res)
console.log('单号', res)
this.form.orderCode = res.data
this.open = true
this.title = '添加检查申请'
......@@ -996,10 +991,7 @@ export default {
})
})
}
},
mounted() {
this.form.cj = this.manufacturer[0].value
},
}
}
</script>
<style lang="scss" scoped>
......
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