更新
This commit is contained in:
@@ -97,14 +97,14 @@
|
||||
</div>
|
||||
</el-card>
|
||||
|
||||
<el-dialog v-el-drag-dialog :visible.sync="dialogFormVisible" title="合同审批通知" center style="min-height: 300px;" width="370px">
|
||||
<el-dialog v-el-drag-dialog :visible.sync="dialogFormVisible" title="合同审批通知" center style="min-height: 300px;" width="900px">
|
||||
<div style="min-height:500px;margin: 0px auto;width:800px;border:1px solid black" v-html="returns"/>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { initBuyer, searchTable1, searchTable2 } from '@/api/ManufacturingCenter/ContractApprovalQuery'
|
||||
import { initBuyer, searchTable1, searchTable2 } from '@/api/ManufacturingCenter/ContractApprovalQuery1'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<div style="white-space: nowrap">
|
||||
<el-card>
|
||||
<el-row>
|
||||
<el-input v-model="partName" placeholder="零件图号" size="small" clearable style="width:180px;margin: 3px 0"/>
|
||||
<el-input v-model="partName" placeholder="零件图号或名称" size="small" clearable style="width:180px;margin: 3px 0"/>
|
||||
<el-button size="small" icon="el-icon-search" type="primary" plain style="margin-left: 10px" @click="pageSize=30; pageCurrent=1;searchTable()">查询</el-button>
|
||||
<el-tooltip :open-delay="1200" effect="dark" content="打印备料单" placement="top"/>
|
||||
<el-tooltip :open-delay="1200" effect="dark" content="将选中零件分配为外购备料" placement="top">
|
||||
|
||||
@@ -142,7 +142,6 @@ export default {
|
||||
},
|
||||
created() {
|
||||
this.fetchData()
|
||||
this.searchData()
|
||||
},
|
||||
methods: {
|
||||
fetchData() {
|
||||
@@ -179,35 +178,40 @@ export default {
|
||||
}
|
||||
},
|
||||
searchData() {
|
||||
var check1, check2, check3, check4, check5
|
||||
if (this.machineToolValue) { check1 = 1 } else { check1 = 0 }
|
||||
if (this.groupNumberValue) { check2 = 1 } else { check2 = 0 }
|
||||
if (this.partNumber) { check3 = 1 } else { check3 = 0 }
|
||||
if (this.partStateValue) { check4 = 1 } else { check4 = 0 }
|
||||
if (this.partTypeValue) { check5 = 1 } else { check5 = 0 }
|
||||
this.loading0 = true
|
||||
searchTable(check1, this.machineToolValue, check2, this.groupNumberValue, check3, this.partNumber, check4, this.partStateValue, check5, this.partTypeValue, this.pageCurrent, this.pageSize).then(response => {
|
||||
for (let i = 0; i < response.data.result.length; i++) {
|
||||
if (response.data.result[i].考核状态 === 3) {
|
||||
response.data.result[i].考核状态 = 1
|
||||
} else if (response.data.result[i].考核状态 === 4) {
|
||||
response.data.result[i].考核状态 = 2
|
||||
} else if (response.data.result[i].考核状态 === 5) {
|
||||
response.data.result[i].考核状态 = 2
|
||||
} else if (response.data.result[i].考核状态 === 6) {
|
||||
response.data.result[i].考核状态 = 2
|
||||
} else if (response.data.result[i].考核状态 === 7) {
|
||||
response.data.result[i].考核状态 = 3
|
||||
} else if (response.data.result[i].考核状态 === 8) {
|
||||
response.data.result[i].考核状态 = 4
|
||||
} else if (response.data.result[i].考核状态 === 9) {
|
||||
response.data.result[i].考核状态 = 5
|
||||
if (this.machineToolValue || this.groupNumberValue || this.partNumber || this.partStateValue || this.partTypeValue) {
|
||||
var check1, check2, check3, check4, check5
|
||||
if (this.machineToolValue) { check1 = 1 } else { check1 = 0 }
|
||||
if (this.groupNumberValue) { check2 = 1 } else { check2 = 0 }
|
||||
if (this.partNumber) { check3 = 1 } else { check3 = 0 }
|
||||
if (this.partStateValue) { check4 = 1 } else { check4 = 0 }
|
||||
if (this.partTypeValue) { check5 = 1 } else { check5 = 0 }
|
||||
this.loading0 = true
|
||||
searchTable(check1, this.machineToolValue, check2, this.groupNumberValue, check3, this.partNumber, check4, this.partStateValue, check5, this.partTypeValue, this.pageCurrent, this.pageSize).then(response => {
|
||||
for (let i = 0; i < response.data.result.length; i++) {
|
||||
if (response.data.result[i].考核状态 === 3) {
|
||||
response.data.result[i].考核状态 = 1
|
||||
} else if (response.data.result[i].考核状态 === 4) {
|
||||
response.data.result[i].考核状态 = 2
|
||||
} else if (response.data.result[i].考核状态 === 5) {
|
||||
response.data.result[i].考核状态 = 2
|
||||
} else if (response.data.result[i].考核状态 === 6) {
|
||||
response.data.result[i].考核状态 = 2
|
||||
} else if (response.data.result[i].考核状态 === 7) {
|
||||
response.data.result[i].考核状态 = 3
|
||||
} else if (response.data.result[i].考核状态 === 8) {
|
||||
response.data.result[i].考核状态 = 4
|
||||
} else if (response.data.result[i].考核状态 === 9) {
|
||||
response.data.result[i].考核状态 = 5
|
||||
}
|
||||
}
|
||||
}
|
||||
this.loading0 = false
|
||||
this.total = parseInt(response.data.output[0].ItemCount)
|
||||
this.tableData = response.data.result
|
||||
})
|
||||
this.loading0 = false
|
||||
this.total = parseInt(response.data.output[0].ItemCount)
|
||||
this.tableData = response.data.result
|
||||
})
|
||||
} else {
|
||||
this.$message.warning('请输入查询条件')
|
||||
this.tableData = []
|
||||
}
|
||||
},
|
||||
handleSizeChange(val) {
|
||||
this.pageSize = val
|
||||
|
||||
Reference in New Issue
Block a user