|
|
|
@ -171,9 +171,98 @@ |
|
|
|
</el-table> |
|
|
|
</el-tab-pane> |
|
|
|
<el-tab-pane label="审批信息" name="tab3"></el-tab-pane> |
|
|
|
<el-tab-pane label="处理信息" name="tab4"></el-tab-pane> |
|
|
|
<el-tab-pane label="处理信息" name="tab4"> |
|
|
|
<el-form :inline="true" label-position="top" style="margin-top: 0px"> |
|
|
|
<el-button type="primary" :disabled="!(currentRow.statusCode==='50'||currentRow.statusCode==='60')" @click="openMassageModel()">申请信息录入</el-button> |
|
|
|
</el-form> |
|
|
|
<el-form label-position="top" :model="currentRow" > |
|
|
|
<el-row :gutter="15"> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="IFS PR编号" > |
|
|
|
<el-input v-model="currentRow.prNo" readonly></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="18"> |
|
|
|
<el-form-item label="备注" > |
|
|
|
<el-input v-model="currentRow.remark1" readonly></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row :gutter="15" style="margin-top: 20px"> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="采购订单号" > |
|
|
|
<el-input v-model="currentRow.poNo" readonly ></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="厂商名称" > |
|
|
|
<el-input v-model="currentRow.supplierName" readonly></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="总成本(元)" > |
|
|
|
<el-input v-model="currentRow.allCost" readonly></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row :gutter="15" style="margin-top: 0px"> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item label="备注" > |
|
|
|
<el-input v-model="currentRow.remark2" readonly></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-form> |
|
|
|
</el-tab-pane> |
|
|
|
</el-tabs> |
|
|
|
|
|
|
|
<el-dialog |
|
|
|
width="800px" v-drag |
|
|
|
:title="'处理信息'" |
|
|
|
:close-on-click-modal="false" |
|
|
|
:visible.sync="modelFlag"> |
|
|
|
<el-form label-position="top" > |
|
|
|
<el-row :gutter="15" v-if="this.currentRow.statusCode==='50'"> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="IFS PR编号" > |
|
|
|
<el-input v-model="modelData.prNo" readonly></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="18"> |
|
|
|
<el-form-item label="备注" > |
|
|
|
<el-input v-model="modelData.remark1" readonly></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row :gutter="15" style="margin-top: 20px" v-if="this.currentRow.statusCode==='60'"> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="采购订单号" > |
|
|
|
<el-input v-model="modelData.poNo" readonly ></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="厂商名称" > |
|
|
|
<el-input v-model="modelData.supplierName" readonly></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="总成本(元)" > |
|
|
|
<el-input v-model="modelData.allCost" type="number" readonly></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row :gutter="15" style="margin-top: 0px"> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item label="备注" > |
|
|
|
<el-input v-model="modelData.remark2" readonly></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-form> |
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
<el-button type="primary" @click="saveHeaderMessage()">{{'保存'}}</el-button> |
|
|
|
<el-button type="primary" @click="modelFlag = false">{{'取消'}}</el-button> |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
<!-- 上传文件的modal --> |
|
|
|
<projectUploadFile ref="projectUploadFile" @refreshPageTables="getFileContentData()" v-drag></projectUploadFile> |
|
|
|
|
|
|
|
@ -191,6 +280,7 @@ |
|
|
|
searchToolApplyDetail, |
|
|
|
comfirmToolApply, |
|
|
|
cancelToolApply, |
|
|
|
saveHeaderMessage, |
|
|
|
} from "@/api/project/toolingInfo.js" |
|
|
|
import { |
|
|
|
deleteProjectFile, |
|
|
|
@ -220,7 +310,18 @@ |
|
|
|
startDate:'', |
|
|
|
endDate:'', |
|
|
|
}, |
|
|
|
currentRow:'', |
|
|
|
modelData:{ |
|
|
|
site:'', |
|
|
|
applyNo:'', |
|
|
|
prNo:'', |
|
|
|
remark1:'', |
|
|
|
poNo:'', |
|
|
|
supplierName:'', |
|
|
|
allCost:'', |
|
|
|
remark2:'', |
|
|
|
}, |
|
|
|
modelFlag:false, |
|
|
|
currentRow:{}, |
|
|
|
height: 200, |
|
|
|
dataList1:[], |
|
|
|
detailList:[], |
|
|
|
@ -895,8 +996,55 @@ |
|
|
|
this.search() |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
openMassageModel(){ |
|
|
|
if(Object.keys(this.currentRow).length === 0){ |
|
|
|
this.$alert('未选择记录!', '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
return false; |
|
|
|
} |
|
|
|
this.modalData={ |
|
|
|
site:this.currentRow.site, |
|
|
|
applyNo:this.currentRow.applyNo, |
|
|
|
prNo:this.currentRow.prNo, |
|
|
|
remark1:this.currentRow.remark1, |
|
|
|
poNo:this.currentRow.poNo, |
|
|
|
supplierName:this.currentRow.supplierName, |
|
|
|
allCost:this.currentRow.allCost, |
|
|
|
remark2:this.currentRow.remark2, |
|
|
|
} |
|
|
|
this.modelFlag=true |
|
|
|
}, |
|
|
|
saveHeaderMessage(){ |
|
|
|
this.$confirm('确定是否保存','提示',{ |
|
|
|
confirmButtonText:'确定', |
|
|
|
cancelButtonText:'取消', |
|
|
|
type:'warning' |
|
|
|
}).then(()=>{ |
|
|
|
saveHeaderMessage(this.modalData).then(({data}) => { |
|
|
|
if (data && data.code == 0) { |
|
|
|
this.modelFlag=false; |
|
|
|
this.currentRow.prNo=this.modalData.prNo |
|
|
|
this.currentRow.remark1=this.modalData.remark1 |
|
|
|
this.currentRow.poNo=this.modalData.poNo |
|
|
|
this.currentRow.supplierName=this.modalData.supplierName |
|
|
|
this.currentRow.allCost=this.modalData.allCost |
|
|
|
this.currentRow.remark2=this.modalData.remark2 |
|
|
|
this.$message({ |
|
|
|
message: '操作成功', |
|
|
|
type: 'success', |
|
|
|
duration: 1500, |
|
|
|
onClose: () => { |
|
|
|
} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
activated() { |
|
|
|
|