...
|
...
|
@@ -20,42 +20,42 @@ |
|
|
<sk-container-shadow padding="20px" title="试制单信息" style="margin-top: 24px">
|
|
|
<el-form label-width="100px">
|
|
|
<el-row>
|
|
|
<el-col :span='6'>
|
|
|
<el-col :span='8'>
|
|
|
<el-form-item label="试制单号">
|
|
|
<el-input disabled v-model="Trialnum" ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span='6'>
|
|
|
<el-col :span='8'>
|
|
|
<el-form-item label="工单号码">
|
|
|
<el-input disabled v-model="Worknum"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span='6'>
|
|
|
<el-col :span='8'>
|
|
|
<el-form-item label="产品编码">
|
|
|
<el-input disabled v-model="productcode"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span='6'>
|
|
|
<el-col :span='8'>
|
|
|
<el-form-item label="产品描述">
|
|
|
<el-input disabled v-model="productdes"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span='6'>
|
|
|
<el-col :span='8'>
|
|
|
<el-form-item label="设备编码">
|
|
|
<el-input disabled v-model="equipcode"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span='6'>
|
|
|
<el-col :span='8'>
|
|
|
<el-form-item label="模具编码">
|
|
|
<el-input disabled v-model="modcode"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span='6'>
|
|
|
<el-col :span='8'>
|
|
|
<el-form-item label="试制数量">
|
|
|
<el-input disabled v-model="sznum"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span='6'>
|
|
|
<el-col :span='8'>
|
|
|
<el-form-item label="试模原因">
|
|
|
<el-select v-model="reason" disabled>
|
|
|
<el-option
|
...
|
...
|
@@ -149,7 +149,6 @@ |
|
|
:height="200"
|
|
|
:data="taskInstances"
|
|
|
:columnOptions="columnOptions"
|
|
|
style="width: 97%"
|
|
|
>
|
|
|
</sk-table>
|
|
|
</sk-list-container>
|
...
|
...
|
@@ -195,6 +194,7 @@ |
|
|
import logoUrl from "../../assets/logo.png";
|
|
|
import {Trialorder, Trialapproval, Trialhistoricalnode,saveapprovalprocess,querycode} from "@/services/manageMine/userService";
|
|
|
import {upLoadUrl, basicUrl, getLocalTime} from "@/components/tools";
|
|
|
import {getprocess} from "@/services/prp/prp";
|
|
|
|
|
|
export default {
|
|
|
name: "moldInsertAdd",
|
...
|
...
|
@@ -258,12 +258,12 @@ export default { |
|
|
this.sznum = list.moldCode
|
|
|
this.reason = list.tryCause
|
|
|
this.textarea = list.remark
|
|
|
console.log(list)
|
|
|
this.getTrialnum()
|
|
|
let taskId = this.taskId = list.taskId
|
|
|
this.getList(taskId)
|
|
|
},
|
|
|
methods: {
|
|
|
|
|
|
handleClick(tab, event) {
|
|
|
console.log(tab, event);
|
|
|
},
|
...
|
...
|
@@ -337,7 +337,7 @@ export default { |
|
|
let listimg = res.data.taskInstances
|
|
|
listimg.forEach(item=>{
|
|
|
item.approvalFields.forEach(itemnav=>{
|
|
|
if(itemnav.type == 'img'){
|
|
|
if(itemnav.type === 'img' && itemnav.value !== ''){
|
|
|
let urlimglist = JSON.parse(itemnav.value)
|
|
|
for(let i=0;i<urlimglist.length;i++){
|
|
|
this.urlimg = basicUrl+urlimglist[0]
|
...
|
...
|
@@ -345,7 +345,7 @@ export default { |
|
|
this.srcList.push(image)
|
|
|
}
|
|
|
}
|
|
|
if(itemnav.type == 'file'){
|
|
|
if(itemnav.type === 'file' && itemnav.value !== ''){
|
|
|
let filelist = JSON.parse(itemnav.value)
|
|
|
for(let i=0;i<filelist.length;i++){
|
|
|
let file = basicUrl+filelist[i]
|
...
|
...
|
@@ -383,6 +383,8 @@ export default { |
|
|
item.approvalTime = getLocalTime(item.approvalTime,'long')
|
|
|
})
|
|
|
this.taskInstances = list
|
|
|
console.log(this.taskInstances)
|
|
|
console.log(this.taskInstances)
|
|
|
res.data.taskInstance.approvalFields.forEach((item,index) =>{
|
|
|
if(item.type === 'dict'){
|
|
|
let params = {
|
...
|
...
|
@@ -427,10 +429,9 @@ export default { |
|
|
this.postapprovalprocess(params)
|
|
|
},
|
|
|
postapprovalprocess(params) {
|
|
|
let that = this
|
|
|
return new Promise((r) => {
|
|
|
saveapprovalprocess(params).then((res) => {
|
|
|
if(res.code === 200){
|
|
|
if(res.code === '200'){
|
|
|
this.$router.push({
|
|
|
path:'./trialproductionmanagement'
|
|
|
})
|
...
|
...
|
|