|
@@ -59,11 +59,11 @@
|
|
|
:rules="rules"
|
|
|
ref="form"
|
|
|
:inline="true"
|
|
|
- label-width="135px"
|
|
|
+ label-width="155px"
|
|
|
label-position="center"
|
|
|
class="manager_form bhyeksu"
|
|
|
>
|
|
|
- <el-form-item label=" 已完成投资额:" prop="totInvestment">
|
|
|
+ <el-form-item label=" 已完成投资额(万元):" prop="totInvestment">
|
|
|
<el-input
|
|
|
v-model="form.totInvestment"
|
|
|
placeholder="请输入已完成投资额"
|
|
@@ -73,7 +73,7 @@
|
|
|
style="width: 335px"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="设备投资额度:" prop="macInvestment">
|
|
|
+ <el-form-item label="设备投资额度(万元):" prop="macInvestment">
|
|
|
<el-input
|
|
|
v-model="form.macInvestment"
|
|
|
placeholder="请输入设备投资额度"
|
|
@@ -360,6 +360,8 @@ export default {
|
|
|
if (that.form.entryPhoto.length > 0) {
|
|
|
this.orderContractPhotoLists = JSON.parse(that.form.entryPhoto);
|
|
|
}
|
|
|
+
|
|
|
+ console.log(that.form.productPhoto,7654)
|
|
|
}
|
|
|
});
|
|
|
},
|
|
@@ -447,6 +449,7 @@ export default {
|
|
|
/** 暂存按钮 */
|
|
|
submitForm() {
|
|
|
var tmp = [];
|
|
|
+ console.log(this.form,8765)
|
|
|
if (this.form.totInvestment == null) {
|
|
|
this.msgError("请输入已完成投资额");
|
|
|
return;
|
|
@@ -475,51 +478,88 @@ export default {
|
|
|
this.msgError("请填写项目入规信息");
|
|
|
return;
|
|
|
}
|
|
|
+ console.log(this.form,8765)
|
|
|
this.productPhotoList.forEach((item, index) => {
|
|
|
var obj = {};
|
|
|
- obj.name = item.response.fileName;
|
|
|
- obj.uid = item.uid;
|
|
|
- obj.url = item.response.url;
|
|
|
+ console.log(item.response,98765)
|
|
|
+ if(item.response == undefined){
|
|
|
+ obj.name = item.fileName;
|
|
|
+ obj.fileName = item.fileName;
|
|
|
+ obj.uid = item.uid;
|
|
|
+ obj.url = item.url;
|
|
|
+ }else{
|
|
|
+ obj.name = item.response.fileName;
|
|
|
+ obj.fileName = item.response.fileName;
|
|
|
+ obj.uid = item.uid;
|
|
|
+ obj.url = item.response.url;
|
|
|
+ }
|
|
|
+
|
|
|
tmp[index] = obj;
|
|
|
});
|
|
|
this.form.productPhoto = JSON.stringify(tmp);
|
|
|
|
|
|
this.arrivalListPhotoList.forEach((item, index) => {
|
|
|
var obj = {};
|
|
|
- obj.name = item.response.fileName;
|
|
|
- obj.uid = item.uid;
|
|
|
- obj.url = item.response.url;
|
|
|
+ if(item.response == undefined){
|
|
|
+ obj.name = item.fileName;
|
|
|
+ obj.fileName = item.fileName;
|
|
|
+ obj.uid = item.uid;
|
|
|
+ obj.url = item.url;
|
|
|
+ }else{
|
|
|
+ obj.name = item.response.fileName;
|
|
|
+ obj.fileName = item.response.fileName;
|
|
|
+ obj.uid = item.uid;
|
|
|
+ obj.url = item.response.url;
|
|
|
+ }
|
|
|
tmp[index] = obj;
|
|
|
});
|
|
|
this.form.arrivalListPhoto = JSON.stringify(tmp);
|
|
|
|
|
|
this.orderContractPhotoList.forEach((item, index) => {
|
|
|
var obj = {};
|
|
|
- obj.name = item.response.fileName;
|
|
|
- obj.uid = item.uid;
|
|
|
- obj.url = item.response.url;
|
|
|
+ if(item.response == undefined){
|
|
|
+ obj.name = item.fileName;
|
|
|
+ obj.fileName = item.fileName;
|
|
|
+ obj.uid = item.uid;
|
|
|
+ obj.url = item.url;
|
|
|
+ }else{
|
|
|
+ obj.name = item.response.fileName;
|
|
|
+ obj.fileName = item.response.fileName;
|
|
|
+ obj.uid = item.uid;
|
|
|
+ obj.url = item.response.url;
|
|
|
+ }
|
|
|
tmp[index] = obj;
|
|
|
});
|
|
|
this.form.orderContractPhoto = JSON.stringify(tmp);
|
|
|
this.orderContractPhotoLists.forEach((item, index) => {
|
|
|
var obj = {};
|
|
|
- obj.name = item.response.fileName;
|
|
|
- obj.uid = item.uid;
|
|
|
- obj.url = item.response.url;
|
|
|
+ if(item.response == undefined){
|
|
|
+ obj.name = item.fileName;
|
|
|
+ obj.fileName = item.fileName;
|
|
|
+ obj.uid = item.uid;
|
|
|
+ obj.url = item.url;
|
|
|
+ }else{
|
|
|
+ obj.name = item.response.fileName;
|
|
|
+ obj.fileName = item.response.fileName;
|
|
|
+ obj.uid = item.uid;
|
|
|
+ obj.url = item.response.url;
|
|
|
+ }
|
|
|
tmp[index] = obj;
|
|
|
});
|
|
|
this.form.entryPhoto = JSON.stringify(tmp);
|
|
|
|
|
|
-
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
if (valid) {
|
|
|
if (this.form.id != null) {
|
|
|
+
|
|
|
updateProduct(this.form).then((response) => {
|
|
|
this.msgSuccess("操作成功");
|
|
|
this.submitBtn()
|
|
|
// this.$router.go(-1)
|
|
|
});
|
|
|
} else {
|
|
|
+
|
|
|
+
|
|
|
addProduct(this.form).then((response) => {
|
|
|
this.msgSuccess("操作成功");
|
|
|
this.submitBtn()
|