Browse Source

2025-05-14

master
qiezi 1 year ago
parent
commit
f86e689bc4
  1. 3
      src/api/sampleManagement/technicalSpecificationList.js
  2. 261
      src/views/modules/sampleManagement/technicalSpecificationDetail/changeLog.vue
  3. 22
      src/views/modules/sampleManagement/technicalSpecificationList.vue
  4. 138
      src/views/modules/tooling/searchToolApply.vue

3
src/api/sampleManagement/technicalSpecificationList.js

@ -127,3 +127,6 @@ export const getOADetailForBM= data => createAPI(`/technicalSpecification/getOAD
export const searchCopyPart= data => createAPI(`/technicalSpecification/searchCopyPart`,'post',data)
export const copyBm= data => createAPI(`/technicalSpecification/copyBm`,'post',data)
// 2025-05-14 查询变更信息
export const queryChangeLogList = data => createAPI("/technicalSpecification/change/log",'post',data)

261
src/views/modules/sampleManagement/technicalSpecificationDetail/changeLog.vue

@ -0,0 +1,261 @@
<script>
import {queryChangeLogList} from "../../../../api/sampleManagement/technicalSpecificationList";
export default {
name: "changeLog",
props:{
row:{
type:Object,
required:true
},
height:{
type:[Number,String],
default:200
}
},
data(){
return{
queryLoading:false,
dataList:[],
columns:[
{
userId: this.$store.state.user.name,
functionId: 108002,
serialNumber: '108002Table1BuNo',
tableId: '108002Table1',
tableName: '工程变更记录表',
columnProp: 'buNo',
headerAlign: 'center',
align: 'center',
columnLabel: 'BU',
columnHidden: false,
columnImage: false,
status: true,
fixed: '',
columnWidth: 80
},
{
userId: this.$store.state.user.name,
functionId: 108002,
serialNumber: '108002Table1ChangeNo',
tableId: '108002Table1',
tableName: '工程变更记录表',
columnProp: 'changeNo',
headerAlign: 'center',
align: 'left',
columnLabel: '申请编号',
columnHidden: false,
columnImage: false,
status: true,
fixed: '',
columnWidth: 120
},
{
userId: this.$store.state.user.name,
functionId: 108002,
serialNumber: '108002Table1ApplicantName',
tableId: '108002Table1',
tableName: '工程变更记录表',
columnProp: 'applicantName',
headerAlign: 'center',
align: 'left',
columnLabel: '申请人',
columnHidden: false,
columnImage: false,
status: true,
fixed: '',
columnWidth: 120
},
{
userId: this.$store.state.user.name,
functionId: 108002,
serialNumber: '108002Table1DepartmentName',
tableId: '108002Table1',
tableName: '工程变更记录表',
columnProp: 'applicationDepartmentName',
headerAlign: 'center',
align: 'left',
columnLabel: '申请部门',
columnHidden: false,
columnImage: false,
status: true,
fixed: '',
columnWidth: 120
},
{
userId: this.$store.state.user.name,
functionId: 108002,
serialNumber: '108002Table1ChangeStatus',
tableId: '108002Table1',
tableName: '工程变更记录表',
columnProp: 'changeStatus',
headerAlign: 'center',
align: 'left',
columnLabel: '变更单状态',
columnHidden: false,
columnImage: false,
status: true,
fixed: '',
columnWidth: 100
},
{
userId: this.$store.state.user.name,
functionId: 108002,
serialNumber: '108002Table1EcnStage',
tableId: '108002Table1',
tableName: '工程变更记录表',
columnProp: 'ecnStage',
headerAlign: 'center',
align: 'left',
columnLabel: 'ECN阶段',
columnHidden: false,
columnImage: false,
status: true,
fixed: '',
columnWidth: 100
},
{
userId: this.$store.state.user.name,
functionId: 108002,
serialNumber: '108002Table1ChangeType',
tableId: '108002Table1',
tableName: '工程变更记录表',
columnProp: 'changeType',
headerAlign: 'center',
align: 'left',
columnLabel: '变更类别',
columnHidden: false,
columnImage: false,
status: true,
fixed: '',
columnWidth: 100
},
{
userId: this.$store.state.user.name,
functionId: 108002,
serialNumber: '108002Table1EcnType',
tableId: '108002Table1',
tableName: '工程变更记录表',
columnProp: 'ecnType',
headerAlign: 'center',
align: 'left',
columnLabel: 'ECN种类',
columnHidden: false,
columnImage: false,
status: true,
fixed: '',
columnWidth: 100
},
{
userId: this.$store.state.user.name,
functionId: 108002,
serialNumber: '108002Table1ApplyDate',
tableId: '108002Table1',
tableName: '工程变更记录表',
columnProp: 'applyDate',
headerAlign: 'center',
align: 'center',
columnLabel: '申请日期',
columnHidden: false,
columnImage: false,
status: true,
fixed: '',
columnWidth: 100
},
{
userId: this.$store.state.user.name,
functionId: 108002,
serialNumber: '108002Table1ChangePhaseInDate',
tableId: '108002Table1',
tableName: '工程变更记录表',
columnProp: 'changePhaseInDate',
headerAlign: 'center',
align: 'center',
columnLabel: '变更生效日期',
columnHidden: false,
columnImage: false,
status: true,
fixed: '',
columnWidth: 100
},
{
userId: this.$store.state.user.name,
functionId: 108002,
serialNumber: '108002Table1xxx',
tableId: '108002Table1',
tableName: '工程变更记录表',
columnProp: 'xxx',
headerAlign: 'center',
align: 'center',
columnLabel: 'ECN执行日期',
columnHidden: false,
columnImage: false,
status: true,
fixed: '',
columnWidth: 100
},
],
}
},
watch:{
row(newVal,oldVal){
this.queryChangeLogList();
},
queryLoading(newVal,oldVal){
if (!newVal){
setTimeout(()=>{
this.queryLoading = false;
},10000)
}
}
},
methods:{
queryChangeLogList(){
let params = {
site:this.row.site,
codeNo:this.row.codeNo,
}
this.queryLoading = true;
queryChangeLogList(params).then(({data})=>{
if (data && data.code === 0){
this.dataList = data.rows;
}else {
this.$message.warning(data.msg);
}
this.queryLoading = false;
}).catch((error)=>{
this.$message.error(error);
this.queryLoading = false;
})
}
},
}
</script>
<template>
<div>
<el-table
:data="dataList"
border v-loading="queryLoading" :height="height">
<el-table-column
v-for="(item,index) in columns" :key="index"
:sortable="item.columnSortable"
:prop="item.columnProp"
:header-align="item.headerAlign"
:show-overflow-tooltip="item.showOverflowTooltip"
:align="item.align"
:fixed="item.fixed === ''?false:item.fixed"
:min-width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
</template>
</el-table-column>
</el-table>
</div>
</template>
<style scoped>
</style>

22
src/views/modules/sampleManagement/technicalSpecificationList.vue

@ -12,6 +12,7 @@
<el-input v-model="searchData.testPartNo" style="width: 120px" clearable></el-input>
</el-form-item>
<el-form-item label="客户">
<span slot="label" @click="getBaseList(102,1)"><a herf="#">客户</a></span>
<el-input v-model="searchData.customerDesc" style="width: 120px" clearable></el-input>
</el-form-item>
<el-form-item label="刀版号">
@ -20,9 +21,9 @@
<el-form-item :label="'状态'">
<el-select v-model="searchData.statusDesc" clearable style="width: 130px">
<el-option label="全部" value=""></el-option>
<el-option label="草稿" value="草稿"></el-option>
<el-option label="审批中" value="审批中"></el-option>
<el-option label="已升版" value="已升版"></el-option>
<el-option label="草稿" value="cg"></el-option>
<el-option label="审批中" value="spz"></el-option>
<el-option label="已升版" value="death"></el-option>
<el-option label="已完成" value="已完成"></el-option>
</el-select>
</el-form-item>
@ -337,6 +338,9 @@
<!-- </el-form-item>-->
<!-- </el-form>-->
</el-tab-pane>
<el-tab-pane label="变更记录" name="changelog">
<change-log :row="currentRow" :height="240"></change-log>
</el-tab-pane>
<!-- 审批信息 -->
<el-tab-pane label="审批信息" name="approvalInformation">
<approval-information ref="approvalTable" v-model:data-list="approvalList" :height="240"></approval-information>
@ -465,8 +469,10 @@
} from '@/api/changeManagement/changeManagement.js'
import ApprovalInformation from "../changeManagement/approvalInformation.vue";
import CustomerInfo from "../quotation/sellForQuotation/customerInfo.vue";
import ChangeLog from "./technicalSpecificationDetail/changeLog.vue";
export default {
components: {
ChangeLog,
CustomerInfo,
ApprovalInformation,
Chooselist,
@ -1067,6 +1073,11 @@
strVal = this.searchData.testPartNo
}
}
if (val === 102) {
if(type==1) {
strVal = this.searchData.customerDesc
}
}
this.$refs.baseList.init(val, strVal)
})
},
@ -1104,6 +1115,11 @@
this.searchData.testPartNo = val.Test_part_no
}
}
if (this.tagNo === 102) {
if(this.tagNo1==1) {
this.searchData.customerDesc = val.Customer_desc
}
}
},
// /
addOrUpdateHandle (id) {

138
src/views/modules/tooling/searchToolApply.vue

@ -65,11 +65,19 @@
fixed="right"
label="操作">
<template slot-scope="scope">
<template v-if="isAuth('106002:issued')">
<a type="text" size="small" v-if="scope.row.status==='草稿'" @click="comfirmApply(scope.row)">下达</a>
</template>
<template v-if="isAuth('106002:update')">
<a type="text" size="small" v-if="scope.row.status==='草稿'" @click="editModalU(scope.row)">修改</a>
<a type="text" size="small" v-if="scope.row.status=='审批中'" @click="editModal(scope.row)">审批</a>
</template>
<template v-if="isAuth('106002:approval')">
<a type="text" size="small" v-if="scope.row.status==='审批中'" @click="editModal(scope.row)">审批</a>
</template>
<template v-if="isAuth('106002:remove')">
<a type="text" size="small" v-if="scope.row.status==='草稿'" @click="cancelApply(scope.row)">删除</a>
</template>
</template>
</el-table-column>
<el-table-column
v-for="(item,index) in columnList1" :key="index"
@ -98,9 +106,11 @@
:total="totalPage"
layout="total, sizes, prev, pager, next, jumper">
</el-pagination>
<el-tabs style="font-size: 12px;min-height: 330px" class="customer-tab" v-model="activeName" type="border-card" @tab-click="tabClick">
<el-tabs style="font-size: 12px;min-height: 330px" class="customer-tab" v-model="activeName" type="border-card"
@tab-click="tabClick">
<el-tab-pane label="基本信息" name="attribute">
<order-attribute ref="dialogAttribute" :order-no="currentRow.applyNo" :code-no="'toolApply'" :function-type="'TL_Receipt'"></order-attribute>
<order-attribute ref="dialogAttribute" :order-no="currentRow.applyNo" :code-no="'toolApply'"
:function-type="'TL_Receipt'"></order-attribute>
</el-tab-pane>
<el-tab-pane label="工具明细" name="detail">
<el-table
@ -196,7 +206,8 @@
</el-form>
</el-tab-pane>
<el-tab-pane label="附件信息" name="down">
<oss-components height="25vh" label="附件" :columns="ossColumns" :order-ref1="currentRow.site" :order-ref2="currentRow.applyNo"></oss-components>
<oss-components height="25vh" label="附件" :columns="ossColumns" :order-ref1="currentRow.site"
:order-ref2="currentRow.applyNo"></oss-components>
</el-tab-pane>
<!-- 审批信息 -->
@ -217,7 +228,8 @@
<el-input v-model="dataForm.applySumQty" style="width: 130px" disabled></el-input>
</el-form-item>
<el-form-item :label="'总成本'">
<el-input v-if="accessField('10601001')" v-model="dataForm.totalCost" style="width: 130px" disabled></el-input>
<el-input v-if="accessField('10601001')" v-model="dataForm.totalCost" style="width: 130px"
disabled></el-input>
<el-input v-if="!accessField('10601001')" v-model="valueNull" style="width: 130px" disabled></el-input>
</el-form-item>
<el-form-item :label="'申请人'" required="required">
@ -234,19 +246,23 @@
</el-date-picker>
</el-form-item>
<el-form-item label="部门" required="required">
<dict-data-select :site="$store.state.user.site" v-model="dataForm.department" dict-type="tool_application_department" disabled style="width: 130px"></dict-data-select>
<dict-data-select :site="$store.state.user.site" v-model="dataForm.department"
dict-type="tool_application_department" disabled style="width: 130px"></dict-data-select>
</el-form-item>
<el-form-item required="required">
<span slot="label" style="" @click="getBaseList(2002,1)"><a herf="#">报价员</a></span>
<el-input v-model="dataForm.quoterName" ref="quoterName" placeholder="请选择人员" readonly style="width: 130px" ></el-input>
<el-input v-model="dataForm.quoterName" ref="quoterName" placeholder="请选择人员" readonly
style="width: 130px"></el-input>
</el-form-item>
<el-form-item required="required">
<span slot="label" style="" @click="getBaseList(2042,2)"><a herf="#">TP</a></span>
<el-input v-model="dataForm.tpName" ref="tpName" placeholder="请选择人员" readonly style="width: 130px" ></el-input>
<el-input v-model="dataForm.tpName" ref="tpName" placeholder="请选择人员" readonly
style="width: 130px"></el-input>
</el-form-item>
<el-form-item required="required">
<span slot="label" style="" @click="getBaseList(2000,3)"><a herf="#">采购员</a></span>
<el-input v-model="dataForm.purchaserName" ref="purchaserName" placeholder="请选择人员" readonly style="width: 130px" ></el-input>
<el-input v-model="dataForm.purchaserName" ref="purchaserName" placeholder="请选择人员" readonly
style="width: 130px"></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" label-width="100px">
@ -261,7 +277,8 @@
v-model="dataForm.remark"/>
</el-form-item>
</el-form>
<el-tabs style="font-size: 12px;min-height: 330px;margin-top: 60px" class="customer-tab" v-model="activeModelName" type="border-card" >
<el-tabs style="font-size: 12px;min-height: 330px;margin-top: 60px" class="customer-tab" v-model="activeModelName"
type="border-card">
<el-tab-pane label="工具明细" name="detail">
<div class="rq">
<el-table
@ -288,12 +305,14 @@
style="width: 100px; height: 80px"/></span>
</div>
<div v-else-if=" (item.columnProp === 'standardCost')">
<el-input v-if="accessField('10601001')" v-model="scope.row.standardCost" type="number" @change="changeSum(scope.row)" placeholder="请输入成本"
<el-input v-if="accessField('10601001')" v-model="scope.row.standardCost" type="number"
@change="changeSum(scope.row)" placeholder="请输入成本"
style="width:98%"></el-input>
</div>
<div v-else>
<el-input v-model="scope.row.applyQty" type="number" @change="changeSum(scope.row)" placeholder="请输入数量" onkeyup="value=value.replace(/^(0+)|[^\d]+/g,'')"
<el-input v-model="scope.row.applyQty" type="number" @change="changeSum(scope.row)"
placeholder="请输入数量" onkeyup="value=value.replace(/^(0+)|[^\d]+/g,'')"
style="width:98%"></el-input>
</div>
</template>
@ -311,7 +330,8 @@
</el-col>
<el-col :span="24">
<el-form-item label="备注" style="height: 80px">
<el-input type="textarea" v-model="modelData.remark1" :rows="3" style="height: 60px" :disabled="$store.state.user.name!==dataForm.tp"></el-input>
<el-input type="textarea" v-model="modelData.remark1" :rows="3" style="height: 60px"
:disabled="$store.state.user.name!==dataForm.tp"></el-input>
</el-form-item>
</el-col>
</el-row>
@ -327,19 +347,22 @@
</el-col>
<el-col :span="6">
<el-form-item label="厂商名称">
<el-input v-model="modelData.supplierName" :disabled="$store.state.user.name!==dataForm.purchaser"></el-input>
<el-input v-model="modelData.supplierName"
:disabled="$store.state.user.name!==dataForm.purchaser"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="总成本(元)">
<el-input v-model="modelData.allCost" type="number" :disabled="$store.state.user.name!==dataForm.purchaser"></el-input>
<el-input v-model="modelData.allCost" type="number"
:disabled="$store.state.user.name!==dataForm.purchaser"></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="备注" style="height: 80px">
<el-input type="textarea" v-model="modelData.remark2" :rows="3" style="height: 60px" :disabled="$store.state.user.name!==dataForm.purchaser"></el-input>
<el-input type="textarea" v-model="modelData.remark2" :rows="3" style="height: 60px"
:disabled="$store.state.user.name!==dataForm.purchaser"></el-input>
</el-form-item>
</el-col>
</el-row>
@ -365,7 +388,8 @@
<el-input v-model="dataForm.applySumQty" style="width: 130px" disabled></el-input>
</el-form-item>
<el-form-item :label="'总成本'">
<el-input v-if="accessField('10601001')" v-model="dataForm.totalCost" style="width: 130px" disabled></el-input>
<el-input v-if="accessField('10601001')" v-model="dataForm.totalCost" style="width: 130px"
disabled></el-input>
<el-input v-if="!accessField('10601001')" v-model="valueNull" style="width: 130px" disabled></el-input>
</el-form-item>
<el-form-item :label="'申请人'" required="required">
@ -382,19 +406,23 @@
</el-date-picker>
</el-form-item>
<el-form-item label="部门" required="required">
<dict-data-select :site="$store.state.user.site" v-model="dataForm.department" dict-type="tool_application_department" disabled style="width: 130px"></dict-data-select>
<dict-data-select :site="$store.state.user.site" v-model="dataForm.department"
dict-type="tool_application_department" disabled style="width: 130px"></dict-data-select>
</el-form-item>
<el-form-item required="required">
<span slot="label" style="" @click="getBaseList(103,1)"><a herf="#">报价员</a></span>
<el-input v-model="dataForm.quoterName" ref="quoterName" placeholder="请选择人员" readonly style="width: 130px" ></el-input>
<span slot="label" style="" @click="getBaseList(2002,1)"><a herf="#">报价员</a></span>
<el-input v-model="dataForm.quoterName" ref="quoterName" placeholder="请选择人员" readonly
style="width: 130px"></el-input>
</el-form-item>
<el-form-item required="required">
<span slot="label" style="" @click="getBaseList(103,2)"><a herf="#">TP</a></span>
<el-input v-model="dataForm.tpName" ref="tpName" placeholder="请选择人员" readonly style="width: 130px" ></el-input>
<span slot="label" style="" @click="getBaseList(2042,2)"><a herf="#">TP</a></span>
<el-input v-model="dataForm.tpName" ref="tpName" placeholder="请选择人员" readonly
style="width: 130px"></el-input>
</el-form-item>
<el-form-item required="required">
<span slot="label" style="" @click="getBaseList(103,3)"><a herf="#">采购员</a></span>
<el-input v-model="dataForm.purchaserName" ref="purchaserName" placeholder="请选择人员" readonly style="width: 130px" ></el-input>
<span slot="label" style="" @click="getBaseList(2000,3)"><a herf="#">采购员</a></span>
<el-input v-model="dataForm.purchaserName" ref="purchaserName" placeholder="请选择人员" readonly
style="width: 130px"></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" label-width="100px">
@ -409,7 +437,8 @@
v-model="dataForm.remark"/>
</el-form-item>
</el-form>
<el-tabs style="font-size: 12px;min-height: 330px;margin-top: 60px" class="customer-tab" v-model="activeModelName" type="border-card" >
<el-tabs style="font-size: 12px;min-height: 330px;margin-top: 60px" class="customer-tab" v-model="activeModelName"
type="border-card">
<el-tab-pane label="工具明细" name="detail">
<div class="rq" style="margin-top: 0px">
<el-table
@ -436,11 +465,14 @@
style="width: 100px; height: 80px"/></span>
</div>
<div v-else-if=" (item.columnProp === 'standardCost')">
<el-input v-if="accessField('10601001')" v-model="scope.row.standardCost" type="number" @change="changeSum(scope.row)" placeholder="请输入成本"
<el-input v-if="accessField('10601001')" v-model="scope.row.standardCost" type="number"
@change="changeSum(scope.row)" placeholder="请输入成本"
style="width:98%"></el-input>
</div>
<div v-else>
<el-input v-model="scope.row.applyQty" type="number" @change="changeSum(scope.row)" :disabled="changeApplyDetailFlag('applyQty') === 'N'" placeholder="请输入数量" onkeyup="value=value.replace(/^(0+)|[^\d]+/g,'')"
<el-input v-model="scope.row.applyQty" type="number" @change="changeSum(scope.row)"
:disabled="changeApplyDetailFlag('applyQty') === 'N'" placeholder="请输入数量"
onkeyup="value=value.replace(/^(0+)|[^\d]+/g,'')"
style="width:98%"></el-input>
</div>
</template>
@ -458,7 +490,8 @@
</el-col>
<el-col :span="24">
<el-form-item label="备注" style="height: 80px">
<el-input type="textarea" v-model="modelData.remark1" :rows="3" style="height: 60px" :disabled="$store.state.user.name!==dataForm.tp"></el-input>
<el-input type="textarea" v-model="modelData.remark1" :rows="3" style="height: 60px"
:disabled="$store.state.user.name!==dataForm.tp"></el-input>
</el-form-item>
</el-col>
</el-row>
@ -474,20 +507,24 @@
</el-col>
<el-col :span="6">
<el-form-item label="厂商名称">
<el-input v-model="modelData.supplierName" :disabled="$store.state.user.name!==dataForm.purchaser"></el-input>
<el-input v-model="modelData.supplierName"
:disabled="$store.state.user.name!==dataForm.purchaser"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="总成本(元)">
<el-input v-if="accessField('10601001')" v-model="modelData.allCost" type="number" :disabled="$store.state.user.name!==dataForm.purchaser"></el-input>
<el-input v-if="!accessField('10601001')" v-model="valueNull" style="width: 130px" disabled></el-input>
<el-input v-if="accessField('10601001')" v-model="modelData.allCost" type="number"
:disabled="$store.state.user.name!==dataForm.purchaser"></el-input>
<el-input v-if="!accessField('10601001')" v-model="valueNull" style="width: 130px"
disabled></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="备注" style="height: 80px">
<el-input type="textarea" v-model="modelData.remark2" :rows="3" style="height: 60px" :disabled="$store.state.user.name!==dataForm.purchaser"></el-input>
<el-input type="textarea" v-model="modelData.remark2" :rows="3" style="height: 60px"
:disabled="$store.state.user.name!==dataForm.purchaser"></el-input>
</el-form-item>
</el-col>
</el-row>
@ -554,10 +591,12 @@
</el-dialog>
<!-- 提交 -->
<el-dialog title="驳回" top="30vh" :close-on-click-modal="false" v-drag :visible.sync="submitModalFlag" width="500px">
<el-dialog title="驳回" top="30vh" :close-on-click-modal="false" v-drag :visible.sync="submitModalFlag"
width="500px">
<el-form :inline="true" label-position="top">
<el-form-item :label="'驳回意见'">
<el-input type="textarea" v-model="rejectOpinion" :rows="3" resize='none' show-word-limit style="width: 479px;height: 30px"></el-input>
<el-input type="textarea" v-model="rejectOpinion" :rows="3" resize='none' show-word-limit
style="width: 479px;height: 30px"></el-input>
</el-form-item>
</el-form>
<el-footer style="height:30px;margin-top: 50px;text-align:center">
@ -579,7 +618,8 @@
} from '@/api/customer/customerInformation.js'
import projectUploadFile from "./com_tool_upload_file";/*上传文件的組件*/
import Chooselist from '@/views/modules/common/Chooselist'
import {searchProjectToolApplyHeader,
import {
searchProjectToolApplyHeader,
searchProjectToolApplyDetail,
comfirmProjectToolApply,
cancelProjectToolApply,
@ -1679,8 +1719,10 @@
nodeId: row.nodeId
}
this.openModelMessage()
searchProjectToolApplyDetail({ site: row.site,
applyNo: row.applyNo,}).then(({data}) => {
searchProjectToolApplyDetail({
site: row.site,
applyNo: row.applyNo,
}).then(({data}) => {
if (data.code == 0) {
this.toolData = data.rows
}
@ -1715,8 +1757,10 @@
nodeId: row.nodeId
}
this.openModelMessage()
searchProjectToolApplyDetail({ site: row.site,
applyNo: row.applyNo,}).then(({data}) => {
searchProjectToolApplyDetail({
site: row.site,
applyNo: row.applyNo,
}).then(({data}) => {
if (data.code == 0) {
this.toolData = data.rows
}
@ -1744,7 +1788,8 @@
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {}
onClose: () => {
}
})
} else {
this.$alert(data.msg, '错误', {
@ -1895,7 +1940,7 @@
type: 'warning'
}).then(() => {
saveProjectHeaderMessage(this.modelData).then(({data}) => {
if (data && data.code == 0) {
if (data && data.code === 0) {
this.modelFlag = false;
this.currentRow.prNo = this.modelData.prNo
this.currentRow.remark1 = this.modelData.remark1
@ -1923,7 +1968,7 @@
saveHeaderMessage2() {
saveProjectHeaderMessage(this.modelData).then(({data}) => {
if (data && data.code == 0) {
if (data && data.code === 0) {
this.modelFlag = false;
this.currentRow.prNo = this.modelData.prNo
this.currentRow.remark1 = this.modelData.remark1
@ -2059,11 +2104,14 @@
}
getProjectPartNowBm(inData).then(({data}) => {
//
if (data && data.code == 0) {
if(data.rows==null||data.rows.length==0){
if (data && data.code === 0) {
if (data.rows == null || data.rows.length === 0) {
this.$alert('该物料没有benchmark', '警告', {confirmButtonText: '确定',});
}
this.$router.push({name:`sampleManagement-technicalSpecificationList`,params:{nowCodeNo:data.rows[0].nowBm},})
this.$router.push({
name: `sampleManagement-technicalSpecificationList`,
params: {nowCodeNo: data.rows[0].nowBm},
})
} else {
}

Loading…
Cancel
Save