|
|
|
@ -65,6 +65,7 @@ |
|
|
|
<a type="text" size="small" @click="jumpDetail(scope.row)">详情</a> |
|
|
|
<a type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</a> |
|
|
|
<a type="text" size="small" @click="deleteData(scope.row)">删除</a> |
|
|
|
<a type="text" size="small" v-if="scope.row.status === 'cg'" @click="issueModal(scope.row)">下达</a> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
@ -316,6 +317,7 @@ |
|
|
|
technicalSpecificationListSearch, |
|
|
|
deleteTechnicalSpecificationList, |
|
|
|
upBMRevNo, |
|
|
|
issueChange, // 下达 |
|
|
|
} from "@/api/sampleManagement/technicalSpecificationList.js" |
|
|
|
import Chooselist from '@/views/modules/common/Chooselist' |
|
|
|
import AddOrUpdate from './com_technical-add-or-update' |
|
|
|
@ -714,6 +716,32 @@ |
|
|
|
}) |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 下达 |
|
|
|
issueModal (row) { |
|
|
|
this.$confirm(`是否确认下达?`, '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
let tempData = { |
|
|
|
site: row.site, |
|
|
|
userName: this.$store.state.user.name, |
|
|
|
codeNo: row.codeNo, |
|
|
|
menuId: this.$route.meta.menuId |
|
|
|
} |
|
|
|
issueChange(tempData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.search() |
|
|
|
this.$message({message: '操作成功', type: 'success'}) |
|
|
|
} else { |
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 每页数 |
|
|
|
sizeChangeHandle (val) { |
|
|
|
this.pageSize = val |
|
|
|
|