Browse Source

完善采购单

zhanglei
yunuo970428 12 months ago
parent
commit
01483ff917
  1. 23
      yxt-as-ui/src/components/uploadFile/uploadImg.vue
  2. 10
      yxt-as-ui/src/views/purchase/procurement/procurementAdd.vue
  3. 8
      yxt-as-ui/src/views/workFlow/caigouFlow/procurementEdit.vue

23
yxt-as-ui/src/components/uploadFile/uploadImg.vue

@ -100,23 +100,22 @@ export default {
}
},
methods: {
showImg(imgList) {
this.stateName = 'xunidingjinAdd'
this.files = imgList
console.log('回显图片', this.files)
},
view() {
// window.open(this.filedUrl)
},
//
Init() {
if (this.name !== undefined) {
this.files = []
for (var i = 0; i < this.name.length; i++) {
this.files.push({
name: this.name[i],
url: this.name[i]
})
if (this.name[i].url !== null && this.name[i].url !== undefined) {
this.files.push({
name: this.name[i].name,
url: this.name[i].url
})
} else {
this.files.push({
name: this.name[i],
url: this.name[i]
})
}
}
}
},

10
yxt-as-ui/src/views/purchase/procurement/procurementAdd.vue

@ -163,7 +163,7 @@
<el-col :span="24">
<div class="span-sty">附件</div>
<el-form-item>
<upload-img ref="uploadImg" class="addinputInfo" :accept="accept" v-model="formobj.purchasePay.filePaths" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
<uploadImg ref="uploadImg" class="addinputInfo" v-model="formobj.purchasePay.filePaths" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-form-item>
</el-col>
</el-row>
@ -222,9 +222,9 @@
<script>
import req from '@/api/purchase/procurement'
import uploadImg from '@/components/uploadFile/uploadImg'
import { typeValues, getOrgSidByPath, choiceSupplierInfo } from '@/api/Common/dictcommons'
import chooseproducts from './relation/chooseproducts'
import uploadImg from '@/components/uploadFile/uploadImg'
export default {
name: 'ProcurementAdd',
@ -657,7 +657,9 @@ export default {
/deep/ .el-form-item__error {
margin-left: 120px !important;
}
/deep/ .el-radio-group {
font-size: 1px;
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .el-radio-group {
display: inline;
line-height: 1px;
vertical-align: middle;
}
</style>

8
yxt-as-ui/src/views/workFlow/caigouFlow/procurementEdit.vue

@ -221,9 +221,9 @@
<script>
import req from '@/api/purchase/procurement'
import { typeValues, getOrgSidByPath, choiceSupplierInfo } from '@/api/Common/dictcommons'
import chooseproducts from './relation/chooseproducts'
import uploadImg from '@/components/uploadFile/uploadImg'
import { typeValues, choiceSupplierInfo } from '@/api/Common/dictcommons'
import chooseproducts from './relation/chooseproducts'
export default {
name: 'ProcurementEdit',
@ -596,6 +596,8 @@ export default {
margin-left: 120px !important;
}
/deep/ .el-radio-group {
font-size: 1px;
display: inline;
line-height: 1px;
vertical-align: middle;
}
</style>

Loading…
Cancel
Save