|
@@ -618,16 +618,7 @@
|
|
|
type="textarea"></el-input>
|
|
type="textarea"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
- <el-col :span="8">
|
|
|
|
|
- <el-form-item label="所代理制造商名称">
|
|
|
|
|
- <el-input v-model="formData.MaunAgent"
|
|
|
|
|
- maxlength="100"
|
|
|
|
|
- :readonly="this.formData.Status > '0'"
|
|
|
|
|
- placeholder="请输入"
|
|
|
|
|
- type="textarea">
|
|
|
|
|
- </el-input>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- </el-col>
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
<!-- <el-col :span="8">
|
|
<!-- <el-col :span="8">
|
|
|
<el-form-item label="中石油物资供应商证书" >
|
|
<el-form-item label="中石油物资供应商证书" >
|
|
@@ -682,7 +673,8 @@
|
|
|
style="width: 100%"></el-input>
|
|
style="width: 100%"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
- <el-col :span="16">
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <el-col :span="24">
|
|
|
<el-form-item label="备注">
|
|
<el-form-item label="备注">
|
|
|
<el-input v-model="formData.Remark"
|
|
<el-input v-model="formData.Remark"
|
|
|
maxlength="500"
|
|
maxlength="500"
|
|
@@ -693,31 +685,53 @@
|
|
|
</el-input>
|
|
</el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
+
|
|
|
</el-row>
|
|
</el-row>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
|
|
+ <el-card class="box-card mycard"
|
|
|
|
|
+ style="margin-top: 10px;">
|
|
|
|
|
+ <div slot="header"
|
|
|
|
|
+ class="clearfix">
|
|
|
|
|
+ <span style="padding:3px 20px">所代理制造商名称</span>
|
|
|
|
|
+ <el-button style="float: right; padding: 3px 10px"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ @click="manufacturerdialog"
|
|
|
|
|
+ v-if="formDataCert.Status <= 0"
|
|
|
|
|
+ >添加</el-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <manufacturer-list ref="manufacturerList"
|
|
|
|
|
+ :data.sync="manufacturerList"
|
|
|
|
|
+ :SupplierCertId="certId+''"
|
|
|
|
|
+ :canadd="true"
|
|
|
|
|
+ height="360px"
|
|
|
|
|
+ style="margin-top: 20px"></manufacturer-list>
|
|
|
|
|
+ </el-card>
|
|
|
<!--打印内容结束-->
|
|
<!--打印内容结束-->
|
|
|
<!--endprint1-->
|
|
<!--endprint1-->
|
|
|
- <el-row v-if="(isInvestigate) && (formData.InStyle != '2')" >
|
|
|
|
|
- <el-col :span="4">
|
|
|
|
|
- <span>现场考察报告</span>
|
|
|
|
|
- <el-button type="primary" style="margin-left: 10px;" plain size="mini" title="上传" @click="openDialog()" >上传
|
|
|
|
|
- </el-button>
|
|
|
|
|
- <!--<el-upload multiple style="margin-top: 10px;" action="" ref="refuploadattach"-->
|
|
|
|
|
- <!--:http-request="uploadrequest" class="attach-uploader" :before-upload="beforeAvatarUpload">-->
|
|
|
|
|
- <!--<i class="el-icon-plus attach-uploader-icon"></i>-->
|
|
|
|
|
- <!--<!–<div slot="tip" class="el-upload__tip" v-if="SubfileForm.NeedFileType !=yasuoname">请上传图片(大小为512KB-5MB),可上传多张图片–>-->
|
|
|
|
|
- <!--<!–</div>–>-->
|
|
|
|
|
- <!--<!–<div slot="tip" class="el-upload__tip" v-if="SubfileForm.NeedFileType ==yasuoname">请上传压缩文件–>-->
|
|
|
|
|
- <!--<!–</div>–>-->
|
|
|
|
|
- <!--</el-upload>-->
|
|
|
|
|
- </el-col>
|
|
|
|
|
- <el-col :span="4">
|
|
|
|
|
- <div v-for="(tmpUrl, index) in scenefileurllist">
|
|
|
|
|
- <el-link :href="'http://'+fileurlcut(scenefile.FileUrl, index)" target="_blank" type="primary">
|
|
|
|
|
- {{scenefile.FileName.split('$')[index]}}</el-link>
|
|
|
|
|
- </div>
|
|
|
|
|
- </el-col>
|
|
|
|
|
- </el-row>
|
|
|
|
|
|
|
+ <el-card v-if="(isInvestigate) && (formData.InStyle != '2')">
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ <el-col :span="4">
|
|
|
|
|
+ <span>现场考察报告</span>
|
|
|
|
|
+ <el-button type="primary" style="margin-left: 10px;" plain size="mini" title="上传" @click="openDialog()" >上传
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ <!--<el-upload multiple style="margin-top: 10px;" action="" ref="refuploadattach"-->
|
|
|
|
|
+ <!--:http-request="uploadrequest" class="attach-uploader" :before-upload="beforeAvatarUpload">-->
|
|
|
|
|
+ <!--<i class="el-icon-plus attach-uploader-icon"></i>-->
|
|
|
|
|
+ <!--<!–<div slot="tip" class="el-upload__tip" v-if="SubfileForm.NeedFileType !=yasuoname">请上传图片(大小为512KB-5MB),可上传多张图片–>-->
|
|
|
|
|
+ <!--<!–</div>–>-->
|
|
|
|
|
+ <!--<!–<div slot="tip" class="el-upload__tip" v-if="SubfileForm.NeedFileType ==yasuoname">请上传压缩文件–>-->
|
|
|
|
|
+ <!--<!–</div>–>-->
|
|
|
|
|
+ <!--</el-upload>-->
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="4">
|
|
|
|
|
+ <div v-for="(tmpUrl, index) in scenefileurllist" :key="index">
|
|
|
|
|
+ <el-link :href="'http://'+fileurlcut(scenefile.FileUrl, index)" target="_blank" type="primary">
|
|
|
|
|
+ {{scenefile.FileName.split('$')[index]}}</el-link>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ </el-card>
|
|
|
|
|
+
|
|
|
<el-dialog title="现场考察报告" :visible.sync="visible" top="5vh" width="900px">
|
|
<el-dialog title="现场考察报告" :visible.sync="visible" top="5vh" width="900px">
|
|
|
<el-form :model="SubfileForm" label-width="100px">
|
|
<el-form :model="SubfileForm" label-width="100px">
|
|
|
<el-row>
|
|
<el-row>
|
|
@@ -735,6 +749,7 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
+
|
|
|
</el-form>
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer" style="margin-top:-30px;">
|
|
<div slot="footer" class="dialog-footer" style="margin-top:-30px;">
|
|
|
<el-button @click="visible = false">取 消</el-button>
|
|
<el-button @click="visible = false">取 消</el-button>
|
|
@@ -747,8 +762,12 @@
|
|
|
<script>
|
|
<script>
|
|
|
import axios from 'axios'
|
|
import axios from 'axios'
|
|
|
import uploadajax from '../../assets/js/uploadajax.js'
|
|
import uploadajax from '../../assets/js/uploadajax.js'
|
|
|
|
|
+import ManufacturerList from '@/components/oilsupplier/manufacturerlist'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
name: 'goodsinfo',
|
|
name: 'goodsinfo',
|
|
|
props: {
|
|
props: {
|
|
|
formData: {
|
|
formData: {
|
|
@@ -780,6 +799,9 @@ export default {
|
|
|
default: false
|
|
default: false
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ components: {
|
|
|
|
|
+ ManufacturerList
|
|
|
|
|
+ },
|
|
|
data () {
|
|
data () {
|
|
|
var checkemail = (rule, value, callback) => {
|
|
var checkemail = (rule, value, callback) => {
|
|
|
if (value) {
|
|
if (value) {
|
|
@@ -893,6 +915,23 @@ export default {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return {
|
|
return {
|
|
|
|
|
+ manufacturerList: [],
|
|
|
|
|
+ certId: '0',
|
|
|
|
|
+ formDataCert: {
|
|
|
|
|
+ InStyle: '1',
|
|
|
|
|
+ WorkerTotal: 0,
|
|
|
|
|
+ ContractNum: 0,
|
|
|
|
|
+ UniversityNum: 0,
|
|
|
|
|
+ TechnicalNum: 0,
|
|
|
|
|
+ AboveProfNum: 0,
|
|
|
|
|
+ MiddleProfNum: 0,
|
|
|
|
|
+ NationalRegNum: 0,
|
|
|
|
|
+ NationalCertTotal: 0,
|
|
|
|
|
+ DesignerTotal: 0,
|
|
|
|
|
+ SkillerTotal: 0,
|
|
|
|
|
+ Status: 0
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
visible: false,
|
|
visible: false,
|
|
|
address: [],
|
|
address: [],
|
|
|
linkaddress: [],
|
|
linkaddress: [],
|
|
@@ -1105,7 +1144,6 @@ export default {
|
|
|
// }
|
|
// }
|
|
|
},
|
|
},
|
|
|
mounted () {
|
|
mounted () {
|
|
|
- // this.getSupplierSceneFile()
|
|
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|
|
|
dictData: {
|
|
dictData: {
|
|
@@ -1121,6 +1159,42 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ updatemanufacturers () {
|
|
|
|
|
+ let _this = this
|
|
|
|
|
+ if (_this.formData.OperType !== '制造商') {
|
|
|
|
|
+ let IsManufacturer = 1
|
|
|
|
|
+ this.$axios.get('suppliercertsub/updatemanufacturers/'+ _this.formData.Id + '/' + IsManufacturer + '', {}).then(res => {
|
|
|
|
|
+ _this.goodsloading = false
|
|
|
|
|
+ if (res.data.code === 0) {
|
|
|
|
|
+ _this.$message({
|
|
|
|
|
+ type: 'success',
|
|
|
|
|
+ message: '更改成功'
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ _this.$refs['goodsList'].initData()
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(err => {
|
|
|
|
|
+ _this.goodsloading = false
|
|
|
|
|
+ console.error(err)
|
|
|
|
|
+ })
|
|
|
|
|
+ } else {
|
|
|
|
|
+ _this.goodsloading = false
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ initMaunfactureList (certid) {
|
|
|
|
|
+ this.certId = certid
|
|
|
|
|
+ this.$refs['manufacturerList'].getvalue(
|
|
|
|
|
+ this.certId
|
|
|
|
|
+ )
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ manufacturerdialog () {
|
|
|
|
|
+ this.$refs['manufacturerList'].showDialog()
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
fileurlcut (val, index) {
|
|
fileurlcut (val, index) {
|
|
|
let fileurlall = val.split('$')[index]
|
|
let fileurlall = val.split('$')[index]
|
|
|
let fileurl = fileurlall.split('|')
|
|
let fileurl = fileurlall.split('|')
|