|
@@ -139,12 +139,15 @@
|
|
|
|
|
|
<div style="width: 100%">
|
|
|
<div>
|
|
|
+ <el-form-item label="附件:" prop="wfFileShareAttachList" class="info-line online1">
|
|
|
<myUpload
|
|
|
@uploadBack="uploadBack"
|
|
|
:fileInfo="fileInfo"
|
|
|
:fileList="fileInfo.fileList"
|
|
|
+ style="width: 100% ;height: 120px !important"
|
|
|
>
|
|
|
</myUpload>
|
|
|
+ </el-form-item>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -499,7 +502,19 @@ export default {
|
|
|
ruless: {
|
|
|
cycle: [{type: "array",required: true,trigger: "blur",message: "下单周期不能为空"}],
|
|
|
needCode: [{required: true,trigger: "blur",message: "需求编号不能为空"}],
|
|
|
- businessName: [{required: true,trigger: "blur",message: "业务名称不能为空"}],},
|
|
|
+ businessName: [{required: true,trigger: "blur",message: "业务名称不能为空"}],
|
|
|
+ // wfFileShareAttachList:[
|
|
|
+ // { required: true, validator: this.validatormk, trigger: "blur"},
|
|
|
+ // ],
|
|
|
+ },
|
|
|
+ rulesss: {
|
|
|
+ cycle: [{type: "array",required: true,trigger: "blur",message: "下单周期不能为空"}],
|
|
|
+ needCode: [{required: true,trigger: "blur",message: "需求编号不能为空"}],
|
|
|
+ businessName: [{required: true,trigger: "blur",message: "业务名称不能为空"}],
|
|
|
+ wfFileShareAttachList:[
|
|
|
+ { required: true, validator: this.validatormk, trigger: "blur"},
|
|
|
+ ],
|
|
|
+ },
|
|
|
rules: {
|
|
|
useCase: [{required: true,trigger: "change",message: "请选择使用场景"}],
|
|
|
formType: [{required: true,trigger: "change",message: "请选择表单类型"}],
|
|
@@ -514,7 +529,7 @@ export default {
|
|
|
tableData: [{}],
|
|
|
disableStatus: false,
|
|
|
infolist: {},
|
|
|
- needCode: "",
|
|
|
+ // needCode: "",
|
|
|
pickerOptions0: {
|
|
|
disabledDate(time) {
|
|
|
return time.getTime() < Date.now() - 8.64e7; //如果没有后面的-8.64e7就是不可以选择今天的
|
|
@@ -674,6 +689,7 @@ export default {
|
|
|
}).then((res) => {
|
|
|
|
|
|
this.infolist.needCode = res.data;
|
|
|
+ console.log(this.infolist.needCode);
|
|
|
});
|
|
|
},
|
|
|
//后台返部门
|
|
@@ -695,6 +711,15 @@ export default {
|
|
|
|
|
|
this.multipleSelection = val;
|
|
|
},
|
|
|
+ validatormk(rule,value,callback){
|
|
|
+ // console.log(this.ruleForm.wfFileShareAttachList)
|
|
|
+ if(this.infolist.wfFileShareAttachList == null){
|
|
|
+ console.log(111);
|
|
|
+ callback(new Error('请上传附件'));
|
|
|
+ }else{
|
|
|
+ callback();
|
|
|
+ }
|
|
|
+ },
|
|
|
//物料名称联动
|
|
|
changeMing(v,ev){
|
|
|
if(v == 1){
|
|
@@ -1352,7 +1377,8 @@ export default {
|
|
|
},
|
|
|
uploadBack(v) {
|
|
|
this.attList = v;
|
|
|
- // console.log(this.attList);
|
|
|
+ this.infolist.wfFileShareAttachList = v;
|
|
|
+ console.log(this.infolist.wfFileShareAttachList);
|
|
|
|
|
|
},
|
|
|
|
|
@@ -1419,11 +1445,17 @@ export default {
|
|
|
this.getTermianl();
|
|
|
this.getUser();
|
|
|
this.getList();
|
|
|
- this.getNeedCode();
|
|
|
+
|
|
|
},
|
|
|
created() {
|
|
|
+ this.getNeedCode();
|
|
|
+ // console.log(this.infolist.needCode);
|
|
|
// console.log(this.$route.query);
|
|
|
- // console.log(this.$route.query.applyType);
|
|
|
+ console.log(this.$route.query.applyType);
|
|
|
+ if(this.$route.query.applyType == "地市"){
|
|
|
+ // this.ruless = { ...this.ruless, ...rulesss }
|
|
|
+ this.ruless = this.rulesss
|
|
|
+ }
|
|
|
this.getDept();
|
|
|
},
|
|
|
};
|
|
@@ -1478,7 +1510,7 @@ export default {
|
|
|
border-radius: 3px;
|
|
|
background: #fff;
|
|
|
position: relative;
|
|
|
- height: 100px;
|
|
|
+ height: 150px;
|
|
|
|
|
|
img {
|
|
|
width: 100%;
|
|
@@ -1617,13 +1649,19 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
::v-deep.online .el-form-item__content {
|
|
|
- width: 98%;
|
|
|
+ width: 100%;
|
|
|
margin-left: 0 !important;
|
|
|
+ line-height: 28px;
|
|
|
+}
|
|
|
+::v-deep.online1 .el-form-item__content {
|
|
|
+ width: 100%;
|
|
|
+ margin-left: 0 !important;
|
|
|
+ line-height: 28px;
|
|
|
}
|
|
|
-
|
|
|
::v-deep.el-upload {
|
|
|
width: 98% !important;
|
|
|
padding: 0 !important;
|
|
|
+ height: 150% !important;
|
|
|
}
|
|
|
.el-row {
|
|
|
margin: 0 !important;
|