Browse Source

采购申请单上增加刀具寿命,实例号 ,备注 2022年12月22日 sxm

master
[li_she] 3 years ago
parent
commit
a6da0d416e
  1. 96
      src/views/modules/purchaseorder/purchaseRequisition.vue

96
src/views/modules/purchaseorder/purchaseRequisition.vue

@ -9,9 +9,6 @@
</div>
<el-button @click="getDataList('Y')" type="primary">{{ buttons.search }}</el-button>
<el-button @click="initAddModel(null)" type="primary">{{ buttons.addLabelName }}</el-button>
<el-button @click="saveColumnList()" type="primary" v-show="showDefault">{{ buttons.defaultTable }}
</el-button>
<el-button @click="userSetting()" type="primary">{{ buttons.settingTable }}</el-button>
<download-excel
:fields="fields()"
:data="exportData"
@ -72,7 +69,7 @@
</el-select>
</el-form-item>
<el-form-item>
<span slot="label" @click="getBaseList(3,1)"><el-link>{{'供应商编码'}}</el-link> </span>
<span slot="label" @click="getBaseList(3,1)"><el-link>{{ '供应商编码' }}</el-link> </span>
<el-input v-model="mainQueryData.supplierid" onkeyup="this.value = this.value.toUpperCase()"
style="width: 120px"></el-input>
</el-form-item>
@ -183,7 +180,7 @@
</el-select>
</el-form-item>
<el-form-item>
<span slot="label" @click="getBaseList(3)"><el-link>{{'供应商编码'}}</el-link> </span>
<span slot="label" @click="getBaseList(3)"><el-link>{{ '供应商编码' }}</el-link> </span>
<el-input v-model="currentPRDetailData.supplierid"
style="width: 120px"></el-input>
</el-form-item>
@ -211,8 +208,8 @@
</el-select>
</el-form-item>
<el-form-item :label="'工具编码'">
<span v-if="showToolIdList" slot="label" @click="getBaseList(70)"><el-link>{{'工具编码'}}</el-link> </span>
<span v-else="showToolIdList" slot="label" >{{'工具编码'}}</span>
<span v-if="showToolIdList" slot="label" @click="getBaseList(70)"><el-link>{{ '工具编码' }}</el-link> </span>
<span v-else="showToolIdList" slot="label">{{ '工具编码' }}</span>
<el-input style="text-align: left;width: 120px"
v-model="currentPRDetailData.partno"></el-input>
</el-form-item>
@ -231,6 +228,21 @@
<el-radio v-model="currentPRDetailData.addFlag" label="1"></el-radio>
<el-radio v-model="currentPRDetailData.addFlag" label="2"></el-radio>
</el-form-item>
<el-form-item :label="'寿命'">
<el-input oninput="value=value.replace(/^\.+|[^\d.]/g,'')" style="text-align: right;width: 120px"
v-model="currentPRDetailData.lifespan"
></el-input>
</el-form-item>
<el-form-item :label="'实例号'">
<el-input style="text-align: right;width: 120px"
v-model="currentPRDetailData.toolInstanceId"
></el-input>
</el-form-item>
<el-form-item :label="'备注'">
<el-input style="text-align: right;width: 315px"
v-model="currentPRDetailData.remark"
></el-input>
</el-form-item>
</el-form>
</el-col>
</el-row>
@ -320,9 +332,9 @@
<script>
import Chooselist from '@/views/modules/common/Chooselist'
import column from "../common/column";
import {
import Chooselist from '@/views/modules/common/Chooselist'
import column from "../common/column";
import {
searchSysLanguagePackList,
searchSysLanguageParam,
searchFunctionButtonList,
@ -330,19 +342,19 @@
searchSysLanguage,
searchLanguageListByLanguageCode,
saveSysLanguageOne
} from "@/api/sysLanguage.js"
import {
} from "@/api/sysLanguage.js"
import {
saveTableDefaultList,
saveTableUser,
getTableDefaultListLanguage,
getTableUserListLanguage,
removerDefault,
removerUser
} from "@/api/table.js"
import {
} from "@/api/table.js"
import {
userFavoriteList, saveUserFavorite, removeUserFavorite
} from '@/api/userFavorite.js'
import {
} from '@/api/userFavorite.js'
import {
getPRHeaderList,
getTblBaseDataList,
savePRDetail,
@ -354,15 +366,15 @@
getFileList,
getPartFamilyList,
delFileAssociate,
} from '@/api/purchaseorder/purchaseRequisition.js'
import {
} from '@/api/purchaseorder/purchaseRequisition.js'
import {
getBusinessRoleList,
} from '@/api/auditManagement/auditRules.js'
import upload from "../common/upload";
import axios from "axios";
import Vue from "vue";
} from '@/api/auditManagement/auditRules.js'
import upload from "../common/upload";
import axios from "axios";
import Vue from "vue";
export default {
export default {
components: {
upload,
Chooselist,
@ -966,10 +978,10 @@
this.currentPRDetailData.partno = this.currentPRDetailData.partno.toUpperCase()
this.currentPRDetailData.partdesc = this.currentPRDetailData.partdesc.toUpperCase()
this.currentPRDetailData.supplierid = this.currentPRDetailData.supplierid.toUpperCase()
if (this.currentPRDetailData.addFlag == '1' || this.currentPRDetailData.addFlag == ''){
if (this.currentPRDetailData.addFlag == '1' || this.currentPRDetailData.addFlag == '') {
this.showToolIdList = false
}else {
this.showToolIdList =true
} else {
this.showToolIdList = true
}
}
}
@ -1021,7 +1033,7 @@
this.currentPRDetailData.suppliername = val.SupplierName
}
}
if (this.tagNo === 70 ){
if (this.tagNo === 70) {
this.currentPRDetailData.partno = val.ToolID
this.currentPRDetailData.partdesc = val.ToolDescription
}
@ -1039,7 +1051,7 @@
strVal = this.currentPRDetailData.supplierid
}
}
if (val === 70 ){
if (val === 70) {
strVal = this.currentPRDetailData.partno
}
this.$refs.baseList.init(val, strVal)
@ -1212,14 +1224,14 @@
});
return
}
if (this.addFlagShow){
if (this.currentPRDetailData.addFlag == ''){
if (this.addFlagShow) {
if (this.currentPRDetailData.addFlag == '') {
this.$message.warning("请选择是否新增")
this.bannersBut = false
return
}
}else {
if (this.currentPRDetailData.partdesc == ''){
} else {
if (this.currentPRDetailData.partdesc == '') {
this.$message.warning("请输入工名称")
this.bannersBut = false
return
@ -1240,7 +1252,7 @@
this.getDataList()
this.$message.success(data.msg)
this.addPRDetailFlag = false
}else {
} else {
this.$message.warning(data.msg)
}
this.bannersBut = false
@ -1287,6 +1299,9 @@
this.currentPRDetailData.partdesc = ''
this.currentPRDetailData.orderref1 = ''
this.currentPRDetailData.addFlag = ''
this.currentPRDetailData.lifespan = ''
this.currentPRDetailData.remark = ''
this.currentPRDetailData.toolInstanceId = ''
this.addFlagShow = true
} else {
this.addFlagShow = false
@ -1302,6 +1317,9 @@
this.currentPRDetailData.taxCode = row.taxCode
this.currentPRDetailData.partDesc = row.partdesc
this.currentPRDetailData.orderref1 = row.orderref1
this.currentPRDetailData.lifespan = row.lifespan
this.currentPRDetailData.remark = row.remark
this.currentPRDetailData.toolInstanceId = row.toolInstanceId
this.getFileList(row)
}
/* if (val != 'Y') {
@ -1582,19 +1600,19 @@
this.getFunctionButtonList()
this.favoriteIsOk()
}
}
}
</script>
<style scoped lang="scss">
.sl-svg {
.sl-svg {
overflow: hidden;
float: right;
}
}
/*统一的input内容颜色样式*/
.customer-input-color-red /deep/ .el-input__inner {
/*统一的input内容颜色样式*/
.customer-input-color-red /deep/ .el-input__inner {
color: red;
}
}
</style>
Loading…
Cancel
Save