Commit a38b0767 authored by hubaoshan's avatar hubaoshan

第三步

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