|
@@ -353,7 +353,7 @@
|
|
|
<el-button v-if="cancelButton === true" size="mini" type="danger" icon="el-icon-refresh-left" @click="goBack">返回列表</el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
- <el-button v-if="cancelButton === false" size="mini" icon="el-icon-refresh-left" type="danger">返回首页</el-button>
|
|
|
+ <el-button v-if="cancelButton === false" size="mini" icon="el-icon-refresh-left" type="danger" @click="cancelTwo">返回首页</el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
<el-button size="mini" :disabled="doNot" icon="el-icon-plus" type="primary" @click="addList">录入</el-button>
|
|
@@ -502,6 +502,7 @@
|
|
|
></el-input>
|
|
|
<el-input v-else-if="item.label == 'fTeachersWeight'" :disabled="doNot" v-model="scope.row.fTeachersWeight" oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
|
|
|
></el-input>
|
|
|
+ <el-input v-else-if="item.label == 'fCurrencyName'" disabled v-model="scope.row.fCurrencyName"></el-input>
|
|
|
<el-input v-else v-model="scope.row[item.label]" :disabled="doNot" placehoder="请输入"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -828,6 +829,11 @@ export default {
|
|
|
rules: {
|
|
|
fCorpid:[{required: true, message: "收款单位不能为空", trigger: "blur"}],
|
|
|
fPerson:[{required: true, message: "责任人不能为空", trigger: "blur"}],
|
|
|
+ fTel:[ {
|
|
|
+ pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
|
|
|
+ message: "请输入正确的手机号码",
|
|
|
+ trigger: "blur"
|
|
|
+ }]
|
|
|
},
|
|
|
loading:true,
|
|
|
name:''
|
|
@@ -903,8 +909,9 @@ export default {
|
|
|
},
|
|
|
homePage(){
|
|
|
let date = this.$route.query
|
|
|
- console.log(date)
|
|
|
+ console.log(this.$route.query.list)
|
|
|
if (this.$route.query.list){
|
|
|
+ this.cancelButton = false;
|
|
|
let scope = {
|
|
|
row:{
|
|
|
fId:JSON.parse(this.$route.query.data).billId
|
|
@@ -912,6 +919,10 @@ export default {
|
|
|
}
|
|
|
this.handleUpdate(scope.row)
|
|
|
this.approvedBy = true
|
|
|
+ }else{
|
|
|
+ this.mainTabel = false
|
|
|
+ this.cancelButton = true
|
|
|
+ this.approvedBy = false
|
|
|
}
|
|
|
},
|
|
|
// 查看审批流
|
|
@@ -956,15 +967,19 @@ export default {
|
|
|
|
|
|
//请核
|
|
|
approval(){
|
|
|
- let formData = new window.FormData();
|
|
|
- formData.append('tProject', JSON.stringify(this.detailform))
|
|
|
- formData.append('tCtnpriceItems', JSON.stringify(this.detailList))
|
|
|
- addproject(formData).then(res=>{
|
|
|
- console.log(res)
|
|
|
- this.$message.success("操作成功")
|
|
|
- this.doNot = false
|
|
|
+ this.$refs['detailform'].validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ let formData = new window.FormData();
|
|
|
+ formData.append('tProject', JSON.stringify(this.detailform))
|
|
|
+ formData.append('tCtnpriceItems', JSON.stringify(this.detailList))
|
|
|
+ addproject(formData).then(res => {
|
|
|
+ this.$message.success("操作成功")
|
|
|
+ this.doNot = true
|
|
|
+ this.getList()
|
|
|
+ this.mainTabel = false
|
|
|
+ })
|
|
|
+ }
|
|
|
})
|
|
|
-
|
|
|
},
|
|
|
/** 远程模糊查询用户 */
|
|
|
corpsRemoteMethod(name) {
|
|
@@ -1011,6 +1026,7 @@ export default {
|
|
|
handleUpdate(row, res) {
|
|
|
const fId = row.fId || this.ids
|
|
|
getChange(fId).then(response => {
|
|
|
+ console.log("111")
|
|
|
if (response.data.projectItemsList) {
|
|
|
this.detailform = response.data.tProject
|
|
|
this.operator = this.detailform.createBy
|
|
@@ -1024,7 +1040,6 @@ export default {
|
|
|
}
|
|
|
console.log(this.detailform.fBillstatus)
|
|
|
if(this.detailform.fBillstatus >= 4){
|
|
|
- console.log("111")
|
|
|
this.doNot = true
|
|
|
this.doNotchange = true
|
|
|
}else{
|
|
@@ -1323,5 +1338,8 @@ export default {
|
|
|
.el-icon-full-screen:before {
|
|
|
content: "\e719";
|
|
|
}
|
|
|
+.app-container ::v-deep .el-form-item {
|
|
|
+ margin-bottom: 4px;
|
|
|
+}
|
|
|
</style>
|
|
|
|