Browse Source

报修和转办增加flag参数

master
zhang_li 6 months ago
parent
commit
767e74b708
  1. 6
      src/pages/deviceReport/addForm.vue
  2. 6
      src/pages/repairOrder/transfer.vue

6
src/pages/deviceReport/addForm.vue

@ -151,7 +151,8 @@
if (this.type == 'DEVICE'||this.type == 'TECH') {
deviceApi.getDeviceDetailsByNumber({
number:this.form.deviceNumber,
type:this.type
type:this.type,
flag:1
}).then((res) => {
// if (res.data && res.data.length > 0) {
// res.data.map(item => {
@ -180,7 +181,8 @@
})
} else if (this.type == 'MOLD') {
moldApi.getMoldDetailsByNumber({
number:this.form.deviceNumber
number:this.form.deviceNumber,
flag:1
}).then((res) => {
if(!res.data){
this.$modal.showToast('找不到该设备')

6
src/pages/repairOrder/transfer.vue

@ -177,7 +177,8 @@
if (this.type == 'DEVICE'||this.type == 'TECH') {
deviceApi.getDeviceDetailsByNumber({
number:this.form.deviceNumber,
type:this.type
type:this.type,
flag:1
}).then(async (res) => {
if(!res.data){
this.$modal.showToast('找不到该设备')
@ -200,7 +201,8 @@
})
} else if (this.type == 'MOLD') {
moldApi.getMoldDetailsByNumber({
number:this.form.deviceNumber
number:this.form.deviceNumber,
flag:1
}).then(async (res) => {
if(!res.data){
this.$modal.showToast('找不到该设备')

Loading…
Cancel
Save