|
@@ -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:''
|
|
@@ -885,7 +891,6 @@ export default {
|
|
|
},
|
|
|
//物料带出单位
|
|
|
change(scope){
|
|
|
- console.log(this.materialOption)
|
|
|
for(let item in this.detailList){
|
|
|
for(let li in this.materialOption){
|
|
|
if(this.detailList[item].fMaterial == this.materialOption[li].fId){
|
|
@@ -903,8 +908,8 @@ export default {
|
|
|
},
|
|
|
homePage(){
|
|
|
let date = this.$route.query
|
|
|
- console.log(date)
|
|
|
if (this.$route.query.list){
|
|
|
+ this.cancelButton = false;
|
|
|
let scope = {
|
|
|
row:{
|
|
|
fId:JSON.parse(this.$route.query.data).billId
|
|
@@ -912,6 +917,10 @@ export default {
|
|
|
}
|
|
|
this.handleUpdate(scope.row)
|
|
|
this.approvedBy = true
|
|
|
+ }else{
|
|
|
+ this.mainTabel = false
|
|
|
+ this.cancelButton = true
|
|
|
+ this.approvedBy = false
|
|
|
}
|
|
|
},
|
|
|
// 查看审批流
|
|
@@ -956,15 +965,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) {
|
|
@@ -977,7 +990,6 @@ export default {
|
|
|
liableRemoteMethod(name) {
|
|
|
let queryParams = { fName: name }
|
|
|
getliable(queryParams).then((response) => {
|
|
|
- console.log(response)
|
|
|
this.liableOption = response.rows
|
|
|
})
|
|
|
},
|
|
@@ -985,7 +997,6 @@ export default {
|
|
|
materialRemoteMethod(name) {
|
|
|
let queryParams = { fName: name }
|
|
|
listmaterial(queryParams).then((response) => {
|
|
|
- console.log(response)
|
|
|
this.materialOption = response.rows
|
|
|
})
|
|
|
},
|
|
@@ -995,9 +1006,6 @@ export default {
|
|
|
listCharge(this.form).then(response => {
|
|
|
if (response.rows) {
|
|
|
this.projectList = response.rows
|
|
|
- // for (let li in this.projectList) {
|
|
|
- // this.name = this.projectList[li]
|
|
|
- // }
|
|
|
}
|
|
|
this.total = response.total;
|
|
|
})
|
|
@@ -1022,9 +1030,7 @@ export default {
|
|
|
this.$set(this.detailList[li], 'fMeasure', JSON.stringify(this.detailList[li].fMeasure))
|
|
|
}
|
|
|
}
|
|
|
- console.log(this.detailform.fBillstatus)
|
|
|
if(this.detailform.fBillstatus >= 4){
|
|
|
- console.log("111")
|
|
|
this.doNot = true
|
|
|
this.doNotchange = true
|
|
|
}else{
|
|
@@ -1076,14 +1082,12 @@ export default {
|
|
|
this.$refs['detailform'].validate((valid) => {
|
|
|
if (valid) {
|
|
|
let formData = new window.FormData()
|
|
|
- console.log(this.detailform)
|
|
|
formData.append('tProject', JSON.stringify(this.detailform))
|
|
|
formData.append('tCtnpriceItems', JSON.stringify(this.detailList))
|
|
|
addChange(formData).then(response => {
|
|
|
this.$message.success("操作成功")
|
|
|
if (response.data.tProject) {
|
|
|
this.detailform = response.data.tProject
|
|
|
- console.log(this.detailform)
|
|
|
}
|
|
|
if (response.data.tCtnpriceItems) {
|
|
|
this.detailList = response.data.tCtnpriceItems
|
|
@@ -1094,7 +1098,6 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
goBack() {
|
|
|
- console.log(this.$route.query)
|
|
|
if (this.doNot == true && !this.$route.query.data) {
|
|
|
this.mainTabel = false
|
|
|
}else if(this.$route.query.data){
|
|
@@ -1323,5 +1326,8 @@ export default {
|
|
|
.el-icon-full-screen:before {
|
|
|
content: "\e719";
|
|
|
}
|
|
|
+.app-container ::v-deep .el-form-item {
|
|
|
+ margin-bottom: 4px;
|
|
|
+}
|
|
|
</style>
|
|
|
|