Commit f4874df4 authored by 张冬's avatar 张冬

更新

parent a01523fa
......@@ -31,7 +31,8 @@
<el-input v-model.trim="searchData.bidName" placeholder='请输入' maxlength="30"></el-input>
</el-form-item>
<el-form-item label="数量:" prop="quantity">
<el-input v-model.trim="searchData.quantity" onkeyup="value=value.replace(/[^\d]/g,'')" placeholder='请输入' maxlength="30"></el-input>
<el-input v-model.trim="searchData.quantity" onkeyup="value=value.replace(/[^\d]/g,'')" placeholder='请输入'
maxlength="30"></el-input>
</el-form-item>
<el-form-item label="计量单位:" prop="unit">
<el-input v-model.trim="searchData.unit" placeholder='请输入' maxlength="30"></el-input>
......@@ -63,7 +64,9 @@
</template>
<script>
import {generateNumber} from '@api/common/list'
import {
generateNumber
} from '@api/common/list'
import dataTable from '@components/nopageTable.vue'
import dataForm from '@components/dataForm.vue'
export default {
......@@ -296,31 +299,35 @@
this.dialogVisible = false
}
},
examine(row, index) {
examine(row, index) {
this.type = 1
this.idx = index
this.searchData = Object.assign({}, row)
this.dialogVisible = true
const {
data,
code
} = generateNumber(2)
this.searchData.encoding=data
},
add() {
this.type = 0
this.dialogVisible = true
const searchData = {
encoding: '',
bidName: '',
quantity: '',
unit: '',
brand: '',
specification: '',
price: '',
remark: ""
async add() {
try {
this.type = 0
this.dialogVisible = true
const {
data,
code
} =await generateNumber(2)
let searchData = {
encoding: data,
bidName: '',
quantity: '',
unit: '',
brand: '',
specification: '',
price: '',
remark: ""
}
console.log(searchData)
this.searchData = searchData
} catch (e) {
console.log(e)
}
this.searchData = searchData
},
next() {
let projectCommodityList = this.tableData;
......
......@@ -489,8 +489,8 @@ export default {
},
// 接受上传文件
getfile(val) {
for(let item of accessoryDOList){
item.accessory=item.fileUrll
for(let item of val){
item.accessoryUrl=item.fileUrll
}
this.ruleForm.accessoryDOList=val
},
......
......@@ -56,7 +56,7 @@ export default {
},
data() {
return {
activeIdx: 0,
activeIdx: 1,
allForm: {}
}
},
......
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