|
@@ -416,13 +416,17 @@ export default {
|
|
|
},
|
|
|
// 获取已生成的数据列表
|
|
|
getList(){
|
|
|
- this.loading = true
|
|
|
- console.log(2222,this.queryParam)
|
|
|
- listSj(this.queryParam).then((res) => {
|
|
|
- console.log(res)
|
|
|
- this.dataSource = res.result
|
|
|
- this.loading = false
|
|
|
- })
|
|
|
+ if(!this.queryParam.woId){
|
|
|
+ this.$message.error("请选择工单号后再查询!")
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.loading = true
|
|
|
+ console.log(2222,this.queryParam)
|
|
|
+ listSj(this.queryParam).then((res) => {
|
|
|
+ console.log(res)
|
|
|
+ this.dataSource = res.result
|
|
|
+ this.loading = false
|
|
|
+ })
|
|
|
},
|
|
|
listReset(){
|
|
|
this.queryParam = {}
|
|
@@ -456,6 +460,13 @@ export default {
|
|
|
|
|
|
// 提交
|
|
|
submitSJ(){
|
|
|
+ console.log(this.$refs.xTable.tableSynchData) // 获取初始表格数据
|
|
|
+ // console.log(this.$refs.xTable.tableFullData) // 另一种获取全部数据的方法
|
|
|
+ // 根据表格的初始数据和修改数据判断
|
|
|
+ if(this.$refs.xTable.tableSynchData.length === 0){
|
|
|
+ this.$message.error("请先查询后提交!")
|
|
|
+ return
|
|
|
+ }
|
|
|
const querySubmit = {}
|
|
|
querySubmit.woId = this.queryParam.woId
|
|
|
querySubmit.shiyanDateTime = this.queryParam2.riqi
|
|
@@ -474,6 +485,10 @@ export default {
|
|
|
},
|
|
|
// 上传附件打开
|
|
|
submitFJ(){
|
|
|
+ if(!this.queryParam2.weituoId){
|
|
|
+ this.$message.error("请选择委托编号后再上传!")
|
|
|
+ return
|
|
|
+ }
|
|
|
getUpload({weituoId: this.queryParam2.weituoId}).then(res => {
|
|
|
console.log(res.result)
|
|
|
if (res.result === '') {
|