|  | @@ -86,6 +86,12 @@
 | 
	
		
			
				|  |  |                @click="rowCellTwo(row,index)"
 | 
	
		
			
				|  |  |                :disabled="row.strStatus !== '录入'"
 | 
	
		
			
				|  |  |              >{{row.$cellEdit?'修改完成':'修改'}}</el-button>
 | 
	
		
			
				|  |  | +            <el-button
 | 
	
		
			
				|  |  | +              type="text"
 | 
	
		
			
				|  |  | +              size="small"
 | 
	
		
			
				|  |  | +              @click="rowDel(row,index)"
 | 
	
		
			
				|  |  | +              :disabled="row.strStatus == '结算完成'"
 | 
	
		
			
				|  |  | +            >删除</el-button>
 | 
	
		
			
				|  |  |            </template>
 | 
	
		
			
				|  |  |            <template slot="userid" slot-scope="{row,index}">
 | 
	
		
			
				|  |  |              <span v-if="row.$cellEdit" style="float: left;color: #F56C6C;">*</span>
 | 
	
	
		
			
				|  | @@ -242,7 +248,7 @@
 | 
	
		
			
				|  |  |  <script>
 | 
	
		
			
				|  |  |    import option from "./configuration/detailsPage.json";
 | 
	
		
			
				|  |  |    import startOption from "./configuration/startDialog.json";
 | 
	
		
			
				|  |  | -  import { projectDetail,editMianProject,updateItemStatus,getSysNo } from "@/api/workManagement/mainProject";
 | 
	
		
			
				|  |  | +  import { projectDetail,editMianProject,updateItemStatus,getSysNo,getPidByItemId} from "@/api/workManagement/mainProject";
 | 
	
		
			
				|  |  |    //上传文件json
 | 
	
		
			
				|  |  |    import upLoadOption from "../../exportTrade/purchaseContract/config/uploadList.json"
 | 
	
		
			
				|  |  |    //服务列表接口
 | 
	
	
		
			
				|  | @@ -581,8 +587,16 @@
 | 
	
		
			
				|  |  |        this.$set(this.form,"advanceAmount",0)
 | 
	
		
			
				|  |  |        this.$set(this.form,"settlmentAmount",0)
 | 
	
		
			
				|  |  |        this.$set(this.form,"balanceAmount",0)
 | 
	
		
			
				|  |  | -      this.id = BigInt(this.$route.query.id);//字符串转数字  超长用BigInt
 | 
	
		
			
				|  |  | -      this.getProjectDetail();
 | 
	
		
			
				|  |  | +      if(this.$route.query.id){
 | 
	
		
			
				|  |  | +        this.id = BigInt(this.$route.query.id);//字符串转数字  超长用BigInt
 | 
	
		
			
				|  |  | +        this.getProjectDetail();
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      if(this.$route.query.itemId){
 | 
	
		
			
				|  |  | +        getPidByItemId(this.$route.query.itemId).then((res)=>{
 | 
	
		
			
				|  |  | +          this.id =  res.data.data;
 | 
	
		
			
				|  |  | +          this.getProjectDetail();
 | 
	
		
			
				|  |  | +        })
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  |        const params = {
 | 
	
		
			
				|  |  |          code : "affair_payment_term"
 | 
	
		
			
				|  |  |        }
 | 
	
	
		
			
				|  | @@ -642,15 +656,15 @@
 | 
	
		
			
				|  |  |              this.form = res.data.data;
 | 
	
		
			
				|  |  |              this.oldForm = Object.assign({},res.data.data);
 | 
	
		
			
				|  |  |              this.configuration.dicData = res.data.data.corpName; //给客户名称赋值
 | 
	
		
			
				|  |  | -            if(res.data.data.filesList){
 | 
	
		
			
				|  |  | -              this.upLoadData = res.data.data.filesList
 | 
	
		
			
				|  |  | -              this.oldUpLoadData = this.deepClone(res.data.data.filesList)
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  |              if(res.data.data.itemList){
 | 
	
		
			
				|  |  |                this.operationDetailList(res.data.data.itemList);
 | 
	
		
			
				|  |  |              }else{
 | 
	
		
			
				|  |  |                this.data = [];
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | +            if(res.data.data.filesList){
 | 
	
		
			
				|  |  | +              this.upLoadData = res.data.data.filesList
 | 
	
		
			
				|  |  | +              this.oldUpLoadData = this.deepClone(res.data.data.filesList)
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  |            })
 | 
	
		
			
				|  |  |          }else{
 | 
	
		
			
				|  |  |            getSysNo().then(res =>{
 | 
	
	
		
			
				|  | @@ -673,24 +687,31 @@
 | 
	
		
			
				|  |  |          })
 | 
	
		
			
				|  |  |          //如果 明细列表存在 请核之后的状态 禁止编辑一些输入框
 | 
	
		
			
				|  |  |          if(status.findIndex(item => item == false) == 0){
 | 
	
		
			
				|  |  | +          console.log(1)
 | 
	
		
			
				|  |  |            this.basicData.column.forEach(item =>{
 | 
	
		
			
				|  |  |              if(item.prop == "code" || item.prop == "cname" || item.prop == "corpId" || item.prop == "debitAmount"){
 | 
	
		
			
				|  |  |                item.disabled = true
 | 
	
		
			
				|  |  |                this.configuration.disabled = true
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |            })
 | 
	
		
			
				|  |  | +        }else{
 | 
	
		
			
				|  |  | +          console.log(2)
 | 
	
		
			
				|  |  | +          this.basicData.column.forEach(item =>{
 | 
	
		
			
				|  |  | +            if(item.prop == "code" || item.prop == "cname" || item.prop == "corpId" || item.prop == "debitAmount"){
 | 
	
		
			
				|  |  | +              item.disabled = false
 | 
	
		
			
				|  |  | +              this.configuration.disabled = false
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +          })
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  |        //删除列表后面的删除按钮触发触发(row, index, done)
 | 
	
		
			
				|  |  | -      rowDel(row, index, done) {
 | 
	
		
			
				|  |  | +      rowDel(row, index) {
 | 
	
		
			
				|  |  |          this.$confirm("确定将此明细删除?", {
 | 
	
		
			
				|  |  |            confirmButtonText: "确定",
 | 
	
		
			
				|  |  |            cancelButtonText: "取消",
 | 
	
		
			
				|  |  |            type: "warning"
 | 
	
		
			
				|  |  |          }).then(() => {
 | 
	
		
			
				|  |  | -          this.data.splice(index,0)
 | 
	
		
			
				|  |  | -          // 数据回调进行刷新
 | 
	
		
			
				|  |  | -          done(row);
 | 
	
		
			
				|  |  | +          this.data.splice(index,1)
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  |        // 合同金额
 | 
	
	
		
			
				|  | @@ -785,7 +806,7 @@
 | 
	
		
			
				|  |  |            let valids = true;
 | 
	
		
			
				|  |  |            if(this.data.length !=0){
 | 
	
		
			
				|  |  |              this.data.forEach((item) =>{
 | 
	
		
			
				|  |  | -              if((item.userid ==""  || !item.deptid || !item.amount) && valids){
 | 
	
		
			
				|  |  | +              if((item.userid ==""  || !item.deptid) && valids){
 | 
	
		
			
				|  |  |                  this.$message({
 | 
	
		
			
				|  |  |                    type: "warning",
 | 
	
		
			
				|  |  |                    message: "请检查明细列表第 "+(item.$index +1 )+" 行必填项"
 |