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