Browse Source

2025-06-07

原有属性中增加ShopOrder,作为文本填写
技术参数卡增加Copy Flag字段
增加Planner 将该字段放在基本信息中(可选,与是否需要Artwork一致)
master
fengyuan_yang 9 months ago
parent
commit
7cf610d502
  1. 106
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue

106
src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue

@ -100,6 +100,16 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="3">
<div class="grid-content bg-purple">
<el-form-item :label="'POD'">
<el-select v-model="dataForm.pod" :disabled="ifDisableFlag">
<el-option label="Y" value="Y"></el-option>
<el-option label="N" value="N"></el-option>
</el-select>
</el-form-item>
</div>
</el-col>
</el-row>
<el-row :gutter="10">
@ -113,17 +123,28 @@
<el-input v-model="dataForm.ecnAddress" disabled></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-col :span="3">
<el-form-item label="Sample Application No">
<el-input @focus="jumpPage('B')" ref="jumpB" class="blue-input" v-model="dataForm.proofingNo" readonly></el-input>
</el-form-item>
</el-col>
<el-col :span="3">
<el-form-item label="ShopOrder">
<el-input v-model="dataForm.shopOrder"></el-input>
</el-form-item>
</el-col>
<el-col :span="3">
<el-form-item v-if="dataForm.documentSource === 'Copy'" label="是否需要审批">
<el-radio v-model="copyFlag" label="Yes" :disabled="ifDisableFlag"></el-radio>
<el-radio v-model="copyFlag" label="No" :disabled="ifDisableFlag"></el-radio>
</el-form-item>
</el-col>
<!--2025-05-22海波要求添加-->
<!--2025-05-22海波要求添加 默认值为YES/NO-->
<el-col :span="3">
<el-form-item label="ECN是否需要变更图纸" v-if="dataForm.ecnUpgradeVersion">
<el-radio v-model="ecnNeedChangeDrawing" label="Yes" :disabled="ifDisableFlag"></el-radio>
<el-radio v-model="ecnNeedChangeDrawing" label="No" :disabled="ifDisableFlag"></el-radio>
<el-radio v-model="ecnNeedChangeDrawing" label="No" :disabled="ifDisableFlag"></el-radio>
</el-form-item>
</el-col>
</el-row>
@ -196,6 +217,14 @@
<el-col :span="6">
<div class="grid-content bg-purple">
<el-form-item >
<span slot="label" style="" @click="getBaseList(9)"><a herf="#">Select Planner</a></span>
<el-input v-model="dataForm.planOperatorName" ref="planOperatorName" placeholder="请选择人员" readonly></el-input>
</el-form-item>
</div>
</el-col>
<el-col :span="6">
<div class="grid-content bg-purple">
<el-form-item >
<!-- <span slot="label" @click="getBaseList(1)"><a herf="#">Select CQC</a></span>-->
<span slot="label" @click="handleCqcOperator"><a >Select CQC</a></span>
<el-input v-model="dataForm.cqcOperatorName" @focus="handleCqcOperator()" ref="cqcOperatorName" placeholder="请选择人员" readonly></el-input>
@ -223,16 +252,6 @@
</el-form-item>
</div>
</el-col>
<el-col :span="6">
<div class="grid-content bg-purple">
<el-form-item :label="'POD'">
<el-select v-model="dataForm.pod" :disabled="ifDisableFlag">
<el-option label="Y" value="Y"></el-option>
<el-option label="N" value="N"></el-option>
</el-select>
</el-form-item>
</div>
</el-col>
</el-row>
<el-row :gutter="20">
@ -456,7 +475,14 @@
mpOperatorList: [],
cqcOperatorList: [],
faiOperatorList: [],
planOperatorList: [],
dccList: '',
ecnNeedChangeDrawing: '',
documentSource: '',
copyFlag: '',
shopOrder: '',
planOperator:'',
planOperatorName:'',
},
dataRole: {
partTypeDesc: [
@ -489,7 +515,8 @@
mpOperatorList: [],
ecnNeedChangeDrawing: 'No',
plmTechnicalSpecificationSheetArr: [],
plmTechnicalSpecificationTeamArr: []
plmTechnicalSpecificationTeamArr: [],
copyFlag: 'No'
}
},
methods: {
@ -527,6 +554,10 @@
strVal = this.dataForm.technicianNo
roleId = 'R014'
}
if(type === 9) {
strVal = this.dataForm.planOperator
roleId = 'R023'
}
this.$refs.baseList.init(this.searchData.site,this.searchData.buNo, strVal,roleId)
})
},
@ -589,6 +620,13 @@
// this.$triggerInputEvent(this.$refs.mpOperatorName);
// });
}
if (this.tagNo1 === 9) {
this.dataForm.planOperator = val.username
this.dataForm.planOperatorName = val.userDisplay
this.$nextTick(() => {
this.$triggerInputEvent(this.$refs.planOperatorName);
})
}
},
//
@ -625,6 +663,11 @@
} else {
this.ecnNeedChangeDrawing = 'No'
}
if (this.dataForm.copyFlag === 'Yes') {
this.copyFlag = 'Yes'
} else {
this.copyFlag = 'No'
}
// this.$message.success( '')
let inData = {
site: this.dataForm.site,
@ -699,6 +742,14 @@
this.dataForm.faiOperatorList = data.rows
}
})
let planParams = {
site: this.dataForm.site,
codeNo: this.dataForm.codeNo,
type: 'plan',
}
searchTechnicalSpecificationTeamStr(planParams).then(({data}) => {
this.dataForm.planOperatorList = data.rows
})
} else {
this.dataList = ''
this.$alert('刷新失败请重新打开技术参数卡', '失败', {
@ -719,6 +770,11 @@
} else {
this.ecnNeedChangeDrawing = 'No'
}
if (this.dataForm.copyFlag === 'Yes') {
this.copyFlag = 'Yes'
} else {
this.copyFlag = 'No'
}
this.getNodeAuthority(data.row)
let inData = {
site: this.dataForm.site,
@ -793,6 +849,14 @@
this.dataForm.faiOperatorList = data.rows
}
})
let planParams = {
site: this.dataForm.site,
codeNo: this.dataForm.codeNo,
type: 'plan',
}
searchTechnicalSpecificationTeamStr(planParams).then(({data}) => {
this.dataForm.planOperatorList = data.rows
})
} else {
this.dataList = ''
}
@ -889,6 +953,8 @@
this.dataForm.technicianList.push(this.dataForm.technicianNo) // Artwork
this.dataForm.csOperatorList = []
this.dataForm.csOperatorList.push(this.dataForm.csOperater) // CS
this.dataForm.planOperatorList = []
this.dataForm.planOperatorList.push(this.dataForm.planOperator) // Planner
this.$confirm("是否保存基本信息?", '保存提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
@ -994,6 +1060,8 @@
this.dataForm.technicianList.push(this.dataForm.technicianNo) // Artwork
this.dataForm.csOperatorList = []
this.dataForm.csOperatorList.push(this.dataForm.csOperater) // CS
this.dataForm.planOperatorList = []
this.dataForm.planOperatorList.push(this.dataForm.planOperator) // Planner
let tempData = {
...this.dataForm,
site: this.searchData.site,
@ -1019,6 +1087,8 @@
this.dataForm.technicianList.push(this.dataForm.technicianNo) // Artwork
this.dataForm.csOperatorList = []
this.dataForm.csOperatorList.push(this.dataForm.csOperater) // CS
this.dataForm.planOperatorList = []
this.dataForm.planOperatorList.push(this.dataForm.planOperator) // Planner
let tempData = {
...this.dataForm,
site: this.searchData.site,
@ -1065,6 +1135,8 @@
this.dataForm.technicianList.push(this.dataForm.technicianNo) // Artwork
this.dataForm.csOperatorList = []
this.dataForm.csOperatorList.push(this.dataForm.csOperater) // CS
this.dataForm.planOperatorList = []
this.dataForm.planOperatorList.push(this.dataForm.planOperator) // Planner
let tempData = {
...this.dataForm,
site: this.searchData.site,
@ -1251,6 +1323,14 @@
this.dataForm.ecnNeedChangeDrawing = "No"
}
},
copyFlag (newVal) {
if (newVal === 'Yes') {
this.dataForm.copyFlag = "Yes"
} else {
this.dataForm.copyFlag = "No"
}
},
},
}
</script>

Loading…
Cancel
Save